Bug] Anthropic API Error: Image does not match provided media type

Resolved 💬 3 comments Opened Feb 22, 2026 by MKSP2015 Closed Feb 26, 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?

<img width="580" height="782" alt="Image" src="https://github.com/user-attachments/assets/4f4206f1-18b8-4e82-a723-61595dd9340e" />

https://github.com/anthropics/claude-code/issues/11975

<img width="1292" height="388" alt="Image" src="https://github.com/user-attachments/assets/a559c1a7-4762-4a41-be5d-b6cb9a8bb5d4" />
看了这个,但有人说,最新版,没有这个问题。

Environment Info

Platform: MacOS 26.3 (25D125)
Terminal: VSCode
Version: 2.1.49

What Should Happen?

怎么解决?

Error Messages/Logs

Steps to Reproduce

....

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.50 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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