Gemini

Gemini 3.1 Flash Image Preview

GoogleToken-based
Alias:gemini-3.1-flash-image
Create API Key

Google 的 gemini-3.1-flash-image-preview 模型,支持图像、文本输入和图像、文本输出。

imagetext
Starting price
Input / Output · 1M
Context
—
Maximum input window
Modalities
→
Released
Feb 2026

Pricing by Supplier

Google AI Studio
-50%
谷歌官方接口
Input$0.5$0.25/ 1M
Output$60$30/ 1M

Capabilities / Supported modalities

Vision
Input
Output

Provider & data privacy

Provider
GoogleDocs
Tokenizer
SentencePiece (Gemini)
License
Proprietary (commercial)Proprietary
Data retention5 daysNot used for upstream training by default

Performance

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows

Metrics sourced fromArtificial Analysis 2026-09-30·Gemini 3.1 Flash Image Preview

This model is not included in the current benchmark snapshot.

Missing models or measurements are not zero scores.

Benchmark charts preserve the source model selection and reasoning settings. Missing models or measurements are not zero scores, and benchmark cost or speed is not this site’s service commitment.

About Gemini 3.1 Flash Image Preview

Google 的 gemini-3.1-flash-image-preview 模型,支持图像、文本输入和图像、文本输出。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Explore product visuals, campaign concepts and illustration drafts.
  • Compare composition and visual style across several prompt variations.

Practical tips

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.

Example prompt

A minimalist product photograph of a ceramic cup on pale stone, soft window light, ample empty space on the right, warm neutral colors.

API access

Code samples

RequestPOST/v1/images/generations
Example request
Parameters
ParameterTypeDefault / rangeDescription
promptrequired
string—Text description of the desired image
size
enum
=1024x1024
Output image size
quality
enum
=standard
Generation quality preset
style
enum
=vivid
Aesthetic style
n
integer
=11 ~ 10
Number of images to generate
response_format
enum
=url
How to deliver the resulting image

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
promptrequired
string—Text description of the desired image
size
enum
=1024x1024
Output image size
quality
enum
=standard
Generation quality preset
style
enum
=vivid
Aesthetic style
n
integer
=11 ~ 10
Number of images to generate
response_format
enum
=url
How to deliver the resulting image

Rate limits

SupplierRPMTPMRPD
Google AI StudioUnlimitedUnlimitedUnlimited

No restriction

Frequently asked questions about gemini-3.1-flash-image-preview

What is gemini-3.1-flash-image-preview?

Google 的 gemini-3.1-flash-image-preview 模型,支持图像、文本输入和图像、文本输出。

How do I call gemini-3.1-flash-image-preview?

Create an API key with access to gemini-3.1-flash-image-preview, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is gemini-3.1-flash-image-preview priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

How should I evaluate gemini-3.1-flash-image-preview for my project?

Specify the subject, composition, lighting and style. Only include reference images or editing parameters when the endpoint supports them.