curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "A cute shiba inu running under a starry sky",
"ratio": "16:9"
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
Nano Banana Text-to-Image — Generate images from text prompts
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "A cute shiba inu running under a starry sky",
"ratio": "16:9"
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
nano-banana · nano-banana-2 · nano-banana-pro
nano-banana — Gemini 2.5 Flash
16:9, 9:16nano-banana-2 — Gemini 3.1 Flash
16:9, 9:16, 1:1, 4:3, 3:41k, 2k, 4knano-banana-pro — Gemini 3.0 Pro
16:9, 9:16, 1:1, 4:3, 3:41k, 2k, 4knano-banana, nano-banana-2, nano-banana-pro.Hide properties
16:9, 9:16, 1:1, 4:3, 3:4. Default: 16:9.Note: nano-banana only supports 16:9 and 9:16. Other ratios require nano-banana-2 or nano-banana-pro.1k, 2k, 4k. Default: 1k.Note: nano-banana ignores this parameter (always 1K). Only nano-banana-2 and nano-banana-pro support 2K and 4K.curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "A cute shiba inu running under a starry sky",
"ratio": "16:9"
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "SUCCESS",
"input": {
"model": "nano-banana-pro",
"prompt": "A cute shiba inu running under a starry sky",
"ratio": "16:9",
"resolution": "2k"
},
"result": {
"type": "image",
"urls": [
"https://example.com/output/image-a1b2c3d4.png"
]
},
"created_at": "2026-02-12T10:00:00.000000Z",
"updated_at": "2026-02-12T10:00:15.000000Z"
}
}