Anthropic: Claude Sonnet 4Official docs

Anthropic: Claude Sonnet 4

byAnthropic
Official docs

Claude Sonnet 4 is a reasoning model from Anthropic released on May 22, 2025. It reads text and images and writes text, with a 200K token context window and up to 64K tokens per reply.

Show more

It costs $3 per million input tokens and $15 per million output tokens. Cached input bills at $0.30, 90% less than fresh input.

It supports tool calling and prompt caching.

Modalities
In / out price
$3 / $15 per 1M
Context
200K
Max output
64K
Released
May 22, 2025
Knowledge cutoff
May 2025
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

Claude Sonnet 4 pricing

USD, as listed on Nov 18, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$3 / 1M tokens
Output$15 / 1M tokens
Cached input (read)$0.30 / 1M tokens
Cache write$3.75 / 1M tokens

What Claude Sonnet 4 costs per month

Pick a workload close to yours or type your own volumes.

Claude Sonnet 4 per month
$261
Without caching
$383
Per request
$0.0087

Supported request parameters

What you can set when you call Claude Sonnet 4 through an OpenAI compatible API.

  • Toolstools
  • Reasoningreasoning
  • Temperaturetemperature

Alternatives to Claude Sonnet 4

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • Reads text, images and video. Tool calling, structured output, reasoning. Served by 92 providers.

    by moonshotaiJul 16, 20261.05M context$3/M input tokens$15/M output tokens92 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 54 providers.

    by anthropicFeb 17, 2026$3/M input tokens$15/M output tokens54 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.

    by anthropicSep 29, 2025$3/M input tokens$15/M output tokens27 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 52 providers.

    by openaiJul 9, 20261.05M context$2/M input tokens$12/M output tokens52 providers

  • Reads text, images, audio and video. Tool calling, structured output, reasoning. Served by 5 providers.

    by googleFeb 19, 20261.05M context$2/M input tokens$12/M output tokens5 providers

  • Reads text, images and video. Tool calling, structured output, reasoning. Served by 5 providers.

    by qwenSep 23, 2026$4/M input tokens$12/M output tokens5 providers

More from Anthropic

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 23 providers.

    by anthropicNov 9, 2026$8/M input tokens$40/M output tokens23 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 45 providers.

    by anthropicOct 7, 20261M context$0.10/M input tokens$0.50/M output tokens45 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 54 providers.

    by anthropicSep 28, 20261M context$2/M input tokens$10/M output tokens54 providers

  • Index 57.6

    Reads text, images and files. Tool calling, structured output, reasoning. Served by 56 providers.

    by anthropicSep 22, 20261M context$4/M input tokens$20/M output tokens56 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 48 providers.

    by anthropicSep 1, 20261M context$10/M input tokens$50/M output tokens48 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 48 providers.

    by anthropicJul 24, 2026$5/M input tokens$25/M output tokens48 providers

All Anthropic models

Claude Sonnet 4 questions

How much does the Claude Sonnet 4 API cost?

$3 per million input tokens and $15 per million output tokens, with cached input at $0.30. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of Claude Sonnet 4?

200,000 tokens of input, and it can write up to 64,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Does Claude Sonnet 4 support tool calling?

Yes. It accepts tool definitions, which is what an agent needs to call your APIs.

Is Claude Sonnet 4 open source?

No. Anthropic serves it through an API only, so you cannot download the weights or host it yourself.

When was Claude Sonnet 4 released?

May 22, 2025, with training data up to May 2025.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Nov 18, 2026. The summary is written from these facts.