Instead of managing a Google AI Studio key and Google's OpenAI-compatibility base URL yourself, DaoXE puts Gemini behind the same key as GPT, Claude and DeepSeek. Call /v1/chat/completions with a gemini-* ID. See the cheapest APIs guide for routing.
Call Gemini through DaoXE#
Use /v1/chat/completions with an exact Gemini model ID from GET /v1/models. Multimodal image input works through OpenAI-style content parts where the model supports it.
curl --fail-with-body --show-error --silent \
https://daoxe.com/v1/chat/completions \
-H "Authorization: Bearer ${DAOXE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_EXACT_MODEL_ID",
"max_tokens": 64,
"messages": [{"role": "user", "content": "Say hello in one sentence."}]
}'Gemini-specific notes#
- No separate Google key. Through DaoXE, Gemini uses your one DaoXE key — no Google AI Studio signup.
- Multimodal via content parts. Send images using the OpenAI-style message content array on vision-capable IDs.
- Param mapping differs. A few OpenAI parameters behave differently on Gemini; keep requests simple and test.
- Exact IDs only. Read
gemini-*IDs fromGET /v1/models.
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}"Confirm connectivity, then diff a fixed prompt against Google's official API at temperature 0 to confirm the model class:
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#
Do I need a Google AI Studio key?
No — through DaoXE, Gemini is behind your single DaoXE key; there's no separate Google signup.
How do I call Gemini?
Use /v1/chat/completions with an exact gemini-* ID from GET /v1/models.
Can I send images?
Yes on vision-capable IDs — use the OpenAI-style content-parts array in the message.
How much does Gemini 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.