AI / Claude Models Basics Interview Questions
What are the API model IDs for the current Claude models?
When making API calls you must specify the exact model ID string. Model IDs starting with the Claude 4.6 generation use a dateless format that is still a pinned snapshot (not an evergreen pointer). Earlier models used a dated format like claude-haiku-4-5-20251001.
| Model | API ID | Alias |
|---|---|---|
| Claude Fable 5 | claude-fable-5 | claude-fable-5 |
| Claude Opus 4.8 | claude-opus-4-8 | claude-opus-4-8 |
| Claude Sonnet 5 | claude-sonnet-5 | claude-sonnet-5 |
| Claude Haiku 4.5 | claude-haiku-4-5-20251001 | claude-haiku-4-5 |
import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-opus-4-8", # exact API model ID
max_tokens=1024,
messages=[
{"role": "user", "content": "Explain what a context window is."}
]
)
print(message.content[0].text)The Bedrock IDs follow a different pattern (e.g. anthropic.claude-opus-4-83) and should be used when accessing Claude through Amazon Bedrock. Google Cloud IDs match the Claude API IDs but may append a regional variant.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
