# Nano Banana 2 API (Gemini 3.1 Flash Image) on Wizzx - Model ID: `nano-banana-2` (Google Nano Banana 2) - Submit: `POST https://api.wizzx.ai/api/v1/task/submit/nano-banana-2` - Status: `GET https://api.wizzx.ai/api/v1/task/{task_id}` - Idempotency: optional `Idempotency-Key: ` header on submit - Auth: header `Authorization: Bearer $WIZZX_API_KEY` (server-side only) - Price: from $0.048/image, billed in credits; failed tasks are refunded - Page: https://wizzx.ai/model/nano-banana-2 - JSON Schema: https://wizzx.ai/api/models/nano-banana-2/schema - API reference: https://docs.wizzx.ai/api-reference/endpoint/submit-nano-banana-2 ## Flow 1. POST the JSON body to the submit URL. The response contains `data.task_id`. 2. Poll `GET /api/v1/task/{task_id}` until `data.status` is `SUCCEEDED`, then read the output URLs from `data.result_urls`. 3. Stop on `FAILED` or `REVIEW_REQUIRED`. Do not resubmit automatically. ## Parameters | Field | Type | Required | Default | Allowed | Description | |---|---|---|---|---|---| | `prompt` | string | yes | | | | | `image_urls` | url[] ≤ 14 | no | | | Up to 14 reference images (JPEG, PNG, or WebP). | | `aspect_ratio` | string | no | auto | auto · 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` | string | no | 1K | 1K · 2K · 4K | | | `output_format` | string | no | png | png · jpg | | ## Example body ```json { "aspect_ratio": "auto", "resolution": "1K", "output_format": "png", "prompt": "An isometric illustration of a small bakery's morning workflow, shown as four connected stations from left to right, labeled \"Mix\", \"Proof\", \"Bake\" and \"Sell\" in a clean sans-serif font. Soft pastel palette, warm light, tiny figures at work, plenty of white space. Every label must be spelled exactly as written." } ```