Create Nano Banana task
创建 GPT Image 2 或 Nano Banana 异步生图任务。
POST
Create an async Nano Banana image task. Poll with Query image task and read
Success response:
result.image_url when completed.
For GPT Image 2, see Create GPT Image 2 task.
Models
Billing is by resolution (
per_task, 1 image per request). Check Model catalog and the create response cost for live prices.
Request body
Examples
Text-to-image (Nano Banana 2)
Image-to-image (Nano Banana Pro)
Nano Banana 2.1
Authorizations
控制台创建的 API Key,格式:Bearer sk_xxx
Body
application/json
gpt-image-2 (plus low/medium/high) or nano-banana-2 / nano-banana-2.1 / nano-banana-pro
Example:
"nano-banana-2"
GPT Image 2 max 4000; Nano Banana max 10000. Optional when images are provided
Required string length:
1 - 10000Available options:
auto, low, medium, high Required range:
1 <= x <= 4ratio 别名
Nano Banana: 0.5k/1k/2k/4k depending on model
Reference image URLs. GPT Image 2 max 15; Nano Banana max 5
Maximum array length:
15Last modified on October 18, 2026