Building a SaaS tool or MCP server? Get listed or sponsor AgentStackList →
Claude Coding By James Whitfield

The Claude API now takes 128 MB requests, 4x more room for giant PDFs and long computer-use sessions

Anthropic raised the maximum request size for the Messages and Token Counting endpoints on the first-party Claude API from 32 MB to 128 MB. The team says image-heavy jobs, like long computer-use sessions full of screenshots and big PDFs, were hitting the 32 MB cap with plenty of context window still left, so this gives about 4x more room. Claude's API docs now list 128 MB for Messages and Token Counting, 256 MB for the Batch API and 500 MB for the Files API. Go over the limit and you get a 413 request_too_large error.

Why it matters

Fewer workarounds. You can send far more screenshots or a much bigger PDF in one call instead of splitting the job or shrinking every image.

Who it's for

Developers building computer-use agents, document pipelines and anything that sends lots of images or PDFs to Claude.

How to try it

  1. Send your request to the first-party Claude API (api.anthropic.com), not through Bedrock or another cloud.
  2. Keep the whole request under 128 MB, including base64 images, PDFs and text.
  3. For very large files, upload them with the Files API (up to 500 MB) and reference the file_id instead.
  4. Handle 413 request_too_large errors by splitting the job or downsampling images.

Plan & availability: Live now on the first-party Claude API for Messages and Token Counting, at normal token prices. Cloud platforms keep their own lower limits: Bedrock is 20 MB, Google-managed Claude on Google Cloud is 30 MB, and Claude Platform on AWS, Anthropic-managed Google Cloud and Microsoft Foundry are 32 MB. Confirmed in Claude's API docs, checked October 30, 2026.

Related

Share on X

Source: @ClaudeDevs on X

Written by James Whitfield from the original post. Checked Oct 30, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.

claude-apicomputer-usepdflimitsdevelopers

More Claude tricks

All Claude tricks →