{"uid":"cap_f61Xyw1BtqRAgmxULrY_A","slug":"openai-gpt-5-4-mini-chat-completions-x402-efead12c","name":"OpenAI GPT-5.4-Mini Chat Completions (x402)","description":"gpt-5.4-mini: OpenAI GPT 5.4 Mini chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 0.375/2.25, Standard 0.75/4.5, Fast 1.5/9.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.4-mini:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5.4-mini/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5.4-mini","gpt-5.4-mini:none","gpt-5.4-mini:low","gpt-5.4-mini:medium","gpt-5.4-mini:high","gpt-5.4-mini: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-mini","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_deggQ4VUIPAaM3ivojWhU","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 GPT-5.4-Mini chat completions via a pay-per-call x402 API with tiered pricing (Flex/Standard/Fast) and optional reasoning effort levels","exampleAgentPrompt":"Using GPT-5.4-mini on the flex tier with up to 500 output tokens, answer the following: 'What are the top three benefits of using a microservices architecture over a monolith?' Keep the answer concise and structured.","exampleUseCases":[{"title":"Lightweight Q&A for AI chatbot","prompt":"I need you to use GPT-5.4-mini on the flex tier to answer a user question — keep it under 300 tokens: 'How does compound interest work and why does it matter for long-term savings?'"},{"title":"Structured JSON output generation","prompt":"Use GPT-5.4-mini with a JSON response format to extract the key entities from this sentence and return them as structured data: 'Elon Musk announced a new SpaceX launch from Cape Canaveral scheduled for March 2025.' Limit output to 200 tokens on the standard tier."},{"title":"Reasoning task with higher effort","prompt":"I want to run a multi-step reasoning problem through GPT-5.4-mini at the xhigh reasoning level using the fast service tier — here's the problem: 'A train leaves Chicago at 60mph, another leaves New York at 80mph, they are 790 miles apart — when do they meet?'"}],"resultDescription":"Returns a JSON chat completion object with the assistant's message text, token usage breakdown (prompt, completion, total), finish reason (e.g. 'stop'), model identifier, service tier used, and a unique completion ID. Empty responses (zero-length answers) are billed at no cost.","failureModes":["Payment failure or insufficient USDC balance returns a 402 Payment Required error","Invalid model variant name returns a 400 Bad Request","Exceeding context window for the mini model causes a context length error","max_tokens set too low may result in truncated or empty responses","Unsupported service_tier value returns a validation error","Network timeout on slow inference under the fast tier if load is high"],"whenToPreferThis":"Choose this endpoint when you need cost-effective GPT-class text generation with pay-per-call x402 micropayment billing (no subscription), want to select service tiers (Flex, Standard, Fast) to balance cost and latency, or need adjustable reasoning effort levels (none through xhigh). It is ideal for AI agents that need to call OpenAI-compatible chat APIs programmatically without managing API keys or monthly plans, and suits lightweight to medium-complexity tasks where GPT-5.4-mini's capabilities suffice.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:16.991Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-4-mini-chat-completions-x402-efead12c"}