{"uid":"cap_Q9q78CtoY28QyX8sOcD5r","slug":"agentrxi-gpt-oss-20b-chat-completions-ddc09337","name":"AgentRXI GPT-OSS-20B Chat Completions","description":"OpenAI-compatible chat completions on OpenAI gpt-oss-20b open-weight reasoning model with tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/gpt-oss-20b and pay per token with x402 instead of an API key: $0.6 per million input and $0.9 per million output tokens, minimum $0.002 a call, at most $0.0099. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, reasoning, streami","url":"https://agentrxi.com/v1/gpt-oss-20b/chat/completions?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"User message"},"system":{"type":"string","description":"Optional system message"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-...","model":"gpt-oss-20b","usage":{"total_tokens":18,"prompt_tokens":14,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Bonjour !"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003856","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.003856/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003856","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003856","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2lznUvU4a5MKez0BOylxX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003856","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completions using the GPT-OSS-20B open-weight reasoning model with tool calling, billed per token via x402 micropayments","exampleAgentPrompt":"Ask GPT-OSS-20B to explain step by step why the sum of all angles in a triangle is 180 degrees, keeping the answer under 200 tokens.","exampleUseCases":[{"title":"Reasoning over a math problem","prompt":"Use the GPT-OSS-20B reasoning model to solve this algebra problem step by step: if 3x + 7 = 22, what is x? Keep the response concise."},{"title":"On-demand chat with tool calling","prompt":"Send this message to GPT-OSS-20B with tool calling enabled: 'What is the current weather in Paris?' and let it decide which tool to invoke."},{"title":"Low-cost LLM for agent pipeline","prompt":"I need to classify this customer support message as billing, technical, or general inquiry using a cheap per-token reasoning model — run it through GPT-OSS-20B: 'My invoice is wrong this month.'"}],"resultDescription":"Returns an OpenAI-format chat completion JSON object with the assistant's message, finish reason, token usage breakdown (prompt, completion, total), model name, and a unique completion ID. Streaming is supported for incremental token delivery.","failureModes":["Insufficient x402 payment or balance leads to 402 Payment Required response","Prompt or max_tokens exceeds model context window returns a 400 error","Temperature or parameter validation failures return 422 Unprocessable Entity","Model unavailability or upstream inference errors return 503 Service Unavailable","Malformed JSON in request body returns 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need OpenAI SDK-compatible chat completions without a long-term API key subscription, want per-call or per-token micropayment billing via x402 USDC, require a capable open-weight reasoning model (20B scale), or want tool calling and streaming at a low cost ceiling ($0.0099 max per call). Prefer over larger proprietary models when cost control and open-weight transparency matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:17.155Z","isFirstParty":false,"canonicalSlug":"agentrxi-gpt-oss-20b-chat-completions-ddc09337"}