# Claude 4 Sonnet API Pricing

As of October 10, 2026, Claude 4 Sonnet costs $3.00 per 1M input tokens and $15.00 per 1M output tokens from Snowflake Cortex, the lowest of 5 providers, with cache reads at $0.30 per 1M tokens. It has a 200,000-token context window and returns up to 16,384 tokens per response.

- Page: https://models.litellm.ai/models/claude-4-sonnet
- Lab: Anthropic
- LiteLLM model name: `snowflake/claude-4-sonnet`
- Context window: 200,000 tokens
- Max output: 16,384 tokens
- Added to LiteLLM: June 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Snowflake Cortex | `snowflake/claude-4-sonnet` | $3.00 | $15.00 | $0.30 | – | – | 200K |
| DeepInfra | `deepinfra/anthropic/claude-4-sonnet` | $3.30 | $16.50 | – | – | – | 200K |
| Heroku | `heroku/claude-4-sonnet` | – | – | – | – | – | 200K |
| Replicate | `replicate/anthropic/claude-4-sonnet` | $3.00 | $15.00 | – | – | – | – |
| Vercel AI Gateway | `vercel_ai_gateway/anthropic/claude-4-sonnet` | $3.00 | $15.00 | $0.30 | – | – | 200K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- Snowflake Cortex: $13.50
- Replicate: $13.50
- Vercel AI Gateway: $13.50
- DeepInfra: $14.85

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Snowflake Cortex: $33.00
- Replicate: $33.00
- Vercel AI Gateway: $33.00
- DeepInfra: $36.30

## Features

Supported: Function calling, Parallel tool calls, Structured output, Image input, Prompt caching.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="snowflake/claude-4-sonnet",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does Claude 4 Sonnet cost?

Claude 4 Sonnet costs $3.00 per 1M input tokens and $15.00 per 1M output tokens from Snowflake Cortex, the lowest of 5 providers, with cache reads at $0.30 per 1M tokens.

### What is the context window of Claude 4 Sonnet?

Claude 4 Sonnet has a 200,000-token context window and returns up to 16,384 tokens per response.

### Which providers offer Claude 4 Sonnet?

Claude 4 Sonnet is available from 5 providers through LiteLLM: Snowflake Cortex, DeepInfra, Heroku, Replicate and Vercel AI Gateway. The lowest price is on Snowflake Cortex.

### How do I call Claude 4 Sonnet with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="snowflake/claude-4-sonnet", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does Claude 4 Sonnet support?

Claude 4 Sonnet supports function calling, parallel tool calls, structured output, image input and prompt caching.

### When did LiteLLM add Claude 4 Sonnet?

Claude 4 Sonnet was added to LiteLLM's model price file in June 2025.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
