Skip to contentOceanToken

Google / Image generation

Nano Banana 2 (Gemini 3.1 Flash Image)

Gemini 3.1 Flash Image, 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.

Our discountYour discount

−10%off the official price−10%off the official priceUp to −10%off the official priceTier 3

Official $60.00Our price $54.00$54.00$54.00 / 1M image tokensTier 3: up to −10%

See the API request in docs
Outputimage + text
Inputimage + text
Image by Nano Banana 2 (Gemini 3.1 Flash Image): A white lighthouse on a rocky coastline at golden hour, waves breaking on the rocks, a few seagulls in the sky, cinematic wide shot, photorealistic
AI-generated by Nano Banana 2 (Gemini 3.1 Flash Image)
Price by tier

Per 1M image tokens

  • Official$60.00
  • Tier 1 your tier$54.00−10%
  • Tier 2 your tier$54.00−10%
  • Tier 3 your tier$54.00−10%
  • Enterprise rateBy quoteUp to 30% off
How tiers work

Try it in the console

Opens the console’s image mode with Nano Banana 2 (Gemini 3.1 Flash Image) picked. Write your prompt there and press Generate.

See the price below

Sign in to generate · $1 freeOpen in the console

Failed runs are not charged

Sign in to run · $1 free credit · No card

Charged to your balance.

Tier 1 price, the price a new account pays.

01 · Learn

What is Nano Banana 2 (Gemini 3.1 Flash Image)?

Nano Banana 2 (Gemini 3.1 Flash Image) is an image generation model from Google on the OceanToken API, with reasoning and structured outputs.

  • −10%Our price vs official$54.00 / 1M image tokens · Official: $60.00
  • image + textInputOutput: image + text
  • Up to 30% offEnterprise rate vs officialUp to, by quote

What Nano Banana 2 (Gemini 3.1 Flash Image) can do.

  • Image generation
  • Guided by text promptsinput: text
  • Works from reference imagesinput: image

Nano Banana 2 (Gemini 3.1 Flash Image) in action

The things this model does best, each with an example picture.

  • Nano Banana 2 (Gemini 3.1 Flash Image): Explainers and infographics
    AI-generated · made on the OceanToken API

    Explainers and infographics

    Uses real-world knowledge to make clear learning visuals, like a side-by-side guide to cloud types.

  • Nano Banana 2 (Gemini 3.1 Flash Image): Readable text
    AI-generated · made on the OceanToken API

    Readable text

    Short signs, cards and labels come out legible and in the style you describe.

  • Nano Banana 2 (Gemini 3.1 Flash Image): Product photography
    AI-generated · made on the OceanToken API

    Product photography

    Clean product shots with natural light, made in seconds.

  • Nano Banana 2 (Gemini 3.1 Flash Image): Photoreal scenes
    AI-generated · made on the OceanToken API

    Photoreal scenes

    Landscapes and everyday scenes with natural light and fine detail.

  • Nano Banana 2 (Gemini 3.1 Flash Image): Illustration styles
    AI-generated · made on the OceanToken API

    Illustration styles

    Storybook watercolor, flat graphics and more, following the style you describe.

02 · Compare

Is Nano Banana 2 (Gemini 3.1 Flash Image) cheaper than similar models?

The official price, then our price, for Nano Banana 2 (Gemini 3.1 Flash Image) and the models most like it.

OfficialOur price

Per 1M image tokens. Prices as of November 27, 2026. Enterprise rate: quote by email, we activate it for you.

Nano Banana 2 (Gemini 3.1 Flash Image) specs.

Input
image, text
Output
image, text
Released
June 18, 2026

Model ID and endpoint

OceanToken model ID
google/gemini-3.1-flash-image
OpenAI-compatible base URL
https://api.oceantoken.ai/v1
Endpoint
POST /v1/images/generations

03 · Buy and build

How much does the Nano Banana 2 (Gemini 3.1 Flash Image) API cost?

RatePer 1M image tokens
Official$60.00
Tier 1From sign-up$54.00
Tier 2$1,000 total$54.00
Tier 3$10,000 total$54.00
Enterprise rateBy quoteup to −30%

How tiers work

  1. Self-serveTier 1From sign-up
  2. Self-serveTier 2$1,000 total
  3. Self-serveTier 3$10,000 total
  4. By quoteEnterprise rateUp to 60% off, by quote

You pay per use from a prepaid balance, with no subscription. Official price: the model maker’s list price. Tier 1 to 3 are standing rates by total top-up.

How to use Nano Banana 2 (Gemini 3.1 Flash Image) on OceanToken.

Three steps from no account to a working request. The same key and balance work for every model in the catalog.

  1. Create an account and get an API key

    One key works for every model your account can use.

    Get API Key
  2. Add credits

    OceanToken is prepaid: add credits, and each request is billed from that balance.

    Add credits
  3. Call Nano Banana 2 (Gemini 3.1 Flash Image) from your code

    Send a request to POST /v1/images/generations with the model ID google/gemini-3.1-flash-image.

    See the API request in docs
client.pyPython
from openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
                api_key="YOUR_API_KEY")
result = client.images.generate(
    model="google/gemini-3.1-flash-image",
    prompt="A lighthouse on a cliff at dawn")
print(result.data[0].url or "image returned as base64")

Nano Banana 2 (Gemini 3.1 Flash Image) API: frequently asked questions.

What is Nano Banana 2 (Gemini 3.1 Flash Image)?

Gemini 3.1 Flash Image, 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.

How much does Nano Banana 2 (Gemini 3.1 Flash Image) cost?

Nano Banana 2 (Gemini 3.1 Flash Image) costs $0.45 per 1M input tokens, $2.70 per 1M output tokens and $54.00 per 1M image output tokens. That is 10% off the official price ($0.50 per 1M input tokens and $3.00 per 1M output tokens), for every account. Prices as of November 27, 2026, charged per use to your prepaid balance; the console always shows the current price.

What inputs and outputs does Nano Banana 2 (Gemini 3.1 Flash Image) support?

Nano Banana 2 (Gemini 3.1 Flash Image) takes image and text as input and produces images and text.

How do I call Nano Banana 2 (Gemini 3.1 Flash Image) through the API?

Send requests to https://api.oceantoken.ai/v1/images/generations with the model ID google/gemini-3.1-flash-image and your OceanToken API key. The API is OpenAI-compatible, so an OpenAI SDK needs only the base URL https://api.oceantoken.ai/v1 and your key. The same OceanToken API key works for every model your account can use. Full reference: docs.oceantoken.ai.

How do I top up?

OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too). Your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.

Do credits expire, and can I get a refund?

Purchased credits are valid for 12 months from the date of purchase. Credits from trial codes, promotions or gifts may have a shorter validity. All purchases are final and non-refundable, except where the law requires a refund. Section 6 of the Terms of Service has the details.

Am I charged for failed requests?

No. If a request fails, you are not charged: that covers a request refused for an insufficient balance or by a safety check, one whose provider fails before returning any output, and a video job that fails or is refused by a safety check, whose held amount goes back to your balance. The one exception: if a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.

More from Google

Similar image generation models

Same prompt, 8 models

One prompt, sent to each model through the OceanToken API on November 1, 2026. Every image is that model’s own output, only resized.

Prompt: “A matte white ceramic coffee mug with gentle steam rising, on a light oak table beside a sunny window, soft natural light, minimal clean product photography, no text, no logo”

Compare Nano Banana 2 (Gemini 3.1 Flash Image) with other models.

Keep exploring

Sources

Whatever you want.

OceanToken is All You Need.