---
title: "GPT-6.1 Terra"
description: "A closed, large-context OpenAI model priced at $1 input and $5 output per million tokens. It stands out on math and agentic professional tasks, and is weaker on chat preference ratings."
canonical: https://pydantic.dev/models/list/gpt-6.1-terra/
---

# GPT-6.1 Terra

> A closed, large-context OpenAI model priced at $1 input and $5 output per million tokens. It stands out on math and agentic professional tasks, and is weaker on chat preference ratings.
>
> Markdown copy of https://pydantic.dev/models/list/gpt-6.1-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-6.1-terra`.

## Spec sheet

- **Family:** OpenAI
- **Released:** 26 Oct 2026
- **Weights:** closed
- **Context window:** 1,050,000 tokens
- **Largest response:** 128,000 tokens
- **Accepts:** text, image, file
- **Tool calling:** yes
- **Knowledge cutoff:** 2026-06
- **Intelligence index:** 67.5 (rank 20)
- **Scores updated:** 2026-11-30
- **Price:** $1 input, $5 output, $2 blended per 1M tokens
- **Index points per $:** 33.8 (rank 49)
- **Speed:** 47 tokens/sec (rank 128)
- **Popularity:** rank 21 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)                  | 74.5%        | 70.9%     | +1.7   | $0.040        | $0.044                   | 14 of 44 | https://pydantic.dev/models/list/gpt-6.1-terra/pydantic_ai.md       |
| [Pydantic AI - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 70%          | 80%       | +10    | $0.032        | $0.015                   | 21 of 44 | https://pydantic.dev/models/list/gpt-6.1-terra/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 50%          | 50%       | ±0     | $0.021        | $0.019                   | 12 of 44 | https://pydantic.dev/models/list/gpt-6.1-terra/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 80%          | 90%       | +10    | $0.058        | $0.052                   | 16 of 44 | https://pydantic.dev/models/list/gpt-6.1-terra/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 77%          | 63.7%     | −13.3  | $0.10         | $0.088                   | 24 of 44 | https://pydantic.dev/models/list/gpt-6.1-terra/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 100%         | –         | –      | $0.026        | –                        | 1 of 44  | https://pydantic.dev/models/list/gpt-6.1-terra/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 70%          | –         | –      | $0.0044       | –                        | 18 of 44 | https://pydantic.dev/models/list/gpt-6.1-terra/llm_judge.md         |
| [Pydantic AI - Cyber Willing](https://pydantic.dev/models/benchmarks/cyber_willing.md)         | 91.7%        | –         | –      | $0.0075       | –                        | 11 of 32 | https://pydantic.dev/models/list/gpt-6.1-terra/cyber_willing.md     |

### Other benchmarks


| Benchmark                | Score  | Rank among models tested | What it measures                                                                                 | Source                                    |
| ------------------------ | ------ | ------------------------ | ------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| Intelligence index       | 67.5   | 20                       | Our composite of the benchmarks below, 0-100                                                     | Pydantic, from the sources credited below |
| GPQA Diamond             | 94.3%  | 13                       | Graduate-level science questions, multiple choice                                                | Epoch AI (CC BY 4.0)                      |
| OTIS Mock AIME           | 100%   | 1                        | Competition mathematics problems with exact answers                                              | Epoch AI (CC BY 4.0)                      |
| FrontierMath             | 90.9%  | 7                        | Original research-level mathematics problems, tiers 1 to 3                                       | Epoch AI (CC BY 4.0)                      |
| SimpleQA Verified        | 57.3%  | 25                       | Short factual questions answered from memory, without search                                     | Epoch AI (CC BY 4.0)                      |
| SciCode                  | 55.1%  | 28                       | Scientific programming problems written by researchers                                           | SciCode, via Epoch AI (CC BY 4.0)         |
| APEX-Agents              | 68.3%  | 11                       | Long professional tasks (banking, consulting, law) passed on the first attempt                   | Mercor, via Epoch AI (CC BY 4.0)          |
| LMArena text             | 1426   | 70                       | Rating from blind human votes between pairs of chat responses                                    | LMArena (CC BY 4.0)                       |
| FrontierMath Tier 4      | 92.7%  | 8                        | Research-level mathematics problems, the hardest tier, with checkable answers                    | Epoch AI (CC BY 4.0)                      |
| Chess Puzzles            | 66%    | 8                        | Find the single best move in a chess position                                                    | Epoch AI (CC BY 4.0)                      |
| Mystery Game Puzzles     | 74%    | 6                        | Best-move puzzles in an undisclosed well-known game                                              | Epoch AI (CC BY 4.0)                      |
| Furniture Assembly       | 79.2%  | 7                        | Spot assembly mistakes in photos of flat-pack furniture builds                                   | Epoch AI (CC BY 4.0)                      |
| SimpleBench              | 72.2%  | 23                       | Six-option trick questions that test common sense                                                | SimpleBench, via Epoch AI (CC BY 4.0)     |
| ALE-Bench                | 2608.8 | 5                        | Hard optimisation contest problems, as a rating against human contestants                        | Sakana AI, via Epoch AI (CC BY 4.0)       |
| Browser Use Bench        | 79     | 3                        | Tasks on live websites, scored 0-100 against a weighted rubric by an LLM judge                   | Browser Use, with permission              |
| Epoch Capabilities Index | 167.3  | 8                        | 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-6.1-terra`                | $1    | $0.05        | $5     |
| AWS Bedrock | built in | `gateway/bedrock:global.openai.gpt-6.1-terra` | $1    | $0.05        | $5     |
| OpenRouter  | BYOK     | `openrouter:openai/gpt-6.1-terra`             | $1    | $0.05        | $5     |

## Use GPT-6.1 Terra with Pydantic AI

### hello.py

Ask GPT-6.1 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-6.1-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-6.1 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-6.1-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-6.1 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-6.1-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-6.1 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-6.1-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-6.1 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-6.1-terra'
```

### codex.sh

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

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

codex --model 'gpt-6.1-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-6.1 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-6.1-terra'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About GPT-6.1 Terra

GPT-6.1 Terra costs $1 per million input tokens and $5 per million output tokens, has a 1.1M token context window and scores 67.5 on our intelligence index, #20 of 101.

GPT-6.1 Terra is a closed model from OpenAI, released in October 2026, with a 1M token context window, 128k maximum response length, and support for text, image and file input. It offers tool calling, reasoning mode and structured output, and is available through OpenAI, AWS Bedrock and OpenRouter, as well as the Pydantic AI Gateway. Its knowledge cutoff is June 2026.

On the benchmarks, its strongest results are in mathematics: it scored 100% on OTIS Mock AIME, first of 95 models, and 90.9% on FrontierMath, seventh of 80. It also ranks well on GPQA Diamond at 94.3%, thirteenth of 94, and on APEX-Agents, where it passed 68.3% of long professional tasks, twelfth of 60. Its composite intelligence index of 70.8 places it 22nd of 114, well above the median of 59.5.

The main drawbacks are price and conversational preference. At $1 per million input tokens and $5 per million output tokens, its blended price is $2, roughly double the registry median. Its LMArena text rating of 1426 ranks 70th of 114 and sits below the median.

**Strengths**

- 100% on OTIS Mock AIME, 1st of 95
- 90.9% on FrontierMath, 7th of 80
- 68.3% on APEX-Agents, 12th of 60
- Intelligence index 70.8, 22nd of 114 and above the 59.5 median

**Weaknesses**

- LMArena text rating 1426, 70th of 114 and below the 1437.6 median
- Blended price $2 per million tokens, about double the 1.0125 median
- SciCode 55.1%, 29th of 96, only slightly above the median

**Best for:** Math-heavy reasoning, research-style question answering, and long professional agent tasks that need tool calling and a large context window.

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
Across five benchmarks the model scored 70–100%, with tool calling at 70% (Billing ops), 77% (Research & deck), 100% (Structured output), 70% (LLM Judge) and 80% (SQL data analysis), and code mode at 80%, 64% and 90% where it was run. It handles structured extraction, ordered write sequences and point-to-point routing reliably. Its failures cluster on exhaustive sweeps over large data, round-trip search rules and over-strict judging. Costs per run were low throughout, from under a cent per judging case to about $0.07 for the most expensive accounting run.

#### Strengths
- On Structured output it passed all 10 cases in a single `accounts` call each, with correct £000 scaling, signs, and group-versus-parent separation.
- On Billing ops it got all four write tasks and all four margin calculations right in both modes, including the correct order of `update_attendance` → `void_invoice` → `create_invoice`.
- On SQL data analysis all 16 runs of the eight non-tour cases passed, and it checked search convergence before answering.
- On Research & deck both runs caught the data-room traps (restated revenue, cancelled order, product recall), switched to `view_pdf` on a scanned PDF, and produced HTML that passed `check_deck` on the first attempt.
- On LLM Judge every case was one request with no malformed output, and all 24 Research & deck verdicts matched the reference majority.

#### Weaknesses
- On Billing ops, tool calling abandoned large 384-invoice sweeps after reading 6–40 invoices and submitted empty or partial structured answers; the caveat appeared only in its text.
- On Billing ops, code mode's invoice audit checked each line separately, so it missed duplicate-line billing in both `wrong_invoices` runs despite flagging the concern in its notes.
- On SQL data analysis it let tour passengers walk into a target station and counted the visit from there, which accounts for all three failures, and at least 13 of 20 runs hit SQL errors from the unquoted `at` column.
- On LLM Judge its 5 disagreements of 63 verdicts were all too harsh: it rejected paraphrased key points and treated unrelated statements as contradictions.
- On Research & deck it asked the founder only two questions per run and did not review the deck against the answers after the format check passed.

#### Tool calling compared with code mode
- On Billing ops code mode scored 80% against 70% and finished the full large sweeps for $0.018–$0.024, where tool calling spent $0.062–$0.069 and failed; code mode did repeatedly hit the 100 nested-call limit, recovering each time.
- On Billing ops tool calling won `small-wrong_invoices-1` by reading every invoice, while code mode's per-line check missed one row.
- On SQL data analysis code mode scored 90% against 80% and used 169 requests against 252, looping searches in Python, though neither mode fixed the walk-in tour error.
- On Research & deck tool calling passed and code mode failed on a single case, with direct tool calls still needed for images and PDFs, so the result does not rank the modes.
- On Structured output and LLM Judge only tool calling was run, so there is no comparison.

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-6.1-terra`. Compare it with others: `https://pydantic.dev/models/api/models?slug=gpt-6.1-terra,<other slug>`
