DeerAPI FLUX 专用 Replicate 风格创建任务接口:通过 POST /replicate/v1/models//predictions 使用完整的 black-forest-labs 模型 ID 创建图片任务,适合已有 Replicate 风格代码或需要标准 Predictions 对象的场景。
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"
}
}POST /replicate/v1/predictions,这里把模型 ID 放进 URL,更直观,也更接近 DeerAPI 当前推荐的兼容写法。
{models} 位置。input 对象中。/v1/models/{owner}/{name}/predictions;DeerAPI 这里把完整模型 ID 合并成一个 {models} 路径参数,方便已有路由层直接拼接模型字符串。input.prompt、input.aspect_ratio、input.output_format。input_image 或 input_images 做图像编辑或参考图生成。raw、更高分辨率或图像参考参数。output 通常先是 null,这不是报错,而是正常的异步状态。flux-pro-1.1,并接受 BFL 风格查询结果:看 api/image/flux/generate.mdx。使用 DeerAPI Key 进行 Bearer Token 鉴权。
完整的 FLUX 模型 ID。
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 任务已创建
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"
}
}