Claude Sonnet 4 now supports 1M tokens of context

Anthropic adds a 1M-token context window to Claude Sonnet 4, enabling whole-codebase analysis, large document synthesis, and more.

By Operator Published Updated
Claude Sonnet 4 now supports 1M tokens of context
Claude Sonnet 4 now supports 1M tokens of context

Reported change

Anthropic announced a one-million-token context window for Claude Sonnet 4 in public beta through the Anthropic application programming interface (API) and Amazon Bedrock. The announcement described support through Google Cloud Vertex AI as forthcoming.

Details reported by Anthropic

  • Anthropic listed code-base analysis, document synthesis, and agent workflows as example uses.
  • Different pricing applies when an input exceeds 200,000 tokens.
  • Anthropic identified prompt caching and batch processing as methods for controlling some latency and cost.

Operational significance

A larger context window permits more source material in one request. It does not guarantee that every supplied fact will be retrieved or interpreted correctly. Evaluate accuracy, latency, and total token cost on representative inputs before replacing retrieval or document-partitioning systems.

Source: Anthropic