Models / Claude / Claude Opus 4.7
Claude

Claude Opus 4.7

BYOKClosedReleased 14 Apr 2026

Closed frontier model from Anthropic with a very large context window and top results on software engineering benchmarks. It is among the most expensive models in the registry.

Read the full description ↓

Spec sheet

Family
Claude
Released
14 Apr 20267 months ago
Weights
Closed
Context window
1M tokens
Largest response
128k tokens
Accepts
text, image, file
Supports
tools, reasoning, structured output
Knowledge cutoff
January 2026
Intelligence index
68.9#25
Input price
$5 / 1M
Output price
$25 / 1M
Blended price (3:1)
$10 / 1M
Index points per $
6.9#100
Speed
56 tokens/sec#113
Popularity
#114 of 194by usage
Providers
4

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
Anthropicgateway/anthropic:claude-opus-4-7 $5$0.5$25$10
AWS Bedrockgateway/bedrock:global.anthropic.claude-opus-4-7-v1:0 $5$0.5$25$10
Google Vertexgateway/google-cloud:claude-opus-4-7 $5$0.5$25$10
OpenRouterBYOKopenrouter:anthropic/claude-opus-4.7 $5$0.5$25$10

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/anthropic:claude-opus-4-7', instructions='Be concise, reply with one sentence.')

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

Ask Claude Opus 4.7 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Claude Opus 4.7vsGPT-5.6 Terra
Intelligence indexOur composite of the benchmarks below, 0-100
Claude Opus 4.768.9
GPT-5.6 Terra69
GPQA DiamondGraduate-level science questions, multiple choice
Claude Opus 4.790.2%
GPT-5.6 Terra93.3%
OTIS Mock AIMECompetition mathematics problems with exact answers
Claude Opus 4.797.8%
GPT-5.6 Terra99.7%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Claude Opus 4.770.2%
GPT-5.6 Terra86%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
Claude Opus 4.775.8%
GPT-5.6 Terra83.9%
SimpleQA VerifiedShort factual questions answered from memory, without search
Claude Opus 4.751.7%
GPT-5.6 Terra43.2%
SWE-bench VerifiedReal GitHub issues resolved, run by Epoch with one fixed scaffold
Claude Opus 4.783.5%
GPT-5.6 Terra–
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
Claude Opus 4.780.2%
GPT-5.6 Terra–
SciCodeScientific programming problems written by researchers
Claude Opus 4.754.5%
GPT-5.6 Terra55%
WebDev ArenaRating from human votes on web apps the models built
Claude Opus 4.71566.8
GPT-5.6 Terra1521.2
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Claude Opus 4.749.2%
GPT-5.6 Terra58.2%
LMArena textRating from blind human votes between pairs of chat responses
Claude Opus 4.71489.8
GPT-5.6 Terra1448.9
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Claude Opus 4.7157.5
GPT-5.6 Terra160.8
Input pricePer 1M tokens, lower is better
Claude Opus 4.7$5
GPT-5.6 Terra$2
Output pricePer 1M tokens, lower is better
Claude Opus 4.7$25
GPT-5.6 Terra$12
EfficiencyIndex points per blended $
Claude Opus 4.77
GPT-5.6 Terra15
SpeedOutput tokens per second
Claude Opus 4.756 t/s
GPT-5.6 Terra69 t/s
Context windowTokens
Claude Opus 4.71M
GPT-5.6 Terra1.1M
Model stringFor Pydantic AI
Claude Opus 4.7gateway/anthropic:claude-opus-4-7
GPT-5.6 Terragateway/openai:gpt-5.6-terra

About Claude Opus 4.7

Description written by an LLM from the data on this page

Closed frontier model from Anthropic with a very large context window and top results on software engineering benchmarks. It is among the most expensive models in the registry.

Claude Opus 4.7 is a closed model from Anthropic, offered on four providers with text, image and file input, tool calling and a 1M-token context window. Its clearest strength is agentic coding: it ranks first of 23 on SWE-bench Verified at 83.5%, and third of 35 on Terminal-Bench.

General reasoning results are solid rather than standout. The intelligence index is 68.9, 26th of 114, and it ranks 14th of 114 on LMArena text. It scores 90.2% on GPQA Diamond, close to the median, but trails the median on APEX-Agents at 49.2%.

The main drawback is cost. Its $10 blended price per million tokens ranks 173rd of 194, so it suits workloads where the coding lead justifies the spend.

Strengths

  • First of 23 on SWE-bench Verified, 83.5% against a 74.8% median
  • Terminal-Bench 80.2%, 3rd of 35 tested models
  • Intelligence index 68.9, 26th of 114 tested
  • LMArena text rating 1489.8, 14th of 114

Weaknesses

  • Blended price of $10 per million tokens, 173rd of 194 on price
  • APEX-Agents 49.2%, 35th of 60, below the 54.3% median
  • Intelligence per dollar 6.9, 100th of 194 in efficiency

Best for

Hard coding and terminal agent work where accuracy matters more than per-token cost.

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