Models / Google
gemini-3.1-pro-preview API
Google model available through Mimxo AI's OpenAI-compatible endpoint.
| Provider | |
|---|---|
| Model ID | gemini-3.1-pro-preview |
| Input / 1M tokens | $0.6 (list $2) |
| Output / 1M tokens | $3.6 (list $12) |
| Cache read / 1M | $0.06 |
| Cache write / 1M | $0.1125 |
| Endpoints | openai |
| Base URL | https://mimxo.com/v1 |
Example
curl https://mimxo.com/v1/chat/completions \
-H "Authorization: Bearer $MIMXO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-3.1-pro-preview", "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-3.1-pro-preview",
messages=[{"role": "user", "content": "Write a haiku about APIs"}],
)
print(resp.choices[0].message.content)FAQ
How do I use gemini-3.1-pro-preview via API?
Send an OpenAI-compatible request to https://mimxo.com/v1/chat/completions with "model": "gemini-3.1-pro-preview" and your Mimxo AI key.
What does gemini-3.1-pro-preview cost?
$0.6 per 1M input tokens and $3.6 per 1M output tokens on Mimxo AI (0.3× the list price of $2 / $12).
Other Google models
gemini-2.5-flash · gemini-2.5-flash-lite · gemini-3-flash-preview · gemini-3.1-flash-lite · gemini-3.6-flash · gemini-3.7-flash · gemini-3.8-flash