[BUG] API Error (claude-opus-4-7[1m]): 400 The provided model identifier is invalid.. Try --model to switch to us.anthropic.claude-opus-4-1-20250805-v1:0.

Resolved 💬 4 comments Opened May 22, 2026 by tchelissard Closed Jun 23, 2026

Preflight Checklist

  • [ ] 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?

When I want to start any session I got the issue. On Claude Desktop
It happened on all the models

What Should Happen?

The session should start ...

Error Messages/Logs

API Error (claude-opus-4-7[1m]): 400 The provided model identifier is invalid.. Try --model to switch to us.anthropic.claude-opus-4-1-20250805-v1:0.

Steps to Reproduce

Try to start or follow up a conversation, the issue will happen

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude 1.8555.0 (8245b7) 2026-05-21T05:49:11.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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