Nano Banana · Image Generation

Image to Image

📌 What is thisGenerate a new image from a reference image + text (e.g. restyle).
💡 When to useUse 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 intervalPoll every 5s until status = succeeded / failed.

Request Parameters

ParamTypeRequiredDescription
modelstringSame as above
promptstringRequiredImage description
filesUrlstring[]RequiredReference image URL(s)
numImagesintegerNumber of images 1-4
aspectRatiostringOutput 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.