{"uid":"cap_jnilbqRe-H-B-AzLMlCpT","slug":"openai-gpt-5-6-terra-long-context-chat-completions-via-mm-family-a698cf38","name":"OpenAI GPT-5.6-Terra Long Context Chat Completions (via mm.family)","description":"gpt-5.6-terra-long: OpenAI GPT 5.6 Terra (>272K input tokens) chat completions, paid per call in USDC. Per 1M tokens in/out: Flex (default) 2.0/9.0, Standard 4.0/18.0, Fast 8.0/36.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-terra-long:<level>). Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-5.6-terra-long/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-5.6-terra-long","gpt-5.6-terra-long:none","gpt-5.6-terra-long:low","gpt-5.6-terra-long:medium","gpt-5.6-terra-long:high","gpt-5.6-terra-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-terra-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.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_M4bFYO0pnT4CYIkja2YVq","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 OpenAI GPT-5.6-Terra chat completions for prompts exceeding 272K input tokens, billed per call in USDC via x402 micropayment protocol","exampleAgentPrompt":"Using the GPT-5.6-Terra long-context model with standard tier and up to 4000 output tokens, analyze this 300,000-token legal contract I'm pasting below and summarize the key obligations, risks, and termination clauses for me.","exampleUseCases":[{"title":"Large codebase analysis and refactoring advice","prompt":"I have a huge monorepo — probably 400K tokens worth of code — can you use the GPT-5.6-Terra long-context model on flex tier with up to 2000 output tokens to review it and suggest architectural improvements?"},{"title":"Book-length document summarization","prompt":"Please summarize this 300,000-word manuscript using GPT-5.6-Terra-long on standard tier, with up to 3000 tokens in the response, and pull out the main themes, character arcs, and any plot inconsistencies."},{"title":"Long multi-turn research assistant conversation","prompt":"I want to have an in-depth research Q&A session about a massive academic corpus — use gpt-5.6-terra-long with high reasoning effort and fast service tier, max 2000 output tokens, and answer my questions about the attached literature."}],"resultDescription":"Returns a standard OpenAI-format chat completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), model name, and the service tier used. Empty answers incur no charge.","failureModes":["Insufficient USDC balance for the x402 micropayment results in a 402 Payment Required error","Input context exceeding model's maximum window returns a context length error","Invalid model level suffix (not one of none/low/medium/high/xhigh) returns a 400 bad request","Unsupported service_tier value results in a validation error","High load on fast/standard tier may cause timeouts for extremely large prompts"],"whenToPreferThis":"Choose this endpoint when your input context exceeds 272K tokens and you need OpenAI's GPT-5.6-Terra model specifically, especially when paying via USDC x402 micropayment and needing flexible service tier options (flex, standard, fast) with configurable reasoning effort. Prefer over shorter-context siblings when processing book-length documents, large codebases, or extended conversation histories.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:39.945Z","isFirstParty":false,"canonicalSlug":"openai-gpt-5-6-terra-long-context-chat-completions-via-mm-family-a698cf38"}