[BUG] API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"system: Invalid model name"}}

Resolved 💬 7 comments Opened Jul 3, 2025 by Vaibhav-api-code Closed Jan 3, 2026

Environment

  • Platform (select one):
  • [x ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.41 (Claude Code)
  • Operating System: macOS

Bug Description

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"system: Invalid model name"}}

Steps to Reproduce

send any msg

Expected Behavior

actually work

Actual Behavior

Additional Context

Can't get it to work, even after updating to latest claude code version. starting fresh. trying to specify model...nothing works. stopped working in the middle of a session and can't get it to work again.

View original on GitHub ↗

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