主题
创建视频,带图片 sora-2
POST
https://az.gptplus5.com/v1/video/create
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Content-Type | string | 必需 | application/json | |
Accept | string | 必需 | application/json | |
Authorization | string | 可选 | Bearer {{YOUR_API_KEY}} |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
images | array[string] | 必需 | |
model | string | 必需 | |
orientation | string | 必需 | portrait 竖屏 landscape 横屏 |
prompt | string | 必需 | |
size | string | 必需 | small 一般720p |
duration | integer | 必需 | |
watermark | string | 必需 | 默认为: 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
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
id | string | 必需 | |
status | string | 必需 | |
status_update_time | integer | 必需 |
响应示例
json
{
"id": "sora-2:task_01k6x15vhrff09dkkqjrzwhm60",
"status": "pending",
"status_update_time": 1759763427208
}