[BUG]
Resolved 💬 4 comments Opened Jun 10, 2025 by jlaver Closed Dec 10, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.17 (Claude Code)
- Operating System: macOS 15.4
- Terminal: iTerm2
Bug Description
After pasting in two images that were both too large, future messages not containing an image continue to error out with
> A message that doesn't contain an image
⎿ API Error: 400
{"type":"error","error":{"type":"invalid_request_error","message":"messages.122.content.1.image.source.base64: image
exceeds 5 MB maximum: 6206848 bytes > 5242880 bytes"}}
Steps to Reproduce
- Copy image > 5 mb into clipboard
- Paste into claude code using Ctrl-V. You will receive an error
- Send more messages without images. You will continue to receive error
Expected Behavior
To be able to continue on without clearing or compacting context
Actual Behavior
Received API Error 400 repeatedly
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗