Nano Banana 2
prospolabs/nano-banana-2
Google's Gemini 3.1 Flash Image. Fast text-to-image and image-editing with strong character consistency. Accepts up to 14 reference images per edit.
Starts from
Retail $0.080
Call the Nano Banana 2 API on Prospolabs with a single POST to /v1/generate using model id nano-banana-2 and a mode field (one of: generate, edit). The API and the playground share the same USD price — $0.048 (1K) to $0.096 (4K) per image — 40% off market. Each call returns a generation_id and an output_url valid for 7 days, and failed runs are auto-refunded.
Quickstart
Send a POST request to /v1/generate with your API key. The model id is nano-banana-2 and a mode field selecting which input shape you're sending..
Create an image from a text prompt.
curl -X POST "https://api.prospolabs.com/v1/generate" \
-H "Authorization: Bearer $PROSPOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2",
"mode": "generate",
"prompt": "Minimalist product photo of a ceramic coffee mug, soft light",
"aspect_ratio": "1:1",
"resolution": "1K",
"num_images": 1,
"output_format": "png",
"safety_tolerance": "4",
"enable_web_search": "false",
"seed": 0
}'Backed by fal-ai/nano-banana-2.
Supported parameters for Generate
| Parameter | Type | Default | Notes |
|---|---|---|---|
| mode | string | generate | Required. One of: generate, edit. |
| prompt | string | — | Required. |
| aspect_ratio | string | 1:1 | One of: auto, 1:1, 21:9, 16:9, 3:2, 4:3, 5:4, 4:5, 3:4, 2:3, 9:16. |
| resolution | string | 1K | One of: 1K, 2K, 4K. |
| num_images | number | 1 | Range: 1–4. |
| output_format | string | png | One of: png, jpeg, webp. |
| safety_tolerance | string | 4 | One of: 1, 2, 3, 4, 5, 6. |
| enable_web_search | string | false | One of: false, true. |
| seed | number | — |
Response
{
"generation_id": "gen_abc123",
"status": "completed",
"model": "nano-banana-2",
"mode": "generate",
"estimated_cost_usd": 0.60,
"output_url": "https://cdn.prospolabs.com/...",
"duration_ms": 2143
}Output retention: output_url is valid for 7 days after generation. After that, requests return HTTP 410 Gone with { "code": "output_expired" }. Download anything you want to keep.