New Sign up free, 10 calls on us. Up to $1, no card needed.

Gemini 3.1 Flash Image

Released 2026-05-28

imageVisionReasoning

Gemini 3.1 Flash Image, marketed as Nano Banana 2, is Google's generally available image generation and editing model, described on its model page as the generalist workhorse of the family: high-quality generation and conversational editing at a mainstream price point and low latency, balancing speed with 4K generation, world knowledge and reliable text rendering.

Input
text image video $0.5/M
Output
image text $60/M

Price in context

Where the price sits among 9 comparable models

Input$0.5/M
$0.25 · gemini-3.1-flash-lite-image GPT Image 1 · $5
Output$60/M
$8 · GPT Image 1 Mini Gemini 3 Pro Image · $120

The bar shows how this model’s price compares with every other model of the same kind on Synthorai. The cheapest and the most expensive are named at each end. These are base rates; batch, region and cache-write discounts are on the pricing page.

Specs & limits

Tokens

Context window (vendor spec) 131,072
Max output (vendor spec) 32,768

Thinking

Parameter reasoning_effort
Values minimal · low · medium · high accepted set is the provider's

Image

Sizes
  • 512px (0.5K)
  • 1K (1:1 = 1024x1024)
  • 2K (2048x2048)
  • 4K (4096x4096)
Input modes text-to-image, single-turn and multi-turn editing, up to 14 reference images
Format jpeg, png
Image capabilities
  • 0.5K, 1K, 2K and 4K output at ten aspect ratios (1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9), JPEG or PNG
  • up to 14 reference images per request, up to ten of them objects rendered with high fidelity plus character and style references
  • single-turn editing and multi-turn conversational iteration

Model

Modalities text + image + video → image + text
  • Reached GA on 2026-05-28 as Nano Banana 2, replacing gemini-3.1-flash-image-preview (shut down 2026-06-25)
  • the model page positions it as the family's generalist workhorse, balancing speed with 4K generation, world knowledge and reliable text rendering. Thinking is on
  • caching, function calling and structured outputs are not supported

per Google official docs ↗

One prompt, measured through the gateway

PROMPT A weathered enamel diner mug on a steel counter, the words "OPEN 24H" stencilled on the mug in worn paint, low winter sun raking in from the left, shallow depth of field.

Gemini 3.1 Flash Image

Gemini 3.1 Flash Image: A weathered enamel diner mug on a steel counter, the words "OPEN 24H" stencilled on the mug in worn paint, low winter sun raking in from the left, shallow depth of field.

Model returned 1408×768 latency 12 s

One prompt, one request per model, no retries and no cherry-picking. This is the first result each model returned. Neither size nor duration was pinned: each model used its own default, because a request shaped to fit all of them would flatter none. Files here are re-encoded for the web, so judge composition and prompt adherence, not compression.

Use Gemini 3.1 Flash Image in 30 seconds

OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/images/generations

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.images.generate(
    model="gemini-3.1-flash-image",
    prompt="a watercolor lighthouse at dawn",
    size="1024x1024",
)
print(resp.data[0].b64_json[:80])

About Gemini 3.1 Flash Image

  • It reached GA on 28 May 2026 and replaced gemini-3.1-flash-image-preview, which was shut down on 25 June 2026.
  • Output comes in 0.5K, 1K, 2K and 4K at ten aspect ratios from 1:1 to 21:9, as JPEG or PNG, and a single request can carry up to 14 reference images, up to ten of them objects rendered with high fidelity plus character and style references.
  • It accepts text, image, video and PDF input with a 131,072-token input limit and returns image and text; editing works in a single turn or as a multi-turn conversation.
  • Its thinking pass is on, while caching, function calling and structured outputs are not supported.
  • Synthorai serves it through the images endpoint, billed per token.

FAQ

Is the Gemini 3.1 Flash Image API free to try?

Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. That's enough to try Gemini 3.1 Flash Image against your real workload before adding a payment method.

What is Gemini 3.1 Flash Image best at?

4K output and ten aspect ratios; up to 14 reference images per request; single-turn edits and multi-turn iteration. See the About section for the full picture from the vendor's own release notes.

How much does Gemini 3.1 Flash Image cost?

Gemini 3.1 Flash Image costs $0.5 per million input tokens and $60 per million output tokens on Synthorai. That is the provider's list price, with no platform markup.

How do I generate images with the Gemini 3.1 Flash Image API?

POST to /v1/images/generations on Synthorai with model="gemini-3.1-flash-image". It follows the OpenAI images API shape, so no vendor SDK is needed. Supported sizes: 512px (0.5K), 1K (1:1 = 1024x1024), 2K (2048x2048), 4K (4096x4096).

How do I get access to Gemini 3.1 Flash Image?

Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="gemini-3.1-flash-image", and you're done. One API key covers every model on the gateway.

Related models

Compare

Every value on this page is transcribed from the vendor's own documentation, linked above, and carries the date it was checked. Prices are compared across the catalogue; specification values that vendors define differently are shown with the difference stated rather than charted. Nothing here is measured by us, and nothing is scored.

Get your API key Compare your cost →