Claude runs through DaoXE either with the OpenAI SDK (just change the base URL) or via native /v1/messages. Use Messages for Claude Code and Anthropic SDKs; use chat for OpenAI-shaped clients. Prices live on the pricing page, and top-up runs at a flat 1 RMB = $1 of credit on every payment method. What actually decides your bill: the cheapest APIs guide.
Call Claude through DaoXE#
The OpenAI-compatible path is /v1/chat/completions with a Bearer key. The native path is /v1/messages with x-api-key and anthropic-version headers. For Claude Code, point ANTHROPIC_BASE_URL at the host root — it appends the path itself.
curl --fail-with-body --show-error --silent \
https://daoxe.com/v1/messages \
-H "x-api-key: ${DAOXE_API_KEY}" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_EXACT_MODEL_ID",
"max_tokens": 64,
"messages": [{"role": "user", "content": "Reply with OK."}]
}'# Claude Code reads the host ROOT; it appends /v1/messages itself
export ANTHROPIC_BASE_URL="https://daoxe.com"
export ANTHROPIC_AUTH_TOKEN="your_api_key" # some builds read ANTHROPIC_API_KEY
# optional: pin exact catalog IDs from GET /v1/models
export ANTHROPIC_MODEL="paste_exact_model_id_here"
export ANTHROPIC_SMALL_FAST_MODEL="paste_small_model_id_here"
claudeClaude-specific notes#
- Claude Code uses the host ROOT (
https://daoxe.com), not.../v1— it appends/v1/messagesitself. See the Cursor & Claude Code guide. - Native Messages headers differ:
x-api-key+anthropic-version, not aBearertoken (that's the chat path). - Extended thinking is opt-in. Enable it per request when you need visible reasoning; otherwise you get a normal answer.
- Use exact IDs from
GET /v1/models— don't hardcode a version string copied from a blog post.
What it costs#
One balance, one top-up rate
Top-up runs at a flat 1 RMB = $1 of credit on every payment method, and each model then bills at its own USD rate — live per-model rates are on the live pricing page. That rate is the same on Alipay, WeChat Pay, USDT, bank card (Visa · Mastercard), Apple Pay and Google Pay — one balance, shared by every model in the catalog, with no plan to choose and no monthly minimum. Rates are account-scoped and do change, so confirm with one small top-up rather than trusting a number in a guide.
Verify you actually get the model#
Prove the endpoint works before blaming the client — if this fails, no setting will fix it:
export DAOXE_API_KEY="your_api_key"
# List the exact model IDs your account can call
curl --fail-with-body --show-error --silent \
https://daoxe.com/v1/models \
-H "Authorization: Bearer ${DAOXE_API_KEY}"Run the same hard-reasoning prompt through DaoXE and the official Anthropic API at temperature 0 and diff the outputs — that's how you prove it's really Claude:
Verify us — don't trust us
Point the open benchmark at DaoXE and at the official API and compare at temperature 0. Then learn to detect model swapping so a cheaper endpoint can't quietly swap you to a smaller model.
Frequently asked questions#
Can I use Claude with the OpenAI SDK?
Yes — set the base URL to https://daoxe.com/v1 and call /v1/chat/completions with a Claude model ID.
Does Claude Code work through DaoXE?
Yes, natively via /v1/messages. Set ANTHROPIC_BASE_URL=https://daoxe.com (host root). Full steps in the Cursor & Claude Code guide.
x-api-key or Bearer?
Native Messages uses x-api-key + anthropic-version; the OpenAI-compatible chat path uses a Bearer token.
How much does Claude cost here?
Per-model, account-scoped — see live pricing. Top-up is a flat 1 RMB = $1 of credit on every payment method.
Try DaoXE — and benchmark it yourself
One key for GPT, Claude, Gemini, DeepSeek and more. Point the open benchmark at us and compare — don't take our word for it.