[BUG] API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.44.content.1.image.source.base64: image exceeds 5 MB maximum: 11641928 bytes > 5242880 bytes"},"request_id":"req_011CUtc4QmYXvDmHZ4aqQP5i"}
Resolved 💬 3 comments Opened Nov 7, 2025 by tenxengineer Closed Nov 11, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.44.content.1.image.source.base64: image exceeds 5 MB maximum: 11641928 bytes > 5242880 bytes"},"request_id":"req_011CUtc4QmYXvDmHZ4aqQP5i"} i get this error when i make screenshot from the screen and paste it with ctrl+v i tried to save this screenshot it size is just 200 kb
What Should Happen?
it should proceed the screenshot without issue
Error Messages/Logs
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.44.content.1.image.source.base64: image exceeds 5 MB maximum: 11641928 bytes > 5242880 bytes"},"request_id":"req_011CUtc4QmYXvDmHZ4aqQP5i"}
Steps to Reproduce
I open the Claude code extension paste the image write the prompt it give me 400
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.35 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗