官方文档:https://replicate.com/prunaai/vace-14b
POST
/replicate/v1/models/prunaai/vace-14b/predictions创建任务 prunaai/vace-14b
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/replicate/v1/models/prunaai/vace-14b/predictions \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"version": "51299232dc3d0946d5f5ed74935d85243e172698f747d291460db1e6ef3669fb",
"input": {
"seed": -1,
"size": "1280*720",
"prompt": "The video shows a man riding a horse on a vast grassland. He has long lavender hair and wears a traditional dress of a white top and black pants. The animation style makes him look like he is doing some kind of outdoor activity or performing. The background is a spectacular mountain range and cloud sky, giving a sense of tranquility and vastness. The entire video is shot from a fixed angle, focusing on the rider and his horse.",
"src_mask": "https://replicate.delivery/pbxt/N323tegI7AuoZmg0U5CuTKa7VBFC4gymhe0kT8Jk3o2sjUUj/src_mask.mp4",
"frame_num": 81,
"src_video": "https://replicate.delivery/pbxt/N323u1ljtNYyyaLrgw0ZLmXgepvWlBvxbJWi3sAa2VDPuNus/src_video.mp4",
"speed_mode": "Extra Juiced 🚀 (even more speed)",
"sample_shift": 16,
"sample_steps": 50,
"sample_solver": "unipc",
"src_ref_images": ["https://replicate.delivery/pbxt/N323t5X69JB1MPD4w4cDIxK4rm0BG0W2JOWBrDrR4O9HTcyp/src_ref_image_1.png"],
"sample_guide_scale": 5
}
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
version | JSON body | string | 否 | - | - |
input | JSON body | object | 否 | - | - |
input.seed | JSON body | integer | 否 | 随机种子(-1 表示随机) | - |
input.size | JSON body | string | 否 | 输出分辨率。默认值:“832*480” | - |
input.prompt | JSON body | string | 是 | 文字描述。 | - |
input.src_mask | JSON body | string | 否 | 输入要编辑的蒙版视频或图像。 | - |
input.frame_num | JSON body | integer | 否 | 要生成的帧数。默认值:81。 | - |
input.src_video | JSON body | string | 否 | 输入要编辑的视频。 | - |
input.speed_mode | JSON body | string | 否 | 速度优化级别。默认值:"Lightly Juiced 🍊 (more consistent)" | - |
input.sample_shift | JSON body | integer | 否 | 样本偏移。默认值:16 | - |
input.sample_steps | JSON body | integer | 否 | 示例步骤。默认值:50 | - |
input.sample_solver | JSON body | string | 否 | 样例求解器。默认值:“unipc” | - |
input.src_ref_images | JSON body | array<string> | 否 | 输入参考图像进行编辑。 | - |
input.sample_guide_scale | JSON body | integer | 否 | 样本指引尺度。默认值:5 | - |
返回响应 (200)
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
id | 响应 JSON | string | 是 | - | - |
model | 响应 JSON | string | 是 | - | - |
version | 响应 JSON | string | 是 | - | - |
input | 响应 JSON | object | 是 | - | - |
input.aspect_ratio | 响应 JSON | string | 是 | - | - |
input.input_image | 响应 JSON | string | 是 | - | - |
input.output_format | 响应 JSON | string | 是 | - | - |
input.prompt | 响应 JSON | string | 是 | - | - |
input.prompt_upsampling | 响应 JSON | boolean | 是 | - | - |
input.safety_tolerance | 响应 JSON | integer | 是 | - | - |
logs | 响应 JSON | string | 是 | - | - |
output | 响应 JSON | null | 是 | - | - |
data_removed | 响应 JSON | boolean | 是 | - | - |
error | 响应 JSON | null | 是 | - | - |
status | 响应 JSON | string | 是 | - | - |
created_at | 响应 JSON | string | 是 | - | - |
urls | 响应 JSON | object | 是 | - | - |
urls.cancel | 响应 JSON | string | 是 | - | - |
urls.get | 响应 JSON | string | 是 | - | - |
urls.stream | 响应 JSON | string | 是 | - | - |
urls.web | 响应 JSON | string | 是 | - | - |
响应示例
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899862,
"name": "创建任务 prunaai/vace-14b",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [
{
"type": "customScript",
"data": "// 将接口返回数据,封装成自己需要的结构\r\nvar resp = {\r\n response: pm.response.json().data[0].url\r\n}\r\n\r\n// html 模板字符\r\nvar template = `<html><img src=\"{{response}}\" /></html>`;\r\n\r\n// 设置 visualizer 数据。传模板、解析对象。\r\npm.visualizer.set(template, resp);",
"defaultEnable": true,
"enable": true,
"id": "ZnD4HUFPAgZGlSjHvUDJcZhrj5Z7J2Zb"
}
],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档:https://replicate.com/prunaai/vace-14b",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/replicate/v1/models/prunaai/vace-14b/predictions",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"version": {
"type": "string"
},
"input": {
"type": "object",
"properties": {
"seed": {
"type": "integer",
"description": "随机种子(-1 表示随机)"
},
"size": {
"type": "string",
"description": "输出分辨率。默认值:“832*480”"
},
"prompt": {
"type": "string",
"description": "文字描述。"
},
"src_mask": {
"type": "string",
"description": "输入要编辑的蒙版视频或图像。"
},
"frame_num": {
"type": "integer",
"description": "要生成的帧数。默认值:81。"
},
"src_video": {
"type": "string",
"description": "输入要编辑的视频。"
},
"speed_mode": {
"type": "string",
"description": "速度优化级别。默认值:\"Lightly Juiced 🍊 (more consistent)\""
},
"sample_shift": {
"type": "integer",
"description": "样本偏移。默认值:16"
},
"sample_steps": {
"type": "integer",
"description": "示例步骤。默认值:50"
},
"sample_solver": {
"type": "string",
"description": "样例求解器。默认值:“unipc”"
},
"src_ref_images": {
"type": "array",
"items": {
"type": "string"
},
"description": "输入参考图像进行编辑。"
},
"sample_guide_scale": {
"type": "integer",
"description": "样本指引尺度。默认值:5"
}
},
"required": [
"prompt"
],
"x-apifox-orders": [
"seed",
"size",
"prompt",
"src_mask",
"frame_num",
"src_video",
"speed_mode",
"sample_shift",
"sample_steps",
"sample_solver",
"src_ref_images",
"sample_guide_scale"
]
}
},
"x-apifox-orders": [
"version",
"input"
]
},
"examples": [
{
"value": "{\n \"version\": \"51299232dc3d0946d5f5ed74935d85243e172698f747d291460db1e6ef3669fb\",\n \"input\": {\n \"seed\": -1,\n \"size\": \"1280*720\",\n \"prompt\": \"The video shows a man riding a horse on a vast grassland. He has long lavender hair and wears a traditional dress of a white top and black pants. The animation style makes him look like he is doing some kind of outdoor activity or performing. The background is a spectacular mountain range and cloud sky, giving a sense of tranquility and vastness. The entire video is shot from a fixed angle, focusing on the rider and his horse.\",\n \"src_mask\": \"https://replicate.delivery/pbxt/N323tegI7AuoZmg0U5CuTKa7VBFC4gymhe0kT8Jk3o2sjUUj/src_mask.mp4\",\n \"frame_num\": 81,\n \"src_video\": \"https://replicate.delivery/pbxt/N323u1ljtNYyyaLrgw0ZLmXgepvWlBvxbJWi3sAa2VDPuNus/src_video.mp4\",\n \"speed_mode\": \"Extra Juiced 🚀 (even more speed)\",\n \"sample_shift\": 16,\n \"sample_steps\": 50,\n \"sample_solver\": \"unipc\",\n \"src_ref_images\": [\"https://replicate.delivery/pbxt/N323t5X69JB1MPD4w4cDIxK4rm0BG0W2JOWBrDrR4O9HTcyp/src_ref_image_1.png\"],\n \"sample_guide_scale\": 5\n }\n }",
"mediaType": "application/json",
"description": ""
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "GTujCrB2It",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 110025067,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"model": {
"type": "string"
},
"version": {
"type": "string"
},
"input": {
"type": "object",
"properties": {
"aspect_ratio": {
"type": "string"
},
"input_image": {
"type": "string"
},
"output_format": {
"type": "string"
},
"prompt": {
"type": "string"
},
"prompt_upsampling": {
"type": "boolean"
},
"safety_tolerance": {
"type": "integer"
}
},
"required": [
"aspect_ratio",
"input_image",
"output_format",
"prompt",
"prompt_upsampling",
"safety_tolerance"
],
"x-apifox-orders": [
"aspect_ratio",
"input_image",
"output_format",
"prompt",
"prompt_upsampling",
"safety_tolerance"
]
},
"logs": {
"type": "string"
},
"output": {
"type": "null"
},
"data_removed": {
"type": "boolean"
},
"error": {
"type": "null"
},
"status": {
"type": "string"
},
"created_at": {
"type": "string"
},
"urls": {
"type": "object",
"properties": {
"cancel": {
"type": "string"
},
"get": {
"type": "string"
},
"stream": {
"type": "string"
},
"web": {
"type": "string"
}
},
"required": [
"cancel",
"get",
"stream",
"web"
],
"x-apifox-orders": [
"cancel",
"get",
"stream",
"web"
]
}
},
"required": [
"id",
"model",
"version",
"input",
"logs",
"output",
"data_removed",
"error",
"status",
"created_at",
"urls"
],
"x-apifox-orders": [
"id",
"model",
"version",
"input",
"logs",
"output",
"data_removed",
"error",
"status",
"created_at",
"urls"
]
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "Create image",
"responseId": 110025067,
"data": "{\n \"created\": 1589478378,\n \"data\": [\n {\n \"url\": \"https://...\"\n },\n {\n \"url\": \"https://...\"\n }\n ]\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fc09b-0b2e-723f-adf0-d82e1ae6c8c5"
},
{
"name": "成功示例",
"responseId": 110025067,
"data": "{\n \"id\": \"w44zs9cet5rmc0cqzp49gpkhf8\",\n \"model\": \"black-forest-labs/flux-kontext-dev\",\n \"version\": \"hidden\",\n \"input\": {\n \"aspect_ratio\": \"match_input_image\",\n \"input_image\": \"https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png\",\n \"output_format\": \"jpg\",\n \"prompt\": \"Make the letters 3D, floating in space on a city street\",\n \"prompt_upsampling\": false,\n \"safety_tolerance\": 2\n },\n \"logs\": \"\",\n \"output\": null,\n \"data_removed\": false,\n \"error\": null,\n \"status\": \"starting\",\n \"created_at\": \"2025-07-12T07:27:54.577Z\",\n \"urls\": {\n \"cancel\": \"https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8/cancel\",\n \"get\": \"https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8\",\n \"stream\": \"https://stream.replicate.com/v1/files/bcwr-h7bu76ujftxzwih5u35puoysogps56mqvpvjz4nrxskhfe7ks42a\",\n \"web\": \"https://replicate.com/p/w44zs9cet5rmc0cqzp49gpkhf8\"\n }\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fc09b-0b2e-723f-adf0-dffd2191989f"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436086,
"ordering": 180,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {},
"isDefaultUrlEncoding": 1
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [
"BLANK.110025067"
],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}