Back to modelsBuy Plan
Anthropic
Claude Sonnet 5
The best combination of speed and intelligence
Quick Stats
Context
1000K
Max Output
128K
Provider
Anthropic
Specs
2
Modalities
in textin imagein fileout text
Specs & Platform Price (per 1M tokens)
Quality
Input $2Output $10Cache read $0.2Cache write 5m $2.5Cache write 1h $4
Value
Input $1Output $5Cache read $0.1Cache write 5m $1.25Cache write 1h $2
Recommended Plan
Claude Sonnet 5 Starter Plan
Pay-as-you-go after top-up; $1 free credit for new users.
API Endpoint
Model ID
anthropic/claude-sonnet-5cURL
curl https://intertoken.ai/v1/messages \
-H "x-api-key: $TOKENPORTAL_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'Python (anthropic SDK)
import anthropic
client = anthropic.Anthropic(
base_url="https://intertoken.ai",
api_key="$TOKENPORTAL_API_KEY",
)
resp = client.messages.create(
model="anthropic/claude-sonnet-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.content[0].text)Start using this model
Sign up free, get an API key, and make your first call in 30 seconds.