Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 34.8% higher average benchmark score. Llama 4 Maverick offers 740.1K more tokens in context window than Claude Sonnet 4. Llama 4 Maverick is $17.64 cheaper per million tokens. Claude Sonnet 4 is available on 3 providers. Overall, Claude Sonnet 4 is the stronger choice for coding tasks.
Anthropic
Claude Sonnet 4, released by Anthropic in May 2025, is a large language model from the Claude 4 family that delivers a balance of performance and efficiency for coding, reasoning, and analytical tasks. It features a 200K token context window (extendable to 1M tokens in beta), 64K maximum output tokens, native image understanding, and extended thinking support. Sonnet 4 targets development workflows, document analysis, and applications that benefit from the performance characteristics of the Claude 4 generation.
Meta AI
Llama 4 Maverick, released by Meta on April 5, 2025, is a natively multimodal Mixture-of-Experts large language model with 400 billion total parameters and 17 billion active parameters per inference. It features a 1M token context window and supports text and image input, enabling strong performance on both language and vision tasks. Maverick targets open-source deployments requiring large-scale multimodal reasoning, released under Meta's custom license.
1 month newer

Llama 4 Maverick
Meta AI
2025-04-05

Claude Sonnet 4
Anthropic
2025-05-14
Cost per million tokens (USD)
Claude Sonnet 4
Llama 4 Maverick
Context window and performance specifications
Average performance across 1 common benchmarks
Claude Sonnet 4
Llama 4 Maverick
Performance comparison across key benchmark categories
Claude Sonnet 4
Llama 4 Maverick
Claude Sonnet 4
2025-01
Available providers and their performance metrics
Claude Sonnet 4
Anthropic
AWS Bedrock
Google Cloud Vertex AI
Llama 4 Maverick
Claude Sonnet 4
Llama 4 Maverick
Claude Sonnet 4
Llama 4 Maverick
Together AI