Anthropic raised the Claude API request limit from 32 to 128 MB
Anthropic quadrupled the maximum request size for Messages API and Token Counting: from 32 to 128 MB. The change removes the limitation that caused requests with images and PDFs to fail long before the context window was exhausted.
Anthropic increased the maximum request size for the Claude API from 32 to 128 MB. The change affects the Messages API and the Token Counting endpoint; the company announced it in a post on X, not in a blog. Emergent reports that the limit was officially launched on October 30, 2026.
What exactly changed
The discussion is about the size of the raw HTTP request body, not tokens. Therefore the limit is unrelated to the model’s context window (sources mention windows of 200 000 and 1 million tokens). An agent session could use only a small part of the token budget and still receive error 413: attachments after base64 encoding exceeded 32 MB.
The price and the size of the context window itself do not change; this was not mentioned in the announcement. Only the transport layer was adjusted: it stopped cutting off data that the model could theoretically process.
Why the old limit triggered so early
Base64 increases the size of binary data by about a third. A PDF of 24 MB was already approaching the ceiling of 32 MB, even without instructions and conversation history. By the same estimate, with the new limit, source files of about 96 MB will fit in a request, but this is an estimate, not a figure announced by Anthropic.
We especially often hit the computer‑use session limit. There Claude repeatedly takes screenshots to choose the next action, and they quickly accumulate in a single request. The reasoning costs remain small relative to the context window.
In public issue trackers, Anthropic, as Startup Fortune writes, discussed that the limit would cut off the entire conversation: the model could neither recover nor neatly trim the input data. Due to error 413, the problem could appear as a usage issue, although the cause was an infrastructure limitation.
Limits of other endpoints
For adjacent API parts, the numbers remain the same:
- Message Batches API — 256 MB;
- Files API — 500 MB.
What changes is the level at which interactive scripts with images and documents operate.
Publications estimate the gain as follows: an agent with computer use will be able to make roughly four times more moves with screenshots, and a request can include a noticeably larger PDF. This is the authors' assessment, not an official Anthropic metric.
Discrepancy in sources
Sources describe the documentation status differently. Startup Fortune writes that at the time of publication it still listed 32 MB for Messages and Token Counting. Emergent claims that the reference now shows the new limit of 128 MB alongside the old values. Most likely the page was updated after publication, but this cannot be verified from the texts. If you rely on a specific figure, cross‑check with the current documentation and test the behavior with a real request.
What this means for developers
- Remove workarounds that exist only because of the limit. If you split a PDF into multiple requests or trimmed the screenshot history to avoid getting 413, reconsider this logic. But first verify that the limit was indeed the sole reason for such a design.
- Calculate size including base64. A file’s size on disk is not equal to the request body size: add about a third and allocate space for text and dialogue history.
- Don’t remove processing of 413. The cap is higher, but not gone. Long agent sessions can still reach it, so a rollback strategy is needed: compress or delete old screenshots, move files to another channel.
- Choose the endpoint based on data size. For very large files, the Files API with a limit of 500 MB and Message Batches with 256 MB remain, if the scenario allows batch processing.
- Tokens and bytes are separate budgets. Token Counting also got a new limit, so preliminary estimation of large multimodal requests can be done with the same inputs as the main call.
- Track your spending. Prices in the announcement did not change, but requests have become larger, meaning the number of processed tokens will increase and you will be billed for them.