CQTAI
Nano Banana · Image

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

UsageMethodPath
Submit taskPOST/api/cqt/generator/nano
Query ResultGET/api/cqt/info/nano?id={taskId}
⏱ Recommended polling interval:Poll every 5s until status = succeeded / failed.

Request Parameters

ParamTypeRequiredDescription
modelstring—Same as above
promptstringRequiredImage description
filesUrlstring[]RequiredReference image URL(s)
numImagesinteger—Number of images 1-4
aspectRatiostring—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"
  }
}

⏳ File links are kept for 15 days and then deleted automatically. Please download and re-host your files in time.