Gemini API access, OpenAI-compatible — one key, no separate Google key

Google exposes an OpenAI-compatible endpoint for Gemini; through DaoXE you skip the separate Google AI Studio key entirely and just call /v1/chat/completions with a Gemini model ID.

Updated 2026-07-20

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.

bash
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 from GET /v1/models.

Payment & real cost#

Alipay / WeChat Pay / USDT — a flat 1 RMB = $1

Every method tops up at a flat 1 RMB = $1 of credit, while models bill at their official USD price. At a real ~7 RMB/USD rate, Western flagships (GPT / Claude / Gemini / Grok) come out around 1/7 of official cost (≈85% off) — and because USDT tops up the same way, USD holders abroad get the same deal. Honest caveat: cheaper domestic models (DeepSeek / Qwen / GLM) still beat going direct, just by less — it is not “everything is 1/7”. Rates move; daoxe.com/pricing is authoritative, and a small top-up verifies it.

Verify you actually get the model#

Prove the endpoint works before blaming the client — if this fails, no setting will fix it:

bash
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. Advantage vs official: typically ~30–80% below list via low-price groups.

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.