Nano Banana · Image Generation
Text to Image
📌 What is this:Generate an image from a text description.
💡 When to use:Use to create an image from a text idea.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /api/cqt/generator/nano |
| Query result | GET | /api/cqt/info/nano?id={taskId} |
⏱ Recommended polling interval:Poll every 5s until status = succeeded / failed.
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | — | nano-banana / -pro / -2, default nano-banana |
| prompt | string | Required | Image description |
| numImages | integer | — | Number of images 1-4, default 1 |
| aspectRatio | string | — | Output ratio (banana/pro: 21:9 1:1 4:3 3:2 2:3 5:4 4:5 3:4 16:9 9:16 auto; nano-banana-2 also 1:4 1:8 4:1 8:1) |
| resolution | string | — | Resolution, default 1K |
Request Example
curl -X POST https://api.cqtai.com/api/cqt/generator/nano \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "nano-banana",
"prompt": "a cute cat sitting on a windowsill, soft morning light",
"aspectRatio": "1:1",
"numImages": 1
}'
# -> { "code":200, "data":"<taskId>" }Response Example
{
"code": 200,
"msg": "success",
"data": {
"id": "<taskId>",
"status": "succeeded",
"resultUrl": "https://.../result.png",
"createTime": "2026-06-15 10:00:00",
"completeTime": "2026-06-15 10:00:20"
}
}Billing & Credits
10 / 20 credits per image (by model); x count for multiple (x your user rate). Auto-refunded on failure.