Claude
Anthropic’s model family: the reference for code, autonomous agents and work on long documents. It is used with the native /v1/messages API, and also works with the OpenAI format.
What to know
- 1-million-token context on almost the whole range (200,000 for
claude-haiku-4-5): you can feed a code repository or several contracts at once. - Vision and tools: multimodal models read images and call tools (see Vision and Tool use).
- Prompt caching: repeated content is billed at a fraction of the input price (see Prompt caching). The Cache read column below gives each model’s exact rate.
-thinkingvariants: some models exist in an “extended reasoning” version (for exampleclaude-sonnet-5-thinking). They appear in the list returned by/v1/models.- Compatible tools: Claude Code, Cursor, Cline, Roo Code and every Anthropic SDK.
The models
| Model | Tier | Context | Input / 1M | Output / 1M | Cache read / 1M | Vision / tools |
|---|---|---|---|---|---|---|
Fable 5claude-fable-5 | Frontier | 1M | $10.00 | $50.00 | $1.00 | Yes / Yes |
Fable 5.1claude-fable-5-1 | Frontier | 1M | $10.00 | $50.00 | $0.25 | Yes / Yes |
Claude Opus 4.7claude-opus-4-7 | Frontier | 1M | $5.00 | $25.00 | $0.50 | Yes / Yes |
Claude Opus 4.6claude-opus-4-6 | Frontier | 1M | $5.00 | $25.00 | $0.50 | Yes / Yes |
Claude Opus 4.8claude-opus-4-8 | Flagship | 1M | $5.00 | $25.00 | $0.50 | Yes / Yes |
Claude Opus 5claude-opus-5 | Flagship | 1M | $5.00 | $25.00 | $0.50 | Yes / Yes |
Claude Opus 5.5claude-opus-5-5 | Flagship | 1M | $4.00 | $20.00 | $0.20 | Yes / Yes |
Claude Sonnet 4.6claude-sonnet-4-6 | Balanced | 1M | $3.00 | $15.00 | $0.30 | Yes / Yes |
Claude Sonnet 5claude-sonnet-5 | Balanced | 1M | $2.00 | $10.00 | $0.20 | Yes / Yes |
Claude Sonnet 5.5claude-sonnet-5-5 | Balanced | 1M | $2.00 | $10.00 | $0.10 | Yes / Yes |
Claude Haiku 5.5claude-haiku-5-5 | Fast | 1M | $0.10 | $0.50 | $0.01 | Yes / Yes |
Claude Haiku 4.5claude-haiku-4-5 | Fast | 200K | $1.00 | $5.00 | $0.10 | n/a / n/a |
Which one to pick
- For everyday coding:
claude-sonnet-5-5, the Balanced tier: the recommended starting point. - For hard tasks (architecture, large-scale refactoring, complex debugging):
claude-opus-5-5. - For the most demanding analyses: the Frontier tier models (
claude-fable-5-1), which cost more. - To cut the bill on simple tasks: switch to another low-cost family (see Choosing a model).
Example call
bash
curl https://api-ai.app/v1/messages \
-H "x-api-key: $API_AI_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Explain prompt caching in three sentences."}]
}'The same model also answers in the OpenAI format on /v1/chat/completions (see Chat completions).
Going further
- POST /v1/messages: the full request format
- Streaming to display the response as it arrives
- Reducing your costs
Last updated: November 21, 2026Found a bug? admin@minedom-france.fr