Available
claude-opus-5Claude Opus 5
Input, output, cache read and cache write prices in USD per million tokens. Discounts apply to input and output; cache uses list prices.
2.5 /10 of list price
Discounted input/output; cache at list price
Prices
per million tokens,USD.
Cost of one Claude Code call
This is a cost example. Actual charges depend on usage.
python
import anthropic
client = anthropic.Anthropic(
base_url="https://1zheai.com",
api_key="YOUR_API_KEY",
)
msg = client.messages.create(
model="claude-opus-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)curl
curl https://1zheai.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"model":"claude-opus-5",
"messages":[{"role":"user","content":"Hello"}]}'~/.zshrc
export ANTHROPIC_BASE_URL=https://1zheai.com
export ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY
export ANTHROPIC_MODEL=claude-opus-5Supported APIs
| API | Path |
|---|---|
| Anthropic Messages | /v1/messages |
| Token count | /v1/messages/count_tokens |
| OpenAI Chat Completions | /v1/chat/completions |
| OpenAI Responses | /v1/responses |
Billing
Input and output use the model discount. Cache reads and writes use list prices. Each call is logged.
