Anthropic: Claude Sonnet 4

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...

Pricing and specs

Provideranthropic
Input price$3.00 / 1M tokens
Output price$15.00 / 1M tokens
Context window1000k tokens
Max output64k tokens
Modalitiesimage, text, file
Model IDanthropic/claude-sonnet-4

What a typical call costs

A 1,000-token prompt with a 500-token answer on Anthropic: Claude Sonnet 4 costs roughly $0.01050. Use the OpenRouter cost calculator to price your own prompt across 400+ models, or the token counter to measure prompt length first.

Run your prompts on Anthropic: Claude Sonnet 4

PromNest stores your prompt library and lets you run any prompt on Anthropic: Claude Sonnet 4 with your own OpenRouter key — including side-by-side comparison with other models. Browse 1,000+ ready-made prompt templates to start.

Alternatives from anthropic

Anthropic: Claude 3 HaikuAnthropic: Claude Fable 5Anthropic: Claude Fable 5 (batch)Anthropic: Claude Haiku 4.5Anthropic: Claude Haiku 4.5 (batch)Anthropic: Claude Opus 4Anthropic: Claude Opus 4.1Anthropic: Claude Opus 4.1 (batch)

← Back to the full AI model catalog