{"uid":"cap_V8h97UFx7aZFUze7Zgun_","slug":"agent402-auto-responses-pay-per-call-ai-inference-gateway-e4296557","name":"Agent402 Auto Responses - Pay-Per-Call AI Inference Gateway","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/auto and pay $0.01 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/auto/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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SSkht2lrmKao89AkDE2W4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes a natural-language or multi-turn input to an AI language model and returns a completed response, billed at $0.01 USDC per call with no API key required — wallet serves as identity via x402.","exampleAgentPrompt":"Ask the auto-tier model to explain what the x402 protocol is in one sentence, and return the answer as plain text — charge my USDC wallet per call.","exampleUseCases":[{"title":"On-demand LLM inside agent pipeline","prompt":"Without any API keys, send this message to the best available model on the auto tier: 'Summarize the following contract clause in plain English: ...' and return the result as plain text, billing my wallet per call."},{"title":"Structured JSON extraction from model","prompt":"I need an AI model to extract the company name, date, and total amount from this invoice text and return it as JSON — route it to GPT-4o-mini and charge my USDC wallet for the call."},{"title":"High-effort reasoning for complex task","prompt":"Run this logic puzzle through an AI with high reasoning effort and give me the step-by-step answer: 'If Alice is older than Bob, and Bob is older than Carol, who is youngest?' — use the auto tier and pay per call from my wallet."}],"resultDescription":"A JSON object conforming to the OpenAI Responses API shape: includes a response ID, the model used, token usage breakdown (input/output/total), a status field, and an output array containing the assistant message with text content and any annotations. If streaming is enabled, Server-Sent Events are returned instead.","failureModes":["Insufficient USDC balance in wallet — payment rejected before inference runs","Model ID not on the allowlist for the caller's tier — returns an error listing valid models","Input tokens exceed the tier's context cap — request is rejected or truncated","Malformed input array (missing role/content structure) — schema validation error","zero-data-retention flag set but no ZDR-compliant provider available for the requested model","Streaming disconnection mid-response — partial SSE stream with no completed event","Rate limits on the underlying OpenRouter provider — upstream 429 propagated back"],"whenToPreferThis":"Choose this endpoint when you need anonymous, keyless LLM inference billed per call in USDC, especially inside an agentic workflow that already uses the x402 payment protocol. It is ideal when you want automatic model routing without managing multiple provider API keys, or when your agent needs to pay for intelligence on demand from a crypto wallet. Prefer it over provider-direct APIs when you want cost flexibility, no subscription lock-in, and access to 500+ tools in the same ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T21:19:50.176Z","isFirstParty":false}