{"uid":"cap_ibSTEszZEbiKMnRJ8t4vL","slug":"openai-gpt-5-4-long-chat-completions-via-mm-family-x402-a4da5ee3","name":"OpenAI gpt-5.4-long Chat Completions (via mm.family x402)","description":"gpt-5.4-long: OpenAI GPT 5.4 (>272K input tokens) chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 2.5/11.25, Standard 5.0/22.5; 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-long:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5.4-long/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5.4-long","gpt-5.4-long:none","gpt-5.4-long:low","gpt-5.4-long:medium","gpt-5.4-long:high","gpt-5.4-long: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-long","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.001091","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.001091/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001091","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001091","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1jXKkCHyEnKfWfxZVSFmN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001091","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 chat completions for long-context inputs (>272K tokens), billed per call in USDC via x402 micropayment protocol","exampleAgentPrompt":"Using GPT-5.4-long with standard service tier and a max of 2000 output tokens, send this entire codebase as context and ask it to find all security vulnerabilities and explain how to fix each one.","exampleUseCases":[{"title":"Long document legal analysis","prompt":"I have a 300,000-token legal contract — run it through GPT-5.4-long on standard tier with up to 4000 output tokens and summarize every clause that creates financial liability for my company."},{"title":"Large codebase refactoring advice","prompt":"Feed this entire repository into GPT-5.4-long using flex tier and ask it to suggest a refactoring plan to improve modularity, with max 3000 tokens in the response."},{"title":"Extended research paper synthesis","prompt":"I have 50 academic papers concatenated together — use GPT-5.4-long at high reasoning level with standard service tier and max 5000 tokens to write a literature review synthesizing the key findings."}],"resultDescription":"Returns a JSON chat completion object containing the assistant's reply message, finish reason (e.g. 'stop'), input/output token counts, the model variant used, and the service tier that handled the request (flex or standard).","failureModes":["Insufficient USDC balance causes payment failure and request rejection","Exceeding the model's absolute context window returns a context length error","Invalid service_tier enum value returns a 400 validation error","Empty or malformed messages array causes a 422 unprocessable entity error","Requesting a model variant not in the enum (e.g. gpt-5.4-long:ultrahigh) returns a 400 error","Network timeout on very large payloads if the request body is too large"],"whenToPreferThis":"Choose this endpoint when you need to process inputs exceeding 272K tokens with GPT-5.4 quality, and you want to pay per-call in USDC without a traditional OpenAI subscription. Prefer the flex tier for cost-sensitive batch tasks and standard tier for latency-sensitive or priority workloads. If your context fits under 272K tokens, prefer the non-long gpt-5.4 variant to save on per-call costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:57.563Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-4-long-chat-completions-via-mm-family-x402-a4da5ee3"}