api
models / Anthropic / Claude Sonnet 4 via Anthropic

Claude Sonnet 4 via Anthropic

anthropic/claude-sonnet-4

Pricing

input $3.00 / 1M tokens
output $15.00 / 1M tokens
cache read $0.30 / 1M tokens
cache write $3.75 / 1M tokens

Limits

context window 200K tokens
max output 64K tokens

Lab Model

lab Anthropic
model Claude Sonnet 4
family claude-sonnet
release date 2025-05-22
knowledge cutoff 2025-03
open weights no

Capabilities

text-input text-output image-input pdf-input reasoning tool-calling v1

Interface Profiles

anthropic.messages.v1

Supported Parameters

sampling.temperature sampling.top_p limits.max_output_tokens

Modalities

input text, image, pdf
output text