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 apps
- Balanced quality
- Vision
Model details
- Context window
- 1M tokens
- Max output
- 128K tokens
- Input
- Text, images
- Output
- Text
- Capabilities
- Reasoning, Vision, Tool calling, Streaming
- Interfaces
- OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
Per 1M tokens. The Inferray price is what you are charged — no gateway fee is added on top of it.
| Metric | List price | You pay |
|---|---|---|
| Input | $2 | $1.50 |
| Cached input | $0.20 | $0.15 |
| Output | $10 | $7.50 |
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 any of the APIs below — pick the one your code already speaks and just swap in your Inferray key.
/v1/chat/completionsOpenAI-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/messagesAnthropic-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"}]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.inferray.com/v1/responses \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"input": "ship it"
}'