Models / Gemini 3.1 Flash Image
Gemini 3.1 Flash Image
ProprietaryGemini 3.1 Flash Image — Google Gemini image generation, via the yylx gateway.
google/gemini-3.1-flash-imageContext Window
0
Max Output
0
Released
2026-10
Capabilities
image_gen
Price
Prices shown are the official rate published by the model provider, before any platform discounts. Your actual rate may be lower based on your account's discount tier.
| Price | Latency p50 | Latency p95 | Status |
|---|---|---|---|
| $3.00 /image | 5000ms | 20000ms |
Quick Start
Python
import magicrouter
mr = magicrouter.Client(api_key="mr-your-key")
response = mr.chat(
"google/gemini-3.1-flash-image",
"Your prompt here"
)
print(response.choices[0].message.content)TypeScript
import { MagicRouter } from "magicrouter";
const mr = new MagicRouter({ apiKey: "mr-your-key" });
const response = await mr.chat({
model: "google/gemini-3.1-flash-image",
messages: [{ role: "user", content: "Your prompt here" }]
});
console.log(response.choices[0].message.content);cURL
curl https://api.magicrouter.ai/v1/chat/completions \
-H "Authorization: Bearer mr-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-flash-image",
"messages": [{"role": "user", "content": "Your prompt here"}]
}'