All models

Google

Nano Banana 2

Nano Banana 2 produces one 1024 × 1024 image.

image
gemini-3.1-flash-image-preview
Open in playground

Our price

$0.0469

per image

Official output price

$0.067

per image

30% less

First request

Available
# Set OPERATION_ID once per generation; reuse it when retrying.
OPERATION_ID=$(python3 -c "import uuid; print(uuid.uuid4())")
curl https://api.tokely.me/v1/images/generations \
  -H "Authorization: Bearer $TOKELY_API_KEY" \
  -H "Idempotency-Key: $OPERATION_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.1-flash-image-preview",
  "aspect_ratio": "1:1",
  "resolution": "1K",
  "output_format": "png",
  "n": 1,
  "prompt": "A quiet coastal village at sunrise."
}'

Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.

Capabilities & limits

Provider
Google
API model ID
gemini-3.1-flash-image-preview
Category
Image
Endpoints
POST /v1/images/generations
Output
Image · synchronous response
Supported input
Prompt, Image input, Aspect ratio, Resolution, Output format, Images
One bounded generation
$0.0469 per image

API reference

Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use your Tokely base URL and API key.

model
Required string: gemini-3.1-flash-image-preview
prompt (required)
Text, up to 20000 characters
image_input
Public HTTPS reference URLs; up to 14
aspect_ratio
1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9, auto. Default: 1:1
resolution
1K, 2K, 4K. Default: 1K
output_format
png, jpg. Default: png
n
Between 1 and 1; whole numbers. Default: 1

Requests are charged to your Tokely balance using the options and rates shown above. Your dashboard records usage.

The response contains the generated image. Save or download the result returned by the API.

400 / 415
Invalid request, parameter, endpoint for this model, or content type.
401 / 403
Invalid, revoked or restricted API key.
402
Insufficient account balance or API key budget.
429
Request limit reached. Retry after the indicated delay.
502 / 503 / 504
Upstream failure, temporary service unavailability or request timeout.

Compare nearby prices

USD for the listed variants with the same billing unit. Generation options can differ; these are not quality benchmarks.
ModelPriceUnitVariant
Nano Banana 2Google · this model$0.0469imageOne bounded generation
GPT Image 2.5 FlareOpenAI$0.046144imageOne bounded generation
GPT Image 2.5 SunburstOpenAI$0.046144imageOne bounded generation
GPT Image 2.6 FlareOpenAI$0.046144imageOne bounded generation
GPT Image 2.6 SunburstOpenAI$0.046144imageOne bounded generation

Compare equivalent generation settings

Match model version, duration, resolution and input requirements before comparing two prices. Results are kept for 30 days; download those you need to keep.

Compare image API costs · Google models · Methodology

Frequently asked questions

How much does Nano Banana 2 cost?

One bounded generation: $0.0469 per image. Usage is charged to your Tokely balance.

Do I need a separate Google account?

Use your Tokely API key and balance. A separate provider key is not required.

How do I switch to this model?

Set model to gemini-3.1-flash-image-preview and use /v1/images/generations. Keep your Tokely base URL and API key. Use the parameters listed above for this model.

Related versions