[BUG] Failure when there's over 100 images
Resolved 💬 6 comments Opened Jan 21, 2026 by barrettj Closed Mar 5, 2026
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?
When using claude to edit images I reached an image limit and couldn't compact or continue:
What Should Happen?
I should be able to compact or continue in some capacity
Error Messages/Logs
Read image (5.2KB)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Too much media: 0 document pages + 102 images > 100"},"request_id":"req_011CXLuUBKMffgQcCA9wfKbV"}
✻ Cogitated for 5m 51s
❯ .
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Too much media: 0 document pages + 102 images > 100"},"request_id":"req_011CXLuVk86SwnECT5auCkye"}
❯
/compact
⎿ Error: Error during compaction: Error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Too much media: 0 document pages + 102 images >
100"},"request_id":"req_011CXLuWpKdnGnnnXTDpAfEk"}
❯
Steps to Reproduce
I had claude working on editing images with image magick for a fair while
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.14 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
Feedback Id: dc0e605c-0b56-4730-bd2a-9dcbb10c1255
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗