Claude Sonnet 4 (Anthropic): live API pricing, context window and the best open-source alternatives, tracked daily by olud.ai.
Prices update automatically — checked hourly against provider list prices.
Independent benchmark scores for Claude Sonnet 4, measured by Artificial Analysis. Higher is better. Measurement mode: Reasoning.
Claude Sonnet 4 is a commercial AI model by Anthropic. The specifications below are tracked automatically: pricing is refreshed hourly from public list prices, so the numbers on this page reflect the current cost of using the model through its API.
Claude Sonnet 4 is an AI language model from Anthropic. It is a proprietary model, available through an API. It scores 28.9 on the Artificial Analysis intelligence index.
Claude Sonnet 4 is not free: it costs $3 per million input tokens and $15 per million output tokens. Open-weight alternatives can be self-hosted at no per-token cost.
Independent benchmarks from Artificial Analysis give it GPQA 77.7%, MMLU-Pro 84.2%, Humanity's Last Exam 9.6%, Long Context Reasoning 64.7%, LiveCodeBench 65.5%, SciCode 40%, MATH-500 99.1%, AIME 77.3%, AIME 2025 74.3%, IFBench 54.7%, τ²-Bench 64.6%, τ-Bench Banking 13.8%, Terminal-Bench 36.3%, Terminal-Bench Hard 31.1%. It is particularly used for code generation.