Claude 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 for the complete system design.Document synthesis: Process extensive document sets like legal contracts, research papers, or technical specifications. Analyze relationships across hundreds of documents while maintaining full context.Context-aware agents: Build agents that maintain context across hundreds of tool calls and multi-step workflows. Include complete API documentation, tool definitions, and interaction histories without losing coherence.API pricingTo account for increased computational requirements, pricing adjusts for prompts over 200K tokens: Prompts ≤ 200KPrompts > 200KInput$3 / MTok$6 / MTokOutput$15 / MTok$22.50 / MTokClaude Sonnet 4 pricing on the Anthropic APIWhen combined with prompt caching, users can reduce latency and costs for Claude Sonnet 4 with long context. The 1M context window can also be used with batch processing for an additional 50% cost savings.Customer spotlight: Bolt.newBolt.new transforms web development by integrating Claude into their browser-based development platform.“Claude Sonnet 4 remains our go-to model for code generation workflows, consistently outperforming other leading models in production. With the 1M context window, developers can now work on significantly larger projects while maintaining the high accuracy we need...
First seen: 2025-08-12 16:54
Last seen: 2025-08-13 21:06