Documentation Index Fetch the complete documentation index at: https://docs.globalaiopc.com/llms.txt
Use this file to discover all available pages before exploring further.
Create Image Generation Task
Use the Nano Banana API to create high-quality AI image generation tasks with support for multiple models and resolution options.
Authentication
All requests require a Bearer token in the request header:
Authorization: Bearer {{key}}
Base URL
https://zcbservice.aizfw.cn/kyyReactApiServer
baseUrl is the shared prefix for all public APIs. The api field in the current page frontmatter shows the full endpoint. Use this baseUrl as the common prefix when reading or composing request paths.
Request Parameters
Model name, available options:
nano-banana
nano-banana-pro
nano-banana-pro-stable
nano-banana-2-stable
nano-banana-2
Image generation prompt Example: "A cute orange cat sitting on a windowsill looking at the scenery outside"
nano-banana、nano-banana-2、nano-banana-2-stable According to the restricted ability instructions, it is recommended to use 1K
Available options:
1k - 1K resolution
2k - 2K resolution
4k - 4K resolution
Aspect ratio setting Available options:
1:1 - Square
16:9 - Landscape widescreen
9:16 - Portrait
4:3 - Standard landscape
3:4 - Standard portrait
3:2 - Classic landscape
2:3 - Classic portrait
5:4 - Slightly wide landscape
4:5 - Slightly tall portrait
21:9 - Ultra-wide
Array of reference image URLs to guide image generation style, up to 6 images
Response Parameters
Unique identifier for the image generation task, used for subsequent status queries
Object type, always nanobanana
Task status:
queued - Queued
processing - Processing
Error message, returned when status is failed
Model Features
nano-banana-fast Basic model, fast generation, suitable for general use
nano-banana-2 Enhanced model with resolution settings support, higher quality
nano-banana-pro Professional model, highest quality, supports 4K resolution
Important Notes
Important:
Image generation is asynchronous, use the returned id to query task status and results
resolution parameter is only effective when using nano-banana-2 or nano-banana-pro models
Recommended polling interval is 2-5 seconds, avoid frequent requests
Best Practices:
Use application/json format for requests
Prompts should clearly describe the desired image content and style
Reference images can help guide generation style but are not required; up to 6 images are supported
Choose appropriate aspect ratio to match your use case
curl --request POST \
--url https://zcbservice.aizfw.cn/kyyReactApiServer/v1/banana/images \
--header 'Authorization: Bearer {{key}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-2",
"prompt": "A cute orange cat sitting on a windowsill looking at the scenery outside",
"resolution": "2k",
"size": "16:9",
"image_urls": []
}'
Creation Success
Creation Failed
{
"id" : "abc123def456" ,
"object" : "image" ,
"created" : 1761635478 ,
"model" : "nano-banana-2" ,
"status" : "queued"
}