nano-banana-2.1Generation type:
text_to_imageEndpoint:
POST /api/asset_generator/
Pricing
Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.
Quick start
Input parameters
Send these fields ininput_params.
The text prompt to generate an image from.Minimum characters:
3.
Maximum characters: 5000.The aspect ratio of the generated image.Allowed values:
"21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16".Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
