Acerca de Gemini 3.1 Flash Image Preview
Gemini 3.1 Flash Image Preview (gemini-3.1-flash-image-preview) is a speed-first image model for fast generation and reference-image editing. It is available in Global and CN regions and is submitted through POST /v1/generations.
Pick it for quick ideation, concept images or batch previews: it supports resolutions from 0.5K to 4K and very wide or very tall aspect ratios.
Funciones principales
0.5K to 4K resolution
resolution accepts 0.5K, 1K (default), 2K and 4K. 0.5K suits testing and previews; raise it for final assets.
Ultra-wide and ultra-tall ratios
aspect_ratio defaults to 1:1 and accepts 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 8:1, 4:1, 1:4, 4:3 and 1:8.
Reference-image editing
Pass reference image URLs in reference_images to modify existing pictures.
Multiple images per request
Use n to set how many images to generate; the default is 1.
Casos de uso
- Fast ideation and concept validation
- Low-resolution batch previews
- Banners and strips in ultra-wide or ultra-tall ratios
- Quick reference-based edits
Empieza en cuatro pasos
- Crea una clave de API en la consola.
- Elige el modelo y revisa sus parámetros en la pestaña API.
- Rellena los parámetros y comprueba el coste con el endpoint de cotización.
- Envía la solicitud y luego consulta la tarea o recibe un webhook con el resultado.
Cómo escribir prompts
[Subject] + [Composition] + [Lighting] + [Style]- Start with the subject, then add composition, lighting and style; keep sentences short.
- For ultra-wide or ultra-tall ratios, describe how elements are laid out, for example left to right.
- For edits, say what must stay unchanged before describing the change.
- This model has no quality field; do not pass GPT Image requests through unchanged.
Prompts de ejemplo
- A clean product concept image, soft studio lighting
- A horizontal mountain panorama illustration that shifts from dawn on the left to dusk on the right
- Keep the cup shape unchanged and replace the background with a fresh mint green
Preguntas frecuentes
Does it support quality?⌄
No. Control output detail with resolution.
When should I use 0.5K?⌄
For testing and previews. For final assets, choose 1K, 2K or 4K based on the detail you need.
How is it billed?⌄
The Price tab lists every tier. Call POST /v1/quote with the same parameters to estimate credits before submitting. API calls only spend purchased permanent credit packs and admin-adjusted credits.
Is the request synchronous?⌄
No. Creating a task returns a task_id; poll GET /v1/tasks/{task_id} or wait for a webhook to get the result.


