Skip to content
Dashboard

Claude Sonnet 4

Claude Sonnet 4 supports a context window of 1M tokens on AI Gateway, enabling full codebase analysis of 75,000+ lines or large document sets, while scoring 72.7% on SWE-bench Verified with hybrid extended thinking and enhanced steerability. Your use subject to Anthropic's Terms & Privacy Policies.

File InputReasoningTool UseVision (Image)Explicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'anthropic/claude-sonnet-4',
prompt: 'Why is the sky blue?'
})

More models by Anthropic

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
1M
3.9s
109tps
$5/MFast $10/M
$25/MFast $50/M
Read:$0.5/M
Write:
$6.25/M
$10/K
+ input costs
+3
anthropic logo
bedrock logo
claudeaws logo
+1
07/24/2026
1M
4.4s
76tps
$10/M
$50/M
Read:$1/M
Write:
$12.5/M
$10/K
+ input costs
+2
anthropic logo
bedrock logo
vertexAnthropic logo
07/01/2026
1M
1.6s
103tps
$3/M$2/M
$15/M$10/M
Read:$0.3/M$0.2/M
Write:
$3.75/M$2.5/M
$10/K
+ input costs
+3
anthropic logo
bedrock logo
claudeaws logo
+1
06/29/2026
1M
1.5s
101tps
$5/MFast $10/M
$25/MFast $50/M
Read:$0.5/M
Write:
$6.25/M
$10/K
+ input costs
+3
anthropic logo
bedrock logo
claudeaws logo
+1
05/28/2026
1M
0.8s
72tps
$3/M
$15/M
Read:$0.3/M
Write:
$3.75/M
$10/K
+ input costs
+3
anthropic logo
bedrock logo
claudeaws logo
+1
02/17/2026
200K
0.6s
133tps
$1/M
$5/M
Read:$0.1/M
Write:
$1.25/M
$10/K
+ input costs
+3
anthropic logo
bedrock logo
claudeaws logo
+1
10/15/2025