{"uid":"cap_gW2McHLGM24XLsuZjw9Z5","slug":"openai-gpt-5-chat-completions-x402-usdc-70ef2325","name":"OpenAI GPT-5 Chat Completions (x402/USDC)","description":"gpt-5: OpenAI GPT 5 chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 0.625/5.0, Standard 1.25/10.0, Fast 2.5/20.0; pick with service_tier. Plus $0.0005 (Base) or $0.0005 (Solana) per call; the quote charges input plus 10% of max_tokens. Levels: minimal, low, medium, high (model gpt-5:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5","gpt-5:minimal","gpt-5:low","gpt-5:medium","gpt-5:high"],"type":"string"},"tools":{"type":"array"},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer"},"service_tier":{"enum":["flex","default","standard","auto","fast","priority"],"type":"string"},"response_format":{"type":"object"},"reasoning_effort":{"type":"string"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-x","model":"gpt-5","usage":{"total_tokens":9,"prompt_tokens":8,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello","refusal":null},"finish_reason":"stop"}],"service_tier":"flex"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4QqhCh8gPAh4pRIO0ydcq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs GPT-5 chat completions via a pay-per-call x402 API billed in USDC, with configurable service tiers and quality levels","exampleAgentPrompt":"Ask GPT-5 using the standard service tier and high quality level: 'Explain the implications of quantum computing for cryptography' — keep the response under 500 tokens.","exampleUseCases":[{"title":"Crypto-native AI coding assistant","prompt":"Use GPT-5 at high quality with standard tier to review this Python function and suggest improvements, then explain your reasoning: [paste code here]. Keep max_tokens at 800."},{"title":"Automated customer support reply generation","prompt":"Generate a helpful customer support response using GPT-5 flex tier at medium quality — the customer says their order hasn't arrived after 10 days. Keep it under 200 tokens and professional in tone."},{"title":"Research summarization with reasoning","prompt":"I need GPT-5 to summarize this 3-paragraph scientific abstract and extract the key findings — use high reasoning effort and the fast service tier, max 300 tokens."}],"resultDescription":"Returns a JSON chat completion object containing the assistant's reply message, token usage breakdown (prompt, completion, total), finish reason (e.g. 'stop'), the model used, and the active service tier. Empty responses when no tokens are consumed are free of charge.","failureModes":["Insufficient USDC balance causes x402 payment failure and request rejection","Invalid model variant (not in enum) returns 400 error","Exceeding context window for the chosen model level returns an error","Streaming not supported in some configurations, returns error if requested incompatibly","max_tokens quota over-estimate leads to higher quote charge than actual usage"],"whenToPreferThis":"Choose this endpoint when you need GPT-5 specifically (not GPT-4o or GPT-5-nano) and want to pay per call in USDC via the x402 protocol without a traditional OpenAI API key subscription. Ideal for agents operating in crypto-native or trustless environments, or when you want fine-grained control over cost vs. quality via service_tier (flex/standard/fast) and model level (minimal/low/medium/high). Prefer over the gpt-5-nano sibling when task complexity warrants the full GPT-5 capability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:53.742Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-chat-completions-x402-usdc-70ef2325"}