Calculator/Anthropic/Claude Sonnet 4
AN

Claude Sonnet 4

by AnthropicWebsite
codinggeneral

Input

$3.00/MTok

Output

$15.00/MTok

Cached Input

$0.30/MTok

with caching

Batch Input

$1.50/MTok

batch API

Specifications

Context Window

200K context

Max Output

64K tokens

Caching

Supported

Batch API

Supported

Vision

Supported

Tool Use

Supported

Cost Examples

Single chat message

500 input + 300 output tokens

$0.0060/request

Code review

5,000 input + 2,000 output tokens

$0.04/request

Document summary

50,000 input + 1,000 output tokens

$0.17/request

100 requests/day

1,000 input + 500 output × 30 days

$31.50/month

Compare Claude Sonnet 4

See how Claude Sonnet 4 stacks up against Claude Sonnet 4.6 and Claude Sonnet 4.5.