Google

Gemini 3.1 Flash Image Preview

Built for image generation and editing, with stronger multimodal understanding, conversational edits, and rapid visual prototyping than earlier Gemini image capabilities. Compared with GPT Image, Qwen Image, and Seedream, it is useful for combining documents, images, and prompts in one visual workflow.

  • Reasoning
  • Multimodal output

Try this model

Choose an aspect ratio and resolution to generate an image.

gemini-3.1-flash-image-preview

Input

Reference image (optional)

JPG / PNG · Up to 10 MB. Uploaded when you generate.

Aspect ratio
Resolution

Uses your account balance at the model’s current rates.

Generated result

Your creation appears here

Enter a prompt, choose your settings, and generate.

Insufficient balance

Your account balance is insufficient for this generation. Top up, then return here to try again.

USD /image

Pricing

GroupTierPrice
default1K$0.04
default2K$0.06
default4K$0.08
default
1K$0.04
2K$0.06
4K$0.08

Public list prices are shown in USD. Final charges may vary by account group and usage tier.

API

Code examples

curl --location --request POST 'https://api.tokenhot.ai/v1beta/models/gemini-3.1-flash-image-preview:generateContent' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "contents": [
        {
            "role": "user",
            "parts": [
                {
                    "text": "draw a baby"
                }
            ]
        }
    ],
    "generationConfig": {
        "responseModalities": [
            "TEXT",
            "IMAGE"
        ],
        "imageConfig": {
            "aspectRatio": "16:9",
            "imageSize": "2k"
        }
    }
}'

FAQ

Frequently asked questions

What is Gemini 3.1 Flash Image Preview best suited for?

Gemini 3.1 Flash Image Preview is suited to the input, output, and capability types listed on this page. Test production workloads before choosing it for a critical system.

How is Gemini 3.1 Flash Image Preview priced?

Pricing is shown in the pricing section above. Actual cost depends on usage volume, account group, and the request payload.

How can I call Gemini 3.1 Flash Image Preview?

Use the model ID shown above with one of the supported API protocols. Code examples are provided when usage data is available.

Get started

Build with Gemini 3.1 Flash Image Preview

Use in Console