Google / Image generation

Nano Banana 2 (Gemini 3.1 Flash Image)

Nano Banana 2 (Gemini 3.1 Flash Image) (google/gemini-3.1-flash-image) is an image generation model from Google on the OceanToken API at $0.50 per 1M input tokens and $3.00 per 1M output tokens, with reasoning, structured outputs.

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.

Create an account or sign in to OceanToken.

Output

image + text

Input

image + text

Price

$0.50 / $3.00 per 1M tokens

  • Image generation
  • Guided by text prompts
  • Works from reference images

Model ID google/gemini-3.1-flash-image

Base URL https://api.oceantoken.ai/v1

One account. Your next idea.

Input
$0.50 / 1M tokens
Output
$3.00 / 1M tokens
Image output
$60.00 / 1M image tokens

Official price as of October 18, 2026. The console always shows the current price.

Open OceanToken ↗Specs, request sample and alternatives in the docs ↗

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.

Nano Banana 2 (Gemini 3.1 Flash Image) costs $0.50 per 1M input tokens, $3.00 per 1M output tokens and $60.00 per 1M image output tokens. These are official prices as of October 18, 2026, charged per use to your prepaid balance. The console always shows the current price.

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

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.

OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too; Alipay and WeChat Pay are not available). Each top-up is between $10 and $100,000, and your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.

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.

Not if the request never ran: a request refused for an insufficient balance or by a safety check, or one whose provider fails before returning any output, is not charged. A video job that fails releases the amount it held. 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.

There are two ways to buy. Pay-as-you-go is self-serve: sign up, add prepaid credits and use every model in the catalog at its official price. Enterprise customers get agreement pricing based on expected usage: email support@oceantoken.ai.