Sora Image · Image Generation

Image to Image

📌 What is thisGenerate a new image from a reference + text.
💡 When to useUse to restyle an image.

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
filesUrlstring[]RequiredReference image URL(s)
sizestringRatio 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": "convert this photo into a watercolor",
    "filesUrl": ["https://example.com/input.jpg"],
    "size": "1: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

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