Nano GPT logo
NanoGPT

anthropic

Claude Sonnet API Pricing (November 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
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://api.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,000UnavailableUnavailable
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,000UnavailableUnavailable
Claude Sonnet 4.6anthropic/claude-sonnet-4.6$3.00$0.30$3.751-hour: $6.00$15.00$1.50$7.501,000,000UnavailableUnavailable
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,000UnavailableUnavailable
Claude Sonnet 5anthropic/claude-sonnet-5$2.00$0.20$2.501-hour: $4.00$10.00$1.00$5.001,000,000UnavailableUnavailable
Claude Sonnet 5 Thinkinganthropic/claude-sonnet-5:thinking$2.00$0.20$2.501-hour: $4.00$10.00$1.00$5.001,000,000UnavailableUnavailable
Claude Sonnet 5.5anthropic/claude-sonnet-5.5$2.00$0.10$2.501-hour: $4.00$10.00$1.00$5.001,000,000UnavailableUnavailable
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,000UnavailableUnavailable
Claude Sonnet Latestanthropic/claude-sonnet-latest$2.00$0.10$2.501-hour: $4.00$10.00$1.00$5.001,000,000UnavailableUnavailable

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.

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

Build with Claude Sonnet 5

curl https://api.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
Context
1,000,000

Build with Claude Sonnet 5 Thinking

curl https://api.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
Context
1,000,000

Build with Claude Sonnet 4.6

curl https://api.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
Context
1,000,000

Build with Claude Sonnet 4.6 Thinking

curl https://api.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
Context
200,000

Build with Claude Sonnet 4.5

curl https://api.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
Context
200,000

Build with Claude Sonnet 4.5 Thinking

curl https://api.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
Context
1,000,000

Build with Claude Sonnet Latest

curl https://api.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
Context
1,000,000

Build with Claude Sonnet 5.5

curl https://api.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
Context
1,000,000

Build with Claude Sonnet 5.5 Thinking

curl https://api.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 →