Google

Google

Available via APIImage Generation

Nano Banana 2 API (Gemini 3.1 Flash Image)

High-efficiency image generation and editing with faster iteration, precise text, and 1K, 2K, or 4K delivery.

Model ID
nano-banana-2
Starts at
$0.048/image
Free trial
$0.20 in credits
View API Documentation

New accounts start with $0.20 in free credits, about 4 images at the starting price.

Compare all Nano Banana API versions

Nano Banana 2 is developed by Google. Wizzx provides API access to it and does not own the model. All trademarks belong to their respective owners.

Try it

$0.048 per image · 48 credits

Sign in to run it. New accounts get $0.20 in free credits.

Next: turn the image into a video with

Model Guide

About Nano Banana 2

High-efficiency image generation and editing with faster iteration, precise text, and 1K, 2K, or 4K delivery.

Why choose Nano Banana 2?

Nano Banana 2 is Google’s Gemini 3.1 Flash Image model. It combines the high-throughput direction of the Flash family with stronger reasoning, text rendering, and editing control, making it a practical production tier between the original Nano Banana and Nano Banana Pro.

Core strengthBest fit
High-efficiency generationProduction workflows that need speed without staying at the base model’s output tier
1K, 2K, and 4K deliveryDraft, web, and high-resolution assets from one model key
Text and layout handlingSocial graphics, product cards, diagrams, and campaign variations
Reference-guided editingPreserve people, objects, or visual direction while changing selected details

Prompting approach

Define the deliverable, subject, layout, exact text, palette, and output ratio. For edits, separate what must remain unchanged from the requested change. Use references with a single purpose each rather than adding images without a clear role.

Wizzx scope

The Playground supports text-to-image and image-to-image with up to 14 reference images, 1K / 2K / 4K resolution, and aspect ratios including 1:4, 4:1, 1:8, and 8:1. It defaults to 1K, automatic aspect ratio, and PNG. Use publicly accessible JPEG, PNG, or WebP references no larger than 10 MB each for channel compatibility.

Prices come from the live backend catalog and vary by resolution. Wizzx generates one image per request; 0.5K output and Google Search grounding are not exposed. The backend prompt limit is 20,000 UTF-8 bytes.

Sources

Backend pricing

Nano Banana 2 API (Gemini 3.1 Flash Image) pricing

Model identity, billing unit and every price tier below are read from the backend catalog.

1K

48

credits / image

= $0.048 USD / image

100 images ≈ $4.80 · 1,000 images ≈ $48.00

Official: $0.067−28%

resolution
1K

2K

72

credits / image

= $0.072 USD / image

100 images ≈ $7.20 · 1,000 images ≈ $72.00

Official: $0.101−29%

resolution
2K

4K

108

credits / image

= $0.108 USD / image

100 images ≈ $10.80 · 1,000 images ≈ $108.00

Official: $0.151−28%

resolution
4K

Nano Banana 2 API (Gemini 3.1 Flash Image) vs official pricing

TierOfficial fromWizzxSavings
1K$0.067$0.048−28%
2K$0.101$0.072−29%
4K$0.151$0.108−28%

1 credit = $0.001 USD. The final deduction returned by the API is authoritative.

Back to all models

Integrate the Nano Banana 2 API (Gemini 3.1 Flash Image)

Every request is asynchronous: submit the task, keep the task ID, then poll for the result. The body below uses the model's default settings.

  1. 1

    Get a Nano Banana 2 API (Gemini 3.1 Flash Image) key

    Sign in and create a key in the dashboard. Set WIZZX_API_KEY in your server environment; never expose it in browser code.

  2. 2

    Submit a task

    Send a POST request to the model endpoint. A successful submission returns data.task_id; keep that ID before polling. Submission is not generation completion.

  3. 3

    Retrieve the result

    Replace YOUR_TASK_ID with the returned ID and query /api/v1/task/status. Wait for SUCCEEDED and read the output URLs. Stop on FAILED or REVIEW_REQUIRED; do not automatically resubmit an uncertain task.

Submit a tasksubmit.sh
curl -X POST \
  https://api.wizzx.ai/api/v1/task/submit/nano-banana-2 \
  -H "Authorization: Bearer $WIZZX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "aspect_ratio": "auto",
  "resolution": "1K",
  "output_format": "png",
  "prompt": "A ceramic coffee cup on a wooden table, soft morning light, product photography"
}'
Retrieve the resultstatus.sh
curl -X POST \
  https://api.wizzx.ai/api/v1/task/status \
  -H "Authorization: Bearer $WIZZX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "task_id": "YOUR_TASK_ID"
}'

Nano Banana 2 API (Gemini 3.1 Flash Image) parameters

The fields this endpoint accepts on Wizzx, read from the same schema as the Playground form.

ParameterTypeDefaultAllowed valuesDescription
prompt
Promptrequired
string———
image_urls
Reference Images
url[] ≤ 14——Up to 14 reference images (JPEG, PNG, or WebP).
aspect_ratio
Aspect Ratio
stringautoauto · 1:1 · 1:4 · 1:8 · 2:3 · 3:2 · 3:4 · 4:1 · 4:3 · 4:5 · 5:4 · 8:1 · 9:16 · 16:9 · 21:9—
resolution
Resolution
string1K1K · 2K · 4K—
output_format
Output Format
stringpngpng · jpg—

API integration questions

How much does the Nano Banana 2 API (Gemini 3.1 Flash Image) cost?
On Wizzx the Nano Banana 2 API (Gemini 3.1 Flash Image) starts at $0.048/image (48 credits). Each tier above lists its parameters and billing unit, and failed tasks are refunded.
What is the Nano Banana 2 API (Gemini 3.1 Flash Image) model ID?
nano-banana-2. Submit tasks to POST /api/v1/task/submit/nano-banana-2 with your API key.
Am I charged if a task fails?
No. Credits are reserved when you submit a task and refunded if it fails. You are only charged for successful tasks.
Can I try the Nano Banana 2 API (Gemini 3.1 Flash Image) for free?
Yes. New accounts start with $0.20 in free credits, about 4 images at the starting price.
Is this the official Nano Banana 2 API (Gemini 3.1 Flash Image)?
No. Nano Banana 2 models are developed by Google. Wizzx is an independent API platform that gives you access to them with one API key, an asynchronous task API and pay-as-you-go credits.
Does the submit response contain the generated file?
Generation is asynchronous. The submit response identifies the task. Query its status until it finishes, then use the output URLs in the result. See the API reference for response fields and error handling.

Wizzx API

Start building with the Nano Banana 2 API (Gemini 3.1 Flash Image)

New accounts get $0.20 in free credits. Pay as you go with no subscription, and failed tasks are refunded.