{"uid":"cap_VnYELOF_ndJO-oCCl78-L","slug":"gedx402-gpt-oss-20b-llm-inference-1f214bc0","name":"GEDX402 GPT-OSS-20B LLM Inference","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://llm.gedx402.com/v1/llm/gpt-oss-20b","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string","description":"Speaker role for this turn."},"content":{"type":"string","description":"Message text for this turn."}}},"description":"Conversation turns in order (system, user, assistant)."},"max_tokens":{"type":"integer","maximum":4096,"minimum":1,"description":"Maximum tokens to generate in the assistant reply."}}},"responseSchema":{"type":"json","example":{"model":"@cf/openai/gpt-oss-20b","response":"Hello!"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bk0DWshVVv42DpQJyQ2KN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs inference on the GPT-OSS-20B language model via x402 micropayment, accepting a conversation history and returning an AI-generated reply — no API keys required.","exampleAgentPrompt":"Ask the gpt-oss-20b model to explain quantum entanglement in simple terms — send the message as the user role with no system prompt and allow up to 512 tokens in the reply, paying 0.025 USDC via x402 on Base.","exampleUseCases":[{"title":"Instant customer support without setup costs","prompt":"I need to respond to a customer's billing question right now. Can you use the language model to draft a helpful reply explaining our refund policy? Just send it through and I'll pay the tiny USDC fee on Base."},{"title":"Real-time content generation for social posts","prompt":"Help me write three engaging tweet variations about our new product launch. Use the 20B model to generate creative options, and charge my USDC wallet on Polygon for whatever this costs."},{"title":"Quick chatbot conversation without API keys","prompt":"I want to build a simple chatbot for my landing page that answers FAQs about shipping. Can you set up a few back-and-forth exchanges using the open-source GPT model, paying per message in crypto on Arbitrum?"}],"resultDescription":"A JSON object containing the model identifier (@cf/openai/gpt-oss-20b) and a 'response' string with the assistant's generated reply text.","failureModes":["Payment not received or insufficient USDC balance — x402 payment gate rejects the request","Invalid message role (not 'system', 'user', or 'assistant') — schema validation error","max_tokens exceeds 4096 — request rejected with validation error","Empty or malformed messages array — model returns error or empty response","Unsupported payment chain — payment rejected if chain is not Base, Polygon, Arbitrum, World, or Solana","Model overloaded on Cloudflare Workers AI — slow or failed inference response"],"whenToPreferThis":"Choose this endpoint when you need LLM text generation without setting up API keys or subscriptions, prefer paying per-call in USDC via x402 on a supported blockchain (Base, Polygon, Arbitrum, World, Solana), and want access specifically to the open-source GPT-OSS-20B model running on Cloudflare Workers AI infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:57.326Z","isFirstParty":false}