[Bug] Anthropic API Error: Could not process image

Status Fixed / completed
Reported on v2.0.76
Maintainer reply None cached
Activity 4 comments · opened Feb 11, 2026 · closed Feb 11, 2026

Bug Description
Claude code rendered unusable after pasting an image.
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Could not process image"},"request_id":"req_011CY1tAVuaWrt3WsoFn9ETi"}
at F9.generate (file:///nix/store/4bmhj54qyccbs7m43vfv804j5dff6aw9-claude-code-2.0.76/lib/node_modules/@anthropic-ai/claude-code/cli.js:510:11051)

Environment Info

  • Platform: darwin
  • Terminal: alacritty
  • Version: 2.0.76
  • Feedback ID: f4cadde3-01a9-4cab-987e-95c8db0f192d

Errors
<redacted>

Note: Error logs were truncated.

View original on GitHub ↗

4 Comments

mgrbyte · 8 months ago

I consistantly get API Error 400, had to /clear to restore conversation abilities.

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/24387
  2. https://github.com/anthropics/claude-code/issues/19031
  3. https://github.com/anthropics/claude-code/issues/22351

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

mgrbyte · 8 months ago

This issue was caused by changes in MacOSX Tahoue, where now the HEIC format is the default.
I had used: defaults write com.apple.screencapture type png to try enable sharing of screenshots for collaboration/compatibility reasons, but this is no longer a valid approach.
It resulted in .png files being created but with HEIC data format, causing claude code to choke.

For any macOS Tahoue users with the same issue, you'll now need to manaully:

  • Cmd-Shift-5
  • Click options
  • Capture Format -> SDR (Most compatible)

to enable non heic screenshots.

github-actions[bot] · 7 months ago

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.