{"uid":"cap_PYD3DQLg_IADWAgnAf_ww","slug":"agent402-openai-responses-api-nano-tier-x402-2c6f7a7c","name":"Agent402 OpenAI Responses API (Nano Tier, 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/nano and pay $0.003 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/nano/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.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_223MxQG0aTnUeEumZBOPl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs OpenAI-compatible Responses API calls (text generation, structured output, tool use) paid per-call in USDC via x402, no API key required.","exampleAgentPrompt":"Send this conversation to the nano-tier OpenAI Responses endpoint at agent402.tools — use gpt-4o-mini, ask it to summarize the following support ticket in JSON format, and pay the $0.003 USDC per-call fee automatically.","exampleUseCases":[{"title":"Keyless LLM call in agent pipeline","prompt":"I'm building an autonomous agent that needs to call a language model without managing API keys — use the agent402.tools nano endpoint, model gpt-4o-mini, and pay per call in USDC. Have it answer: 'What are the top 3 risks of deploying AI in healthcare?'"},{"title":"Structured JSON extraction from text","prompt":"Use the agent402 nano responses endpoint with gpt-4o-mini and json_schema output format to extract the company name, invoice number, and total amount from this text: 'Invoice #4821 from Acme Corp, total due: $3,450.00'. Pay with USDC, no API key."},{"title":"Agentic reasoning with tool calls","prompt":"Point the OpenAI Agents SDK at agent402.tools/v1/nano, use a medium reasoning effort, and have it figure out which of these three Python code snippets runs fastest — pass the three snippets as input and include a function tool called 'benchmark_code' for it to invoke."}],"resultDescription":"Returns an OpenAI Responses API-compatible response object containing the generated text, structured JSON, or function call invocations. When streaming is enabled, delivers SSE events (response.created through response.completed). Reasoning tokens are included in the output when reasoning effort is set.","failureModes":["Payment rejected or insufficient USDC balance — 402 Payment Required with x402 challenge","Requested model not on nano-tier allowlist — 400 or model-not-found error","Input exceeds tier token cap — max_output_tokens clamped silently or 400 error","Malformed input array (wrong role/content structure) — 422 validation error","Server-side tools requested (not supported) — likely 400 or ignored","Streaming connection dropped mid-response — partial SSE stream with no completion event"],"whenToPreferThis":"Choose this endpoint when you want an OpenAI Responses API-compatible interface with zero signup friction — no API key, no subscription — paying exactly $0.003 USDC per call via the x402 protocol. Ideal for autonomous agents, one-off scripts, or cost-sensitive pipelines where per-call micropayments are preferable to monthly subscriptions. Prefer alternatives (e.g. direct OpenAI or Anthropic APIs) when you need models outside the nano-tier allowlist, higher token caps, server-side built-in tools, or guaranteed SLAs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:12:44.848Z","isFirstParty":false}