claude-sonnet-5 pricing and API access
Run claude-sonnet-5 through Code By AI for $0.27 per 1M input tokens and $1.33 per 1M output tokens. Anthropic lists the same model at $2.00 and $10.00; you pay about 87% less than that, with no monthly subscription.
claude-sonnet-5 is the default model for Claude Code requests, so omitting the model parameter routes here.
Official price
$2.00
per 1M tokens, USD
Your price
$0.27
per 1M tokens, USD
Δ
−87%
1/7.5 of official price
| claude-sonnet-5 | Official price | Your price |
|---|---|---|
| Input | $2.00 | $0.27 |
| Cached input | $0.20 | $0.03 |
| Output | $10.00 | $1.33 |
How to use claude-sonnet-5
Export ANTHROPIC_BASE_URL=https://www.codebyai.net/api/agent and ANTHROPIC_AUTH_TOKEN=sk-proj-xxxx, then launch the CLI, and use the model ID claude-sonnet-5. The Claude Code guide walks through the full configuration.
export ANTHROPIC_BASE_URL="https://www.codebyai.net/api/agent" export ANTHROPIC_AUTH_TOKEN="sk-proj-xxxx"Read the Claude Code setup guide
Compare other Claude Code models
claude-sonnet-5 FAQ
- How much does claude-sonnet-5 cost on Code By AI?
- claude-sonnet-5 costs $0.27 per 1M input tokens, $0.03 per 1M cached input tokens and $1.33 per 1M output tokens. Anthropic lists the same model at $2.00 input and $10.00 output.
- Is claude-sonnet-5 the default Claude Code model?
- Yes. claude-sonnet-5 is the default model for Claude Code requests, so requests that omit the model parameter are routed here.
- How do I use claude-sonnet-5?
- Export ANTHROPIC_BASE_URL=https://www.codebyai.net/api/agent and ANTHROPIC_AUTH_TOKEN in your shell, pass the model ID claude-sonnet-5, then launch the CLI. The Claude Code guide covers the full configuration.