Nano GPT logo
NanoGPT

anthropic

Claude Sonnet API Pricing (September 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
1,151
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 creationOutputContextAverage output tokensEstimated query cost
Claude 4 Sonnetclaude-sonnet-4-20250514$3.00$0.30$3.751-hour: $6.00$15.00200,000458$0.00987
Claude 4 Sonnet Thinkingclaude-sonnet-4-thinking$3.00$0.30$3.751-hour: $6.00$15.001,000,000UnavailableUnavailable
Claude Sonnet 4.5claude-sonnet-4-5-20250929$3.00$0.30$3.751-hour: $6.00$15.001,000,000585$0.01178
Claude Sonnet 4.5 Thinkingclaude-sonnet-4-5-20250929-thinking$3.00$0.30$3.751-hour: $6.00$15.001,000,000954$0.01731
Claude Sonnet 4.6anthropic/claude-sonnet-4.6$3.00$0.30$3.751-hour: $6.00$15.001,000,000599$0.01199
Claude Sonnet 4.6 Thinkinganthropic/claude-sonnet-4.6:thinking$3.00$0.30$3.751-hour: $6.00$15.001,000,0001,760$0.0294
Claude Sonnet 5anthropic/claude-sonnet-5$2.00$0.20$2.501-hour: $4.00$10.001,000,0001,151$0.01351
Claude Sonnet 5 Thinkinganthropic/claude-sonnet-5:thinking$2.00$0.20$2.501-hour: $4.00$10.001,000,0001,359$0.01559
Claude Sonnet Latestanthropic/claude-sonnet-latest$2.00$0.20$2.501-hour: $4.00$10.001,000,0002,402$0.02602

Base text-token rates. 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 query 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.

anthropic

Claude Sonnet 5

anthropic/claude-sonnet-5

Anthropic's newest Sonnet model, built for stronger 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
1,151
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,359
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
599
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,760
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
585
Context
1,000,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
954
Context
1,000,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 4 Sonnet

claude-sonnet-4-20250514

Claude 4 Sonnet by Anthropic. A new generation model with improved capabilities, especially on programming and development. NOTE: Inputs > 200k tokens are charged at 2x input, 1.5x output rate.

VisionNative 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
458
Context
200,000

Build with Claude 4 Sonnet

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-20250514",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'

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

anthropic

Claude 4 Sonnet Thinking

claude-sonnet-4-thinking

Anthropic's Claude 4 Sonnet with the ability to show its thinking process step by step.

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
Context
1,000,000

Build with Claude 4 Sonnet 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-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 Thinking.

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
2,402
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.

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.