---
title: "GPT-5.6 Terra"
description: "A closed, large-context reasoning model from OpenAI, released July 2026, with strong math and reasoning scores but a high price."
canonical: https://pydantic.dev/models/list/gpt-5.6-terra/
---

# GPT-5.6 Terra

> A closed, large-context reasoning model from OpenAI, released July 2026, with strong math and reasoning scores but a high price.
>
> Markdown copy of https://pydantic.dev/models/list/gpt-5.6-terra/. Index for agents: https://pydantic.dev/models/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://pydantic.dev/models/select.md
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://pydantic.dev/models/mcp`. More: https://pydantic.dev/models/usage.md

Use it with Pydantic AI as `gateway/openai:gpt-5.6-terra`.

## Spec sheet

- **Family:** OpenAI
- **Released:** 9 Jul 2026
- **Weights:** closed
- **Context window:** 1,050,000 tokens
- **Largest response:** 128,000 tokens
- **Accepts:** text, image, file
- **Tool calling:** yes
- **Knowledge cutoff:** 2026-02
- **Intelligence index:** 66.3 (rank 24)
- **Scores updated:** 2026-11-29
- **Price:** $2 input, $12 output, $4.5 blended per 1M tokens
- **Index points per $:** 14.7 (rank 79)
- **Speed:** 69 tokens/sec (rank 89)
- **Popularity:** rank 59 of 194 by usage
- **Pydantic AI Gateway:** built in

## Benchmarks

### Pydantic AI benchmarks

Our own benchmarks, each about 10 tasks run once with tool calling and once in code mode (https://pydantic.dev/models/codemode.md). Not part of the intelligence index. Cost is the mean cost of one task. For the combined score, code mode is compared over the four benchmarks run in both modes.

| Benchmark                                                                                      | Tool calling | Code mode | Change | Cost per task | Cost per task, code mode | Rank     | Runs                                                                |
| ---------------------------------------------------------------------------------------------- | ------------ | --------- | ------ | ------------- | ------------------------ | -------- | ------------------------------------------------------------------- |
| [Pydantic AI Combined](https://pydantic.dev/models/benchmarks/pydantic_ai.md)                  | 57.2%        | 59.3%     | +15.9  | $0.11         | $0.14                    | 33 of 44 | https://pydantic.dev/models/list/gpt-5.6-terra/pydantic_ai.md       |
| [Pydantic AI - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 50%          | 80%       | +30    | $0.14         | $0.039                   | 36 of 44 | https://pydantic.dev/models/list/gpt-5.6-terra/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 50%          | 40%       | −10    | $0.028        | $0.036                   | 12 of 44 | https://pydantic.dev/models/list/gpt-5.6-terra/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 20%          | 60%       | +40    | $0.22         | $0.22                    | 30 of 44 | https://pydantic.dev/models/list/gpt-5.6-terra/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 53.3%        | 57%       | +3.7   | $0.22         | $0.26                    | 38 of 44 | https://pydantic.dev/models/list/gpt-5.6-terra/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 90%          | –         | –      | $0.054        | –                        | 15 of 44 | https://pydantic.dev/models/list/gpt-5.6-terra/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 80%          | –         | –      | $0.011        | –                        | 9 of 44  | https://pydantic.dev/models/list/gpt-5.6-terra/llm_judge.md         |

### Other benchmarks


| Benchmark                | Score  | Rank among models tested | What it measures                                                                                 | Source                                    |
| ------------------------ | ------ | ------------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| Intelligence index       | 66.3   | 24                       | Our composite of the benchmarks below, 0-100                                                     | Pydantic, from the sources credited below |
| GPQA Diamond             | 93.3%  | 22                       | Graduate-level science questions, multiple choice                                                | Epoch AI (CC BY 4.0)                      |
| OTIS Mock AIME           | 99.7%  | 17                       | Competition mathematics problems with exact answers                                              | Epoch AI (CC BY 4.0)                      |
| FrontierMath             | 86%    | 16                       | Original research-level mathematics problems, tiers 1 to 3                                       | Epoch AI (CC BY 4.0)                      |
| ARC-AGI-2                | 82.5%  | 22                       | Abstract visual puzzles that test learning a new rule from a few examples                        | ARC Prize, via Epoch AI (CC BY 4.0)       |
| SimpleQA Verified        | 43.2%  | 43                       | Short factual questions answered from memory, without search                                     | Epoch AI (CC BY 4.0)                      |
| SciCode                  | 55%    | 29                       | Scientific programming problems written by researchers                                           | SciCode, via Epoch AI (CC BY 4.0)         |
| APEX-Agents              | 58.2%  | 23                       | Long professional tasks (banking, consulting, law) passed on the first attempt                   | Mercor, via Epoch AI (CC BY 4.0)          |
| LMArena text             | 1448.9 | 43                       | Rating from blind human votes between pairs of chat responses                                    | LMArena (CC BY 4.0)                       |
| FrontierMath Tier 4      | 70.7%  | 19                       | Research-level mathematics problems, the hardest tier, with checkable answers                    | Epoch AI (CC BY 4.0)                      |
| Chess Puzzles            | 47%    | 28                       | Find the single best move in a chess position                                                    | Epoch AI (CC BY 4.0)                      |
| Mystery Game Puzzles     | 35%    | 25                       | Best-move puzzles in an undisclosed well-known game                                              | Epoch AI (CC BY 4.0)                      |
| Furniture Assembly       | 54.2%  | 17                       | Spot assembly mistakes in photos of flat-pack furniture builds                                   | Epoch AI (CC BY 4.0)                      |
| SimpleBench              | 48.9%  | 51                       | Six-option trick questions that test common sense                                                | SimpleBench, via Epoch AI (CC BY 4.0)     |
| ALE-Bench                | 1951.4 | 16                       | Hard optimisation contest problems, as a rating against human contestants                        | Sakana AI, via Epoch AI (CC BY 4.0)       |
| Epoch Capabilities Index | 160.7  | 21                       | Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index | Epoch AI (CC BY 4.0)                      |

## Providers and prices

US dollars per million tokens.

| Provider    | Gateway  | Pydantic AI string                            | Input | Cached input | Output |
| ----------- | -------- | --------------------------------------------- | ----- | ------------ | ------ |
| OpenAI      | built in | `gateway/openai:gpt-5.6-terra`                | $2    | $0.2         | $12    |
| AWS Bedrock | built in | `gateway/bedrock:global.openai.gpt-5.6-terra` | $2    | $0.2         | $12    |
| OpenRouter  | BYOK     | `openrouter:openai/gpt-5.6-terra`             | $2    | $0.2         | $12    |

## Use GPT-5.6 Terra with Pydantic AI

### hello.py

Ask GPT-5.6 Terra a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/openai:gpt-5.6-terra', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)
```

### structured_output.py

Get validated, typed output from GPT-5.6 Terra by giving the agent a Pydantic model. Run it with uv run structured_output.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic import BaseModel
from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'


class CityLocation(BaseModel):
    city: str
    country: str


agent = Agent('gateway/openai:gpt-5.6-terra', output_type=CityLocation)

result = agent.run_sync('Where were the olympics held in 2012?')
print(result.output)
#> city='London' country='United Kingdom'
```

### tools.py

Give GPT-5.6 Terra two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os
import random

from pydantic_ai import Agent, RunContext

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent(
    'gateway/openai:gpt-5.6-terra',
    deps_type=str,
    instructions="You're a dice game, roll the die and see if it matches the user's guess.",
)


@agent.tool_plain
def roll_dice() -> str:
    """Roll a six-sided die and return the result."""
    return str(random.randint(1, 6))


@agent.tool
def get_player_name(ctx: RunContext[str]) -> str:
    """Get the player's name."""
    return ctx.deps


result = agent.run_sync('My guess is 4', deps='Anne')
print(result.output)
```

### streaming.py

Stream GPT-5.6 Terra's reply to the terminal as it is generated. Run it with uv run streaming.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import asyncio
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/openai:gpt-5.6-terra')


async def main():
    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:
        async for text in response.stream_text(delta=True):
            print(text, end='', flush=True)


asyncio.run(main())
```

### pax.sh

Code with GPT-5.6 Terra in your terminal using Pax, the Pydantic AI coding agent. On macOS, open a new terminal after installing, so pax isn't the system's archiver.

```sh
# uv tool install pydantic-ai-pax
export PYDANTIC_AI_GATEWAY_API_KEY='...'

pax -m 'gateway/openai:gpt-5.6-terra'
```

### codex.sh

Run OpenAI's Codex CLI on GPT-5.6 Terra through Pydantic AI Gateway.

```sh
# npm install -g @openai/codex
export PYDANTIC_AI_GATEWAY_API_KEY='...'

codex --model 'gpt-5.6-terra' \
  -c model_provider='gateway' \
  -c model_providers.gateway.name='Pydantic AI Gateway' \
  -c model_providers.gateway.base_url='https://gateway.pydantic.dev/proxy/openai/v1' \
  -c model_providers.gateway.env_key='PYDANTIC_AI_GATEWAY_API_KEY'
```

### ai_sdk.ts

Call GPT-5.6 Terra from TypeScript with the Vercel AI SDK, through Pydantic AI Gateway.

```ts
// npm install ai @ai-sdk/openai
import { createOpenAI } from '@ai-sdk/openai'
import { generateText } from 'ai'

process.env.PYDANTIC_AI_GATEWAY_API_KEY = '...'

const openai = createOpenAI({
  baseURL: 'https://gateway.pydantic.dev/proxy/openai',
  apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY,
})

const { text } = await generateText({
  model: openai('gpt-5.6-terra'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About GPT-5.6 Terra

GPT-5.6 Terra costs $2 per million input tokens and $12 per million output tokens, has a 1.1M token context window and scores 66.3 on our intelligence index, #24 of 101.

GPT-5.6 Terra is a closed-weight model from OpenAI, released July 2026. It has a 1M token context window, up to 128k tokens of output, and accepts text, image and file input. It supports tool calling, reasoning mode and structured output, and is served through OpenAI, AWS Bedrock and OpenRouter.

Its strongest results are in hard reasoning and mathematics: 86% on FrontierMath ranks 16th of 80, and 83.9% on ARC-AGI-2 ranks 18th of 68. Its intelligence index of 69 ranks 24th of 114. Factual recall is weaker, with SimpleQA Verified at 43.2% ranking 44th of 76 and below the median.

The main drawback is cost. At $2 per million input tokens and $12 per million output tokens, its blended price of $4.50 is far above the registry median and ranks 156th of 194 on price. It suits work where answer quality matters more than cost.

**Strengths**

- 86% on FrontierMath, 16th of 80 models tested
- 83.9% on ARC-AGI-2, 18th of 68 models tested
- Intelligence index of 69, 24th of 114, above the 59.5 median
- 1M token context window and 128k maximum response length

**Weaknesses**

- Blended price $4.50 per million tokens, 156th of 194 on price
- 43.2% on SimpleQA Verified, 44th of 76, below the median
- LMArena text rating 1448.9, 43rd of 114, barely above median

**Best for:** Hard math, science and reasoning tasks where accuracy matters more than per-token cost.

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
Across five benchmarks the model scored 90% on Structured output and 80% on LLM Judge (tool calling only), and lower on multi-step tasks: Billing ops 50% tools / 80% code mode, Research & deck 53% / 57%, SQL data analysis 20% / 60%. It follows explicit formatting and data rules reliably. Most of its failures come from incomplete searches or cross-checks, hand arithmetic, or skipped sources. Code mode improved results wherever scale or computation was the bottleneck.

#### Strengths
- On Structured output it scaled every £000 filing correctly, kept group and parent figures separate in all four relevant cases, and used 0 versus null as the accounts showed, at one request per case.
- On Billing ops both modes passed every small lookup and both write tasks, matching every expected row in the void, re-invoice and payment-allocation chains.
- On LLM Judge it matched the reference majority on every kp1–kp4 key-point check and applied structural criteria such as slide placement strictly, at about $0.01 per case.
- On Research & deck both runs avoided every data trap, including the restated revenue and the churned customer, and produced 8-slide decks that passed `check_deck`.
- On SQL data analysis it read DATA.md correctly for service-day filters, `+k` repeats, the walk radius and the SVG coordinates.

#### Weaknesses
- On Billing ops in tool mode it returned empty answers on three large audit cases, calling the job of fetching about 384 invoices 'impractical', and two of these were its most expensive runs.
- On SQL data analysis it often stopped the search early or dropped untimed calls, returning valid-looking journeys that were not the best one.
- On Research & deck neither run called `view_pdf` on a PDF with no text layer, and both decks used screenshot-only figures without asking the founder whether they could be used.
- On Structured output its one failure came from splitting director loans out of the printed Other creditors figure, computing a value the accounts do not show.
- On LLM Judge it was inconsistent on judgement criteria: lenient on a contradiction it had noticed and harsh on a promise the reply explicitly hedged.

#### Tool calling compared with code mode
- On Billing ops code mode fixed every failure caused by scale or arithmetic, rising from 50% to 80% and costing $0.05–0.07 against $0.12–0.42 on large cases.
- On SQL data analysis code mode passed 6 cases against 2 for tool calling at nearly the same total cost, because Python let it build a full Dijkstra search instead of fixed-depth SQL joins.
- On Research & deck the two modes produced nearly identical decks with the same sourcing gaps, and code mode lost two calls to sandbox limits.
- Code mode's remaining failures came from logic bugs, such as wrong-direction dominance filtering on SQL data analysis and self-comparing duplicate checks on Billing ops, rather than from missing data.

Prices come from [genai-prices](https://github.com/pydantic/genai-prices), in US dollars per million tokens. Benchmark scores come from Epoch AI and LMArena (CC BY 4.0), Browser Use, and our own Pydantic AI benchmarks (CC BY 4.0); the index and its sources are described at https://pydantic.dev/models/methodology.md. Data built 2026-11-30. This model from the API: `https://pydantic.dev/models/api/models/gpt-5.6-terra`. Compare it with others: `https://pydantic.dev/models/api/models?slug=gpt-5.6-terra,<other slug>`
