Sora Image · Image Generation

Text to Image

📌 What is thisGenerate an image from text.
💡 When to useUse for GPT-Image style results.

Endpoints

UsageMethodPath
Submit taskPOST/api/cqt/generator/sora
Query ResultGET/api/cqt/info/sora?id={taskId}
Recommended polling intervalPoll every 30s (response includes progress 0-1).

Request Parameters

ParamTypeRequiredDescription
promptstringRequiredImage description
sizestringRatio, only 1:1 / 2:3 / 3:2

Request Example

curl -X POST https://api.cqtai.com/api/cqt/generator/sora \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "a watercolor illustration of a quiet seaside town",
    "size": "3: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

Flat 6 credits per image (x your user rate). Auto-refunded on failure.