Claude Sonnet 4
databricks-claude-sonnet-4Released 14 May 2025 (May 2025)Pricing
List prices at Databricks, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $3.00 | $15.00 | |
| Cached input 90% off input | $0.30 | 90% off input | |
| Cache write, 5 minutes | $3.75 |
What it costs a month
At Databricks list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$1,782
- RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$1,332
- Coding agent1,000 requests a day, 40K in / 2K out, cached$2,232
- Overnight batch20,000 requests a day, 4K in / 0.4K out$10,800
Where to run it
8 hosts serve Claude Sonnet 4. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
DatabricksCloud databricks-claude-sonnet-4 | $3.00 / $15.00 | databricks-claude-sonnet-4 | |
| $3.00 / $15.00 | anthropic.claude-sonnet-4-20250514-v1:0 | ||
SnowflakeCloud claude-4-sonnet | $3.00 / $15.00 | claude-4-sonnet | |
ReplicateInference claude-4-sonnet | $3.00 / $15.00 | claude-4-sonnet | |
GMI CloudInference claude-sonnet-4 | $3.00 / $15.00 | claude-sonnet-4 | |
Vercel AI GatewayGateway claude-4-sonnet | $3.00 / $15.00 | claude-4-sonnet | |
DeepInfraInference claude-4-sonnet | $3.30 / $16.50 +10% vs headline | claude-4-sonnet | |
HerokuCloud claude-4-sonnet | - | claude-4-sonnet |
Show 5 more listings: regions, snapshots and variantsHide regional listings
| Amazon Bedrock | |||||||
| eu · 2025-05-14 eu.anthropic.claude-sonnet-4-20250514-v1:0 | $3.00 / $15.00 | eu.anthropic.claude-sonnet-4-20250514-v1:0 | |||||
| us · 2025-05-14 us.anthropic.claude-sonnet-4-20250514-v1:0 | $3.00 / $15.00 | us.anthropic.claude-sonnet-4-20250514-v1:0 | |||||
| apac · 2025-05-14 apac.anthropic.claude-sonnet-4-20250514-v1:0 | $3.00 / $15.00 | apac.anthropic.claude-sonnet-4-20250514-v1:0 | |||||
| global · 2025-05-14 global.anthropic.claude-sonnet-4-20250514-v1:0 | $3.00 / $15.00 | global.anthropic.claude-sonnet-4-20250514-v1:0 | |||||
| Vercel AI Gateway | |||||||
| Alias claude-sonnet-4 | $3.00 / $15.00 | claude-sonnet-4 | |||||
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Text
- Features
- Assistant prefillPrompt caching
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Databricks.
Smaller Anthropic models
- 33% less
- 97% less
Other frontier labs
- 20% less
- 33% less
- 50% less
- 33% less
Open-weight picks
- 33% less
- 50% less
- 67% less
- 71% less
Model line
Newer and older versions, at each lab's own price.
- Sep 2026Claude Sonnet 5.5Latest$2.00 / $10.00
- Jun 2026Claude Sonnet 5$2.00 / $10.00
- Feb 2026Claude Sonnet 4.6$3.00 / $15.00
- Sep 2025Claude Sonnet 4.5$3.00 / $15.00
- UndatedClaude Sonnet 4.1$3.00 / $15.00
- May 2025Claude Sonnet 4This page$3.00 / $15.00
- Jun 2024Claude 3.7 Sonnet$3.00 / $15.00
- Jun 2024Claude 3.5 Sonnet$3.00 / $15.00
Call it
Using Databricks's API.
from litellm import completion
response = completion(
model="databricks/databricks-claude-sonnet-4",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Claude Sonnet 4 cost?
On Databricks, Claude Sonnet 4 costs $3.00 per million input tokens and $15.00 per million output tokens. Cached input costs $0.30 per million tokens.
Which APIs offer Claude Sonnet 4?
Claude Sonnet 4 runs on 8 APIs: Databricks, Amazon Bedrock, Snowflake, Replicate, GMI Cloud, Vercel AI Gateway, DeepInfra and Heroku.
What is Claude Sonnet 4's context window?
200K tokens, with up to 64K tokens in one reply.
Is Claude Sonnet 4 being retired?
No retirement date is scheduled for it on any API we track.
Is there a newer version of Claude Sonnet 4?
Yes. Claude Sonnet 5.5 is the newest model in this line, released on 28 Sep 2026.
What are cheaper alternatives to Claude Sonnet 4?
Models that cost less and keep most of what it can do: Claude Sonnet 5.5 on Anthropic (33% less), GPT-5.3 Codex on OpenAI (20% less), Gemini 4 Carbon on Google AI Studio (33% less) and Kimi K3.1 Pro on Databricks (33% less). Savings are on a mix of 3 input tokens to 1 output token.
When was Claude Sonnet 4 released?
Anthropic released it on 14 May 2025.
What is Claude Sonnet 4's API model id?
Use databricks-claude-sonnet-4 with Databricks. Other hosts use their own ids: anthropic.claude-sonnet-4-20250514-v1:0 on Amazon Bedrock, claude-4-sonnet on Snowflake, claude-4-sonnet on Replicate, claude-sonnet-4 on GMI Cloud.
Sources
Raw catalog entry for databricks-claude-sonnet-4 on Databricks
{
"cache_creation_input_token_cost": 0.00000374997,
"cache_read_input_token_cost": 3.0002e-7,
"deprecation_date": "2026-10-09",
"successor_model": "databricks/databricks-claude-sonnet-5",
"input_cost_per_token": 0.00000299999,
"input_dbu_cost_per_token": 0.000042857,
"litellm_provider": "databricks",
"max_input_tokens": 200000,
"max_output_tokens": 64000,
"metadata": {
"notes": "Input/output cost per token is dbu cost * $0.070. Number provided for reference, '*_dbu_cost_per_token' used in actual calculation."
},
"mode": "chat",
"output_cost_per_token": 0.00001500002,
"output_dbu_cost_per_token": 0.000214286,
"prompt_cache_min_tokens": 1024,
"source": "https://www.databricks.com/product/pricing/proprietary-foundation-model-serving",
"supports_assistant_prefill": true,
"supports_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_anthropic_thinking_payload": true,
"supports_tool_choice": true
}