---
title: "claude-4-sonnet Cost Calculator - DeepInfra"
description: "Calculate the cost of using claude-4-sonnet from DeepInfra. Input costs $3.30 and output $16.50 per 1M tokens."
url: "https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/claude-4-sonnet"
markdown: "https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/claude-4-sonnet.md"
---

# claude-4-sonnet Cost Calculator - DeepInfra

> Calculate the cost of using claude-4-sonnet from DeepInfra. Input costs $3.30 and output $16.50 per 1M tokens.

## Important Links

- [View MCP Gateway](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/resources/mcp-gateway.md)
- [Features](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/#features)
- [Enterprise](https://www.getmaxim.ai/enterprise)
- [Pricing](https://www.getmaxim.ai/pricing)
- [Docs](https://docs.getbifrost.ai)
- [GitHub](https://github.com/maximhq/bifrost)
- [Book a Demo](https://www.getmaxim.ai/book-a-demo)

## About claude-4-sonnet

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

## Pricing

Published DeepInfra pricing for claude-4-sonnet.

- **$3.30 / 1M tokens Input.**
- **$16.50 / 1M tokens Output.**

## Technical Specifications

- **Chat Mode.**
- **200,000 Max Input Tokens.**
- **200,000 Max Output Tokens.**
- **200,000 Max Tokens.**

## Model Capabilities

claude-4-sonnet supports: Function Calling, Tool Choice.

## How Pricing Compares

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

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

| Model | Provider | Input $/1M | Output $/1M | vs claude-4-sonnet |
| --- | --- | --- | --- | --- |
| anthropic.claude-3-5-sonnet-20240620-v1:0 | AWS Bedrock | $3.00 | $15.00 | -9% |
| anthropic.claude-3-5-sonnet-20241022-v2:0 | AWS Bedrock | $3.00 | $15.00 | -9% |
| anthropic.claude-3-7-sonnet-20240620-v1:0 | AWS Bedrock | $3.60 | $18.00 | +9% |
| anthropic.claude-3-7-sonnet-20250219-v1:0 | AWS Bedrock | $3.00 | $15.00 | -9% |
| anthropic.claude-3-sonnet-20240229-v1:0 | AWS Bedrock | $3.00 | $15.00 | -9% |

## More from DeepInfra

- [claude-3-7-sonnet-latest ($3.30/1M input)](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/claude-3-7-sonnet-latest.md)
- [claude-sonnet-4-6 ($3.00/1M input)](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/claude-sonnet-4-6.md)
- [Kimi-K3 ($2.85/1M input)](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/kimi-k3.md)
- [Kimi-K2-Instruct ($4.00/1M input)](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/kimi-k2-instruct.md)

## Related Resources

- [All DeepInfra pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra.md)

## FAQ

### 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 540% above the median of $0.52 for chat models. It ranks 2917 out of 3254 chat models by input cost, making it cheaper than 10% of models in this category. For output, it costs $16.50 per 1M tokens compared to the median of $1.50.

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

Among DeepInfra's 135 chat models, claude-4-sonnet ranks 129 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.

## Related Resources

- [All DeepInfra pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra.md)
- [LLM cost calculator](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator.md)
- [Model library](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library.md)
- [Docs: Bifrost docs](https://docs.getbifrost.ai)
- [GitHub: maximhq/bifrost](https://github.com/maximhq/bifrost)
- [Pricing: Bifrost pricing](https://www.getmaxim.ai/pricing)
- [Enterprise: Bifrost enterprise](https://www.getmaxim.ai/enterprise)
- [Book a Demo: Bifrost demo](https://www.getmaxim.ai/book-a-demo)
- [Resources: Bifrost resources](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/resources.md)

---

*This is a markdown version of [https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/claude-4-sonnet](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/deepinfra/model/claude-4-sonnet) for AI/LLM consumption.*
