Claude Sonnet 4

by Anthropic

Claude Sonnet 4 is a significant upgrade to Claude Sonnet 3.7, reaching a state-of-the-art 72.7% on SWE-bench with stronger coding and reasoning. It balances capability with efficiency and responds more precisely to instructions for greater control over implementation. Sonnet 4 supports extended thinking with integrated tool use and parallel tool execution, enabling capable agentic workflows. It pairs vision with text analysis and shows substantial gains in multi-file development, with fewer navigation errors across a codebase. With a 200K token context window and support for tools, vision, and PDF processing, Sonnet 4 produces clean code with precise, surgical edits. It suits everyday applications that want near-frontier performance at practical efficiency.

Key info

Input
Output
Features
Context window
200K
Max output
64K
Input price
$3.00 /1M
Output price
$15.00 /1M
  • EU residency available
  • US residency available
  • Zero data retention via Enterprise
  • No training by default
  • GDPR DPA available

Available routes

Claude Sonnet 4 runs on 2 different routes through the Opper gateway. Compare residency, ZDR, and training posture at a glance β€” full data-handling detail per route below.

ProviderRegionZero data retentionTrainingInputOutput
Google CloudUSEnterpriseNo$3.00$15.00
Google CloudEUEnterpriseNo$3.00$15.00

Training posture across routes: No training on prompts by default.

Data handling per route

Each route hosting Claude Sonnet 4 has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

Google Cloud β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Abuse monitoring
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
SCCs

Google Cloud β€” European UnionπŸ‡ͺπŸ‡Ί

Zero data retention is available via Opper Enterprise contract. No training on customer data. EU; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Abuse monitoring
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
Not applicable β€” data stays in EU

Benchmarks

Independent benchmark scores β€” composite indices for reasoning, coding, and math, plus individual eval scores where available.

Global rank#9 of 531 LLMs
TierStrong
Output speed66 tok/s
First token94.63s
Intelligence Index47.2
Coding Index50.9
Reasoning & knowledge
GPQA Diamond
88%
Humanity's Last Exam
30%
Long-context reasoning
71%
Coding
SciCode
47%
Agentic & tool use
Terminal-Bench Hard
53%
τ²-Bench Telecom
76%
Math & instruction following
IFBench
57%

Get started

Call Claude Sonnet 4 through the Opper gateway with one API key. Let your coding agent set it up, or call it directly β€” Opper is drop-in compatible with the OpenAI, Anthropic, and Google AI SDKs.

Set it up with your agent

Copy this and paste it into your coding agent β€” Claude Code, Cursor, Codex, and more β€” and it'll wire up Opper for you.

Or call it directly

import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPPER_API_KEY,
baseURL: "https://api.opper.ai/v3/compat",
});
const completion = await client.chat.completions.create({
model: "gcp/claude-sonnet-4",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Compare Claude Sonnet 4 with…

Side-by-side on privacy, EU hosting, pricing, and benchmarks.

Other models from Anthropic

Start building with 300+ models

One API key. Every major provider. Up and running in minutes.

Get startedView Documentation
Claude Sonnet 4 by Anthropic β€” pricing, benchmarks, EU/US hosting | Opper AI