Nano Banana · Image Generation
Image to Image
📌 What is this:Generate a new image from a reference image + text (e.g. restyle).
💡 When to use:Use to restyle or remix an existing image.
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 | — | Same as above |
| prompt | string | Required | Image description |
| filesUrl | string[] | Required | Reference image URL(s) |
| numImages | integer | — | Number of images 1-4 |
| aspectRatio | string | — | Output ratio |
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-pro",
"prompt": "turn this into an oil painting",
"filesUrl": ["https://example.com/input.jpg"],
"aspectRatio": "16:9",
"numImages": 2
}'
# -> { "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.