Requests
Requests in the selected window, excluding refund records.
Gemini 3.1 Flash Image Preview suits iterative image workflows, from quick drafts and illustrations to repeated visual refinements. This preview version has independent route pricing and a unique model ID.
Different providers serve this model. Compare pricing and performance, select a provider, or use automatic routing.
| Provider | Variant / API model ID | Applicable price | Request latency | Request success | Connect |
|---|---|---|---|---|---|
gemini-3.1-flash-image-previewgemini-3.1-flash-image-preview-xz | ¥0.10 / image1K · 1024x1024 | — | 100.00% | Use route ↗ |
Values apply to the currently selected API model ID. gemini-3.1-flash-image-preview-xz
Declared and manually configured parameters are informational. They do not enable capabilities or change gateway limits; actual requests remain subject to the selected route’s validation and upstream support. Image prices below come from enabled billing tiers. Selecting a display label cannot enable an unpriced or disabled tier.
| Specification | Sale price |
|---|---|
| 1K · 1024x1024 | CNY ¥0.10 / image |
Use your platform API key. A unique model ID fixes this route; a family ID selects the lowest-priced route.
{
"model": "gemini-3.1-flash-image-preview-xz",
"prompt": "A quiet mountain lake at sunrise, soft natural light",
"size": "1024x1024"
}curl https://api.ai526.com/v1/images/generations \
-H 'Authorization: Bearer YOUR_AI526_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model":"gemini-3.1-flash-image-preview-xz","prompt":"A quiet mountain lake at sunrise, soft natural light","size":"1024x1024"}'
# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
# size: use a supported image size; fixed-size IDs require their own size.import requests
response = requests.post(
"https://api.ai526.com/v1/images/generations",
headers={
"Authorization": "Bearer YOUR_AI526_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "gemini-3.1-flash-image-preview-xz",
"prompt": "A quiet mountain lake at sunrise, soft natural light",
"size": "1024x1024"
},
)
response.raise_for_status()
print(response.json())
# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
# size: use a supported image size; fixed-size IDs require their own size.const response = await fetch("https://api.ai526.com/v1/images/generations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_AI526_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "gemini-3.1-flash-image-preview-xz",
"prompt": "A quiet mountain lake at sunrise, soft natural light",
"size": "1024x1024"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
// API URL: use the URL above.
// YOUR_AI526_API_KEY: replace with your own platform key.
// model: use the copied unique ID, or a family ID for the lowest-priced route.
// prompt / messages: replace with your task.
// size: use a supported image size; fixed-size IDs require their own size.Providers for the same API model ID currently share model pricing; variants have independent rates. A selected provider retries only within its own keys, never across variants or providers. Official badges apply to their individual routes.
Aggregated across providers for the selected variant · UTC
2026-11-04 08:00 — 2026-11-05 07:02 UTC
Requests in the selected window, excluding refund records.
Mean end-to-end duration of successful requests, not time to first token.
Successful requests divided by total requests, not an SLA.
Non-estimated output tokens per end-to-end second, shown only from valid logs.
Statistics use UTC. Metrics without valid records display —. Request volume uses the configured public display scale.
A family ID chooses the lowest-priced available route; a unique ID selects its own route.
Base URL: https://api.ai526.com/v1 · /v1/images/generations
curl https://api.ai526.com/v1/images/generations \
-H 'Authorization: Bearer YOUR_AI526_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model":"gemini-3.1-flash-image-preview","prompt":"A quiet mountain lake at sunrise, soft natural light","size":"1024x1024"}'
# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
# size: use a supported image size; fixed-size IDs require their own size.import requests
response = requests.post(
"https://api.ai526.com/v1/images/generations",
headers={
"Authorization": "Bearer YOUR_AI526_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "gemini-3.1-flash-image-preview",
"prompt": "A quiet mountain lake at sunrise, soft natural light",
"size": "1024x1024"
},
)
response.raise_for_status()
print(response.json())
# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
# size: use a supported image size; fixed-size IDs require their own size.const response = await fetch("https://api.ai526.com/v1/images/generations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_AI526_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "gemini-3.1-flash-image-preview",
"prompt": "A quiet mountain lake at sunrise, soft natural light",
"size": "1024x1024"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
// API URL: use the URL above.
// YOUR_AI526_API_KEY: replace with your own platform key.
// model: use the copied unique ID, or a family ID for the lowest-priced route.
// prompt / messages: replace with your task.
// size: use a supported image size; fixed-size IDs require their own size.Anthropic Messages is a chat protocol and does not support image or video generation for this model. Use the media endpoint above.
Replace the placeholder key before calling. Media options depend on model support.
Prepare a request, then send it from the dashboard. This page makes no model calls.
{
"model": "gemini-3.1-flash-image-preview",
"prompt": "A quiet mountain lake at sunrise, soft natural light",
"size": "1024x1024"
}This is a request preview. Results appear in the dashboard after a request completes.
Start with automatic routing. To select a public provider, choose its code and copy the updated example. Retries remain within that provider.
Metrics update from request records. Latency covers completed successful requests; metrics without valid records display —.
The client must support the model’s protocol and a custom API URL. See tool integration guides ↗