创建任务 prunaai/vace-14b
POST /replicate/v1/models/prunaai/vace-14b/predictions
说明
概览
| Method | POST |
|---|---|
| Path | /replicate/v1/models/prunaai/vace-14b/predictions |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 62419371 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "GTujCrB2It", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "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" ] }, "mediaType": "", "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": "" } ], "oasExtensions": "" }
响应
[ { "id": 729667095, "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" ] }, "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" ] } }, "required": [ "id", "model", "version", "input", "logs", "output", "data_removed", "error", "status", "created_at", "urls" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "Create image", "responseId": 729667095, "data": "{\n \"created\": 1589478378,\n \"data\": [\n {\n \"url\": \"https://...\"\n },\n {\n \"url\": \"https://...\"\n }\n ]\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 649177311 }, { "name": "成功示例", "responseId": 729667095, "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": 649177312 } ]