[Bug] Anthropic API Error: Image exceeds 5 MB maximum size limit

Open 💬 13 comments Opened Nov 13, 2025 by anibalinbalin

Bug Description
Im getting API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message
":"messages.0.content.5.image.source.base64: image exceeds 5 MB maximum:
5281812 bytes > 5242880 bytes"},"request_id":"req_011CV6ECjBHCVk4Ugwi1dacW"} after pasting a standard screenshot. Tried several times.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.37
  • Feedback ID: 0b3febcc-db8f-4445-bb51-4c10d91c4b66

Errors

[{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:87:11857)\n    at X (/$bunfs/root/claude:86:5167)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-13T16:46:48.285Z"},{"error":"TypeError: A boolean was expected\n    at unknown\n    at <anonymous> (/$bunfs/root/claude:228:36859)\n    at new Promise (native:1:11)\n    at vO1 (/$bunfs/root/claude:228:36839)\n    at BRT (/$bunfs/root/claude:228:80388)\n    at async jyT (/$bunfs/root/claude:504:3597)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-13T16:46:50.881Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0.content.5.image.source.base64: image exceeds 5 MB maximum: 5281812 bytes > 5242880 bytes\"},\"request_id\":\"req_011CV6ECjBHCVk4Ugwi1dacW\"}\n    at generate (/$bunfs/root/claude:228:83080)\n    at makeRequest (/$bunfs/root/claude:670:5356)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-13T16:46:55.347Z"}]

View original on GitHub ↗

This issue has 13 comments on GitHub. Read the full discussion on GitHub ↗