• Anthropic
  • Text

Claude Sonnet 5 API: pricing, capabilities and setup

pay as you go · no subscription · key right after sign-up

Model ID
Input
$0.60264 / 1M
Output
$3.0132 / 1M
Get a key No subscription · pay as you go

How much Claude Sonnet 5 costs

  • Input
    $0.60264
    per 1M tokens
  • Output
    $3.0132
    per 1M tokens
  • Cache read
    $0.06026
    per 1M tokens
  • Cache write
    $0.7533
    per 1M tokens

Cost calculator

10 M tokens

75%

The rest is output

With llmbox
$12

What a typical task costs

TaskTokens (input / output)With llmbox
Short chat2 000 / 500$0.00271
Code review20 000 / 2 000$0.01808
Document summary40 000 / 2 000$0.03013
Agent session600 000 / 30 000$0.45198

Setup in three steps

  1. 01
    Get a key

    Sign up and create an API key in the dashboard.

    Get a key →
  2. 02
    Set the base URL

    In any OpenAI-compatible client, point the API address to:

  3. 03
    Pass the model id

    Put this identifier in the model field:

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://llmbox.cc/v1",
    api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
    model="anthropic/claude-sonnet-5",
    messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)

Claude Sonnet 5 vs neighbours

ModelInput · 1MOutput · 1M
Claude Sonnet 5$0.60264$3.0132
Claude Haiku 5.5 $0.03224$0.16119
Claude Sonnet 5.5 $0.522$2.61
Claude Opus 5.5 $0.90$4.50
Claude Opus 5 $1.305$6.525
Gemini 3.1 Pro Google$0.60$2.45
All Anthropic models

Other Anthropic models