Nano GPT logo
NanoGPT

anthropic

Claude Sonnet API Pricing (October 2026)

anthropic/claude-sonnet-5

Compare Claude Sonnet API pricing, explore each model’s capabilities, and start building with one NanoGPT API key.

VisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Cache read / 1M tokens
$0.20
Cache creation / 1M tokens
$2.50
1-hour cache creation / 1M tokens
$4.00
Average output tokens
403
Context
1,000,000

Get 3% extra credit when you top up with crypto. Top up with crypto

Build with Claude Sonnet 5

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

Sonnet model pricing per 1M tokens

USD per 1 million tokens · NanoGPT standard catalogue rates
Model / API IDInputCache readCache creationOutputBatch inputBatch outputContextAverage output tokensEstimated request cost
Claude Sonnet 4.5claude-sonnet-4-5-20250929$3.00$0.30$3.751-hour: $6.00$15.00$1.50$7.50200,000219$0.00629
Claude Sonnet 4.5 Thinkingclaude-sonnet-4-5-20250929-thinking$3.00$0.30$3.751-hour: $6.00$15.00$1.50$7.50200,0001,130$0.01995
Claude Sonnet 4.6anthropic/claude-sonnet-4.6$3.00$0.30$3.751-hour: $6.00$15.00$1.50$7.501,000,000671$0.01307
Claude Sonnet 4.6 Thinkinganthropic/claude-sonnet-4.6:thinking$3.00$0.30$3.751-hour: $6.00$15.00$1.50$7.501,000,0001,227$0.02141
Claude Sonnet 5anthropic/claude-sonnet-5$2.00$0.20$2.501-hour: $4.00$10.00$1.00$5.001,000,000403$0.00603
Claude Sonnet 5 Thinkinganthropic/claude-sonnet-5:thinking$2.00$0.20$2.501-hour: $4.00$10.00$1.00$5.001,000,0001,148$0.01348
Claude Sonnet 5.5anthropic/claude-sonnet-5.5$2.00$0.10$2.501-hour: $4.00$10.00$1.00$5.001,000,0001,058$0.01258
Claude Sonnet 5.5 Thinkinganthropic/claude-sonnet-5.5:thinking$2.00$0.10$2.501-hour: $4.00$10.00$1.00$5.001,000,0003,258$0.03458
Claude Sonnet Latestanthropic/claude-sonnet-latest$2.00$0.10$2.501-hour: $4.00$10.00$1.00$5.001,000,0001,371$0.01571

Base text-token rates. Batch columns show supported standard Batch API rates; long-context tiers and additional charges can apply. Long-context pricing, tool charges, service tiers, and provider selection can change the total. Cache creation is charged when writing tokens to the cache; cache read applies when reusing them. The default cache duration applies unless labeled otherwise. Unsupported cache rates are marked unavailable.

Estimated request cost combines your input-token count with the model’s average output, rounded to whole tokens, at current standard rates. It assumes uncached input and excludes tool charges. This is an estimate for that workload, not a measured average total bill.

Compare model intelligence and coding benchmarks

Compare models using published benchmark scores. Higher scores are better. Each chart uses one benchmark and source version; these are current comparisons, not scores recorded at launch. Ranking pairs each model’s standard and thinking evaluations on one row, Value plots score against the output token rate, and Generations tracks each family release by release. Thinking evaluations are labeled with their published settings, and evaluation effort can affect scores.

Artificial Analysis Intelligence Index

Source version not published · 23 models scored

Using cached Artificial Analysis scores. Recent models and evaluations may be missing.

Which model scores highest, and what does thinking add?

Artificial Analysis Intelligence Index, highest score firstEach row is one model. The hollow marker is its standard evaluation, the filled marker its thinking evaluation, and the bar between them is what thinking adds.0102030405060Index score$ / 1M outputClaude Opus 5.5Claude Opus 5.5: 57.6 · thinking57.6thinking only$20Claude Sonnet 5.5Claude Sonnet 5.5 Thinking: 56 · thinking56thinking only$10Claude Fable 5.1Claude Fable 5.1: 53.4 · thinking53.4thinking only$50Claude Haiku 5.5Claude Haiku 5.5: 43.4 · thinking43.4thinking only$0.5
StandardThinkingWhat thinking adds
Hover, tap, or focus a marker for its evaluation settings and rate.

Source: Artificial Analysis. Missing scores mean no verified matching result is available here for this version; they do not mean the model was never evaluated. Token rates are NanoGPT standard catalogue rates.

View all benchmark scores and evaluation details
Artificial Analysis Intelligence Index (unversioned) by model · index points
ModelScoreOutput / 1M
Claude Fable 5
49.6
$50
Claude Fable 5.1
53.4
$50
Claude Haiku 4.5
15.4
$5
Claude Haiku 4.5 Thinking
16.9
$5
Claude Haiku 5.5
43.4
$0.5
Claude 4 Opus
16.6
$75
Claude 4 Opus Thinking
Score unavailable
$75
Claude 4.1 Opus
18.6
$75
Claude 4.1 Opus Thinking
Score unavailable
$75
Claude 4.5 Opus
23.7
$25
Claude 4.5 Opus Thinking
29.1
$25
Claude 4.6 Opus
26.4
$25
Claude 4.6 Opus Thinking
31.9
$25
Claude 4.6 Opus Thinking Low
Score unavailable
$25
Claude 4.6 Opus Thinking Max
Score unavailable
$25
Claude 4.6 Opus Thinking Medium
Score unavailable
$25
Claude 4.7 Opus
30.9
$25
Claude 4.7 Opus Thinking
40.7
$25
Claude Opus 4.8
Score unavailable
$25
Claude Opus 4.8 Thinking
41.8
$25
Claude Opus 5
50.8
$25
Claude Opus 5.5
57.6
$20
Claude Sonnet 4.5
19.3
$15
Claude Sonnet 4.5 Thinking
20.7
$15
Claude Sonnet 4.6
24.7
$15
Claude Sonnet 4.6 Thinking
30.1
$15
Claude Sonnet 5
23.2
$10
Claude Sonnet 5 Thinking
38.2
$10
Claude Sonnet 5.5
Score unavailable
$10
Claude Sonnet 5.5 Thinking
56
$10
Artificial Analysis Coding Index (unversioned) by model · index points
ModelScoreOutput / 1M
Claude Fable 5
76.5
$50
Claude Fable 5.1
81.6
$50
Claude Haiku 4.5
Score unavailable
$5
Claude Haiku 4.5 Thinking
43.9
$5
Claude Haiku 5.5
Score unavailable
$0.5
Claude 4 Opus
Score unavailable
$75
Claude 4 Opus Thinking
Score unavailable
$75
Claude 4.1 Opus
Score unavailable
$75
Claude 4.1 Opus Thinking
Score unavailable
$75
Claude 4.5 Opus
Score unavailable
$25
Claude 4.5 Opus Thinking
Score unavailable
$25
Claude 4.6 Opus
Score unavailable
$25
Claude 4.6 Opus Thinking
Score unavailable
$25
Claude 4.6 Opus Thinking Low
Score unavailable
$25
Claude 4.6 Opus Thinking Max
Score unavailable
$25
Claude 4.6 Opus Thinking Medium
Score unavailable
$25
Claude 4.7 Opus
Score unavailable
$25
Claude 4.7 Opus Thinking
73.6
$25
Claude Opus 4.8
Score unavailable
$25
Claude Opus 4.8 Thinking
74.3
$25
Claude Opus 5
78
$25
Claude Opus 5.5
Score unavailable
$20
Claude Sonnet 4.5
Score unavailable
$15
Claude Sonnet 4.5 Thinking
52.1
$15
Claude Sonnet 4.6
Score unavailable
$15
Claude Sonnet 4.6 Thinking
63
$15
Claude Sonnet 5
66.4
$10
Claude Sonnet 5 Thinking
71.5
$10
Claude Sonnet 5.5
Score unavailable
$10
Claude Sonnet 5.5 Thinking
Score unavailable
$10

anthropic

Claude Sonnet 5

anthropic/claude-sonnet-5

Claude Sonnet 5 supports coding, agentic workflows, long-context reasoning, computer use, and practical knowledge work.

VisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Cache read / 1M tokens
$0.20
Cache creation / 1M tokens
$2.50
1-hour cache creation / 1M tokens
$4.00
Average output tokens
403
Context
1,000,000

Build with Claude Sonnet 5

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 5 Thinking

anthropic/claude-sonnet-5:thinking

Claude Sonnet 5 with adaptive thinking enabled for complex coding, planning, and agentic work.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Cache read / 1M tokens
$0.20
Cache creation / 1M tokens
$2.50
1-hour cache creation / 1M tokens
$4.00
Average output tokens
1,148
Context
1,000,000

Build with Claude Sonnet 5 Thinking

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-5:thinking",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 4.6

anthropic/claude-sonnet-4.6

Claude Sonnet 4.6 is Anthropic's most capable Sonnet yet — a full upgrade across coding, computer use, long-context reasoning, agent planning, and design. Supports up to a 1M-token context window at Sonnet pricing.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$3.00
Output / 1M tokens
$15.00
Cache read / 1M tokens
$0.30
Cache creation / 1M tokens
$3.75
1-hour cache creation / 1M tokens
$6.00
Average output tokens
671
Context
1,000,000

Build with Claude Sonnet 4.6

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-4.6",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 4.6 Thinking

anthropic/claude-sonnet-4.6:thinking

Claude Sonnet 4.6 with extended thinking enabled for tougher coding, planning, and multi‑tool tasks. Ideal for long‑horizon agent workflows and complex problem solving.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$3.00
Output / 1M tokens
$15.00
Cache read / 1M tokens
$0.30
Cache creation / 1M tokens
$3.75
1-hour cache creation / 1M tokens
$6.00
Average output tokens
1,227
Context
1,000,000

Build with Claude Sonnet 4.6 Thinking

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-4.6:thinking",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 4.5

claude-sonnet-4-5-20250929

Frontier‑level coding and agentic performance. Claude Sonnet 4.5 leads on real‑world coding tasks and shows substantial gains in computer use, reasoning, and math. Designed for long‑horizon, multi‑step work across IDE + terminal workflows, large codebases, and complex agents — a drop‑in upgrade over previous Sonnet versions.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$3.00
Output / 1M tokens
$15.00
Cache read / 1M tokens
$0.30
Cache creation / 1M tokens
$3.75
1-hour cache creation / 1M tokens
$6.00
Average output tokens
219
Context
200,000

Build with Claude Sonnet 4.5

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-5-20250929",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 4.5 Thinking

claude-sonnet-4-5-20250929-thinking

Adds extended, step‑by‑step reasoning for tougher coding, planning, and multi‑tool tasks. Ideal for long‑horizon agent workflows, complex problem solving, and scenarios that benefit from explicit thinking traces.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$3.00
Output / 1M tokens
$15.00
Cache read / 1M tokens
$0.30
Cache creation / 1M tokens
$3.75
1-hour cache creation / 1M tokens
$6.00
Average output tokens
1,130
Context
200,000

Build with Claude Sonnet 4.5 Thinking

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-4-5-20250929-thinking",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet Latest

anthropic/claude-sonnet-latest

Compatibility alias that routes to the newest version of Claude Sonnet. Currently routes to Claude Sonnet 5.5 Thinking.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Cache read / 1M tokens
$0.10
Cache creation / 1M tokens
$2.50
1-hour cache creation / 1M tokens
$4.00
Average output tokens
1,371
Context
1,000,000

Build with Claude Sonnet Latest

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-latest",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 5.5

anthropic/claude-sonnet-5.5

Claude Sonnet 5.5 handles everyday coding, tool-based workflows, visual analysis, and polished writing with a 1M-token context window. This version skips up-front thinking and can reason between tool calls for faster responses; use Thinking for deeper planning and complex problems.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Cache read / 1M tokens
$0.10
Cache creation / 1M tokens
$2.50
1-hour cache creation / 1M tokens
$4.00
Average output tokens
1,058
Context
1,000,000

Build with Claude Sonnet 5.5

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-5.5",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

anthropic

Claude Sonnet 5.5 Thinking

anthropic/claude-sonnet-5.5:thinking

Claude Sonnet 5.5 with adaptive thinking for complex coding, multi-step tool use, visual analysis, and detailed planning. Supports a 1M-token context window and five reasoning effort levels, with stronger thinking available when a task needs it.

ReasoningVisionNative PDF inputTool CallingStructured Output
Input / 1M tokens
$2.00
Output / 1M tokens
$10.00
Cache read / 1M tokens
$0.10
Cache creation / 1M tokens
$2.50
1-hour cache creation / 1M tokens
$4.00
Average output tokens
3,258
Context
1,000,000

Build with Claude Sonnet 5.5 Thinking

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-5.5:thinking",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

Set NANOGPT_API_KEY in your environment. Keep your API key on the server.

Estimate a request’s token cost

$0.03

One request, standard uncached text tokens. Excludes tools and other charges. Known long-context rates apply automatically; invalid workloads or missing rates cannot be estimated.

Related questions

  • Can you use Claude Sonnet for free?

    Yes, you can use it free on the web and mobile apps with no credit card. The limit is roughly 15 to 40 messages every 5 hours, and paid users get served first when traffic spikes.

  • How to get Claude Pro for a less price?

    The cheapest ways to get and use Claude depend on whether you need the standard web chat interface, developer API access, or tool integrations like Claude Code.

  • What Claude model is best for Roleplay?

    It's Claude Opus, either 4.8 or 5. It scores 97% on our Roleplay benchmark, the highest of any model we track. Sonnet is the faster storyteller, and Fable handles long multi-day campaigns.

Browse all FAQs →