Claude Sonnet 4.5 API pricing

As of 5 August 2026, Claude Sonnet 4.5 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, and scores 71.3% on coding benchmarks (best of Aider polyglot and SWE-bench Verified).

Prices updated 5 August 2026

Claude Sonnet 4.5 price

USD per 1M tokens.

ProviderInput / 1MOutput / 1MContext
Anthropic$3.00$15.00200K
Coding: 71.3%Reasoning: 73.7%Math: 35.6%

Coding via Aider polyglot & SWE-bench Verified; reasoning & math via Epoch AI.

Cheaper alternatives to Claude Sonnet 4.5

Models with an equal-or-better coding score at a lower output price. StackSpend surfaces swaps like these against your actual usage.

How much does the Claude Sonnet 4.5 API cost?
As of 5 August 2026, Claude Sonnet 4.5 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, and scores 71.3% on coding benchmarks (best of Aider polyglot and SWE-bench Verified).
Is there a cheaper model as good as Claude Sonnet 4.5 for coding?
Yes — google/gemini-2.5-pro (DeepInfra) scores 83.1% on coding at $10.00 per 1M output tokens, below Claude Sonnet 4.5's $15.00.

Know what you're really spending on Claude Sonnet 4.5.

StackSpend connects read-only to your AI providers, normalises every model into one daily signal, and flags cheaper equal-quality swaps from this same dataset.