prompt and set type to "TEXTTOIAMGE"prompt, imageUrls and set type to "IMAGETOIAMGE"numImages parameterimage_size parameter to specify the desired aspect ratio for your imagescallBackUrl) is required for receiving task completion notificationscurl --location 'https://api.nanobananaapi.ai/api/v1/nanobanana/generate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A serene mountain landscape at sunset with a lake reflecting the orange sky",
"numImages": 1,
"type": "TEXTTOIAMGE",
"image_size": "16:9",
"callBackUrl": "https://your-callback-url.com/callback"
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task12345"
}
}