Gemini 3.1 Flash Image Preview

google/gemini-3.1-flash-image-preview by Google Cloud
Image GenerationOpenAI-compatible · Sync · Text input
Price from
$3 / 1M tokens
Tasks
1
Image Generation
Regions
Global
Mode
sync
Input
Text
Output
data

About Google Cloud Gemini 3.1 Flash Image Preview

Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...

Google Cloud Gemini 3.1 Flash Image Preview is a Google Cloud model available on Eden AI through its OpenAI-compatible API, from $3 / 1M tokens. Call it with the same API key as every other Eden AI model by sending its model ID to the /v3/images/generations endpoint, or through any OpenAI SDK, with processing in global regions.

Learn more about Image Generation APIs on Eden AI

Tasks and prices

Google Cloud Gemini 3.1 Flash Image Preview is available on Eden AI for 1 tasks. It is served through Eden AI's OpenAI-compatible API: send its model ID to the /v3/images/generations endpoint with your Eden AI API key.

Task
Price
Regions
Mode
Docs
Playground
Image Generationgoogle/gemini-3.1-flash-image-preview
$3 / 1M tokens
sync

Parameters

What you send and what you get back when you call Google Cloud Gemini 3.1 Flash Image Preview through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • model (required): text. The model ID, as provider/model.
  • prompt (required): text. A description of the image to generate.
  • size: text. The image size, for example 1024x1024.

Response

  • data

Estimate your monthly cost

Enter your monthly volume for Image Generation to compare Google Cloud Gemini 3.1 Flash Image Preview with its cheapest alternatives.

Call Google Cloud Gemini 3.1 Flash Image Preview with Eden AI

Send the model ID to the OpenAI-compatible /v3/images/generations endpoint. Any OpenAI SDK works too: set its base URL to https://api.edenai.run/v3.

import requests

response = requests.post(
    "https://api.edenai.run/v3/images/generations",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "google/gemini-3.1-flash-image-preview",
        "prompt": "A lighthouse at sunset, watercolor",
    },
)
print(response.json())

Questions about Google Cloud Gemini 3.1 Flash Image Preview

On Eden AI, Google Cloud Gemini 3.1 Flash Image Preview costs $3 / 1M tokens for Image Generation. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Google Cloud Gemini 3.1 Flash Image Preview is available for: Image Generation. Input: Text. Output: data.

Eden AI offers Image Generation from 4 providers, all callable with the same API key. The cheapest models are compared just below.

Alternatives for Image Generation

Other Image Generation models you can call with the same key, cheapest first.

See all Generative AI models

More from Google Cloud

Other Google Cloud models on Eden AI, for every task.