errors changedapi/errors
Recorded here
Lines+4added
Lines−4removed
From line
42
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits32to this page, all time
The whole hunk
from line 42, old and new numbered
/
from line 42
4242
4343## Request size limits
4444
45The API enforces request size limits:
45The first-party Claude API enforces these request size limits. For other platforms, see the [API overview](https://platform.claude.com/docs/en/api/overview#request-size-limits).
4646
4747| Endpoint type | Maximum request size |
4848| ----------------------------------------------------------------------------------- | -------------------- |
49| Messages API | 32 MB |
50| Token Counting API | 32 MB |
49| Messages API | 128 MB |
50| Token Counting API | 128 MB |
5151| [Batch API](https://platform.claude.com/docs/en/build-with-claude/batch-processing) | 256 MB |
5252| [Files API](https://platform.claude.com/docs/en/build-with-claude/files) | 500 MB |
5353
54If you exceed these limits, you’ll receive a 413 `request_too_large` error. On the direct Claude API, Cloudflare returns this error before the request reaches the API servers.
54If you exceed these limits, you’ll receive a 413 `request_too_large` error. On the first-party Claude API, Cloudflare returns this error before the request reaches the API servers.
5555
5656## Error shapes
5757
No line in this hunk matches that.