Vision / Anthropic
claude-sonnet-5
AgenticCodingKnowledgeMultimodal
Overview
Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max, and x-high), a 1M-token context window, and text, image, and file inputs. Sonnet 5 uses an updated tokenizer and includes real-time cyber safeguards that block certain high-risk dual-use activities.
- Model type: Vision
- Input: Text / Image
- Output: Text
- Endpoints: chat / batches
Tiered billing details
| Tier | Input | Output | Cache hit | Cache write |
|---|---|---|---|---|
| Fallback tier | $0.0020/1K | $0.0100/1K | $0.0002/1K | $0.0025/1K |
Billed bylen (input context token count). Coefficient is the $ / 1M tokens price. Default group price (other groups converted by discount).
Batch API: requests submitted via POST /v1/batches are billed at 0.5× every tier price above, with each request matched to its own tier.
Code example
Call with claude-sonnet-5 :
curl https://www.starunion.net/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"messages": [{
"role": "user",
"content": [
{ "type": "text", "text": "Describe this image" },
{ "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
]
}]
}'