{"uid":"cap_PIb55GN2P1KVG0Ooy8fbF","slug":"openai-gpt-5-2-chat-completions-x402-b6c7bc0a","name":"OpenAI GPT-5.2 Chat Completions (x402)","description":"gpt-5.2: OpenAI GPT 5.2 chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 0.875/7.0, Standard 1.75/14.0, Fast 3.5/28.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: none, low, medium, high, xhigh (model gpt-5.2:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5.2/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5.2","gpt-5.2:none","gpt-5.2:low","gpt-5.2:medium","gpt-5.2:high","gpt-5.2:xhigh"],"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.2","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_gve16skHoCYWtBxs7h_IG","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":"Provides OpenAI GPT-5.2 chat completions via pay-per-call USDC billing with configurable service tiers (Flex, Standard, Fast) and reasoning levels.","exampleAgentPrompt":"Using GPT-5.2 on the fast service tier, answer the following question with up to 500 tokens: 'What are the key differences between transformer and diffusion architectures in AI?'","exampleUseCases":[{"title":"Reasoned technical Q&A with GPT-5.2","prompt":"Ask GPT-5.2 using the standard tier and high reasoning level to explain the trade-offs between microservices and monolithic architectures, and limit the response to 800 tokens."},{"title":"Cost-optimized batch summarization","prompt":"Use GPT-5.2 on the flex tier to summarize this article in 3 bullet points, keeping it under 200 tokens to minimize cost: 'The Federal Reserve announced a 0.25% rate cut today...'"},{"title":"Agentic tool-calling workflow","prompt":"Have GPT-5.2 on the fast tier process this conversation and call the appropriate tool when the user asks about current weather — here's the messages array and tool definitions I need you to pass through."}],"resultDescription":"Returns a JSON chat completion object with an assistant message, finish reason, token usage breakdown (prompt, completion, total), model name, and service tier used. Empty responses are free of charge. The response mirrors the OpenAI chat completions response format.","failureModes":["Insufficient USDC balance — payment fails and request is rejected","max_tokens quota exceeded or invalid — 400 error","Invalid model variant specified — 400 validation error","Service tier unavailable or invalid enum value — 400 error","Rate limiting at the gateway level — 429 response","Network timeout on fast/standard tier — timeout error","Streaming not supported in all client configurations"],"whenToPreferThis":"Choose this endpoint when you need GPT-5.2 specifically (as opposed to GPT-4.1 or o3) and want per-call USDC micropayment billing without a subscription. Particularly useful for agents that pay only when invoked, need flexible tier selection (flex for cost, fast for latency), or operate on crypto-native payment rails via x402. Prefer over competitors when you want the latest OpenAI model with transparent per-token pricing and no monthly commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:29.284Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-2-chat-completions-x402-b6c7bc0a"}