Skip to content

Bedrock: Mantle models template api on ${AWS_REGION}, but aren't served in every region #4818

Closed

Description

@nabilfreeman

The Mantle-routed Bedrock models build their endpoint from the consumer's region:

api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"

Mantle's coverage varies by region though, so with a non-US AWS_REGION you get a 404 with no hint that region is the problem:

POST bedrock-mantle.eu-west-1.api.aws/openai/v1/responses {"model":"openai.gpt-5.6-terra"}
  → 404 The model 'openai.gpt-5.6-terra' does not exist
POST bedrock-mantle.us-east-1.api.aws/openai/v1/responses  (same body)
  → 200

Same 200/404 split for gpt-5.6-luna, gpt-5.6-sol, openai.gpt-5.4, openai.gpt-5.5 and xai.grok-4.3. us-east-2 and us-west-2 serve them too.

openai.gpt-oss-120b works in both regions, so this looks like per-model coverage rather than a provider-wide thing — its ${AWS_REGION} should stay as-is.

Two suggestions below, a la carte — they're independent of each other, so either one helps on its own and they can be merged separately.

1. Pin the affected Mantle models to us-east-1

-api = "https://bedrock-mantle.${AWS_REGION}.api.aws/openai/v1"
+api = "https://bedrock-mantle.us-east-1.api.aws/openai/v1"

That unlocks these models for people in every AWS region, and the only cost is a bit of routing loss for the few who are currently in us-east-2/us-west-2. us-east-1 serves every Mantle model, so it's the most compatible choice. It also lines up with the pricing already in those files (the comments say US East in-region).

2. Add global.openai.gpt-5.6-* entries

So the catalog would list both "GPT 5.6 Sol" and "GPT 5.6 Sol (Global)", same as the global.anthropic.* variants do today. AWS added these global endpoints on 13th August and I've confirmed they work — global.openai.gpt-5.6-terra returns 200 from eu-west-1. Small quirk: the global endpoints go through Bedrock core, not Mantle, so the files would just be a base_model + (Global) name with no [provider] block, letting them fall through to Converse.

Related: #607, #37

Activity

  1. nabilfreeman commented on Aug 16, 2026

    @nabilfreeman
    ContributorAuthor

    I've opened 2 PRs, one per suggestion, so they can be taken independently:

    They're complementary rather than either/or, if that's useful for triage: the global entries are new IDs, so on their own they don't stop the bare openai.gpt-5.6-* entries 404ing outside the US.

    Also corrected the description above — gpt-5.5 was 401ing for me on a pending marketplace subscription. That's now active and it shows the same 200/404 split as the rest.

  2. nabilfreeman commented on Aug 16, 2026

    @nabilfreeman
    ContributorAuthor

    Follow up comment from me, I think there are real tensions here, trying to make something as massive and sprawling as AWS conform to a nice clean model.dev spec is really hard.

    I think the the 2nd PR is really safe (adding the global endpoints), the first one is contentious since it narrows to a single region, but it's a big improvement for users outside these AWS regions.

    Anyway that's why I split them, I have a feeling you might want to choose one and not the other

  3. nabilfreeman commented on Oct 1, 2026

    @nabilfreeman
    ContributorAuthor

    Retested on 1 October 2026 with OpenCode 1.18.34, which pins @ai-sdk/amazon-bedrock 4.0.166, using the existing eu-west-1 provider configuration and no local model endpoint overrides.

    All three catalog routes now work end to end:

    • amazon-bedrock/global.openai.gpt-5.6-luna
    • amazon-bedrock/global.openai.gpt-5.6-sol
    • amazon-bedrock/global.openai.gpt-5.6-terra

    Each completed a streamed request with --variant high, a bash tool call, the response after the tool result, and a separate follow-up conversation turn. All returned the expected answers without the previous stream-validation error.

    The practical OpenCode blocker was resolved indirectly by two upstream changes: the global profiles added in #4827 (merged), and the AI SDK fix for Converse reasoningContent.redactedContent, including replay on subsequent turns: vercel/ai#19139. OpenCode now includes an SDK version containing that fix; see anomalyco/opencode#43686.

    I have removed my local US Mantle endpoint overrides and will use the global.openai.gpt-5.6-* entries. This resolves my original need to access these models from eu-west-1 without endpoint patches. It does not establish that Mantle's regional availability or the unprefixed entries have changed; the global routes avoid that limitation.

    Closing this issue because the global-profile solution now works for the reported use case. The endpoint-pinning alternative in #4819 is no longer needed for my setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions