{"slug":"gpt-5.6-terra-pro","name":"GPT-5.6 Terra Pro","family":"openai","family_name":"OpenAI","developer":"OpenAI","color":"#10a37f","status":"active","released":"2026-07-09","snapshot_of":null,"open":false,"context":1050000,"max_output":128000,"knowledge_cutoff":"2026-02","modalities":["text","image","file"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":86,"latency":8.09,"short":"A closed-weights model from OpenAI with a 1M-token context window and tool calling, priced well above the registry median. No benchmark results are listed for it.","strengths":["1M-token context window, larger than most models in the registry","Accepts text, image and file inputs","Supports tool calling, reasoning mode and structured output","Knowledge cutoff of February 2026, before its July 2026 release"],"weaknesses":["Blended price of $4.50 per million tokens, well above the $1.01 median","No benchmark results, so capability cannot be compared with other models","Served only through OpenRouter among the listed providers"],"best_for":"Long-context agent work that needs tool calling and structured output, where the higher price is acceptable.","long":"GPT-5.6 Terra Pro is a closed-weights model from OpenAI, released in July 2026. It offers a 1M-token context window and a response limit of 128k tokens, and it accepts text, image and file inputs. Tool calling, reasoning mode and structured output are all supported, which covers the usual needs of an agent that reads large documents or code and returns structured results.\n\nThe price is the main consideration. Input costs $2 per million tokens and output $12, giving a blended rate of $4.50 per million tokens. That is well above the registry median of about $1.01 and places the model 156th of 194 on price, where a higher rank is cheaper. Its popularity rank is 163 of 194. The model is available only through OpenRouter among the listed providers.\n\nNo benchmark results are recorded for this model, so its quality cannot be compared with other models in the registry from the data given. Its specifications and price are the only basis for judging it here.","described":true,"gateway":false,"byok":true,"string":"openrouter:openai/gpt-5.6-terra-pro","input":2,"output":12,"cache_read":0.2,"blended":4.5,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"openai/gpt-5.6-terra-pro","api":["openai"],"input":2,"output":12,"cache_read":0.2,"cache_write":2.5,"input_tiers":[{"start":272000,"price":4}],"output_tiers":[{"start":272000,"price":18}],"context":1050000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:openai/gpt-5.6-terra-pro","gateway_string":null}],"ranks":{"intelligence":null,"popularity":163,"efficiency":null,"speed":58,"price":156},"top_score":0.0643,"about":["A closed-weights model from OpenAI with a 1M-token context window and tool calling, priced well above the registry median. No benchmark results are listed for it.","GPT-5.6 Terra Pro is a closed-weights model from OpenAI, released in July 2026. It offers a 1M-token context window and a response limit of 128k tokens, and it accepts text, image and file inputs. Tool calling, reasoning mode and structured output are all supported, which covers the usual needs of an agent that reads large documents or code and returns structured results.","The price is the main consideration. Input costs $2 per million tokens and output $12, giving a blended rate of $4.50 per million tokens. That is well above the registry median of about $1.01 and places the model 156th of 194 on price, where a higher rank is cheaper. Its popularity rank is 163 of 194. The model is available only through OpenRouter among the listed providers.","No benchmark results are recorded for this model, so its quality cannot be compared with other models in the registry from the data given. Its specifications and price are the only basis for judging it here."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:openai/gpt-5.6-terra-pro', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:openai/gpt-5.6-terra-pro', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:openai/gpt-5.6-terra-pro',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:openai/gpt-5.6-terra-pro')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:openai/gpt-5.6-terra-pro'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/openai/gpt-5.6-terra-pro'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'openai/gpt-5.6-terra-pro' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='OpenRouter' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('openai/gpt-5.6-terra-pro'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}