Skip to content
DeepInfra

Anthropic/Claude 4 Sonnet

Anthropic/Claude 4 Sonnet is available via DeepInfra with a 200K context window and up to 200,000 output tokens. Pricing: $3.30/1M input tokens, $16.50/1M output tokens.

Anthropic/Claude 4 Sonnet Pricing & Specifications

Input Price$3.30 per 1M tokens
Output Price$16.50 per 1M tokens
Context Window200,000 tokens (200K)
Max Output200,000 tokens
ProviderDeepInfra

What is Anthropic/Claude 4 Sonnet?

Anthropic/Claude 4 Sonnet is a large language model by DeepInfra with a 200K context window and up to 200,000 output tokens. It costs $3.30 per 1M input tokens and $16.50 per 1M output tokens. Anthropic/Claude 4 Sonnet is available via DeepInfra with a 200K context window and up to 200,000 output tokens. Pricing: $3.30/1M input tokens, $16.50/1M output tokens.

Capabilities

text function calling

Anthropic/Claude 4 Sonnet Cost Examples

Short prompt (500 tokens)

$0.001650

Medium prompt (2K tokens)

$0.00660

Long output (4K tokens)

$0.06600

Count tokens for Anthropic/Claude 4 Sonnet

Paste your prompt to see exact token counts and API cost estimates.

Open Token Counter

Similar Models to Anthropic/Claude 4 Sonnet

DeepInfra

Anthropic/Claude 3 7 Sonnet Latest

$3.30/1M in 200K ctx

DeepInfra

Google/Gemini 2.5 Pro

$1.25/1M in 1M ctx

DeepInfra

NousResearch/Hermes 3 Llama 3.1 405B

$1.00/1M in 131K ctx

DeepInfra

Deepseek Ai/DeepSeek R1 0528 Turbo

$1.00/1M in 33K ctx

Frequently Asked Questions

How much does Anthropic/Claude 4 Sonnet cost per token? +
Anthropic/Claude 4 Sonnet costs $3.30 per 1M input tokens and $16.50 per 1M output tokens. For a typical 1,000-token request with a 500-token response, that works out to roughly $0.011550.
What is the context window for Anthropic/Claude 4 Sonnet? +
Anthropic/Claude 4 Sonnet supports a context window of 200,000 tokens (200K). This determines the maximum combined length of your prompt and conversation history in a single API call.
What is the maximum output length for Anthropic/Claude 4 Sonnet? +
Anthropic/Claude 4 Sonnet can generate up to 200,000 tokens in a single response. If you need longer outputs, you can make multiple API calls and concatenate the results.
Is Anthropic/Claude 4 Sonnet good for coding tasks? +
Yes, Anthropic/Claude 4 Sonnet supports capabilities well-suited for coding tasks including code generation, debugging, and refactoring.
Token Counter | Pricing Calculator | Model Comparison | All DeepInfra Models