Nano Banana Pro
Overview
Model identifier: nano-banana-pro · Output: image · Modes: Text to Image, Image to Image
Authentication and endpoint
All requests go to https://genjutsu.top. Send a Genjutsu API key as a bearer token. POST https://genjutsu.top/v1/media/generate · Authorization: Bearer $GENJUTSU_API_KEY · Required scopes: generate, read, assets
Modes and parameters
Text to Image t2i
| Parameter | Type | Required | Default | Details |
|---|---|---|---|---|
prompt | string | Required | - | |
count | integer | Optional | 1 | |
aspect_ratio | one of | Optional | "16:9" |
|
image_resolution | one of | Optional | "none" |
|
Minimal request
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "nano-banana-pro",
"mode": "t2i",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}'Request with optional parameters
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "nano-banana-pro",
"mode": "t2i",
"params": {
"count": 1,
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"aspect_ratio": "16:9",
"image_resolution": "none"
}
}'Image to Image i2i
| Parameter | Type | Required | Default | Details |
|---|---|---|---|---|
prompt | string | Required | - | |
images_list | list of image asset IDs | Required | - | Add 1 to 10 PNG, JPEG or WebP reference images. Each image can be up to 20 MiB. |
count | integer | Optional | 1 | |
aspect_ratio | one of | Optional | "16:9" |
Task lifecycle
Submit the request to POST /v1/media/generate. It answers 202 with a task_id. Poll GET /v1/media/tasks/{task_id} every 5 seconds until is_final is true: the state is then succeeded, failed or cancelled and the same task holds the result (outputs) or the error (error_code and error_message). Repeating the submit with the same Idempotency-Key returns the original task. The IDs and URLs in responses are illustrative.
# Needs curl and jq.
# 1. Submit. The response is 202 with task_id, state and credits_held.
ID=$(curl -s -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "nano-banana-pro",
"mode": "t2i",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}' | jq -r .task_id)
echo "task: $ID"
# 2. Poll every 5 seconds until is_final is true (state is then succeeded, failed or cancelled).
while true; do
TASK=$(curl -s "https://genjutsu.top/v1/media/tasks/$ID" -H "Authorization: Bearer $GENJUTSU_API_KEY")
echo "state: $(echo "$TASK" | jq -r .state)"
[ "$(echo "$TASK" | jq -r .is_final)" = "true" ] && break
sleep 5
done
# 3. The final task carries the result: outputs[].url when succeeded, error_code and error_message when failed.
echo "$TASK" | jq '{state, outputs, error_code, error_message, credits}'Price
Text to Image
| Options | Total |
|---|---|
Resolution: 1K | 0.200000 credits per request |
Resolution: 2K | 0.400000 credits per request |
Resolution: 4K | 0.600000 credits per request |
Image to Image
| Options | Total |
|---|---|
Resolution: 1K | 0.200000 credits per request |
Resolution: 2K | 0.400000 credits per request |
Resolution: 4K | 0.600000 credits per request |
For your exact total, use Studio or POST /v1/quotes.
Version and notes
Documentation version 4, published 2026-11-27.