AI Catchup

Claude API Request Limit: 128 MB for Messages and Token Counting

By 2 min read

Anthropic's Claude Platform docs list a 128 MB maximum request size for Messages and Token Counting on the first-party API. Cloud-platform limits are smaller and vary by provider: 20 MB on Bedrock, 30 MB on Google-managed Claude, and up to 32 MB on Anthropic-managed cloud services. Oversized first-party requests return 413 `request_too_large`.

Anthropic's Claude Platform API overview lists a 128 MB maximum request size for first-party Messages and Token Counting requests. The cap is lower when you call Claude through cloud platforms, where documented request limits range from 20 MB to 32 MB. (Anthropic API overview)

Request Size by Platform

The 128 MB limit is for the first-party Claude API, not every hosted Claude service. The documentation states the Messages and Token Counting scope for the first-party and Anthropic-operated cloud limits below; partner-operated platforms have their own request-size limits. (Anthropic API overview)

PlatformMaximum request size
First-party Claude API128 MB
Amazon Bedrock20 MB
Claude Models on Google Cloud (Google managed)30 MB
Claude Platform on AWS (Anthropic-operated)Up to 32 MB
Claude Models on Google Cloud (Anthropic managed)Up to 32 MB
Microsoft FoundryUp to 32 MB

Check the limit for the platform receiving the request. A payload accepted by Anthropic's first-party API may exceed the documented maximum for a cloud-hosted deployment. (Anthropic API overview)

What Happens When a Request Is Too Large

For first-party Claude API requests, Anthropic says exceeding the documented request-size limits returns a 413 request_too_large error. For cloud-platform requests, check the platform's own documentation for its current limit and response behavior. (Anthropic API overview)

Related coverage

Sources

Frequently Asked Questions

What is the Claude API request size limit?

Anthropic's docs list a maximum request size of 128 MB for Messages and Token Counting on the first-party Claude API.

How do cloud-platform request-size limits differ?

They are smaller than the first-party limit and vary by platform. Amazon Bedrock is 20 MB, Google-managed Claude on Google Cloud is 30 MB, and Anthropic-managed services on AWS, Google Cloud, and Microsoft Foundry support up to 32 MB.

What happens if a Claude API request is too large?

Anthropic says a first-party API request over its documented limit returns a 413 `request_too_large` error.

Get the weekly AI Catchup

Tools, practices, and what matters, in your inbox every week.