{"uid":"cap_iAB3yv7cdalUE7WxmnuZK","slug":"agent402-tools-premium-responses-llm-inference-via-x402-38ab2c63","name":"Agent402.Tools Premium Responses (LLM Inference 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/premium and pay $0.50 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/premium/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.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0Nns3TtD1zzhHzrKYr1HF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Routes a prompt to an allowlisted LLM (OpenAI Responses API-compatible) and streams or returns the completion, paid per-call in USDC via x402 with no API key required.","exampleAgentPrompt":"Send this message to GPT-4o-mini — 'Summarize the top risks of agentic AI in three bullet points' — and stream the response back to me, paying per call in USDC with no API key.","exampleUseCases":[{"title":"Keyless LLM call for an autonomous agent","prompt":"My agent needs to call GPT-4o-mini to answer 'What are the main differences between x402 and traditional API billing?' — do it without any API key, just pay 0.5 USDC per call using my wallet and return the full text response."},{"title":"Structured JSON extraction from unstructured text","prompt":"Run this through an LLM and give me back a JSON object with keys 'company', 'revenue', and 'year' extracted from: 'Acme Corp reported $4.2B in revenue for fiscal 2024.' — use auto model selection and format the output as json_object."},{"title":"Reasoning-heavy code review with high effort","prompt":"I want to review this Python snippet for security issues — pass it to a reasoning model with high reasoning effort, include system instructions saying 'You are a senior security engineer', and stream the response: def login(user, pwd): return db.query(f'SELECT * FROM users WHERE u={user} AND p={pwd}')"}],"resultDescription":"Returns an OpenAI Responses API-compatible JSON object containing the assistant's output message(s), the model used, input/output/total token counts, a response ID, and a completion status. In streaming mode, delivers SSE events (response.created through response.completed) with incremental content deltas.","failureModes":["Payment not included or insufficient USDC — 402 Payment Required returned","Model ID not on allowlist for the caller's tier — rejected with model error","Inner dimension mismatch in tool call parameters — function_call validation error","max_output_tokens clamped to tier cap silently — output may be truncated","Zero-data-retention filter excludes requested model — provider unavailable","Malformed input array (missing role or content) — 400 Bad Request","Streaming connection dropped mid-response — partial SSE stream, no completed event"],"whenToPreferThis":"Choose this endpoint when you need LLM inference without signing up for API keys or managing subscriptions — ideal for AI agents that authenticate via a crypto wallet and pay per call in USDC using the x402 protocol. Prefer it over OpenAI or OpenRouter direct when you want wallet-as-identity, zero-signup access to 500+ tools and models, or when your agent stack is already x402-native. It is especially valuable for multi-model routing (OpenRouter naming), controllable reasoning effort, zero-data-retention requirements, and streaming completions in agentic pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:51:01.254Z","isFirstParty":false}