Anthropic Claude · LLM API pricing
claude-4-sonnet API pricing: cheapest provider
2 providers sell claude-4-sonnet. Replicate is cheapest; the most expensive charges 1.1× as much for the same model.
- Cheapest$6.00per 1M · Replicate
- Input · output$3.00 / $15.00per 1M tokens
- Price gap1.1×across 2 providers
- Context200Kmax tokens
Standard list prices in USD from each provider's pricing page · last price change Sep 28, 2026 · How we collect and rank prices
Ranked for your volume
claude-4-sonnet monthly cost by provider
Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.
More requirements: caching, context, features, provider
| Provider | Estimated / month | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
1 ReplicateInference provider - lowest for your volumePricing page | $60.00 | $3.00 | $15.00 | Not listed |
2 DeepInfraInference providerPricing page | $66.00 | $3.30 | $16.50 | 200,000 |
Order depends on listed price for your volume only. No provider pays for its position.
Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.
Price history
The cheapest price has not changed since tracking started on Sep 28, 2026: $6.00 per 1M tokens at Replicate. All price changes
Switch to the cheapest OpenAI-compatible provider
Already using the OpenAI SDK? Change the base URL, key and model name:
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.deepinfra.com/v1/openai",
api_key=os.environ["DEEPINFRA_API_KEY"],
)
response = client.chat.completions.create(
model="anthropic/claude-4-sonnet",
messages=[{"role": "user", "content": "Hello"}],
)Compare claude-4-sonnet with another model
Or pick any model
Keep comparing
More Anthropic Claude models
Claude Fable 5, Claude Haiku 4.5, Claude Opus 4.7, Claude Opus 4.8, Claude Opus 5, Claude Sonnet 4.6, Claude Sonnet 5, Claude Fable 5.1
All Anthropic Claude API prices - All LLM API prices - Watch claude-4-sonnet prices (RSS) - Methodology