Google Gemini API is Mirobody’s alternative global-cluster LLM backend, provided by Google AI Studio. Multimodal native (image, audio, video).Documentation Index
Fetch the complete documentation index at: https://docs.mirobody.ai/llms.txt
Use this file to discover all available pages before exploring further.
Official docs: Google AI Studio · Gemini API docs · Models · OpenAI compatibility
1. Register and get a key
Sign in to AI Studio
Open aistudio.google.com and sign in with a Google account.
Create an API key
On the API Keys page, create a key (bound to a GCP project).
2. Endpoint info
| Field | Value |
|---|---|
| Native Gemini base URL | https://generativelanguage.googleapis.com/v1beta |
| OpenAI-compatible base URL | https://generativelanguage.googleapis.com/v1beta/openai |
| Auth | Authorization: Bearer <GEMINI_API_KEY> |
| Region | Global; some models unavailable in EU / IN |
3. Available models
Gemini 3 series
| Model id | Notes |
|---|---|
gemini-3.1-pro | Flagship — deep reasoning + agentic coding (Preview) |
gemini-3.5-flash | Current workhorse — agentic + coding (Stable) |
gemini-3-flash | Frontier performance + reduced cost (Preview) |
gemini-3.1-flash-lite | Budget tier |
Gemini 2.5 series (stable fallback)
| Model id | Notes |
|---|---|
gemini-2.5-pro | Complex deep reasoning |
gemini-2.5-flash | Best price/perf for low-latency reasoning |
gemini-2.5-flash-lite | Budget multimodal |
Embeddings
| Model id | Use case |
|---|---|
gemini-embedding-001 | Text embedding (Stable) |
gemini-embedding-2-preview | Multimodal embedding (Preview) |
4. Use it in Mirobody (global cluster)
Troubleshooting
API_KEY_INVALID→ key revoked in AI Studio.RESOURCE_EXHAUSTED→ free-tier quota or RPM exceeded; adjust under Quotas.PERMISSION_DENIED→ model unavailable in your region.- Mainland-China timeout → expected; switch to DashScope / Volcengine.