[BUG] Request size exceeds model context window
Environment
- Platform (select one):
- [x ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.88 (Claude Code)
- Operating System: macOS 14.5 (23F79)
- Terminal: terminal
Bug Description
Whenever I send an image to claude code via terminal I get the following error and it's unrecoverable I have to start a new session.
API Error: 413 {"type":"error","error":{"type":"invalid_request_erro r","message":"Request size exceeds model context window"},"request_id":"req_011CSPNuAhthTRUQTGE2aT3i"}
Steps to Reproduce
- send screenshot to claude code using ctrl + v
- get error
Expected Behavior
claude to see my screenshot and use it as context
Actual Behavior
API Error: 413 {"type":"error","error":{"type":"invalid_request_erro r","message":"Request size exceeds model context window"},"request_id":"req_011CSPNuAhthTRUQTGE2aT3i"}
Additional Context
That's it
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/6357
- https://github.com/anthropics/claude-code/issues/6358
- https://github.com/anthropics/claude-code/issues/6362
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
same problem now, just started for me though
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.