1M token context window enters beta for Claude Sonnet 4
Claude Sonnet 4 gained a 1M token context window in public beta on the Claude API and Amazon Bedrock — 5x the standard 200K — with prompts over 200K tokens billed at $6/$22.50 per million tokens.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingPrompts over 200K tokens cost double — $6/$22.50 per million instead of $3/$15 — so model the spend before letting anyone paste whole codebases into requests. Note the Sonnet 4 beta closed on 30 April 2026; 1M context is now GA on Opus 4.6 and Sonnet 4.6.
Engineer
What to change, what breaks, what to test Worth knowingOn `claude-sonnet-4-20250514` the 1M beta has ended, so build new long-context work on Opus 4.6 or Sonnet 4.6 where it is generally available. Pair large prefixes with prompt caching and the Batch API to blunt the long-context rate.
General consumer
Using the Claude apps, not the API No impactNothing to do — the Claude apps manage context length for you.
The 1M context beta made it possible to send entire codebases or large document sets in one request on claude-sonnet-4-20250514.
Pricing is tiered by prompt size: at or below 200K tokens the normal $3/$15 per million applies; above 200K tokens the long-context rate of $6/$22.50 applies. Prompt caching and the Batch API can be combined with it to reduce cost.
Vertex AI followed on August 26, 2025. The beta ended for Sonnet 4 and Sonnet 4.5 on April 30, 2026, after 1M context went generally available on Opus 4.6 and Sonnet 4.6.
Pricing
| Model | Input / MTok | Output / MTok | Effective |
|---|---|---|---|
claude-sonnet-4-20250514 | $6 | $22.5 | 2025-08-12 |
| Long-context rate for prompts over 200K tokens; prompts at or below 200K stay at $3/$15 | |||
Platform availability
| Platform | Model ID | Status |
|---|---|---|
| claude-api | claude-sonnet-4-20250514 | preview |
| bedrock | anthropic.claude-sonnet-4-20250514-v1:0 | preview |
Topics: Prices and limits
Terms on this page: Batch processing, Context window, Per million tokens (MTok), Prompt caching