Use Claude Code with an Anthropic-compatible base URL
Quorra is a prepaid language API. You pay from a USD balance. There is no monthly fee. A request the endpoint rejects is not billed.
Create an account, add credits, create a key, then point Claude Code at Quorra. Create an account.
Configuration
export ANTHROPIC_BASE_URL=https://api.quorra.cc export ANTHROPIC_AUTH_TOKEN=your-key
Start a new Claude Code session after you set the variables. The key is the one you created in the console.
These names are routed for this base URL: claude-sonnet-5, claude-opus-5-5, and claude-haiku-4-5-20251001. The other eight routed names use the Codex responses API, documented in the docs.
Test request
curl https://api.quorra.cc/v1/messages \
-H "x-api-key: your-key" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Reply with ok"}]
}'
Replace your-key with the console key.
What this call costs
Prices for claude-sonnet-5 on the rate sheet are input $0.80 per 1M tokens and output $4 per 1M tokens. The largest cut printed on that sheet is 60%.
A call with 100,000 uncached input tokens and 2,000 output tokens costs:
100,000 / 1,000,000 × $0.80 = $0.08 2,000 / 1,000,000 × $4 = $0.008 Total: $0.088
Claude Code usually reads most of its input from the prompt cache. For claude-sonnet-5 a cache read is $0.08 per 1M tokens, a 5-minute cache write is $1 per 1M tokens, and a 1-hour cache write is $1.60 per 1M tokens. The same call with 90,000 of the input tokens read from the cache costs:
90,000 / 1,000,000 × $0.08 = $0.0072 10,000 / 1,000,000 × $0.80 = $0.008 2,000 / 1,000,000 × $4 = $0.008 Total: $0.0232
Cache rates for every routed name are in the cache table under the rate sheet.
When it fails
- 401
Invalid token. The key is missing, wrong, or disabled. Put the console key inANTHROPIC_AUTH_TOKENand start a new session. A client that sendsAccept-Language: zh-CNgets无效的令牌for the same failure.- 403
Insufficient user quota, remaining quota: $0.000000. The balance is too low. The amount after the colon is the remaining USD balance. Add credits in the console. The message is in Chinese (用户额度不足, 剩余额度: $0.000000) when the account language is Chinese or the client sendsAccept-Language: zh-CN.model_not_found- The English message is
No available channel for model NAME under group default (distributor). That name is not routed. Sendclaude-sonnet-5,claude-opus-5-5, orclaude-haiku-4-5-20251001. A ChineseAccept-Languagechanges the wording of this message.