主题
创建视频 (带 Character)
POST
https://az.gptplus5.com/v1/video/create
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Content-Type | string | 必需 | application/json |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
images | array[string] | 可选 | |
model | string | 必需 | |
orientation | enum<string> | 可选 | |
prompt | string | 必需 | |
duration | enum<integer> | 可选 | |
character_url | string | 可选 | 创建角色需要的视频链接,注意视频中一定不能出现真人,否则会失败 |
character_timestamps | string | 可选 | 视频角色出现的秒数范围,格式 {start},{end}, 注意 end-start 的范围 1-3秒 |
size | enum<string> | 必需 |
请求示例
json
{
"images": [],
"model": "sora-2",
"orientation": "portrait",
"prompt": "make animate",
"duration": 15,
"character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4",
"character_timestamps": "1,3",
"size": "large"
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/v1/video/create' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"images": [],
"model": "sora-2",
"orientation": "portrait",
"prompt": "make animate",
"duration": 15,
"character_url": "https://filesystem.site/cdn/20251030/javYrU4etHVFDqg8by7mViTWHlMOZy.mp4",
"character_timestamps": "1,3",
"size": "large"
}'返回响应
🟢200成功
响应示例
json
{
"id": "sora-2:task_01k900ag82ecgbewj2xa3758z0",
"status": "pending",
"status_update_time": 1762010677921
}