À propos 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.
Fonctionnalités clés
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.
Cas d'usage
- Fast ideation and concept validation
- Low-resolution batch previews
- Banners and strips in ultra-wide or ultra-tall ratios
- Quick reference-based edits
Commencez en quatre étapes
- Créez une clé API dans la console.
- Choisissez le modèle et consultez ses paramètres dans l'onglet API.
- Renseignez les paramètres et vérifiez le coût via le point de terminaison de devis.
- Soumettez la requête, puis interrogez la tâche ou recevez un webhook pour le résultat.
Rédiger les 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.
Exemples de prompts
- 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
FAQ
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.


