DeerAPI 通用 Replicate 风格创建任务接口:通过 POST /replicate/v1/models//predictions 调用当前已接入的 Replicate 风格图片模型,适合已有 Replicate 工作流、需要标准 Predictions 对象、或希望使用完整模型 ID 路径的用户。
curl https://api.deerapi.com/replicate/v1/models/black-forest-labs/flux-1.1-pro/predictions \
-H "Authorization: Bearer <DEERAPI_KEY>" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A red paper lantern on a wooden table, studio photo",
"aspect_ratio": "1:1",
"output_format": "jpg"
}
}'{
"id": "e6je4zpgdxrmw0cww2xsb0515g",
"model": "black-forest-labs/flux-1.1-pro",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"output_format": "jpg",
"prompt": "A red paper lantern on a wooden table, studio photo"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"source": "api",
"status": "starting",
"created_at": "2026-03-12T06:28:50.927Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/e6je4zpgdxrmw0cww2xsb0515g/cancel",
"get": "https://api.replicate.com/v1/predictions/e6je4zpgdxrmw0cww2xsb0515g",
"stream": "https://stream.replicate.com/v1/files/example-stream",
"web": "https://replicate.com/p/e6je4zpgdxrmw0cww2xsb0515g"
}
}input,返回标准 Predictions 对象。| 你更在意什么 | 更适合哪一页 |
|---|---|
| URL 更短、以 DeerAPI 模型 ID 为主 | flux/generate |
| 保留 Replicate 风格对象结构 | 当前页 |
| 同时接 Recraft、Ideogram、Stability、FLUX 等多家兼容模型 | 当前页 |
/v1/models/{owner}/{name}/predictions;DeerAPI 把完整模型 ID 合并成一个 {models} 路径参数,方便从模型列表直接复制。black-forest-labs/...recraft-ai/...ideogram-ai/...stability-ai/...使用 DeerAPI Key 进行 Bearer Token 鉴权。
完整模型 ID。第一次接入建议直接从 /v1/models 返回结果里复制。
black-forest-labs/flux-1.1-pro, black-forest-labs/flux-1.1-pro-ultra, black-forest-labs/flux-2-dev, black-forest-labs/flux-2-flex, black-forest-labs/flux-2-max, black-forest-labs/flux-2-pro, black-forest-labs/flux-dev, black-forest-labs/flux-kontext-max, black-forest-labs/flux-kontext-pro, black-forest-labs/flux-pro, black-forest-labs/flux-schnell, dreamshaper-8-lcm, ideogram-ai/ideogram-v2, ideogram-ai/ideogram-v2-turbo, ideogram-ai/ideogram-v2a, ideogram-ai/ideogram-v3-balanced, ideogram-ai/ideogram-v3-quality, ideogram-ai/ideogram-v3-turbo, recraft-ai/recraft-v3, recraft-ai/recraft-v3-svg, recraft-api, recraftv3, stability-ai/sdxl, stability-ai/stable-diffusion, stability-ai/stable-diffusion-3, stability-ai/stable-diffusion-3.5-large, stability-ai/stable-diffusion-3.5-large-turbo, stability-ai/stable-diffusion-3.5-medium 任务已创建
starting, processing, succeeded, failed, canceled Show child attributes
api, web curl https://api.deerapi.com/replicate/v1/models/black-forest-labs/flux-1.1-pro/predictions \
-H "Authorization: Bearer <DEERAPI_KEY>" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A red paper lantern on a wooden table, studio photo",
"aspect_ratio": "1:1",
"output_format": "jpg"
}
}'{
"id": "e6je4zpgdxrmw0cww2xsb0515g",
"model": "black-forest-labs/flux-1.1-pro",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"output_format": "jpg",
"prompt": "A red paper lantern on a wooden table, studio photo"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"source": "api",
"status": "starting",
"created_at": "2026-03-12T06:28:50.927Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/e6je4zpgdxrmw0cww2xsb0515g/cancel",
"get": "https://api.replicate.com/v1/predictions/e6je4zpgdxrmw0cww2xsb0515g",
"stream": "https://stream.replicate.com/v1/files/example-stream",
"web": "https://replicate.com/p/e6je4zpgdxrmw0cww2xsb0515g"
}
}