Skip to content
Reduced motion is on. Play a preview to watch it.
Explore models

Image

Gemini 3.1 Flash Image

Generate images with Gemini 3.1 Flash Image, including very wide or tall layouts.

  • Text to image
  • Image editing
Create with Gemini 3.1 Flash Image
Preview for Gemini 3.1 Flash Image

Catalog preview for Gemini 3.1 Flash Image. Review your own result before publishing.

A starting point.

Explore banners or vertical designs with explicit subject placement and room for text.

Before you publish.

Inspect edge cropping, small lettering and stretched-looking objects in extreme layouts.

Review the quote before running. A failed generation releases its reserved credits. Download the results you want to keep; stored media is retained for 30 days.

How credits work · Use the API · Content guidelines

Settings and model questionsCheck the available settings and guidance when preparing your input.

Inputs and settings

Choose aspect_ratio, including 4:1, 1:4, 8:1 or 1:8, and resolution from 0.5K to 4K.

Text generation starts with prompt. The separate edit mode accepts optional image_urls and other reference media; describe which details those references should inform.

Inputs, all modes and APIModel IDs, current input limits and the API generation workflow.

Supported inputs

These fields come from the current studio form for gemini-3.1-flash-image-preview. Other modes may require different inputs.

Input types, requirements and limits for gemini-3.1-flash-image-preview
InputTypeRequirementOptions and limits
promptTextRequiredMin. characters: 3 · Max. characters: 50000
aspect_ratioTextOptionalauto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8
num_imagesWhole numberOptional≥ 1 · ≤ 4
output_formatTextOptionaljpeg, png, webp
resolutionTextOptional0.5K, 1K, 2K, 4K
safety_toleranceTextOptional—
seedWhole numberOptional—
system_promptTextOptionalMax. characters: 50000

Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.

Other modes and their inputs

Open the operation you need and check its inputs. Settings from one mode do not automatically apply to another.

Image editinggemini-3.1-flash-image-preview/edit

Supported inputs

These fields come from the current studio form for gemini-3.1-flash-image-preview/edit. Other modes may require different inputs.

Input types, requirements and limits for gemini-3.1-flash-image-preview/edit
InputTypeRequirementOptions and limits
promptTextRequiredMin. characters: 3 · Max. characters: 50000
aspect_ratioTextOptionalauto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8
audio_urlTextOptional—
image_urlsListOptional—
num_imagesWhole numberOptional≥ 1 · ≤ 4
output_formatTextOptionaljpeg, png, webp
pdf_urlTextOptional—
resolutionTextOptional0.5K, 1K, 2K, 4K
safety_toleranceTextOptional—
seedWhole numberOptional—
system_promptTextOptionalMax. characters: 50000
video_urlTextOptional—

Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.

Open this operation in the studio

Use Gemini 3.1 Flash Image through the API.

Start with this model ID for the endpoint featured on this page:

gemini-3.1-flash-image-preview

Input requirements belong to this model ID. Check a different mode’s schema separately when switching modes.

Available modes

Check the current model schema for supported inputs and options. Other tasks may use different model IDs.

From quote to result.

Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.

Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.