Anthropicclaude-sonnet-5
Claude Sonnet 5
Frontier reasoning at a price that scales to production.
Sonnet 5 pairs advanced reasoning and adaptive thinking with strong vision, hitting the balance of quality and cost most production workloads want.
Production appsBalanced qualityVision
Specs
Context window1M tokens
Max output128K tokens
InterfaceOpenAI-style Chat Completions · Anthropic-style Messages
Price / 1M$1.50 / $7.50was $2 / $10
Capabilities
- ReasoningSupported
- VisionSupported
- Tool callingSupported
- StreamingSupported
- JSON output—
Why teams pick it
- Advanced reasoning with adaptive thinking
- Strong vision for documents, screenshots, and diagrams
- 1M-token context at a mid-tier price
Call Claude Sonnet 5
Claude Sonnet 5 answers on either API below — pick the one your code already speaks and just swap in your Inferray key.
/v1/chat/completions · OpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.inferray.com/v1/chat/completions \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"messages": [{"role": "user", "content": "ship it"}]
}'/v1/messages · Anthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.inferray.com/v1/messages \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "ship it"}]
}'