claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Request size exceeds model context window

Open ty13r opened this issue 1 year ago • 5 comments

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

  1. send screenshot to claude code using ctrl + v
  2. 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

ty13r avatar Aug 22 '25 20:08 ty13r

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/6357
  2. https://github.com/anthropics/claude-code/issues/6358
  3. 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

github-actions[bot] avatar Aug 22 '25 20:08 github-actions[bot]

same problem now, just started for me though

ghost-ng avatar Aug 23 '25 00:08 ghost-ng

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.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]

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.

github-actions[bot] avatar Jan 04 '26 10:01 github-actions[bot]

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.

github-actions[bot] avatar Jan 11 '26 14:01 github-actions[bot]