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.
More Related questions...