{"uid":"cap_Vh-ZttmIABOzf74jQ0auL","slug":"agent-data-tools-revmesh2074-workers-dev-openai-responses-api-llama-ac261211","name":"OpenAI Responses API (Llama / GPT-OSS, pay-per-call)","description":"OpenAI Responses request shape: input (a string or a list of role/content items), optional instructions, max_output_tokens and temperature; one completed message comes back in output (plus output_text). Served by the same models and prices as /v1/chat/completions: $0.01 by default, $0.01 with model \"llama-3.3-70b\" or \"gpt-oss-120b\". No streaming, no tools. Point an OpenAI SDK at https://agent-data-tools.revmesh2074.workers.dev/v1 with an x402 or MPP fetch wrapper. Failed calls are never charged.","url":"https://agent-data-tools.revmesh2074.workers.dev/v1/responses?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"role":{"enum":["system","user","assistant"],"type":"string"},"content":{}}}}],"description":"A string, or a list of { role, content } items (content a string or input_text parts)"},"model":{"type":"string","description":"@cf/meta/llama-3.1-8b-instruct-fp8 (default, $0.01), or llama-3.3-70b / gpt-oss-120b ($0.01)"},"stream":{"type":"boolean","description":"Must be false or absent"},"temperature":{"type":"number","maximum":1.5,"minimum":0},"instructions":{"type":"string","description":"Optional system prompt"},"max_output_tokens":{"type":"integer","maximum":1024,"minimum":1}}},"responseSchema":{"type":"object","properties":{"id":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"estimated":{"type":"boolean"},"input_tokens":{"type":"number"},"total_tokens":{"type":"number"},"output_tokens":{"type":"number"}}},"object":{"type":"string"},"output":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"content":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string"},"annotations":{"type":"array","items":{}}}}}}}},"status":{"type":"string"},"created_at":{"type":"number"},"output_text":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","priceDynamic":true,"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":"dynamic","summary":"$0.01/call (dynamic — varies by input)","primary":{"kind":"dynamic","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"dynamic","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fznl_7LzDRiIzp6Hr2d50","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Generates a single non-streaming text completion using the OpenAI Responses request shape, served by Llama 3.1 8B (default, $0.003), Llama 3.3 70B, or gpt-oss-120b ($0.01).","exampleAgentPrompt":"Answer this question using the cheap Llama 3.1 8B model: 'What are the main differences between REST and GraphQL APIs?' — keep the response under 300 tokens and use a neutral, informative tone.","exampleUseCases":[{"title":"Quick Q&A with cheap LLM","prompt":"Use the default Llama 3.1 8B model to answer this question in under 200 tokens: 'What is the capital of Australia and what is it known for?'"},{"title":"Instruction-following with system prompt","prompt":"I need you to act as a JSON formatter. Use the gpt-oss-120b model with the system prompt 'You only output valid JSON, no explanation' and ask it to convert this sentence into a JSON object: 'Alice is 30 years old and lives in Berlin.'"},{"title":"Creative writing at low temperature","prompt":"Generate a short two-sentence product tagline for a coffee brand called Morning Bloom using the Llama 3.3 70B model, temperature 0.2, max 80 tokens."}],"resultDescription":"Returns a response object following the OpenAI Responses shape, containing an 'output' array with the completed message and a top-level 'output_text' field with the raw text. No streaming chunks — one complete response per call. Model used and token usage metadata may also be included.","failureModes":["Missing required 'input' field returns a validation error and no charge","Setting stream:true returns an error (streaming is not supported)","max_output_tokens exceeding 1024 triggers a schema validation error","Invalid model name may fall back to default or return an error","Payment failure (insufficient x402 balance or bad credentials) results in a 402 response and no charge","Network timeout on the Cloudflare Worker edge may return a 5xx with no charge"],"whenToPreferThis":"Choose this endpoint when you need a cheap, stateless, non-streaming single-turn text completion via the OpenAI Responses API shape, especially if your agent is already using an OpenAI SDK and you want to point it at a pay-per-call alternative with no account setup. Prefer the default Llama 3.1 8B model at $0.003 for high-volume or cost-sensitive tasks; switch to Llama 3.3 70B or gpt-oss-120b at $0.01 for better reasoning quality. Not suitable for streaming, tool-calling, function-calling, or multi-turn stateful conversations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:15:43.260Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-openai-responses-api-llama-ac261211"}