{"uid":"cap_cvn3LSY8HeuSNImYbTL3L","slug":"openai-gpt-5-4-nano-chat-completions-x402-usdc-7f4bb1f7","name":"OpenAI GPT-5.4-Nano Chat Completions (x402/USDC)","description":"gpt-5.4-nano: OpenAI GPT 5.4 Nano chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 0.1/0.625, Standard 0.2/1.25; 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.4-nano:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5.4-nano/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5.4-nano","gpt-5.4-nano:none","gpt-5.4-nano:low","gpt-5.4-nano:medium","gpt-5.4-nano:high","gpt-5.4-nano: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.4-nano","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_FjpUjsALjhGhIKaCopt_u","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.4-Nano chat completions via a pay-per-call x402 endpoint billed in USDC, with Flex and Standard pricing tiers and optional reasoning levels.","exampleAgentPrompt":"Use the gpt-5.4-nano model at medium reasoning level with flex pricing to answer this question: what are the three main causes of the French Revolution? Limit the response to 300 tokens.","exampleUseCases":[{"title":"Crypto-native AI Q&A pipeline","prompt":"Send this user question to gpt-5.4-nano — 'Explain quantum entanglement in simple terms' — using flex tier and cap the response at 500 tokens, paying per call in USDC."},{"title":"Cost-optimized reasoning agent","prompt":"I need to run a batch of reasoning tasks through gpt-5.4-nano at high reasoning level using standard tier pricing — start with this one: 'Evaluate the pros and cons of remote work for software teams' and keep it under 400 tokens."},{"title":"Structured output extraction","prompt":"Call gpt-5.4-nano with a JSON response format to extract the name, date, and location from this event description: 'Join us for the annual DevConf summit on March 15th in Austin, TX.' Use xhigh reasoning and flex service tier."}],"resultDescription":"Returns a JSON chat completion object containing the assistant's reply text, token usage breakdown (prompt, completion, total), finish reason, model name, and the service tier that was used (flex or standard).","failureModes":["Insufficient USDC balance causes payment failure and no completion returned","max_tokens set too low results in truncated or empty responses (empty answers billed as free)","Invalid model variant string causes 400 error","messages array missing required role or content fields causes validation error","Unsupported service_tier value causes rejection","Network latency or provider outage returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost GPT-model chat completion and want to pay per call in USDC without an OpenAI subscription — especially useful for AI agents operating in crypto-native or x402-enabled payment environments. Prefer over gpt-4o or gpt-5.4 siblings when minimizing cost per call is the priority, and over gpt-5-nano when you specifically need the 5.4 generation. The reasoning level suffixes (none through xhigh) make this ideal when you want fine-grained control over chain-of-thought depth on a nano-scale model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:55.632Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-4-nano-chat-completions-x402-usdc-7f4bb1f7"}