{"uid":"cap_5hRf6AFoc5Kx4FG7rDVDO","slug":"openai-gpt-4o-mini-chat-completions-x402-usdc-c286d6da","name":"OpenAI GPT-4o Mini Chat Completions (x402/USDC)","description":"gpt-4o-mini: OpenAI GPT 4o Mini chat completions, paid per call in USDC. Per 1M tokens in/out: Standard (default) 0.15/0.6, Fast 0.25/1.0; pick with service_tier. Plus $0.0005 (Base) or $0.0005 (Solana) per call; the quote charges input plus 10% of max_tokens. Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-4o-mini/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-4o-mini"],"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-4o-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":"default"}},"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_FmuQWsYS6F1esd6vL6DGh","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":"Send a chat conversation to GPT-4o-mini and receive an AI-generated text response, billed per call in USDC via x402 micropayments.","exampleAgentPrompt":"Ask GPT-4o-mini to summarize the following article in 3 bullet points using the standard service tier, with a max of 200 output tokens: 'Researchers have discovered a new species of deep-sea fish that can generate its own light using a novel biochemical process...'","exampleUseCases":[{"title":"Automated customer support drafting","prompt":"Use GPT-4o-mini to draft a polite reply to this customer complaint: 'My order arrived damaged and the packaging was torn.' Keep it under 100 words and use the standard service tier."},{"title":"Rapid content classification pipeline","prompt":"I need GPT-4o-mini to classify the following product review as positive, negative, or neutral — here's the text: 'Battery life is excellent but the screen is too dim.' Use the fast service tier and limit the response to 50 tokens."},{"title":"Code explanation for developer tool","prompt":"Send this Python snippet to GPT-4o-mini and ask it to explain what it does in plain English, max 150 tokens, standard tier: 'def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)'"}],"resultDescription":"Returns a JSON object containing the assistant's reply message, the finish reason (e.g. 'stop'), prompt and completion token counts, the model name ('gpt-4o-mini'), and the service_tier used. The choices array holds the generated text under choices[0].message.content.","failureModes":["Insufficient USDC balance or x402 payment failure — call returns 402 Payment Required","max_tokens set too low causing truncated or empty response (empty answers are free)","Invalid message format (missing role or content fields) — returns 400 Bad Request","Model overload on fast/priority tier — may return 429 or degrade to slower tier","Malformed response_format object causing 400 error","Streaming not supported in all client configurations — stream:true may cause parse errors"],"whenToPreferThis":"Choose GPT-4o-mini over GPT-4o when you need low-cost, high-throughput text generation and the task doesn't require advanced reasoning or long context. It is the best fit for classification, summarization, drafting, and extraction tasks where cost per call matters. Prefer this over the standard OpenAI API when you want to pay per call in USDC via x402 without a monthly subscription, or when building agentic pipelines that need autonomous micropayment-based LLM access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:02.885Z","isFirstParty":false,"canonicalSlug":"openai-gpt-4o-mini-chat-completions-x402-usdc-c286d6da"}