Home / Model Explorer / Gemini 3.1 Flash Image Preview

Gemini 3.1 Flash Image Preview API

GoogleImageChat

Efficient Creative Image Generation

  • Model ID: gemini-3.1-flash-image-preview
  • Example endpoint: POST https://api.yomiapi.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent
  • View public route prices

Overview

About this model

Gemini 3.1 Flash Image generation model that balances creative efficiency and visual expression, suitable for creative ideation, content illustrations, and everyday design. Supports 1K / 2K / 4K. Billing notes: different resolutions correspond to different price tiers. The base price for the per-image generation mode is 1K: $0.017/image, 2K: $0.021/image, 4K: $0.028/image, and multiple images are accumulated by quantity. The above are base prices in USD; the actual cost will also apply the selected channel and user group multipliers.

Capabilities

Capability matrix

TextSupported
Vision—
Audio—
Tools—
JSONSupported
Reasoning—

Pricing and groups

Routes and pricing

Dedicated group for image generationBase priceCollecting data

Using agent allows you to view and configure skill in the help documentation

Per request

$0.017 / request

All pricing tiers and conditions

4K

Resolution = 4K

Per request

$0.028 / request

2K

Resolution ≠ 4K; and Resolution = 2K

Per request

$0.021 / request

1K

Resolution ≠ 4K; and Resolution ≠ 2K

Per request

$0.017 / request

Recent availabilityPast 24 hours · Active probes—
24h ago16h ago8h agoNow

Per-request prices are marked “/ request”; other rates are in USD per million tokens. This page shows a public price snapshot. Before sending a request, check the Model Explorer for current prices. The console shows account-specific routes and charges.

How to compare prices · How to interpret performance metrics

Snapshot: . Availability reflects active probes over the past 24 hours; performance reflects actual calls.

API

Integration example

Use a Yomi API key that can access this model and route. Check the endpoint and request parameters when switching models or protocols.

Set the environment variable YOMI_API_KEY.

Quick start · Pricing and billing · Protocol reference · Gemini image generation

curl · Gemini
curl 'https://api.yomiapi.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent' \
  -H "x-goog-api-key: $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "A small ceramic cup near a window"
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": [
      "TEXT",
      "IMAGE"
    ]
  }
}'

Connect to Gemini 3.1 Flash Image Preview now

Create an API key in the console and select an available route.

Get an API key