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.
  • -thinking variants: some models exist in an “extended reasoning” version (for example claude-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

Table
ModelTierContextInput / 1MOutput / 1MCache read / 1MVision / tools
Fable 5
claude-fable-5
Frontier1M$10.00$50.00$1.00Yes / Yes
Fable 5.1
claude-fable-5-1
Frontier1M$10.00$50.00$0.25Yes / Yes
Claude Opus 4.7
claude-opus-4-7
Frontier1M$5.00$25.00$0.50Yes / Yes
Claude Opus 4.6
claude-opus-4-6
Frontier1M$5.00$25.00$0.50Yes / Yes
Claude Opus 4.8
claude-opus-4-8
Flagship1M$5.00$25.00$0.50Yes / Yes
Claude Opus 5
claude-opus-5
Flagship1M$5.00$25.00$0.50Yes / Yes
Claude Opus 5.5
claude-opus-5-5
Flagship1M$4.00$20.00$0.20Yes / Yes
Claude Sonnet 4.6
claude-sonnet-4-6
Balanced1M$3.00$15.00$0.30Yes / Yes
Claude Sonnet 5
claude-sonnet-5
Balanced1M$2.00$10.00$0.20Yes / Yes
Claude Sonnet 5.5
claude-sonnet-5-5
Balanced1M$2.00$10.00$0.10Yes / Yes
Claude Haiku 5.5
claude-haiku-5-5
Fast1M$0.10$0.50$0.01Yes / Yes
Claude Haiku 4.5
claude-haiku-4-5
Fast200K$1.00$5.00$0.10n/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

Last updated: November 21, 2026Found a bug? admin@minedom-france.fr