{"uid":"cap_vVfwrzirFchIIgoa8QIzu","slug":"openai-gpt-4o-chat-completions-x402-usdc-5d604be1","name":"OpenAI GPT-4o Chat Completions (x402/USDC)","description":"gpt-4o: OpenAI GPT 4o chat completions, paid per call in USDC. Per 1M tokens in/out: Standard (default) 2.5/10.0, Fast 4.25/17.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/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-4o"],"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","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.001027","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.001027/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001027","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001027","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M8S2jnVh2up_N_whziwax","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001027","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs GPT-4o chat completions via a pay-per-call USDC micropayment gateway, billed on token usage with Standard or Fast service tiers.","exampleAgentPrompt":"Using GPT-4o with the Standard service tier, answer this question with a maximum of 500 tokens: 'What are the key differences between supervised and unsupervised machine learning?'","exampleUseCases":[{"title":"On-demand GPT-4o Q&A agent","prompt":"Ask GPT-4o: 'Explain the pros and cons of microservices architecture versus monoliths for a startup' — use the Standard tier and cap the response at 800 tokens."},{"title":"Structured data extraction from text","prompt":"Send this customer feedback to GPT-4o and ask it to return a JSON object with sentiment, topics, and urgency score: 'The checkout process was confusing and took forever, but the product itself is amazing.'"},{"title":"Agentic tool-calling workflow","prompt":"Use GPT-4o with tool calling enabled to help me plan a 3-day travel itinerary for Tokyo — set max_tokens to 1200 and use the Fast service tier so I get the answer quickly."}],"resultDescription":"Returns a standard OpenAI chat completion JSON object containing the assistant's reply message, role, finish_reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), the model name, and the service_tier used. Choices array contains one or more candidate responses.","failureModes":["Insufficient USDC balance or failed x402 payment — request rejected before processing","max_tokens set too low — response truncated with finish_reason 'length'","Invalid or missing messages array — 400 Bad Request","Rate limits or quota exceeded on the upstream OpenAI API — 429 or 503","Streaming not supported in all client configurations — may require specific handling","Empty or trivial prompts return empty answers at no charge but yield no useful content"],"whenToPreferThis":"Choose this endpoint when you need GPT-4o quality chat completions without an OpenAI subscription, want to pay per call in USDC via the x402 protocol, or are building a crypto-native or agentic workflow that requires pay-as-you-go LLM access. Prefer the Standard tier for cost efficiency and Fast tier when latency is critical. Use this over raw OpenAI API when you lack API keys or want programmatic USDC billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:36:11.261Z","isFirstParty":false,"canonicalSlug":"openai-gpt-4o-chat-completions-x402-usdc-5d604be1"}