{"uid":"cap_N0kgCXg9P3K4vYsn70Yi3","slug":"agent402-pro-responses-pay-per-call-ai-completions-via-x402-d2e31ff9","name":"Agent402 Pro Responses - Pay-Per-Call AI Completions via x402","description":"OpenAI Responses API over x402 - point the OpenAI SDK's responses.create() (or the OpenAI Agents SDK) at base_url https://agent402.tools/v1/pro and pay $0.10 per call in USDC, no API key, no signup. Same models, caps and price as this tier's /chat/completions route; any model here is served through the Responses wire.","url":"https://agent402.tools/v1/pro/responses","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"zdr":{"type":"boolean","description":"Optional - zero-data-retention providers only"},"text":{"type":"object","description":"Optional {format: {type: \"text\"|\"json_schema\"|\"json_object\", ...}}"},"input":{"description":"A string, or an array of input items ({role, content} messages with input_text / input_image parts, function_call, function_call_output)"},"model":{"type":"string","description":"Model id (OpenRouter naming) - allowlisted per tier; omit (or \"auto\") on the auto tier"},"tools":{"type":"array","description":"Optional function tools ({type:\"function\", name, parameters}); server-side tools are not served"},"stream":{"type":"boolean","description":"Responses SSE events (response.created … response.completed)"},"reasoning":{"type":"object","description":"Optional {effort: \"none\"|\"minimal\"|\"low\"|\"medium\"|\"high\"|\"xhigh\"|\"max\"} - reasoning tokens count against max_output_tokens"},"instructions":{"type":"string","description":"Optional system/developer instructions"},"max_output_tokens":{"type":"integer","description":"Optional output cap (clamped to the tier cap)"}}},"responseSchema":{"type":"json","example":{"id":"resp_…","model":"openai/gpt-4o-mini","usage":{"input_tokens":14,"total_tokens":32,"output_tokens":18},"object":"response","output":[{"id":"msg_…","role":"assistant","type":"message","status":"completed","content":[{"text":"x402 is an HTTP-native way for agents to pay per request with USDC.","type":"output_text","annotations":[]}]}],"status":"completed"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Vlqb411RjKUyR8vhZVh8x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs AI chat/completion requests through a pay-per-call OpenAI Responses-compatible endpoint, billed at $0.10 USDC per call via x402 micropayment protocol — no API key required.","exampleAgentPrompt":"Using the Agent402 pay-per-call completions endpoint, send this prompt to gpt-4o-mini and return the response: 'Summarize the key benefits of the x402 payment protocol for AI agents in 3 bullet points.' Stream the response back to me.","exampleUseCases":[{"title":"Wallet-authenticated agent reasoning","prompt":"I want my agent to ask gpt-4o: 'What are the top 5 risks of deploying autonomous AI agents in financial markets?' — pay for it with my USDC wallet, no signup, and return the full answer."},{"title":"Structured JSON output from AI model","prompt":"Call an AI model — use gpt-4o-mini — with the instruction 'Extract the company name, founding year, and CEO from the following text' and enforce a JSON schema output. The input text is: 'OpenAI was founded in 2015 and is currently led by Sam Altman.'"},{"title":"AI reasoning with high effort for complex task","prompt":"Send this problem to the best reasoning model available on Agent402: 'Prove that the square root of 2 is irrational.' Use high reasoning effort and return the step-by-step solution."}],"resultDescription":"Returns an OpenAI Responses-API-compatible JSON object containing the assistant's reply text, the model used, input/output/total token counts, a response ID, and completion status. When streaming is enabled, returns SSE events (response.created through response.completed) with incremental content chunks.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 with payment details","Model ID not allowlisted for the current tier — returns error indicating invalid model","Input exceeds max_output_tokens cap for the tier — tokens clamped or rejected","Malformed input array (invalid role/content structure) — returns validation error","Network timeout on long reasoning requests — partial SSE stream may be cut off","Zero-data-retention filter applied but no ZDR-compliant provider available — returns provider error"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible LLM completions without managing API keys or subscriptions — ideal for AI agents that authenticate via crypto wallet using x402 or MPP micropayments. Prefer it over direct OpenAI/Anthropic APIs when you want pay-per-call billing in USDC, anonymous/wallet-based identity, or access to 500+ tool-augmented models through a single endpoint. Also prefer when building agent pipelines that need on-chain payment trails or zero-data-retention options.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:46:42.414Z","isFirstParty":false}