Claude Sonnet 5 API
Anthropic's balanced model for coding, agentic workflows and everyday reasoning. Text and image input, long context.
Starting at
$0.3
input price per 1M tokens
Claude Sonnet 5 playground
Input
openaiInput
$0.3 / 1M
Output
$1.5 / 1M
Output
Start a conversation
Ask Claude Sonnet 5 anything. Messages are sent directly to the API and charged by token usage.
Sign in to chatClaude Sonnet 5 API pricing
| Option | Price per 1M tokens |
|---|---|
| input | $0.3 |
| output | $1.5 |
| cacheRead | $0.03 |
| cacheWrite | $0.375 |
Quick start
Full API reference →1curl -X POST https://api.api-stock.com/api/v1/chat/completions \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "claude-sonnet-5",6 "messages": [7 {8 "role": "user",9 "content": "A cinematic shot of a city at dusk"10 }11 ]12 }'
Frequently asked questions
How much does Claude Sonnet 5 cost?
Claude Sonnet 5 starts at $0.3 per 1M input tokens through the API Stock API. You pay per use from a single prepaid balance — there is no subscription — and the final price scales with parameters such as resolution or duration.
When was Claude Sonnet 5 released?
Claude Sonnet 5 was released on June 30, 2026. It is available through the API Stock API with the same key and prepaid balance as every other model.
How do I get an API key for Claude Sonnet 5?
Sign up for API Stock, top up your balance by any amount and create an API key in the dashboard — it takes a couple of minutes and needs no contract. The same key works with every model in the catalog, so there is no separate key to obtain for Claude Sonnet 5.
How do I call the Claude Sonnet 5 API?
Send a POST request to https://api.api-stock.com/api/v1/chat/completions with your API key and the model "claude-sonnet-5", using the openai-compatible request format shown in the quick start above.
What happens if a Claude Sonnet 5 request fails?
API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.
Can I use Claude Sonnet 5 with the same API key as other models?
Yes. Every model on API Stock — video, image, music and chat — shares one API key and one prepaid balance, so you can switch to Claude Sonnet 5 without new credentials.
Other Chat models
- GPT 6 LunaOpenAI$0.12/ 1M tokens
- DeepSeek V4 FlashDeepSeek$0.168/ 1M tokens
- GPT 5.6 LunaOpenAI$0.18/ 1M tokens
- Qwen3.7 PlusQwen$0.343/ 1M tokens
- MiniMax M3MiniMax$0.36/ 1M tokens
- DeepSeek V4 ProDeepSeek$0.522/ 1M tokens
- Claude Sonnet 5.5Anthropic$0.9/ 1M tokens
- Gemini 3.5 FlashGoogle$0.9/ 1M tokens
- Gemini 3.6 FlashGoogle$0.9/ 1M tokens
Guides
- LLM API pricing: GPT, Claude, Gemini, DeepSeek comparedCompare LLM API pricing for GPT, Claude, Gemini, DeepSeek, Grok and Kimi per 1M tokens, with worked monthly cost examples and practical ways to cut the bill.10 min read
- Going to productionKey handling, webhooks over polling, idempotency, terminal states, retry policy by error code, balance monitoring, rate limits and media storage.10 min read