ai - sonnet 4.6识别图片的限制

访问量: 1

refer to: https://www.doubao.com/thread/w1f18b59a2f2e699a

https://platform.claude.com/docs/en/build-with-claude/vision

分两种场景(2026-06,Sonnet 4.6):
1)网页聊天界面(claude.ai)
每轮消息最多 20 张图片Claude
单张最大:5 MB(base64 后)Claude
像素上限:8000×8000Claude
你之前遇到的:
plaintext
image exceeds 5 MB maximum: 5930404 bytes
就是这里的 5 MB(base64 后)限制Claude。
2)API 调用(你做程序 / 转换用)
Sonnet 4.6:一次请求最多 600 张图片(或 PDF 页)Claude
单张:5 MB(base64 后)Claude
总 payload:标准接口约 32 MB(所有图片 + 文字合起来)Claude

General limits

The maximal number of images per message or request is:

20 per message on claude.ai.
100 per request on the API, for models with a 200k-token context window.
600 per request on the API, for all other models.

The maximal dimensions per image are 8000x8000 px. If you submit more than 20 images in one API request, this limit is reduced to 2000x2000 px.

The maximal size per image is:

10 MB (base64-encoded) when using the Claude API directly.
5 MB (base64-encoded) on Amazon Bedrock and Vertex AI.
10 MB on claude.ai.

订阅/RSS Feed

Subscribe