Try Bifrost Enterprise free for 14 days.
Request access

claude-4-sonnet Cost Calculator - DeepInfra

Calculate the cost of using claude-4-sonnet from DeepInfra for your AI applications

Pricing data last updated:

claude-4-sonnet Cost Calculator

Mode: Chat

Max: 200,000 tokens

Max: 200,000 tokens

Cost Breakdown

Input Cost$0.003300
Output Cost$0.016500
Total Cost$0.019800

Pricing Details

Input: $0.00000330 per token
Output: $0.00001650 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

Function Calling

Limits

Max Input Tokens200,000
Max Output Tokens200,000
Max Tokens200,000

About claude-4-sonnet

claude-4-sonnet is a chat model from DeepInfra, one of 67 chat models they offer. It is priced at $3.30 per 1M input tokens and $16.50 per 1M output tokens, ranking 1933 out of 2168 chat models by cost and cheaper than 11% of models in this category. claude-4-sonnet supports function calling. Its 200K-token context window is in the top 38% among chat models.

Pricing Information

Input Cost$3.30 per 1M tokens
Output Cost$16.50 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens200,000
Maximum Output Tokens200,000
Maximum Total Tokens200,000

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 200,000 input tokens. The maximum output length is 200,000 tokens.

Model Capabilities

Function Calling - Execute custom functions and tools

How claude-4-sonnet Pricing Compares

At $3.30 per 1M input tokens and $16.50 per 1M output tokens, claude-4-sonnet ranks 1933 out of 2168 chat models by input cost. It is more expensive compared to the median of $0.55 for chat models, and is cheaper than 11% of models in this category.

claude-4-sonnet is one of 67 DeepInfra chat models, with support for function calling. its 200K-token context window places it in the top 38% of chat models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs claude-4-sonnet
anthropic.claude-3-5-sonnet-20240620-v1:0AWS Bedrock$3.00$15.00-9%
anthropic.claude-3-5-sonnet-20241022-v2:0AWS Bedrock$3.00$15.00-9%
anthropic.claude-3-7-sonnet-20240620-v1:0AWS Bedrock$3.60$18.00+9%

Alternatives to claude-4-sonnet

Similar chat models from other providers

AWS Bedrock
anthropic.claude-3-5-sonnet-20240620-v1:0
$3.00/1M input
-9% vs claude-4-sonnet
AWS Bedrock
anthropic.claude-3-5-sonnet-20241022-v2:0
$3.00/1M input
-9% vs claude-4-sonnet
AWS Bedrock
anthropic.claude-3-7-sonnet-20240620-v1:0
$3.60/1M input
+9% vs claude-4-sonnet
AWS Bedrock
anthropic.claude-3-7-sonnet-20250219-v1:0
$3.00/1M input
-9% vs claude-4-sonnet
AWS Bedrock
anthropic.claude-3-sonnet-20240229-v1:0
$3.00/1M input
-9% vs claude-4-sonnet

Frequently Asked Questions

Is claude-4-sonnet cheaper than anthropic.claude-3-5-sonnet-20240620-v1:0?

No. claude-4-sonnet costs $3.30 per 1M input tokens while anthropic.claude-3-5-sonnet-20240620-v1:0 costs $3.00 per 1M input tokens, making anthropic.claude-3-5-sonnet-20240620-v1:0 9% more affordable for input. However, claude-4-sonnet may offer different capabilities or performance characteristics that justify the price difference.

How does claude-4-sonnet pricing compare to the average chat model?

claude-4-sonnet input pricing is $3.30 per 1M tokens, which is 500% above the median of $0.55 for chat models. It ranks 1933 out of 2168 chat models by input cost, making it cheaper than 11% of models in this category. For output, it costs $16.50 per 1M tokens compared to the median of $1.44.

What makes claude-4-sonnet different from other DeepInfra models?

Among DeepInfra's 67 chat models, claude-4-sonnet ranks 66 by input cost.

What are the best alternatives to claude-4-sonnet?

The most comparable chat models to claude-4-sonnet are: anthropic.claude-3-5-sonnet-20240620-v1:0 from AWS Bedrock ($3.00/1M input tokens); anthropic.claude-3-5-sonnet-20241022-v2:0 from AWS Bedrock ($3.00/1M input tokens); anthropic.claude-3-7-sonnet-20240620-v1:0 from AWS Bedrock ($3.60/1M input tokens); anthropic.claude-3-7-sonnet-20250219-v1:0 from AWS Bedrock ($3.00/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

How do I calculate claude-4-sonnet costs?

claude-4-sonnet is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $3.30 and generating 1M output tokens costs $16.50.