Claude Opus 4.8 API pricing and access
Run Claude Opus 4.8 (model ID claude-opus-4-8) through Code By AI for $0.67 per 1M input tokens and $3.33 per 1M output tokens. Anthropic lists the same model at $5.00 and $25.00; you pay about 87% less than that, with no monthly subscription.
Official price
$5.00
per 1M tokens, USD
Your price
$0.67
per 1M tokens, USD
You save
−87%
1/7.5 of official price
| Official price | Your price | |
|---|---|---|
| Input | $5.00 | $0.67 |
| Cached input | $0.50 | $0.07 |
| Output | $25.00 | $3.33 |
What claude-opus-4-8 costs in a typical month
For 20M input and 2M output tokens, the same workload costs $150.00 at list price and $20.00 through Code By AI — 87% less.
How to use claude-opus-4-8
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-opus-4-8. 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"
No key yet? Create one
Compare other Claude Code models
Your price /1M
- claude-haiku-4-5-20251001$0.13 / $0.67
- claude-sonnet-5Default$0.27 / $1.33
- claude-sonnet-5-5$0.27 / $1.33
- claude-sonnet-4-6$0.40 / $2.00
- claude-opus-5-5$0.53 / $2.67
- claude-opus-4-6$0.67 / $3.33
- claude-opus-4-7$0.67 / $3.33
- claude-opus-5$0.67 / $3.33
- claude-fable-5$2.00 / $10.00
- claude-fable-5-1$2.00 / $10.00
Similar price on other channels
Claude Opus 4.8 FAQ
Get started
Four steps to your first request
- 01
Create a free account
Sign up with Google, GitHub or email and set a password. No card is required.
- 02
Generate an API key
Create a key in one click from the dashboard. It lets your CLI authenticate with Code By AI.
- 03
Top up your balance
Add credit before your first request; usage is charged per token from your balance.
- 04
Point your CLI at Code By AI
Export one base-URL variable, or add a model provider block to config.toml. The setup guides list the exact lines for each agent.
No card required to sign up · API usage requires a top-up