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
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 CounterSimilar Models to Anthropic/Claude 4 Sonnet
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.