Per MillionLLM API prices, tracked daily

claude-4-sonnet API Pricing

claude-4-sonnet on DeepInfra costs $3.30 per 1M input tokens and $16.50 per 1M output tokens (as of ).

claude-4-sonnet API Pricing. Source: the LiteLLM price list (MIT License)
Input$3.30 / 1M tokens
Output$16.50 / 1M tokens
Cached input (read)—
Cache write—
Batch input / output—
Above 200K tokens (input / output)—
Context window200K tokens
Max output200K tokens
Supportstool calling
Deprecation dateNone listed
API model idanthropic/claude-4-sonnet
In our records since

What it costs for common jobs

Estimated from the list price above (no caching or batch discount).

What it costs for common jobs. Source: the LiteLLM price list (MIT License)
JobEstimated cost
1,000 chat replies (2,000 tokens in, 500 out each)$14.85
Summarising 100 long documents (50,000 in, 1,000 out each)$18.15
1 million classification calls (300 in, 5 out each)$1072.50

Try your own numbers in the LLM API cost calculator.

Price history

No price change recorded since .

Similarly priced models

Sort:

Similarly priced models. Source: the LiteLLM price list (MIT License)
ModelProviderInput / 1MOutput / 1MCached input / 1MContext
claude-3-7-sonnet-latestDeepInfra$3.30$16.50$0.33200K
claude-sonnet-4-6DeepInfra$3.00$15.00—1M
Kimi-K3DeepInfra$2.85$14.25$0.281.04858M
gemini-3.1-proDeepInfra$2.00$12.00—1M
claude-sonnet-5DeepInfra$2.00$10.00—1M
Qwen3.7-MaxDeepInfra$2.50$7.50$0.50256K
gemini-2.5-proDeepInfra$1.25$10.00—1M
gemini-3.5-flashDeepInfra$1.50$9.00—1M