Models › Nano Banana 2 Lite

Nano Banana 2 Lite API

gemini-3.1-flash-lite-image is a image generation model from Google, available on OneFast API behind the same API key as every other model in the catalog.

Pricing

UsagePrice (USD)
Input$0.15 / 1M tokens
Output$18.00 / 1M tokens

Billed per 1M tokens, pay as you go in USD. Failed requests are not billed. The price shown is the public list price; after signing in, the console shows the price for your own account.

Model details

Model IDgemini-3.1-flash-lite-image
ProviderGoogle
TypeImage

Endpoints

  • POST /v1/images/generations — Text-to-image (docs)
  • POST /v1/images/edits — Image-to-image / inpainting (docs)
  • POST /v1beta/models/{model}:generateContent — Gemini native (docs)

Quickstart

Create an API key in the console, then call the API:

curl https://api.onefast.ai/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-lite-image",
    "prompt": "A cute corgi astronaut, studio lighting",
    "size": "1024x1024",
    "n": 1
  }'

More examples: Text-to-image docs · Quickstart.