官方文档:https://cloud.tencent.com/document/product/266/126240
POST
/tencent-vod/v1/template-effect特效模板创建任务
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/tencent-vod/v1/template-effect \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"scene_type": "template_effect",
"prompt": "视频内容\\n画面开始主体突然爆炸,细碎的颗粒爆炸开来\\n# 要求\\n1.根据用户上传图片确定主体数量,每个主体都要爆炸\\n2.Motion Level 设定为:Middle\\n3.以>我的视频内容为第一要素,背景的描述统一、合理,不要描述两次.",
"file_infos": [
{
"type": "Url",
"category": "Image",
"url": "https://image01.vidu.zone/vidu/example/20241206-175531.jpeg"
}
],
"ext_info": {
"AdditionalParameters": {
"template": "morphlab"
}
}
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
scene_type | JSON body | string | 是 | 取值 template_effect | - |
prompt | JSON body | string | 否 | 提示词 | - |
file_infos | JSON body | object | 否 | 最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。 注意: 1. 图片大小不超过10M。 2. 支持的图片格式:jpeg、png。 | - |
file_infos.type | JSON body | string | 否 | 输入的视频文件类型。取值有: File:点播媒体文件; Url:可访问的 URL; 示例值:File | - |
file_infos.category | JSON body | string | 否 | 文件分类。取值为: Image: 图片; Video: 视频。 示例值:Image | - |
file_infos.file_id | JSON body | string | 否 | 图片文件的媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 视频上传完成事件通知 或 云点播控制台 获取该字段。当 Type 取值为 File 时,本参数有效。 说明: 1. 推荐使用小于7M的图片; 2. 图片格式的取值为:jpeg,jpg, png, webp。 示例值:3704211***509819 | - |
file_infos.url | JSON body | string | 否 | 可访问的文件 URL。当 Type 取值为 Url 时,本参数有效。 说明: 1. 推荐使用小于7M的图片; 2. 图片格式的取值为:jpeg,jpg, png, webp。 示例值:https://test.com/1.png | - |
ext_info | JSON body | object | 是 | - | - |
ext_info.AdditionalParameters | JSON body | object | 是 | - | - |
ext_info.AdditionalParameters.template | JSON body | string | 是 | 场景模版参数 不同的场景模板,对应的调用参数不同,我们提供两种查看方式: ●官方示例中心:https://platform.vidu.cn/docs/templates ●在线文档文档(支持按上线时间查询):https://shengshu.feishu.cn/wiki/L2Dbwi7QeilCAgkdJKjcrj2Lnrg?from=from_copylink 注意:特效模板暂时只支持视频类型生成的模板 | - |
返回响应 (200)
此部分没有定义参数。
响应示例
{
"Response": {
"TaskId": "251007502-AigcImage***2782aff1e896673f1ft",
"RequestId": "f50d7667-72d8-46bb-a7e3-0613588971b6"
}
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899746,
"name": "特效模板创建任务",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档:https://cloud.tencent.com/document/product/266/126240",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/tencent-vod/v1/template-effect",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "提示词"
},
"file_infos": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "输入的视频文件类型。取值有:\nFile:点播媒体文件;\nUrl:可访问的 URL;\n\n示例值:File"
},
"category": {
"type": "string",
"description": "文件分类。取值为:\nImage: 图片;\nVideo: 视频。\n示例值:Image"
},
"file_id": {
"type": "string",
"description": "图片文件的媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 视频上传完成事件通知 或 云点播控制台 获取该字段。当 Type 取值为 File 时,本参数有效。\n说明:\n\n1.\n推荐使用小于7M的图片;\n\n2.\n图片格式的取值为:jpeg,jpg, png, webp。\n示例值:3704211***509819"
},
"url": {
"type": "string",
"description": "可访问的文件 URL。当 Type 取值为 Url 时,本参数有效。\n说明:\n\n1.\n推荐使用小于7M的图片;\n\n2.\n图片格式的取值为:jpeg,jpg, png, webp。\n示例值:https://test.com/1.png"
}
},
"x-apifox-orders": [
"type",
"category",
"file_id",
"url"
],
"description": "最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。\n注意:\n\n1.\n图片大小不超过10M。\n\n2.\n支持的图片格式:jpeg、png。"
},
"scene_type": {
"type": "string",
"description": "取值 template_effect"
},
"ext_info": {
"type": "object",
"properties": {
"AdditionalParameters": {
"type": "object",
"properties": {
"template": {
"type": "string",
"description": "场景模版参数\n不同的场景模板,对应的调用参数不同,我们提供两种查看方式:\n●官方示例中心:https://platform.vidu.cn/docs/templates \n●在线文档文档(支持按上线时间查询):https://shengshu.feishu.cn/wiki/L2Dbwi7QeilCAgkdJKjcrj2Lnrg?from=from_copylink \n\n注意:特效模板暂时只支持视频类型生成的模板"
}
},
"x-apifox-orders": [
"template"
],
"required": [
"template"
]
}
},
"x-apifox-orders": [
"AdditionalParameters"
],
"required": [
"AdditionalParameters"
]
}
},
"x-apifox-orders": [
"scene_type",
"prompt",
"file_infos",
"ext_info"
],
"required": [
"scene_type",
"ext_info"
]
},
"examples": [
{
"name": "示例 1",
"value": "{\r\n \"scene_type\": \"template_effect\",\r\n \"prompt\": \"视频内容\\\\n画面开始主体突然爆炸,细碎的颗粒爆炸开来\\\\n# 要求\\\\n1.根据用户上传图片确定主体数量,每个主体都要爆炸\\\\n2.Motion Level 设定为:Middle\\\\n3.以>我的视频内容为第一要素,背景的描述统一、合理,不要描述两次.\",\r\n \"file_infos\": [\r\n {\r\n \"type\": \"Url\",\r\n \"category\": \"Image\",\r\n \"url\": \"https://image01.vidu.zone/vidu/example/20241206-175531.jpeg\"\r\n }\r\n ],\r\n \"ext_info\": {\r\n \"AdditionalParameters\": {\r\n \"template\": \"morphlab\"\r\n }\r\n }\r\n}",
"mediaType": "application/json"
}
],
"mediaType": "",
"oasExtensions": "",
"required": true,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": []
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 111649427,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [
{
"name": "示例 1",
"responseId": 111649427,
"data": "{\r\n \"Response\": {\r\n \"TaskId\": \"251007502-AigcImage***2782aff1e896673f1ft\",\r\n \"RequestId\": \"f50d7667-72d8-46bb-a7e3-0613588971b6\"\r\n }\r\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fc09b-0b21-77aa-b034-eddac1e30f6b"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436126,
"ordering": 12,
"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": ""
}