Gemini API through one OpenAI-compatible endpoint
Use 8 Gemini models with the same key and base URL you use for every other model on Mimxo AI.
Get an API keyGemini models and prices
| Model | Provider | Input / 1M | Output / 1M | Cache read / 1M | List input / output |
|---|---|---|---|---|---|
gemini-2.5-flash | $0.09 | $0.75 | $0.009 | $0.3 / $2.5 | |
gemini-2.5-flash-lite | $0.03 | $0.12 | $0.003 | $0.1 / $0.4 | |
gemini-3-flash-preview | $0.15 | $0.9 | $0.015 | $0.5 / $3 | |
gemini-3.1-flash-lite | $0.075 | $0.45 | $0.0075 | $0.25 / $1.5 | |
gemini-3.1-pro-preview | $0.6 | $3.6 | $0.06 | $2 / $12 | |
gemini-3.6-flash | $0.225 | $1.125 | $0.0225 | $0.75 / $3.75 | |
gemini-3.7-flash | $0.225 | $1.125 | $0.0225 | $0.75 / $3.75 | |
gemini-3.8-flash | $0.225 | $1.125 | $0.0225 | $0.75 / $3.75 |
Prices in USD per 1M tokens, read live from /api/pricing. "List" is the reference list price; Mimxo AI bills the first columns.
Example
curl https://mimxo.com/v1/chat/completions \
-H "Authorization: Bearer $MIMXO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-2.5-flash", "messages": [{"role": "user", "content": "Hello"}]}'from openai import OpenAI
client = OpenAI(base_url="https://mimxo.com/v1", api_key="YOUR_MIMXO_API_KEY")
resp = client.chat.completions.create(
model="gemini-2.5-flash",
messages=[{"role": "user", "content": "Write a haiku about APIs"}],
)
print(resp.choices[0].message.content)FAQ
How do I call Gemini models through Mimxo AI?
Use any OpenAI SDK with base URL https://mimxo.com/v1 and your Mimxo AI key, then set model to one of the IDs below, e.g. gemini-2.5-flash.
How much does the Gemini API cost on Mimxo AI?
0.3× the reference list price per 1M tokens. Current prices are in the table above.
Is this the official API?
No. Mimxo AI is an independent gateway that relays requests to the official Google API through OpenRouter.
Other providers: OpenAI API · Claude API · Grok API · DeepSeek API · Qwen API · GLM API · Kimi API · MiniMax API