Models / OpenAI / GPT-5
OpenAI

GPT-5

BYOKClosedReleased 7 Aug 2025

Closed-weights OpenAI model with tool calling and a large context window. It does well on Terminal-Bench and SimpleQA Verified but trails the median on abstract reasoning and overall intelligence.

Read the full description ↓

Spec sheet

Family
OpenAI
Released
7 Aug 202516 months ago
Weights
Closed
Context window
400k tokens
Largest response
128k tokens
Accepts
text, image, file
Supports
tools, reasoning, structured output
Knowledge cutoff
September 2024
Intelligence index
53.3#74
Input price
$1.25 / 1M
Output price
$10 / 1M
Blended price (3:1)
$3.44 / 1M
Index points per $
15.5#86
Speed
65 tokens/sec#98
Popularity
#144 of 194by usage
Providers
2

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
OpenAIgateway/openai:gpt-5 $1.25$0.13$10$3.44
OpenRouterBYOKopenrouter:openai/gpt-5 $1.25$0.13$10$3.44

Every provider charges the same. Blended price assumes three input tokens for each output token.

Example code

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

from pydantic_ai import Agent

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

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

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

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

Compare

GPT-5vsInkling Small
Intelligence indexOur composite of the benchmarks below, 0-100
GPT-553.3
Inkling Small53.2
GPQA DiamondGraduate-level science questions, multiple choice
GPT-586.2%
Inkling Small88.5%
OTIS Mock AIMECompetition mathematics problems with exact answers
GPT-591.4%
Inkling Small90%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
GPT-555.4%
Inkling Small46.3%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
GPT-59.9%
Inkling Small40.1%
SimpleQA VerifiedShort factual questions answered from memory, without search
GPT-550.1%
Inkling Small19.1%
SWE-bench VerifiedReal GitHub issues resolved, run by Epoch with one fixed scaffold
GPT-573.6%
Inkling Small–
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
GPT-549.6%
Inkling Small–
SciCodeScientific programming problems written by researchers
GPT-542.9%
Inkling Small49.7%
WebDev ArenaRating from human votes on web apps the models built
GPT-51419.5
Inkling Small1406.6
LMArena textRating from blind human votes between pairs of chat responses
GPT-51406.4
Inkling Small1414
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
GPT-5150
Inkling Small150.8
Input pricePer 1M tokens, lower is better
GPT-5$1.25
Inkling Small$0.45
Output pricePer 1M tokens, lower is better
GPT-5$10
Inkling Small$1.2
EfficiencyIndex points per blended $
GPT-516
Inkling Small84
SpeedOutput tokens per second
GPT-565 t/s
Inkling Small154 t/s
Context windowTokens
GPT-5400k
Inkling Small524k
Model stringFor Pydantic AI
GPT-5gateway/openai:gpt-5
Inkling Smallopenrouter:thinkingmachines/inkling-small

About GPT-5

Description written by an LLM from the data on this page

Closed-weights OpenAI model with tool calling and a large context window. It does well on Terminal-Bench and SimpleQA Verified but trails the median on abstract reasoning and overall intelligence.

GPT-5 is a closed-weights model from OpenAI, available through OpenAI and OpenRouter. It offers a 400k token context window, responses up to 128k tokens, text, image and file input, and tool calling, structured output and reasoning mode.

It ranks 14th of 35 on Terminal-Bench and 32nd of 76 on SimpleQA Verified, both above the median, while its SWE-bench Verified score of 73.6% sits just under it. It ranks 77th of 114 on the overall intelligence index and scores 9.9% on ARC-AGI-2, against a median of 61.3%.

Cost is the main drawback. A blended price of $3.44 per million tokens is well above the registry median, and intelligence per dollar ranks in the middle of the registry. Teams whose agents depend on long context and tool use should weigh that price against results on their own workload.

Strengths

  • Terminal-Bench 49.6%, 14th of 35, above the 43.2% median
  • SimpleQA Verified 50.1%, 32nd of 76, above the 46.5% median
  • 400k context window and responses up to 128k tokens
  • Supports tool calling, structured output and reasoning mode

Weaknesses

  • ARC-AGI-2 9.9%, 57th of 68, against a 61.3% median
  • Intelligence index 53.3, 77th of 114, below the 59.5 median
  • Blended price $3.44 per million tokens, well above the $1.01 median

Best for

Terminal and tool-driven agents that need long context and tool calling, where per-token cost matters less.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs