Claude 3 Sonnet API Pricing
As of October 10, 2026, Claude 3 Sonnet costs $3.00 per 1M input tokens and $15.00 per 1M output tokens on Google Vertex AI. It has a 200,000-token context window and returns up to 4,096 tokens per response.
- Input
- $3.00 / 1M tokens
- Output
- $15.00 / 1M tokens
- Context window
- 200,000 tokens
- Max output
- 4,096 tokens
- Providers
- 1
- Added to LiteLLM
- March 2024
Claude 3 Sonnet pricing by provider
2 listings across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Google Vertex AI | vertex_ai/claude-3-sonnet | $3.00 | $15.00 | 200K |
| Google Vertex AI | vertex_ai/claude-3-sonnet@20240229 | $3.00 | $15.00 | 200K |
What Claude 3 Sonnet costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Google Vertex AI | $13.50 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Google Vertex AI | $33.00 |
Claude 3 Sonnet features
- Function calling
- Image input
Use Claude 3 Sonnet with LiteLLM
Call Claude 3 Sonnet through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="vertex_ai/claude-3-sonnet",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: claude-3-sonnet
litellm_params:
model: vertex_ai/claude-3-sonnet
vertex_project: os.environ/VERTEX_PROJECT
vertex_location: os.environ/VERTEX_LOCATIONcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "claude-3-sonnet",
"messages": [{"role": "user", "content": "Hello!"}]
}'Claude 3 Sonnet FAQ
How much does Claude 3 Sonnet cost?
Claude 3 Sonnet costs $3.00 per 1M input tokens and $15.00 per 1M output tokens on Google Vertex AI.
What is the context window of Claude 3 Sonnet?
Claude 3 Sonnet has a 200,000-token context window and returns up to 4,096 tokens per response.
Which providers offer Claude 3 Sonnet?
Claude 3 Sonnet is available from Google Vertex AI through LiteLLM, using the model name vertex_ai/claude-3-sonnet.
How do I call Claude 3 Sonnet with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="vertex_ai/claude-3-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 3 Sonnet support?
Claude 3 Sonnet supports function calling and image input.
When did LiteLLM add Claude 3 Sonnet?
Claude 3 Sonnet was added to LiteLLM's model price file in March 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.
LiteLLM docs: Google Vertex AI.
Provider pages: Google Vertex AI.
