Claude Sonnet 5

Anthropic

Anthropic's Claude 5 workhorse: frontier coding and reasoning at Sonnet speed, with a million-token context and tool use.

Model highlights
  • Frontier coding at Sonnet speed
  • Million-token context
  • Tool calling and structured output
  • Vision and file input
  • Step-down target for Opus 5
Modalities
IntextimageOuttext
Input / output
$2.00 / $10.00USD per 1M tokens
Context
1M
Providers
2 live
Released
Jun 30, 2026
Knowledge cutoff
January 2026

Chat with Claude Sonnet 5 free →

Playground

Preparing playground

Providers

primary12.4s100%
fallback5.5s100%

Performance

Request success
100%
Time to first token
2.7s
Generation speed
80.7tok/s

Response latency estimates

Time to first token

Generation speed · tok/s

Request success

Text-model timing and speed, plus API request success. Daily latency percentiles are estimates. Your request logs

Compare providers

Generation speed by provider · tok/s

P50 latency estimates by provider

Time to first token by provider

Request success by provider

API

POST/api/v1/chat/completionsOpenAI-compatible
claude-sonnet-5
curl https://www.ninjachat.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
messagestemperaturemax_completion_tokenstop_pstopfrequency_penaltypresence_penaltyseedstreamuserroutingtoolstool_choiceresponse_formatimage_url content partsreasoningreasoning_effort

Pricing

Input
$2.00/M tokens
Cached input
$0.20/M tokens
Cache write
$2.50/M tokens
Output
$10.00/M tokens

Published USD rates. Actual cost depends on input, output, cache usage and request options.