官方文档:https://replicate.com/lucataco/animate-diff
POST
/replicate/v1/predictions创建任务 lucataco/animate-diff
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/replicate/v1/predictions \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"version": "lucataco/animate-diff:beecf59c4aee8d81bf04f0381033dfa10dc16e845b4ae00d281e2fa377e48a9f",
"input": {
"path": "toonyou_beta3.safetensors",
"seed": 255224557,
"steps": 25,
"prompt": "masterpiece, best quality, 1girl, solo, cherry blossoms, hanami, pink flower, white flower, spring season, wisteria, petals, flower, plum blossoms, outdoors, falling petals, white hair, black eyes",
"n_prompt": "badhandv4, easynegative, ng_deepnegative_v1_75t, verybadimagenegative_v1.3, bad-artist, bad_prompt_version2-neg, teeth",
"motion_module": "mm_sd_v14",
"guidance_scale": 7.5
}
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
version | JSON body | string | 否 | - | - |
input | JSON body | object | 否 | - | - |
input.path | JSON body | string | 否 | 选择一个模块。默认值:“toonyou_beta3.safetensors”。 | - |
input.seed | JSON body | integer | 否 | 0 = 随机,最大值:2147483647。 | - |
input.steps | JSON body | integer | 否 | 推理步骤数。默认值:25。最小值:1,最大值:100。 | - |
input.prompt | JSON body | string | 否 | 输入提示词。 | - |
input.n_prompt | JSON body | string | 否 | 负面提示。默认:””。 | - |
input.motion_module | JSON body | string | 否 | 选择运动模型。默认值:“mm_sd_v14”。 | - |
input.guidance_scale | JSON body | number | 否 | 引导强度。默认值:7.5。最小值:1,最大值:10。 | - |
返回响应 (200)
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
created | 响应 JSON | integer | 是 | - | - |
data | 响应 JSON | array<object> | 是 | - | - |
data[].url | 响应 JSON | string | 是 | - | - |
响应示例
{
"id": "jywwf9nkfnrj20crap0as52zeg",
"model": "lucataco/animate-diff",
"version": "beecf59c4aee8d81bf04f0381033dfa10dc16e845b4ae00d281e2fa377e48a9f",
"input": {
"guidance_scale": 7.5,
"motion_module": "mm_sd_v14",
"n_prompt": "badhandv4, easynegative, ng_deepnegative_v1_75t, verybadimagenegative_v1.3, bad-artist, bad_prompt_version2-neg, teeth",
"path": "toonyou_beta3.safetensors",
"prompt": "masterpiece, best quality, 1girl, solo, cherry blossoms, hanami, pink flower, white flower, spring season, wisteria, petals, flower, plum blossoms, outdoors, falling petals, white hair, black eyes",
"seed": 255224557,
"steps": 25
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-29T09:25:54.685Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/jywwf9nkfnrj20crap0as52zeg/cancel",
"get": "https://api.replicate.com/v1/predictions/jywwf9nkfnrj20crap0as52zeg",
"stream": "https://stream.replicate.com/v1/files/qoxq-rtwpkbal3tte26cwukk5qz4jari7vrzuxx747qitukq6pqukjhxq",
"web": "https://replicate.com/p/jywwf9nkfnrj20crap0as52zeg"
}
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 497673403,
"name": "创建任务 lucataco/animate-diff",
"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": "PWyk03pjvzFb5xN7oMoLJv5g1jiAd6EB"
}
],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档:https://replicate.com/lucataco/animate-diff",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/replicate/v1/predictions",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"version": {
"type": "string"
},
"input": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "选择一个模块。默认值:“toonyou_beta3.safetensors”。"
},
"seed": {
"type": "integer",
"description": "0 = 随机,最大值:2147483647。"
},
"steps": {
"type": "integer",
"description": "推理步骤数。默认值:25。最小值:1,最大值:100。"
},
"prompt": {
"type": "string",
"description": "输入提示词。"
},
"n_prompt": {
"type": "string",
"description": "负面提示。默认:””。"
},
"motion_module": {
"type": "string",
"description": "选择运动模型。默认值:“mm_sd_v14”。"
},
"guidance_scale": {
"type": "number",
"description": "引导强度。默认值:7.5。最小值:1,最大值:10。"
}
},
"x-apifox-orders": [
"path",
"seed",
"steps",
"prompt",
"n_prompt",
"motion_module",
"guidance_scale"
]
}
},
"x-apifox-orders": [
"version",
"input"
]
},
"examples": [
{
"value": "{\n \"version\": \"lucataco/animate-diff:beecf59c4aee8d81bf04f0381033dfa10dc16e845b4ae00d281e2fa377e48a9f\",\n \"input\": {\n \"path\": \"toonyou_beta3.safetensors\",\n \"seed\": 255224557,\n \"steps\": 25,\n \"prompt\": \"masterpiece, best quality, 1girl, solo, cherry blossoms, hanami, pink flower, white flower, spring season, wisteria, petals, flower, plum blossoms, outdoors, falling petals, white hair, black eyes\",\n \"n_prompt\": \"badhandv4, easynegative, ng_deepnegative_v1_75t, verybadimagenegative_v1.3, bad-artist, bad_prompt_version2-neg, teeth\",\n \"motion_module\": \"mm_sd_v14\",\n \"guidance_scale\": 7.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": 151995591,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"created": {
"type": "integer"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"required": [
"url"
],
"x-apifox-orders": [
"url"
]
}
}
},
"required": [
"created",
"data"
],
"x-apifox-orders": [
"created",
"data"
]
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 151995591,
"data": "{\n \"id\": \"jywwf9nkfnrj20crap0as52zeg\",\n \"model\": \"lucataco/animate-diff\",\n \"version\": \"beecf59c4aee8d81bf04f0381033dfa10dc16e845b4ae00d281e2fa377e48a9f\",\n \"input\": {\n \"guidance_scale\": 7.5,\n \"motion_module\": \"mm_sd_v14\",\n \"n_prompt\": \"badhandv4, easynegative, ng_deepnegative_v1_75t, verybadimagenegative_v1.3, bad-artist, bad_prompt_version2-neg, teeth\",\n \"path\": \"toonyou_beta3.safetensors\",\n \"prompt\": \"masterpiece, best quality, 1girl, solo, cherry blossoms, hanami, pink flower, white flower, spring season, wisteria, petals, flower, plum blossoms, outdoors, falling petals, white hair, black eyes\",\n \"seed\": 255224557,\n \"steps\": 25\n },\n \"logs\": \"\",\n \"output\": null,\n \"data_removed\": false,\n \"error\": null,\n \"status\": \"starting\",\n \"created_at\": \"2025-07-29T09:25:54.685Z\",\n \"urls\": {\n \"cancel\": \"https://api.replicate.com/v1/predictions/jywwf9nkfnrj20crap0as52zeg/cancel\",\n \"get\": \"https://api.replicate.com/v1/predictions/jywwf9nkfnrj20crap0as52zeg\",\n \"stream\": \"https://stream.replicate.com/v1/files/qoxq-rtwpkbal3tte26cwukk5qz4jari7vrzuxx747qitukq6pqukjhxq\",\n \"web\": \"https://replicate.com/p/jywwf9nkfnrj20crap0as52zeg\"\n }\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fd25e-4bea-77ac-9aa4-566979162908"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436086,
"ordering": 66,
"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": [
"BLANK.151995591"
],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}