Sora Image · Image Generation
Text to Image
📌 What is this:Generate an image from text.
💡 When to use:Use for GPT-Image style results.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /api/cqt/generator/sora |
| Query Result | GET | /api/cqt/info/sora?id={taskId} |
⏱ Recommended polling interval:Poll every 30s (response includes progress 0-1).
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| prompt | string | Required | Image description |
| size | string | — | Ratio, 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.