Theme
Create Video sora-2-pro
POST
https://www.kkiai.com/v1/video/create
Request Parameters
Authorization
Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.
Example: Authorization: Bearer ********************
Header Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
Content-Type | string | Required | application/json | |
Accept | string | Required | application/json | |
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
images | array[string] | Required | |
model | string | Required | |
orientation | string | Required | portrait for vertical screen landscape for horizontal screen |
prompt | string | Required | |
size | string | Required | large for HD 1080p |
duration | integer | Required | |
watermark | boolean | Required | Default: true will prioritize watermark-free, if error occurs, will fall back to watermarked passing false will force the video to be watermark-free, will automatically retry if watermark removal error occurs |
private | boolean | Required | Whether to hide the video, true-video will not be published, and the video cannot be remixed (edited again), default is false |
Request Example
json
{
"images": [],
"model": "sora-2-pro",
"orientation": "portrait",
"prompt": "make animate",
"size": "large",
"duration": 15,
"watermark": false,
"private": true
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/v1/video/create' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"images": [],
"model": "sora-2-pro",
"orientation": "portrait",
"prompt": "make animate",
"size": "large",
"duration": 15,
"watermark": false,
"private": true
}'Response
🟢 200 OK
Response Body
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Required | |
object | string | Required | |
created | integer | Required | |
choices | array[object] | Required | |
└ index | integer | Optional | |
└ message | object | Optional | |
└ finish_reason | string | Optional | |
usage | object | Required | |
└ prompt_tokens | integer | Required | |
└ completion_tokens | integer | Required | |
└ total_tokens | integer | Required |
Response Example
json
{
"id": "sora-2:task_01k9009g8ef1esae6388chgcpx",
"status": "pending",
"status_update_time": 1762010645686
}