Skip to content

创建视频,带图片 sora-2

POST https://az.gptplus5.com/v1/video/create

请求参数

Authorization

在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token

示例:Authorization: Bearer ********************

Header 参数

参数名类型必需说明示例
Content-Typestring必需application/json
Acceptstring必需application/json
Authorizationstring可选Bearer {{YOUR_API_KEY}}

Body 参数 (application/json)

参数名类型必需说明
imagesarray[string]必需
modelstring必需
orientationstring必需portrait 竖屏 landscape 横屏
promptstring必需
sizestring必需small 一般720p
durationinteger必需
watermarkstring必需默认为: true 会优先无水印,如果出错,会兜底到有水印 传递 false 的话 会强制让视频无水印,遇到去水印错误的会一直自动重试

请求示例

json
{
    "images": [
        "https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
    ],
    "model": "sora-2-all",
    "orientation": "portrait",
    "prompt": "make animate",
    "size": "large",
    "duration":15,
    "watermark":false
}

cURL 示例

bash
curl --location --request POST 'https://az.gptplus5.com/v1/video/create' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "images": [
        "https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png"
    ],
    "model": "sora-2-all",
    "orientation": "portrait",
    "prompt": "make animate",
    "size": "large",
    "duration":15,
    "watermark":false
}'

返回响应

🟢200成功

响应 Body

参数名类型必需说明
idstring必需
statusstring必需
status_update_timeinteger必需

响应示例

json
{
    "id": "sora-2:task_01k6x15vhrff09dkkqjrzwhm60",
    "status": "pending",
    "status_update_time": 1759763427208
}