All models

Gemini 3.1 Flash Image runs at 50% off on API Token Router.

Google: Gemini 3.1 Flash Image

No training

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.

Modalities

Price (in / out)

50% off

$0.25 / $30$0.5 / $60per 1M

Context

131,072

Released

Feb 26, 2026

Call the Gemini 3.1 Flash Image API

Model ID gemini-3.1-flash-image · replace <ATR_API_KEY> with your API key

Get an API key

Gemini native

curl "https://api.apitokenrouter.com/v1beta/models/gemini-3.1-flash-image:generateContent" \
  -H "Authorization: Bearer <ATR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'

Providers

API Token Router routes by health and cost within the discount range and provider list you configured. When one returns an error we fall through to the next best — you don't pick a provider in the request. Configure discount range

Need a specific set of providers?

ProviderContextInputOutputCacheLatencyThroughputNo training
Google AI131,072$0.5$0.25$60$30————No training

Uptime

API Token Router continuously probes every provider and falls through to the next best one on error.

Uptime (24h)

—

Uptime (3d)

—

Uptime, last 3 days

—

-72h-48h-24hNow

Uptime, last 24 hours

One line per upstream provider, taking the best success rate among that provider's channels. The API Token Router line counts only the final attempt of each request — the end-to-end result after all fallbacks.

    AVAILABILITY · LAST 24H · API TOKEN ROUTER GATEWAY

    Data security

    API Token Router does not use your data to train models.

    For the full data-security policy, learn more.

    Need to pick your own providers? .

    Quickstart

    from google import genai
    from google.genai import types
    
    client = genai.Client(
        api_key="<ATR_API_KEY>",
        http_options=types.HttpOptions(base_url="https://api.apitokenrouter.com"),
    )
    response = client.models.generate_content(
        model="gemini-3.1-flash-image",
        contents="Hello",
    )
    print(response.text)

    Endpoint: https://api.apitokenrouter.com

    About Gemini 3.1 Flash Image

    Gemini 3.1 Flash Image is a Google model. On API Token Router its model ID is gemini-3.1-flash-image, and the same API Token Router API key works for it and every other model. Setup steps are in the API docs.

    Model ID
    gemini-3.1-flash-image
    Provider
    Google
    Context window
    131K tokens
    Official list price
    $0.50 input / $60 output per 1M tokens
    Released
    Feb 26, 2026

    Use the Gemini 3.1 Flash Image API

    Point the base URL at API Token Router and use gemini-3.1-flash-image as the model name; nothing else changes. Python example:

    from google import genai
    from google.genai import types
    
    client = genai.Client(
        api_key="<ATR_API_KEY>",
        http_options=types.HttpOptions(base_url="https://api.apitokenrouter.com"),
    )
    response = client.models.generate_content(
        model="gemini-3.1-flash-image",
        contents="Hello",
    )
    print(response.text)

    All parameters: Gemini 3.1 Flash Image API docs.

    Gemini 3.1 Flash Image FAQ

    What is the Gemini 3.1 Flash Image API model ID?
    The model ID is gemini-3.1-flash-image. The OpenAI-compatible base URL is https://api.apitokenrouter.com/v1.
    How large is the Gemini 3.1 Flash Image context window?
    Gemini 3.1 Flash Image has a 131K-token context window, with up to 33K output tokens per request.
    How much does the Gemini 3.1 Flash Image API cost?
    The official list price of Gemini 3.1 Flash Image is $0.50 input / $60 output per 1M tokens. API Token Router bills per use with no monthly fee; see the price table on this page for the current discounted price.
    How do I pay for the Gemini 3.1 Flash Image API?
    New accounts start with a $0 balance. Top up from $5 by card in the API Token Router dashboard, then usage is deducted per request, with no subscription. Top up.
    Can I pay for the Gemini 3.1 Flash Image API with USDT?
    Yes. In the top-up dialog, click "Pay with crypto" and send USDT, USDC or ETH from Binance, OKX or any wallet. The minimum is $5 and no browser extension is needed. Step by step: how to pay for the API with USDT.