CLAUDE LABJP
MODEL — Claude Fable 5 reached general availability on June 9 with a 1M-token context, always-on adaptive thinking, and 128K outputPLATFORM — The Developer Platform adds code execution, an MCP connector, a Files API, and prompt caching up to one hourMCP — Admins can provision MCP connectors org-wide via Okta, giving users zero-touch access on first loginSANDBOX — Claude Managed Agents now run in your own sandbox and connect to private MCP serversCODING — Opus 4.8 scores 72.5% on SWE-bench and 43.2% on Terminal-bench, excelling at long-running workLINEUP — Opus 4.8, Sonnet 4.6, and Haiku 4.5 lead the lineup; pick the right one per taskMODEL — Claude Fable 5 reached general availability on June 9 with a 1M-token context, always-on adaptive thinking, and 128K outputPLATFORM — The Developer Platform adds code execution, an MCP connector, a Files API, and prompt caching up to one hourMCP — Admins can provision MCP connectors org-wide via Okta, giving users zero-touch access on first loginSANDBOX — Claude Managed Agents now run in your own sandbox and connect to private MCP serversCODING — Opus 4.8 scores 72.5% on SWE-bench and 43.2% on Terminal-bench, excelling at long-running workLINEUP — Opus 4.8, Sonnet 4.6, and Haiku 4.5 lead the lineup; pick the right one per task
Articles/API & SDK
API & SDK/2026-06-23Advanced

When the Same Model Has a Different Name Everywhere — Designing a Cross-Provider Model Identity Resolver for Claude

Now that Fable 5 is available on the API, Bedrock, and Vertex at once, the same model carries a different identifier on each. Here is how to untangle hardcoded model strings with a small resolver that maps logical names to physical IDs, carries capability flags, and verifies identifiers at startup.

Claude API84Amazon BedrockVertex AI2Model IdentifierMulti-ProviderConfiguration DesignProduction20

Premium Article

The day Fable 5 became generally available, I tried to wire it into my unattended automation and ran straight into a quiet wall. I normally call the Claude API directly, but for one job I wanted to lean on Amazon Bedrock for latency and region reasons. The model string sitting in my code simply did not work there.

It was supposed to point at the same "Fable 5," yet the name was completely different depending on where I called it: claude-fable-5 on the API, an inference-profile ARN on Bedrock, a publisher model path on Vertex AI. As an indie developer running everything solo, that gap is more than a minor annoyance. When the model string is scribbled across the codebase, adding a single provider means hand-editing every call site.

This article walks through collapsing those scattered identifiers behind one layer of abstraction — "logical model name → physical identifier" — and operating it safely, capability differences and existence checks included, with implementation code.

Hardcoded model strings quietly stall your migration

Let me first make the cost of hardcoding concrete. In my pipeline, separate modules called Claude for different jobs: article generation, summarization, classification, integrity checks. When I went to try Fable 5 and counted with grep -rn 'claude-' src/ | grep -c model, I found the model: string written inline in 12 places.

Several of those still carried old Sonnet-era identifiers, and there was no way to tell from the code which were live and which were lingering out of inertia. Before even talking about switching providers, I had lost the ability to answer a basic question: which model am I calling, where, and how many times?

The root reason hardcoding stops working is that a model string compresses three separate concerns into one token: which generation/capability tier the model is (logical intent), which provider and identifier it lives at (physical location), and when it was pinned (version stability). When those three aren't separated, changing one of them forces you to rewrite the whole string.

Introduce one layer of logical model names

The starting point is simple: let the code reference only a "logical model name," and confine the translation to a physical identifier to a single place. Name the logical model by capability or role. Names like reasoning-default, fast-cheap, or long-output let the calling code express what it wants to do, so the call site reads in terms of intent rather than vendor strings.

The physical identifier is determined by the pair of logical name and provider. Keep that mapping as a single table.

Logical nameProviderPhysical identifier (example)
reasoning-defaultanthropicclaude-fable-5
reasoning-defaultbedrock(inference-profile ARN)
reasoning-defaultvertex(publisher model path)
fast-cheapanthropicclaude-haiku-4-5-20251001

Not writing the literal identifiers into the table is deliberate. ARNs and model paths get injected as environment variables or secrets; the table holds only a "key." That keeps the identifiers off the codebase, so swapping a region or project is a configuration change rather than a code change.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A small resolver that maps a logical model name to the right physical identifier per provider, plus the migration steps to collapse a dozen scattered model strings into one place
A capability-flag design that bundles per-provider differences (1-hour prompt cache, 128K output, extended thinking) with the identifier so features degrade gracefully instead of breaking silently
A low-cost startup preflight that confirms the resolved identifier actually exists on that provider, and three operational pitfalls I hit running it
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

API & SDK2026-06-20
Putting Cloudflare AI Gateway in Front of Claude Made the Numbers I Needed Disappear — Field Notes on Instrumentation
After putting Cloudflare AI Gateway in front of Claude API, here is where I actually got stung — cost attribution, semantic-cache false hits, fallback quietly lowering quality, and budgets that don't really stop anything — with the code I used to fix each.
API & SDK2026-06-15
Centralizing the anthropic-beta Header So a Retired Beta Won't Kill Your Batch
Scattered anthropic-beta headers turn a beta retirement or GA graduation into a 400 that takes down an entire batch. A small capability registry, a startup preflight, and tiered fallback keep your pipeline running across feature generations.
API & SDK2026-05-31
Isolating Poison Messages in a Claude Async Pipeline: A Dead-Letter Queue Implementation Note
How one broken input can stall an entire batch — and how to isolate these 'poison messages' with a Cloudflare Queues dead-letter queue. Covers classifying Claude API failures and safe redrive, all from production experience.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →