POST
/v1/video/create创建视频 sora-2-pro
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/v1/video/create \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"images": [],
"model": "sora-2-pro",
"orientation": "portrait",
"prompt": "make animate",
"size": "large",
"duration": 15,
"watermark": false,
"private": true
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 是 | - | application/json |
Accept | Header | string | 是 | - | application/json |
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
images | JSON body | array<string> | 是 | 图片链接 | - |
model | JSON body | string | 是 | 模型名字 | - |
orientation | JSON body | string | 是 | portrait 竖屏 landscape 横屏 | - |
prompt | JSON body | string | 是 | 提示词 | - |
size | JSON body | string | 是 | large 高清1080p | - |
duration | JSON body | integer | 是 | 支持 15,25 | - |
watermark | JSON body | boolean | 是 | 默认为: true 会优先无水印,如果出错,会兜底到有水印 传递 false 的话 会强制让视频无水印,遇到去水印错误的会一直自动重试 | - |
private | JSON body | boolean | 是 | 是否隐藏视频,true-视频不会发布,同时视频无法进行 remix(二次编辑), 默认为 false | - |
返回响应 (200)
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
id | 响应 JSON | string | 是 | - | - |
object | 响应 JSON | string | 是 | - | - |
created | 响应 JSON | integer | 是 | - | - |
choices | 响应 JSON | array<object> | 是 | - | - |
choices[].index | 响应 JSON | integer | 否 | - | - |
choices[].message | 响应 JSON | object | 否 | - | - |
choices[].message.role | 响应 JSON | string | 是 | - | - |
choices[].message.content | 响应 JSON | string | 是 | - | - |
choices[].finish_reason | 响应 JSON | string | 否 | - | - |
usage | 响应 JSON | object | 是 | - | - |
usage.prompt_tokens | 响应 JSON | integer | 是 | - | - |
usage.completion_tokens | 响应 JSON | integer | 是 | - | - |
usage.total_tokens | 响应 JSON | integer | 是 | - | - |
响应示例
{
"id": "sora-2:task_01k9009g8ef1esae6388chgcpx",
"status": "pending",
"status_update_time": 1762010645686
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 497673351,
"name": "创建视频 sora-2-pro",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/v1/video/create",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "图片链接"
},
"model": {
"type": "string",
"description": "模型名字"
},
"orientation": {
"type": "string",
"description": "portrait 竖屏\nlandscape 横屏\n"
},
"prompt": {
"type": "string",
"description": "提示词"
},
"size": {
"type": "string",
"description": "large 高清1080p"
},
"duration": {
"type": "integer",
"description": "支持 15,25"
},
"watermark": {
"type": "boolean",
"description": "默认为: true 会优先无水印,如果出错,会兜底到有水印\n传递 false 的话 会强制让视频无水印,遇到去水印错误的会一直自动重试\n"
},
"private": {
"type": "boolean",
"description": "是否隐藏视频,true-视频不会发布,同时视频无法进行 remix(二次编辑), 默认为 false\n"
}
},
"required": [
"images",
"model",
"orientation",
"prompt",
"size",
"duration",
"watermark",
"private"
],
"x-apifox-orders": [
"images",
"model",
"orientation",
"prompt",
"size",
"duration",
"watermark",
"private"
]
},
"examples": [
{
"value": "{\r\n \"images\": [],\r\n \"model\": \"sora-2-pro\",\r\n \"orientation\": \"portrait\",\r\n \"prompt\": \"make animate\",\r\n \"size\": \"large\",\r\n \"duration\": 15,\r\n \"watermark\": false,\r\n \"private\": true\r\n}",
"mediaType": "application/json"
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "NQs7bxnpZf",
"name": "Content-Type",
"required": true,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "qb8tEQbCty",
"name": "Accept",
"required": true,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "gBxcCbXhsa",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 164148690,
"name": "OK",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"created": {
"type": "integer"
},
"choices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer"
},
"message": {
"type": "object",
"properties": {
"role": {
"type": "string"
},
"content": {
"type": "string"
}
},
"required": [
"role",
"content"
],
"x-apifox-orders": [
"role",
"content"
]
},
"finish_reason": {
"type": "string"
}
},
"x-apifox-orders": [
"index",
"message",
"finish_reason"
]
}
},
"usage": {
"type": "object",
"properties": {
"prompt_tokens": {
"type": "integer"
},
"completion_tokens": {
"type": "integer"
},
"total_tokens": {
"type": "integer"
}
},
"required": [
"prompt_tokens",
"completion_tokens",
"total_tokens"
],
"x-apifox-orders": [
"prompt_tokens",
"completion_tokens",
"total_tokens"
]
}
},
"required": [
"id",
"object",
"created",
"choices",
"usage"
],
"x-apifox-orders": [
"id",
"object",
"created",
"choices",
"usage"
]
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 164148690,
"data": "{\r\n \"id\": \"sora-2:task_01k9009g8ef1esae6388chgcpx\",\r\n \"status\": \"pending\",\r\n \"status_update_time\": 1762010645686\r\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fd25e-4be7-74fc-a46e-7db00ed2fe6d"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92749338,
"ordering": 18,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {},
"isDefaultUrlEncoding": 1
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-05T14:40:23.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}