<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks" -->

---
title: Anthropic Expands Claude Sonnet 4 with 1 Million Token...
description: Claude Sonnet 4 now supports a 1 million token context window, up from 200,000 tokens, enabling processing of entire codebases and book-length content in...
canonical: https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Anthropic Expands Claude Sonnet 4 with 1 Million Token Context Window | daily.dev
og:description: Claude Sonnet 4 now supports a 1 million token context window, up from 200,000 tokens, enabling processing of entire codebases and book-length content in...
og:url: https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks
og:image: https://api.daily.dev/og/posts/gHnyL2IKS.png
og:image:alt: Anthropic Expands Claude Sonnet 4 with 1 Million Token Context Window
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic Expands Claude Sonnet 4 with 1 Million Token Context Window

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 4 upvotes · 0 comments

## Summary

Claude Sonnet 4 now supports a 1 million token context window, up from 200,000 tokens, enabling processing of entire codebases and book-length content in single requests. Available through Anthropic's API and Amazon Bedrock, this upgrade allows for large-scale code analysis and document synthesis without losing context. However, costs double to $6 per million input tokens for prompts exceeding 200,000 tokens, though strategies like prompt caching can help manage expenses. The enhancement positions Claude competitively against models like GPT-5 while raising new security considerations for enterprise use.

## Content

Anthropic's Claude Sonnet 4 model has been upgraded to support a 1 million token context window, marking a significant enhancement over its previous 200,000 token limit. This substantial increase, equivalent to about 750,000 words or more than 75,000 lines of code, allows for processing entire codebases, multiple research papers, and book-length content in a single request. This development unlocks new capabilities for large-scale code analysis, document synthesis, and sophisticated context-aware AI agents.

Available in public beta through Anthropic's API and Amazon Bedrock, with Google Cloud Vertex AI support anticipated soon, the extended context window facilitates the analysis of complete software projects and comprehensive document collections without losing context. As a result, developers can manage complex workflows more efficiently, maintaining state across large tasks without needing to break them into smaller parts, thereby reshaping traditional development workflows.

However, this expanded capacity comes with increased pricing for prompts exceeding 200,000 tokens, doubling costs to $6 per million input tokens, which is higher than competitors like Google's Gemini model. While the price adjustment affects larger context executions, Anthropic offers strategies like prompt caching and batch processing to mitigate costs.

Claude's enhancement not only keeps it competitive against models like OpenAI's GPT-5 but also presents new challenges regarding security and compliance. Managing large-scale input could potentially expose sensitive data, underscoring the importance of robust security protocols.

Overall, the upgrade solidifies Claude Sonnet 4's position in the AI landscape by enabling enterprise-level processing and analysis capabilities, thus catering to the demands of AI coding platforms and enterprise customers seeking comprehensive solutions for processing vast information efficiently.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#llm](https://daily.dev/tags/llm), [#anthropic](https://daily.dev/tags/anthropic), [#claude](https://daily.dev/tags/claude)

[View this post on daily.dev](https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Anthropic Expands Claude Sonnet 4 with 1 Million Token Context Window","url":"https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks"},"datePublished":"2025-08-12T16:18:19.189Z","dateModified":"2025-08-13T11:11:46.867Z","description":"Claude Sonnet 4 now supports a 1 million token context window, up from 200,000 tokens, enabling processing of entire codebases and book-length content in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/209c247eccb7ee96964a56efea5fbed6?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/209c247eccb7ee96964a56efea5fbed6?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/anthropic-expands-claude-sonnet-4-with-1-million-token-context-window-ghnyl2iks","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai,llm,anthropic,claude","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Anthropic Expands Claude Sonnet 4 with 1 Million Token Context Window"}]}
```

