Nano Banana · Image Generation

Text to Image

📌 What is thisGenerate an image from a text description.
💡 When to useUse to create an image from a text idea.

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
modelstringnano-banana / -pro / -2, default nano-banana
promptstringRequiredImage description
numImagesintegerNumber of images 1-4, default 1
aspectRatiostringOutput 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)
resolutionstringResolution, 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.