Sora 2 · Video Generation
Text to Video
📌 What is this:Generate a video from a text description.
💡 When to use:Use to turn a text idea straight into a clip.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /api/cqt/generator/sora2 |
| Query result | GET | /api/cqt/info/sora2?id={taskId} |
⏱ Recommended polling interval:Poll every 10-15s until status = succeeded / failed.
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | — | Fixed sora-2 |
| prompt | string | Required | Video description |
| aspectRatio | string | — | Ratio 16:9 / 9:16, default 9:16 |
| duration | integer | — | Duration (sec) 4 / 8 / 12, default 8 |
| size | string | — | small / large (no billing impact) |
Request Example
curl -X POST https://api.cqtai.com/api/cqt/generator/sora2 \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "sora-2",
"prompt": "a golden retriever running on a beach at sunset",
"aspectRatio": "16:9",
"duration": 8
}'
# -> { "code":200, "data":"<taskId>" }Response Example
{
"code": 200,
"data": {
"id": "<taskId>",
"status": "succeeded",
"resultUrl": "https://.../result.mp4",
"createTime": "2026-06-15 10:00:00",
"completeTime": "2026-06-15 10:02:00"
}
}Billing & Credits
10 credits x duration (sec) (x your user rate). Auto-refunded on failure.