Claude Sonnet 4 now supports 1M tokens of context

ProductClaude Sonnet 4 now supports 1M tokens of contextAug 12, 2025●2 min readClaude Sonnet 4 now supports up to 1 million tokens of context on the Anthropic API—a 5x increase that lets you process entire codebases with over 75,000 lines of code or dozens of research papers in a single request.Long context support for Sonnet 4 is now in public beta on the Anthropic API and in Amazon Bedrock, with Google Cloud’s Vertex AI coming soon.Longer context, more use casesWith longer context, developers can run more comprehensive and data-intensive use cases with Claude, including:Large-scale code analysis: Load entire codebases including source files, tests, and documentation. Claude can understand project architecture, identify cross-file dependencies, and suggest improvements that account…