Claude Sonnet 4 expands long prompts for enterprise AI coding
Neutral Anthropic By What The Future Newsroom · August 12, 2025 · 3 min read

Claude Sonnet 4 expands long prompts for enterprise AI coding

Anthropic is giving API customers a 1 million token context window for Claude Sonnet 4, raising the amount of text or code that can fit in one prompt. The move is aimed at enterprise users and AI coding platforms, with higher pricing for prompts above 200,000 tokens.

Anthropic is widening how much information enterprise customers can send to Claude Sonnet 4 in a single request. For API users, the model now supports a 1 million token context window, a major expansion designed to make Claude more useful for software engineering and other work that depends on large amounts of context.

“This is mainly a routine enterprise model capability update, with only mild implications for more powerful coding automation and developer dependence.”Why it scores Neutral

The update arrives as AI coding becomes a central market for model developers. Anthropic has built a large enterprise business by selling Claude through an API, and coding platforms are among the most important customers for that strategy.

What changed for Claude Sonnet 4

Claude Sonnet 4 can now handle prompts of up to 1 million tokens for Anthropic API customers. In practical terms, the source describes that as requests as long as 750,000 words, more than the entire “Lord of the Rings” trilogy, or 75,000 lines of code.

That is roughly five times the model’s earlier 200,000 token limit. It is also more than double the 400,000 token context window offered by OpenAI’s GPT-5.

The larger context window will not be limited to Anthropic’s own API access. Anthropic also plans to make long context available for Claude Sonnet 4 through cloud partners, including Amazon Bedrock and Google Cloud’s Vertex AI.

Why long context matters for coding

Context windows determine how much information an AI model can consider at once. For software work, that can be especially important because useful answers often depend on files, dependencies, previous decisions, and surrounding code.

If a developer asks an AI model to create a new feature, the model is likely to perform better when it can review the broader project instead of a narrow slice. A larger prompt can give the model more of the application’s structure, which can help it make decisions that fit the existing code.

Anthropic’s product lead for the Claude platform, Brad Abrams, told TechCrunch that AI coding platforms should get a “lot of benefit” from the update. He also said Claude’s larger context window can help with long agentic coding tasks, where an AI model works through a problem autonomously for minutes or hours.

In those longer tasks, the model needs to retain the steps it has already taken. A larger context window gives Claude more room to keep track of that work as the task continues.

The enterprise race behind the update

Anthropic’s business is centered on selling AI models to enterprises through an API. That makes the company’s priorities different from OpenAI, which the source says generates most of its revenue from consumer subscriptions to ChatGPT.

Claude has become widely used by AI coding platforms such as Microsoft’s GitHub Copilot, Windsurf, and Anysphere’s Cursor. That position is valuable, but it is also under pressure. GPT-5 may challenge Anthropic’s lead with competitive pricing and strong coding performance.

The source notes that Anysphere CEO Michael Truell helped OpenAI announce the launch of GPT-5. GPT-5 is now the default AI model for new users in Cursor.

When asked whether GPT-5 had affected Claude’s API usage, Abrams downplayed the concern. He said he is “really happy with the API business and the way it’s been growing.”

The long context expansion follows another Anthropic coding move. Last week, the company unveiled Claude Opus 4.1, an updated version of its largest AI model, which pushed its AI coding capabilities a bit further.

Limits, tradeoffs, and pricing

Large context windows are becoming a visible point of competition among AI model developers. Google offers a 2 million token context window for Gemini 2.5 Pro, while Meta offers a 10 million token context window for Llama 4 Scout.

Still, bigger prompts do not automatically mean better results. The source says some studies suggest there is a limit to how effective large context windows can be, because AI models are not great at processing massive prompts.

Abrams said Anthropic’s research team focused not only on expanding Claude’s context window, but also on improving its “effective context window.” That suggests Anthropic is emphasizing whether the model can actually understand most of the information it receives, not just whether it can accept a larger input. Abrams declined to reveal the company’s exact techniques.

The upgrade also comes with higher costs for larger prompts. When prompts to Claude Sonnet 4 exceed 200,000 tokens, Anthropic will charge API users $6 per million input tokens and $22.50 per million output tokens. That is up from $3 per million input tokens and $15 per million output tokens.

For enterprise AI coding tools, the core tradeoff is clear. Claude Sonnet 4 can now take in far more code and text at once, which may help with complex development work, but the biggest prompts will cost more to run.

← Back to the wire

Read next