Nano Banana
Google · Images
nanobanana- Modes
- 3
Modes and prices
- The cheapest mode: Nano Banana 1
- 6.25 tokens
- per image
A mode is a version or variant of the model with its own price and parameters. Without mode the default one is used.
| Mode | Price |
|---|---|
Nano Banana 2.1v2-11K — 12.5 · 2K — 18.75 · 4K — 25 balance tokens per image, × num_images; +2.34 when search_mode is web, images, both | 12.5 tokensper image 1K |
Nano Banana 2v20.5K — 9.375 · 1K — 12.5 · 2K — 18.75 · 4K — 25 balance tokens per image, × num_images | 12.5 tokensper image 1K |
Nano Banana 1v1without usePro — 6.25 · with usePro — 31.25 balance tokens per image, × num_images | 6.25 tokensper image |
Mode
Nano Banana 2.1
"model": "nanobanana:v2-1"Price
12.5 tokens per image 1K. This is the price of the example request below, in balance tokens. POST /v1/quotes gives the exact price of your request before it runs.resolution: 1Knum_images: 1search_mode: off
balance tokens per image · × num_images
| resolution | Price |
|---|---|
| 1K | 12.5 |
| 2K | 18.75 |
| 4K | 25 |
The price is for one. The total is multiplied by num_images. The highlighted price is the example request's.
Add-ons, balance tokens per image
- +2.34 tokenswhen search_mode is web, images, both
All price rules: 48
The rules go in order: the first one a request matches sets its price.
| resolution | num_images | search_mode | Price |
|---|---|---|---|
| 1K | 1 | off | 12.5 per generation |
| 1K | 1 | web | 14.84 per generation |
| 1K | 1 | images | 14.84 per generation |
| 1K | 1 | both | 14.84 per generation |
| 1K | 2 | off | 25 per generation |
| 1K | 2 | web | 29.68 per generation |
| 1K | 2 | images | 29.68 per generation |
| 1K | 2 | both | 29.68 per generation |
| 1K | 3 | off | 37.5 per generation |
| 1K | 3 | web | 44.52 per generation |
| 1K | 3 | images | 44.52 per generation |
| 1K | 3 | both | 44.52 per generation |
| 1K | 4 | off | 50 per generation |
| 1K | 4 | web | 59.36 per generation |
| 1K | 4 | images | 59.36 per generation |
| 1K | 4 | both | 59.36 per generation |
| 2K | 1 | off | 18.75 per generation |
| 2K | 1 | web | 21.09 per generation |
| 2K | 1 | images | 21.09 per generation |
| 2K | 1 | both | 21.09 per generation |
| 2K | 2 | off | 37.5 per generation |
| 2K | 2 | web | 42.18 per generation |
| 2K | 2 | images | 42.18 per generation |
| 2K | 2 | both | 42.18 per generation |
| 2K | 3 | off | 56.25 per generation |
| 2K | 3 | web | 63.27 per generation |
| 2K | 3 | images | 63.27 per generation |
| 2K | 3 | both | 63.27 per generation |
| 2K | 4 | off | 75 per generation |
| 2K | 4 | web | 84.36 per generation |
| 2K | 4 | images | 84.36 per generation |
| 2K | 4 | both | 84.36 per generation |
| 4K | 1 | off | 25 per generation |
| 4K | 1 | web | 27.34 per generation |
| 4K | 1 | images | 27.34 per generation |
| 4K | 1 | both | 27.34 per generation |
| 4K | 2 | off | 50 per generation |
| 4K | 2 | web | 54.68 per generation |
| 4K | 2 | images | 54.68 per generation |
| 4K | 2 | both | 54.68 per generation |
| 4K | 3 | off | 75 per generation |
| 4K | 3 | web | 82.02 per generation |
| 4K | 3 | images | 82.02 per generation |
| 4K | 3 | both | 82.02 per generation |
| 4K | 4 | off | 100 per generation |
| 4K | 4 | web | 109.36 per generation |
| 4K | 4 | images | 109.36 per generation |
| 4K | 4 | both | 109.36 per generation |
Price make-up (pricing from GET /v1/models/{id})
{
"unit": "tokens",
"kind": "by_parameters",
"base": 12.5,
"example_price": 12.5,
"matrix": [
{
"when": {
"resolution": "1K",
"num_images": 1,
"search_mode": "off"
},
"price": 12.5
},
{
"when": {
"resolution": "1K",
"num_images": 1,
"search_mode": "web"
},
"price": 14.84
},
{
"when": {
"resolution": "1K",
"num_images": 1,
"search_mode": "images"
},
"price": 14.84
},
{
"when": {
"resolution": "1K",
"num_images": 1,
"search_mode": "both"
},
"price": 14.84
},
{
"when": {
"resolution": "1K",
"num_images": 2,
"search_mode": "off"
},
"price": 25
},
{
"when": {
"resolution": "1K",
"num_images": 2,
"search_mode": "web"
},
"price": 29.68
},
{
"when": {
"resolution": "1K",
"num_images": 2,
"search_mode": "images"
},
"price": 29.68
},
{
"when": {
"resolution": "1K",
"num_images": 2,
"search_mode": "both"
},
"price": 29.68
},
{
"when": {
"resolution": "1K",
"num_images": 3,
"search_mode": "off"
},
"price": 37.5
},
{
"when": {
"resolution": "1K",
"num_images": 3,
"search_mode": "web"
},
"price": 44.52
},
{
"when": {
"resolution": "1K",
"num_images": 3,
"search_mode": "images"
},
"price": 44.52
},
{
"when": {
"resolution": "1K",
"num_images": 3,
"search_mode": "both"
},
"price": 44.52
},
{
"when": {
"resolution": "1K",
"num_images": 4,
"search_mode": "off"
},
"price": 50
},
{
"when": {
"resolution": "1K",
"num_images": 4,
"search_mode": "web"
},
"price": 59.36
},
{
"when": {
"resolution": "1K",
"num_images": 4,
"search_mode": "images"
},
"price": 59.36
},
{
"when": {
"resolution": "1K",
"num_images": 4,
"search_mode": "both"
},
"price": 59.36
},
{
"when": {
"resolution": "2K",
"num_images": 1,
"search_mode": "off"
},
"price": 18.75
},
{
"when": {
"resolution": "2K",
"num_images": 1,
"search_mode": "web"
},
"price": 21.09
},
{
"when": {
"resolution": "2K",
"num_images": 1,
"search_mode": "images"
},
"price": 21.09
},
{
"when": {
"resolution": "2K",
"num_images": 1,
"search_mode": "both"
},
"price": 21.09
},
{
"when": {
"resolution": "2K",
"num_images": 2,
"search_mode": "off"
},
"price": 37.5
},
{
"when": {
"resolution": "2K",
"num_images": 2,
"search_mode": "web"
},
"price": 42.18
},
{
"when": {
"resolution": "2K",
"num_images": 2,
"search_mode": "images"
},
"price": 42.18
},
{
"when": {
"resolution": "2K",
"num_images": 2,
"search_mode": "both"
},
"price": 42.18
},
{
"when": {
"resolution": "2K",
"num_images": 3,
"search_mode": "off"
},
"price": 56.25
},
{
"when": {
"resolution": "2K",
"num_images": 3,
"search_mode": "web"
},
"price": 63.27
},
{
"when": {
"resolution": "2K",
"num_images": 3,
"search_mode": "images"
},
"price": 63.27
},
{
"when": {
"resolution": "2K",
"num_images": 3,
"search_mode": "both"
},
"price": 63.27
},
{
"when": {
"resolution": "2K",
"num_images": 4,
"search_mode": "off"
},
"price": 75
},
{
"when": {
"resolution": "2K",
"num_images": 4,
"search_mode": "web"
},
"price": 84.36
},
{
"when": {
"resolution": "2K",
"num_images": 4,
"search_mode": "images"
},
"price": 84.36
},
{
"when": {
"resolution": "2K",
"num_images": 4,
"search_mode": "both"
},
"price": 84.36
},
{
"when": {
"resolution": "4K",
"num_images": 1,
"search_mode": "off"
},
"price": 25
},
{
"when": {
"resolution": "4K",
"num_images": 1,
"search_mode": "web"
},
"price": 27.34
},
{
"when": {
"resolution": "4K",
"num_images": 1,
"search_mode": "images"
},
"price": 27.34
},
{
"when": {
"resolution": "4K",
"num_images": 1,
"search_mode": "both"
},
"price": 27.34
},
{
"when": {
"resolution": "4K",
"num_images": 2,
"search_mode": "off"
},
"price": 50
},
{
"when": {
"resolution": "4K",
"num_images": 2,
"search_mode": "web"
},
"price": 54.68
},
{
"when": {
"resolution": "4K",
"num_images": 2,
"search_mode": "images"
},
"price": 54.68
},
{
"when": {
"resolution": "4K",
"num_images": 2,
"search_mode": "both"
},
"price": 54.68
},
{
"when": {
"resolution": "4K",
"num_images": 3,
"search_mode": "off"
},
"price": 75
},
{
"when": {
"resolution": "4K",
"num_images": 3,
"search_mode": "web"
},
"price": 82.02
},
{
"when": {
"resolution": "4K",
"num_images": 3,
"search_mode": "images"
},
"price": 82.02
},
{
"when": {
"resolution": "4K",
"num_images": 3,
"search_mode": "both"
},
"price": 82.02
},
{
"when": {
"resolution": "4K",
"num_images": 4,
"search_mode": "off"
},
"price": 100
},
{
"when": {
"resolution": "4K",
"num_images": 4,
"search_mode": "web"
},
"price": 109.36
},
{
"when": {
"resolution": "4K",
"num_images": 4,
"search_mode": "images"
},
"price": 109.36
},
{
"when": {
"resolution": "4K",
"num_images": 4,
"search_mode": "both"
},
"price": 109.36
}
]
}Example request
curl https://api.unitool.ai/v1/generations \
-H "Authorization: Bearer $UNITOOL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-d '{
"model": "nanobanana",
"mode": "v2-1",
"input": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "auto",
"resolution": "1K",
"num_images": 1,
"thinking_level": "minimal",
"search_mode": "off"
},
"metadata": {
"order_id": "A-1042"
}
}'{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2-1",
"status": "queued",
"progress": 0,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 0,
"refunded_tokens": 0,
"settled": false
},
"outputs": [],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": null,
"expires_at": null
}Result
While the generation runs, read it by id: the status changes from queued or running to succeeded. With the Prefer: wait header the finished object may come in the answer to POST itself, as 200 instead of 202.
curl https://api.unitool.ai/v1/generations/gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60 \
-H "Authorization: Bearer $UNITOOL_API_KEY"{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2-1",
"status": "succeeded",
"progress": 1,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 12.5,
"refunded_tokens": 0,
"settled": true
},
"outputs": [
{
"index": 0,
"type": "image",
"file_ref": "attachment:482913",
"url": "https://api.unitool.ai/v1/files/q83vEjRkT1mXc0yLw2hN5aZp7dUoB9sGfI4tKeYxWrQ6/file.png",
"content_type": "image/png",
"width": 1024,
"height": 1024,
"size": 1843200,
"expires_at": "2026-12-06T12:00:41.000Z"
}
],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": "2026-12-06T12:00:41.000Z"
}If the generation fails
The HTTP answer is still 200. The reason is in error.code, what happened to the tokens in error.refund. All codes: Media generations
{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2-1",
"status": "failed",
"progress": 0,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 12.5,
"refunded_tokens": 12.5,
"settled": true
},
"outputs": [],
"error": {
"code": "model_error",
"message": "The model failed to produce a result.",
"refund": "full"
},
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": null
}Parameters
| Parameter | Description |
|---|---|
promptstring · required | |
aspect_ratiostring | Values:auto1:116:94:33:29:163:42:34:521:95:44:11:48:11:8Default "auto" |
resolutionstring | Values:1K2K4KDefault "1K" |
num_imagesnumber 1–4 | Default 1 |
thinking_levelstring | Values:minimalmediumhighDefault "minimal" |
search_modestring | Values:offwebimagesbothDefault "off" |
image_urlsarray of file (≤ 14) | A file_ref (asset:… or attachment:…), an https URL or a data: URL. |
Nano Banana 2
"model": "nanobanana:v2"Price
12.5 tokens per image 1K. This is the price of the example request below, in balance tokens. POST /v1/quotes gives the exact price of your request before it runs.resolution: 1Knum_images: 1
balance tokens per image · × num_images
| resolution | Price |
|---|---|
| 0.5K | 9.375 |
| 1K | 12.5 |
| 2K | 18.75 |
| 4K | 25 |
The price is for one. The total is multiplied by num_images. The highlighted price is the example request's.
All price rules: 16
The rules go in order: the first one a request matches sets its price.
| resolution | num_images | Price |
|---|---|---|
| 0.5K | 1 | 9.38 per generation |
| 0.5K | 2 | 18.75 per generation |
| 0.5K | 3 | 28.13 per generation |
| 0.5K | 4 | 37.5 per generation |
| 1K | 1 | 12.5 per generation |
| 1K | 2 | 25 per generation |
| 1K | 3 | 37.5 per generation |
| 1K | 4 | 50 per generation |
| 2K | 1 | 18.75 per generation |
| 2K | 2 | 37.5 per generation |
| 2K | 3 | 56.25 per generation |
| 2K | 4 | 75 per generation |
| 4K | 1 | 25 per generation |
| 4K | 2 | 50 per generation |
| 4K | 3 | 75 per generation |
| 4K | 4 | 100 per generation |
Price make-up (pricing from GET /v1/models/{id})
{
"unit": "tokens",
"kind": "by_parameters",
"base": 12.5,
"example_price": 12.5,
"matrix": [
{
"when": {
"resolution": "0.5K",
"num_images": 1
},
"price": 9.38
},
{
"when": {
"resolution": "0.5K",
"num_images": 2
},
"price": 18.75
},
{
"when": {
"resolution": "0.5K",
"num_images": 3
},
"price": 28.13
},
{
"when": {
"resolution": "0.5K",
"num_images": 4
},
"price": 37.5
},
{
"when": {
"resolution": "1K",
"num_images": 1
},
"price": 12.5
},
{
"when": {
"resolution": "1K",
"num_images": 2
},
"price": 25
},
{
"when": {
"resolution": "1K",
"num_images": 3
},
"price": 37.5
},
{
"when": {
"resolution": "1K",
"num_images": 4
},
"price": 50
},
{
"when": {
"resolution": "2K",
"num_images": 1
},
"price": 18.75
},
{
"when": {
"resolution": "2K",
"num_images": 2
},
"price": 37.5
},
{
"when": {
"resolution": "2K",
"num_images": 3
},
"price": 56.25
},
{
"when": {
"resolution": "2K",
"num_images": 4
},
"price": 75
},
{
"when": {
"resolution": "4K",
"num_images": 1
},
"price": 25
},
{
"when": {
"resolution": "4K",
"num_images": 2
},
"price": 50
},
{
"when": {
"resolution": "4K",
"num_images": 3
},
"price": 75
},
{
"when": {
"resolution": "4K",
"num_images": 4
},
"price": 100
}
]
}Example request
curl https://api.unitool.ai/v1/generations \
-H "Authorization: Bearer $UNITOOL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-d '{
"model": "nanobanana",
"mode": "v2",
"input": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "auto",
"resolution": "1K",
"num_images": 1,
"output_format": "jpeg"
},
"metadata": {
"order_id": "A-1042"
}
}'{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2",
"status": "queued",
"progress": 0,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 0,
"refunded_tokens": 0,
"settled": false
},
"outputs": [],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": null,
"expires_at": null
}Result
While the generation runs, read it by id: the status changes from queued or running to succeeded. With the Prefer: wait header the finished object may come in the answer to POST itself, as 200 instead of 202.
curl https://api.unitool.ai/v1/generations/gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60 \
-H "Authorization: Bearer $UNITOOL_API_KEY"{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2",
"status": "succeeded",
"progress": 1,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 12.5,
"refunded_tokens": 0,
"settled": true
},
"outputs": [
{
"index": 0,
"type": "image",
"file_ref": "attachment:482913",
"url": "https://api.unitool.ai/v1/files/q83vEjRkT1mXc0yLw2hN5aZp7dUoB9sGfI4tKeYxWrQ6/file.png",
"content_type": "image/png",
"width": 1024,
"height": 1024,
"size": 1843200,
"expires_at": "2026-12-06T12:00:41.000Z"
}
],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": "2026-12-06T12:00:41.000Z"
}If the generation fails
The HTTP answer is still 200. The reason is in error.code, what happened to the tokens in error.refund. All codes: Media generations
{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2",
"status": "failed",
"progress": 0,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 12.5,
"refunded_tokens": 12.5,
"settled": true
},
"outputs": [],
"error": {
"code": "model_error",
"message": "The model failed to produce a result.",
"refund": "full"
},
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": null
}Parameters
| Parameter | Description |
|---|---|
promptstring · required | |
aspect_ratiostring | Values:auto1:116:94:33:29:163:42:34:521:9Default "auto" |
resolutionstring | Values:0.5K1K2K4KDefault "1K" |
num_imagesnumber 1–4 | Default 1 |
output_formatstring | Values:jpegpngwebpDefault "jpeg" |
image_urlsarray of file (≤ 9) | A file_ref (asset:… or attachment:…), an https URL or a data: URL. |
Nano Banana 1
"model": "nanobanana:v1"Price
6.25 tokens per image. This is the price of the example request below, in balance tokens. POST /v1/quotes gives the exact price of your request before it runs.num_images: 1usePro: false
balance tokens per image · × num_images
| usePro | Price |
|---|---|
| without usePro | 6.25 |
| with usePro | 31.25 |
The price is for one. The total is multiplied by num_images. The highlighted price is the example request's.
All price rules: 8
The rules go in order: the first one a request matches sets its price.
| num_images | usePro | Condition | Price |
|---|---|---|---|
| 1 | any | without usePro | 6.25 per generation |
| 2 | any | without usePro | 12.5 per generation |
| 3 | any | without usePro | 18.75 per generation |
| 4 | any | without usePro | 25 per generation |
| 1 | true | 31.25 per generation | |
| 2 | true | 62.5 per generation | |
| 3 | true | 93.75 per generation | |
| 4 | true | 125 per generation |
Price make-up (pricing from GET /v1/models/{id})
{
"unit": "tokens",
"kind": "by_parameters",
"base": 6.25,
"example_price": 6.25,
"matrix": [
{
"when": {
"num_images": 1
},
"when_unset": [
"usePro"
],
"price": 6.25
},
{
"when": {
"num_images": 2
},
"when_unset": [
"usePro"
],
"price": 12.5
},
{
"when": {
"num_images": 3
},
"when_unset": [
"usePro"
],
"price": 18.75
},
{
"when": {
"num_images": 4
},
"when_unset": [
"usePro"
],
"price": 25
},
{
"when": {
"usePro": true,
"num_images": 1
},
"price": 31.25
},
{
"when": {
"usePro": true,
"num_images": 2
},
"price": 62.5
},
{
"when": {
"usePro": true,
"num_images": 3
},
"price": 93.75
},
{
"when": {
"usePro": true,
"num_images": 4
},
"price": 125
}
]
}Example request
curl https://api.unitool.ai/v1/generations \
-H "Authorization: Bearer $UNITOOL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-d '{
"model": "nanobanana",
"mode": "v1",
"input": {
"prompt": "A red fox running through fresh snow at sunrise",
"aspect_ratio": "1:1",
"resolution": "1K",
"num_images": 1,
"output_format": "jpeg"
},
"metadata": {
"order_id": "A-1042"
}
}'{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v1",
"status": "queued",
"progress": 0,
"cost": {
"estimated_tokens": 6.25,
"charged_tokens": 0,
"refunded_tokens": 0,
"settled": false
},
"outputs": [],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": null,
"expires_at": null
}Result
While the generation runs, read it by id: the status changes from queued or running to succeeded. With the Prefer: wait header the finished object may come in the answer to POST itself, as 200 instead of 202.
curl https://api.unitool.ai/v1/generations/gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60 \
-H "Authorization: Bearer $UNITOOL_API_KEY"{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v1",
"status": "succeeded",
"progress": 1,
"cost": {
"estimated_tokens": 6.25,
"charged_tokens": 6.25,
"refunded_tokens": 0,
"settled": true
},
"outputs": [
{
"index": 0,
"type": "image",
"file_ref": "attachment:482913",
"url": "https://api.unitool.ai/v1/files/q83vEjRkT1mXc0yLw2hN5aZp7dUoB9sGfI4tKeYxWrQ6/file.png",
"content_type": "image/png",
"width": 1024,
"height": 1024,
"size": 1843200,
"expires_at": "2026-12-06T12:00:41.000Z"
}
],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": "2026-12-06T12:00:41.000Z"
}If the generation fails
The HTTP answer is still 200. The reason is in error.code, what happened to the tokens in error.refund. All codes: Media generations
{
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v1",
"status": "failed",
"progress": 0,
"cost": {
"estimated_tokens": 6.25,
"charged_tokens": 6.25,
"refunded_tokens": 6.25,
"settled": true
},
"outputs": [],
"error": {
"code": "model_error",
"message": "The model failed to produce a result.",
"refund": "full"
},
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": null
}Parameters
| Parameter | Description |
|---|---|
promptstring · required | |
aspect_ratiostring | Values:1:116:94:39:163:4Default "1:1" |
resolutionstring | Values:1K2K4KDefault "1K" |
num_imagesnumber 1–4 | Default 1 |
useProboolean | Default false |
output_formatstring | Values:jpegpngwebpDefault "jpeg" |
image_urlsarray of file (≤ 9) | A file_ref (asset:… or attachment:…), an https URL or a data: URL. |
Webhook
When the generation finishes, the same object is sent by POST to your address, in the data field. Signature, retries and setup: Webhooks
{
"type": "generation.succeeded",
"timestamp": "2026-11-29T12:00:41.000Z",
"data": {
"id": "gen_6f1c0e9a2b7d4c3e8f5a1b2c3d4e5f60",
"object": "generation",
"model": "nanobanana",
"mode": "v2-1",
"status": "succeeded",
"progress": 1,
"cost": {
"estimated_tokens": 12.5,
"charged_tokens": 12.5,
"refunded_tokens": 0,
"settled": true
},
"outputs": [
{
"index": 0,
"type": "image",
"file_ref": "attachment:482913",
"url": "https://api.unitool.ai/v1/files/q83vEjRkT1mXc0yLw2hN5aZp7dUoB9sGfI4tKeYxWrQ6/file.png",
"content_type": "image/png",
"width": 1024,
"height": 1024,
"size": 1843200,
"expires_at": "2026-12-06T12:00:41.000Z"
}
],
"error": null,
"metadata": {
"order_id": "A-1042"
},
"created_at": "2026-11-29T12:00:00.000Z",
"completed_at": "2026-11-29T12:00:41.000Z",
"expires_at": "2026-12-06T12:00:41.000Z"
}
}Limits
Generations are async: create, wait or poll, the result by link for 7 days. Details: Media generations
Concurrent generations are limited per account, extra ones wait in the queue: Limits and headers