{"uid":"cap_uemDDtBtvYFC1gk38vhVN","slug":"openai-gpt-5-6-sol-long-chat-completions-long-context-c7c886b1","name":"OpenAI gpt-5.6-sol-long Chat Completions (Long Context)","description":"gpt-5.6-sol-long: OpenAI GPT 5.6 Sol (>272K input tokens) chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 4.0/15.0, Standard 8.0/30.0, Fast 16.0/60.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.6-sol-long:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5.6-sol-long/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5.6-sol-long","gpt-5.6-sol-long:none","gpt-5.6-sol-long:low","gpt-5.6-sol-long:medium","gpt-5.6-sol-long:high","gpt-5.6-sol-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.6-sol-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.001291","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.001291/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001291","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001291","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SLxEPfqlRqCy5Gozv1H-H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001291","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Serves GPT-5.6 Sol chat completions for prompts exceeding 272K input tokens, billed per call in USDC via x402","exampleAgentPrompt":"I need to process a very long document — probably over 300K tokens — using GPT-5.6 Sol. Please send it through the long-context completions endpoint with the standard service tier and a max of 4096 output tokens, and bill the cost in USDC.","exampleUseCases":[{"title":"Long legal document summarization","prompt":"I have a massive legal contract that's about 350K tokens long. Can you summarize the key obligations and risk clauses using GPT-5.6 Sol with the flex service tier and a max of 2048 output tokens? Charge in USDC."},{"title":"Large codebase refactoring assistance","prompt":"I need to feed our entire monorepo — around 400K tokens of code — into GPT-5.6 Sol and ask it to identify architectural anti-patterns and suggest refactors. Use the fast tier and allow up to 8192 output tokens."},{"title":"Multi-document research synthesis","prompt":"Can you load all 30 research papers I've compiled — they total about 500K tokens — into GPT-5.6 Sol and ask it to synthesize the key findings into a coherent narrative? Use the standard service tier with 4096 max output tokens, paid in USDC."}],"resultDescription":"Returns a JSON chat completion object with an assistant message, finish reason, token usage breakdown (prompt, completion, total), model name, service tier used, and a unique completion ID — identical in structure to the OpenAI Chat Completions API response.","failureModes":["Insufficient USDC balance causes payment failure before completion","Prompt exceeds the model's maximum supported context window","max_tokens set too low causing truncated responses","Invalid model variant string returns 400 error","Service tier unavailable at request time returns 503","Empty or malformed messages array returns validation error","Rate limiting under high load on selected service tier"],"whenToPreferThis":"Choose this endpoint when your input context exceeds 272K tokens and you need GPT-5.6 Sol capabilities specifically, want pay-per-call USDC billing without an OpenAI subscription, or require x402-compatible micropayment integration. Prefer it over standard GPT-5.6 variants when context length is the primary constraint, and over subscription-based OpenAI access when per-call crypto billing is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:06.089Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-6-sol-long-chat-completions-long-context-c7c886b1"}