This model has been retired from the live catalogue; the information below is archived.

Claude Sonnet 4

Released 2025-05-23

chatCodeReasoningTool callingVision

Claude Sonnet 4 is Anthropic's earlier balanced model for text-and-image reasoning, coding and tool use, with a 200K-token context and up to 64K output on the linked model card.

Input
text image $3/M
Output
text $15/M
Cache read
$0.3/M
Context
200K
vs GPT-4o
~40% cheaper
Knowledge cutoff
2025-03

Benchmarks

Claude Sonnet 4: 57 published, but no benchmark it shares with enough other models to compare.

Claude Sonnet 4 other models measured peer average ★ no peer scored higher
EmbSpatialBench no thinking
67.5%
AI2D (test) no thinking
82.6%

Vendor-published: Alibaba (Qwen)

Price in context

Where the price sits among 68 comparable models

Input$3/M
$0.07 · Tencent Hy4 Flash GPT-5.4 Pro · $30
Output$15/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
Cache read$0.3/M
$0.003 · Tencent Hy4 Flash GPT-6 Astra · $1

The bar shows how this model’s price compares with every other model of the same kind on Synthorai. The cheapest and the most expensive are named at each end. These are base rates; batch, region and cache-write discounts are on the pricing page.

Specs & limits

Tokens

Context window (vendor spec) 200,000
Max output (vendor spec) 64,000
Knowledge cutoff 2025-03

Prompt caching

How it caches explicit (opt-in)
Min prefix 1,024
Lifetime 5m default, 1h option
Write cost 1.25x (5m) / 2x (1h)

Thinking

Parameter reasoning_effort
Values minimal · low · medium · high accepted set is the provider's

Model

Modalities text + image → text

per Model specification source ↗

Use Claude Sonnet 4 in 30 seconds

OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="claude-sonnet-4",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

About Claude Sonnet 4

  • Anthropic retired its original Claude API model in June 2026, while this Synthorai alias remains in the current public pricing feed.
  • Existing integrations should check their route's availability and consider a current Sonnet model before migrating new work to this older version.

FAQ

Is the Claude Sonnet 4 API free to try?

Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. At $3/M input tokens, that credit alone covers roughly 41 requests of ~8K tokens against Claude Sonnet 4.

What is Claude Sonnet 4 best at?

Text-and-image reasoning with tools; 200K context and 64K output; older model; verify route availability. See the About section for the full picture from the vendor's own release notes.

How much does Claude Sonnet 4 cost?

Claude Sonnet 4 costs $3 per million input tokens and $15 per million output tokens on Synthorai. That is the provider's list price, with no platform markup. Cached input tokens bill at $0.3/M.

What is Claude Sonnet 4's context window?

Claude Sonnet 4 has a context window of 200K tokens on Synthorai. A single response can be up to 64,000 tokens long.

Does Claude Sonnet 4 support prompt caching?

Yes, via opt-in: mark stable prefixes with cache_control breakpoints. Cached input tokens bill at $0.3/M vs $3/M uncached; prompts need a 1,024-token stable prefix to cache (TTL 5m default, 1h option). Prompt caching guide →

How do I get access to Claude Sonnet 4?

Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="claude-sonnet-4", and you're done. One API key covers every model on the gateway.

What is Claude Sonnet 4's knowledge cutoff?

Claude Sonnet 4's knowledge cutoff is 2025-03, per the vendor's official documentation (as of 2026-10-31).

Related models

Compare

Specifications and vendor benchmarks link to their sources. Gateway support describes the Synthorai implementation. Archived examples are individual gateway requests, not a guarantee of general model performance. Prices use the public feed or its build snapshot.

Get your API key Compare your cost →