{"uid":"cap_4s1_EczUC7Mc-RYKFnsIb","slug":"agents-llmapi-ai-generate-response-openai-responses-api-llm-api-88a14071","name":"Generate Response (OpenAI Responses API – LLM API Storefront)","description":"OpenAI Responses API, synchronous only: background mode is rejected. model must be one of the storefront models: claude-opus-5, claude-sonnet-5, gpt-5.2, gpt-5.1, gpt-5-mini, gemini-3.1-pro-preview, gemini-3.7-flash, deepseek-v4-pro, deepseek-v4-flash, grok-4.6, kimi-k2.6, glm-5.3. Billed per exact input and output token at the model's service rates.","url":"https://agents.llmapi.ai/zc/v1/responses?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","example":{"input":"Say hello in five words.","model":"gpt-5-mini","max_output_tokens":32},"required":["model","input"],"properties":{"input":{"type":"string","description":"Prompt input."},"model":{"enum":["claude-opus-5","claude-sonnet-5","gpt-5.2","gpt-5.1","gpt-5-mini","gemini-3.1-pro-preview","gemini-3.7-flash","deepseek-v4-pro","deepseek-v4-flash","grok-4.6","kimi-k2.6","glm-5.3"],"type":"string","description":"One of the storefront model ids."},"max_output_tokens":{"type":"integer","description":"Output token ceiling for this call."}}},"responseSchema":{"type":"object","properties":{"content":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"unknown","displayCostAsset":"USD","priceDynamic":true,"priceHint":null,"priceStatus":"unknown_unparsed","priceSource":"registry","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":"unknown","summary":"price unknown","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_Y73OnUP8EbW9lLQD0qig8","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.llmapi.ai","brandSlug":"agents-llmapi-ai-x402","brandBaseUrl":"https://agents.llmapi.ai","brandDocsUrl":null,"whatItDoes":"Synchronously generates a text response from a curated set of frontier LLMs via the OpenAI Responses API format, billed per exact token usage.","exampleAgentPrompt":"Using gpt-5-mini on LLM API, answer the following in at most 100 output tokens: 'What are three best practices for writing unit tests?'","exampleUseCases":[{"title":"Automated customer support drafting","prompt":"Use gpt-5-mini to draft a polite reply to this customer complaint: 'My order arrived damaged and I want a refund.' Keep the response under 150 tokens."},{"title":"Multi-model answer comparison","prompt":"Send the prompt 'Explain quantum entanglement in two sentences' to both claude-sonnet-5 and deepseek-v4-flash and show me both responses so I can compare them."},{"title":"Code explanation on demand","prompt":"I need gemini-3.7-flash to explain what this Python function does in plain English, limit the output to 200 tokens: 'def fib(n): return n if n < 2 else fib(n-1)+fib(n-2)'"}],"resultDescription":"A JSON object with a 'content' string field containing the model's generated text response to the given prompt.","failureModes":["Unsupported model ID returns a validation error — only the 12 listed storefront models are accepted","Background/async mode requests are rejected — only synchronous calls are supported","Prompt or message array malformed — missing required 'input' or 'model' fields returns a 400 error","Max output token ceiling exceeded by model constraints returns a truncated or error response","Billing failure if account lacks sufficient credits — returns a payment or authorization error"],"whenToPreferThis":"Choose this endpoint when you need synchronous, pay-per-exact-token inference across a curated set of frontier models (GPT-5, Claude, Gemini, DeepSeek, Grok, Kimi, GLM) via the familiar OpenAI Responses API schema, without needing streaming or background execution. Ideal for agents that need to switch between providers without changing the API contract, or that want predictable per-token billing with no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:39:11.677Z","isFirstParty":false,"canonicalSlug":"agents-llmapi-ai-generate-response-openai-responses-api-llm-api-88a14071"}