Skip to content

[BUG][bedrock] claude-opus-4-8[1m] from /model picker writes invalid model ID → 400 "The provided model identifier is invalid" #68005

Description

@MSAdministrator

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using Claude Code against AWS Bedrock, selecting Claude Opus 4.8 [1m] via the /model picker or setting "model": "claude-opus-4-8[1m]" in settings.json causes every request to fail with:

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

The /model command lists claude-opus-4-8[1m] as a valid option, but the identifier it persists is not Bedrock-qualified. Bedrock requires the us.anthropic. prefix (e.g. us.anthropic.claude-opus-4-8-v1[1m]).

Additionally, the opus[1m] shorthand does not resolve to the latest Opus version — it stays pinned to an older release (currently resolves to Opus 4.6).

What Should Happen?

  1. /model should persist the Bedrock-qualified model ID when the active provider is Bedrock.
  2. The opus[1m] shorthand should float to the latest available Opus version on the configured provider.

Workaround

Use the fully qualified Bedrock inference profile ID directly:

/model us.anthropic.claude-opus-4-8-v1[1m]

Prior Art

This is a recurring regression — the same bug was filed and fixed for Opus 4.6 (#23499, closed) and Opus 4.7 (#61495, open/stale). Each new model release re-introduces it because the picker's ID resolution doesn't account for the Bedrock prefix.

Error Messages/Logs

API Error (claude-opus-4-8[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

  1. Configure Claude Code with AWS Bedrock as the provider
  2. Run /model and select claude-opus-4-8[1m] — OR — set "model": "claude-opus-4-8[1m]" in settings.json
  3. Send any message
  4. Observe 400 error

Claude Model

Claude Opus 4.8 (1M context)

Is this a regression?

Yes, this worked for older model versions after manual fixes (#23499)

Last Working Version

N/A — Opus 4.8 has never worked via the picker on Bedrock

Claude Code Version

2.1.175

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:bedrockIssue relates to AWS Bedrockarea:modelbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOSregressionstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions