[BUG] API Error API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CaRipzf8eEY2mRuZKHEpk"}
Resolved 💬 3 comments Opened Apr 26, 2026 by jbertus Closed Apr 29, 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?
Sometimes an image is accidentally sent (because I am used to it with other platforms and it is accepted) without any text in the textbox. I get this error and have to start a new session, which screws up everything ... the flow of the chat/directions/etc
What Should Happen?
Allow an image to be sent with no text in the text box like every other AI platform
Error Messages/Logs
API Error
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CaRipzf8eEY2mRuZKHEpk"}
Steps to Reproduce
paste image and click send
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
4.7
Claude Code Version
Claude Code Desktop (Windows)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗