YeeHooDevelopers
Developer Docs
Supported Models and ParametersImage Models

Gemini 3.1 Flash Image Preview

Complete parameters, enums, and integration notes for gemini-3.1-flash-image-preview.

gemini-3.1-flash-image-preview is designed for fast image generation and reference-image editing.

It supports 0.5K, 1K, 2K, and 4K and does not expose a separate quality field.

Quick Facts

ItemValue
Model IDgemini-3.1-flash-image-preview
TypeImage
RegionGlobal / CN
Best Forfast image generation and reference-image editing
PriorityChoose based on speed and quality needs

Recommended Request Shape

Submit image tasks to POST /v1/generations.

{"model":"gemini-3.1-flash-image-preview","prompt":"A premium product campaign visual","aspect_ratio":"1:1","resolution":"1K","n":1}

Field Reference

FieldTypeRequiredDefaultDescription
modelstringYes-Must be gemini-3.1-flash-image-preview
promptstringYes-Image prompt
reference_imagesstring[]No-Reference image URL list
aspect_ratiostringNo1:1Output aspect ratio
resolutionstringNo1KOutput resolution
nintegerNo1Image count

Supported Enums

FieldValues
aspect_ratio21: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 1:8
resolution0.5K, 1K, 2K, and 4K

Integration Notes

  • This model has no quality field; control output quality with resolution.
  • Validate enum values before sending requests.

Smallest Example

{"model":"gemini-3.1-flash-image-preview","prompt":"A premium product campaign visual"}

Related Pages