https://www.volcengine.com/docs/82379/1520757?lang=zh
POST
/api/v3/contents/generations/tasks创建视频生成任务 API(doubao-2.0)
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/api/v3/contents/generations/tasks \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-2-0-260128",
"content": [
{
"type": "text",
"text": "全程使用视频1的第一视角构图,全程使用音频1作为背景音乐。第一人称视角果茶宣传广告,seedance牌「苹苹安安」苹果果茶限定款;首帧为图片1,你的手摘下一颗带晨露的阿克苏红苹果,轻脆的苹果碰撞声;2-4 秒:快速切镜,你的手将苹果块投入雪克杯,加入冰块与茶底,用力摇晃,冰块碰撞声与摇晃声卡点轻快鼓点,背景音:「鲜切现摇」;4-6 秒:第一人称成品特写,分层果茶倒入透明杯,你的手轻挤奶盖在顶部铺展,在杯身贴上粉红包标,镜头拉近看奶盖与果茶的分层纹理;6-8 秒:第一人称手持举杯,你将图片2中的果茶举到镜头前(模拟递到观众面前的视角),杯身标签清晰可见,背景音「来一口鲜爽」,尾帧定格为图片2。背景声音统一为女生音色。"
},
{
"type": "image_url",
"image_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg"
},
"role": "reference_image"
},
{
"type": "image_url",
"image_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg"
},
"role": "reference_image"
},
{
"type": "video_url",
"video_url": {
"url": "https://pro.filesystem.site/cdn/20260403/0e80a635b859e7716671a40d836135.mp4"
},
"role": "reference_video"
},
{
"type": "audio_url",
"audio_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3"
},
"role": "reference_audio"
}
],
"generate_audio":true,
"ratio": "21:9",
"duration": 11,
"watermark": false
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
model | JSON body | string | 是 | - | - |
content | JSON body | array<object> | 是 | - | - |
content[].type | JSON body | string | 是 | - | - |
content[].text | JSON body | string | 否 | - | - |
content[].image_url | JSON body | object | 是 | - | - |
content[].image_url.url | JSON body | string | 是 | - | - |
content[].role | JSON body | string | 是 | - | - |
content[].video_url | JSON body | object | 否 | - | - |
content[].video_url.url | JSON body | string | 是 | - | - |
content[].audio_url | JSON body | object | 否 | - | - |
content[].audio_url.url | JSON body | string | 是 | - | - |
generate_audio | JSON body | boolean | 否 | - | - |
ratio | JSON body | string | 否 | - | - |
duration | JSON body | integer | 否 | - | - |
watermark | JSON body | boolean | 否 | - | - |
返回响应 (200)
此部分没有定义参数。
来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899718,
"name": "创建视频生成任务 API(doubao-2.0)",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "https://www.volcengine.com/docs/82379/1520757?lang=zh",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/api/v3/contents/generations/tasks",
"tags": [],
"status": -2,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"model": {
"type": "string"
},
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"text": {
"type": "string"
},
"image_url": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"x-apifox-orders": [
"url"
]
},
"role": {
"type": "string"
},
"video_url": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"x-apifox-orders": [
"url"
]
},
"audio_url": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"x-apifox-orders": [
"url"
]
}
},
"required": [
"type",
"image_url",
"role"
],
"x-apifox-orders": [
"type",
"text",
"image_url",
"role",
"video_url",
"audio_url"
]
}
},
"generate_audio": {
"type": "boolean"
},
"ratio": {
"type": "string"
},
"duration": {
"type": "integer"
},
"watermark": {
"type": "boolean"
}
},
"required": [
"model",
"content"
],
"x-apifox-orders": [
"model",
"content",
"generate_audio",
"ratio",
"duration",
"watermark"
]
},
"examples": [
{
"mediaType": "application/json",
"value": "{\r\n \"model\": \"doubao-seedance-2-0-260128\",\r\n \"content\": [\r\n {\r\n \"type\": \"text\",\r\n \"text\": \"全程使用视频1的第一视角构图,全程使用音频1作为背景音乐。第一人称视角果茶宣传广告,seedance牌「苹苹安安」苹果果茶限定款;首帧为图片1,你的手摘下一颗带晨露的阿克苏红苹果,轻脆的苹果碰撞声;2-4 秒:快速切镜,你的手将苹果块投入雪克杯,加入冰块与茶底,用力摇晃,冰块碰撞声与摇晃声卡点轻快鼓点,背景音:「鲜切现摇」;4-6 秒:第一人称成品特写,分层果茶倒入透明杯,你的手轻挤奶盖在顶部铺展,在杯身贴上粉红包标,镜头拉近看奶盖与果茶的分层纹理;6-8 秒:第一人称手持举杯,你将图片2中的果茶举到镜头前(模拟递到观众面前的视角),杯身标签清晰可见,背景音「来一口鲜爽」,尾帧定格为图片2。背景声音统一为女生音色。\"\r\n },\r\n {\r\n \"type\": \"image_url\",\r\n \"image_url\": {\r\n \"url\": \"https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg\"\r\n },\r\n \"role\": \"reference_image\"\r\n },\r\n {\r\n \"type\": \"image_url\",\r\n \"image_url\": {\r\n \"url\": \"https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg\"\r\n },\r\n \"role\": \"reference_image\"\r\n },\r\n {\r\n \"type\": \"video_url\",\r\n \"video_url\": {\r\n \"url\": \"https://pro.filesystem.site/cdn/20260403/0e80a635b859e7716671a40d836135.mp4\"\r\n },\r\n \"role\": \"reference_video\"\r\n },\r\n {\r\n \"type\": \"audio_url\",\r\n \"audio_url\": {\r\n \"url\": \"https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3\"\r\n },\r\n \"role\": \"reference_audio\"\r\n }\r\n ],\r\n \"generate_audio\":true,\r\n \"ratio\": \"21:9\",\r\n \"duration\": 11,\r\n \"watermark\": false\r\n}",
"name": "示例 1"
}
],
"mediaType": "",
"oasExtensions": "",
"required": true,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": []
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 197583726,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436122,
"ordering": 36,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {}
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-05T14:40:24.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}