创建任务 black-forest-labs/flux-fill-dev
POST https://aiapi.winfull.top/replicate/v1/models/black-forest-labs/flux-fill-dev/predictions 官方文档:https://replicate.com/black-forest-labs/flux-fill-dev
请求参数
Authorization 在 Header 添加参数 Authorization ,其值为在 Bearer 之后拼接 Token 示例: Authorization: Bearer ******************** Header 参数 生成代码 Body 参数application/json 生成代码 示例
{
"input": {
"mask": "https://replicate.delivery/pbxt/M0hxLu8a1YBcybWuumSsfoEec8ooer6JZ2fR28vuM1U0CN9m/74b40bb1-364a-461a-bec5-200a38c7bc87.png",
"image": "https://replicate.delivery/pbxt/M0hxMJeO7wFCMr7QYNZsjRxzHhz6ntlLllMteRQNsRD7f3Nf/flux-fill-dev.webp",
"prompt": "a spaceship",
"guidance": 30,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"output_format": "webp",
"output_quality": 80,
"num_inference_steps": 28
}
}请求示例代码
Shell JavaScript Java Swift Go PHP Python HTTP C C# Objective-C Ruby OCaml Dart R 请求示例请求示例 Shell JavaScript Java Swift cURLcURL-WindowsHttpiewgetPowerShell
curl --location --request POST 'https://aiapi.winfull.top/replicate/v1/models/black-forest-labs/flux-fill-dev/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"mask": "https://replicate.delivery/pbxt/M0hxLu8a1YBcybWuumSsfoEec8ooer6JZ2fR28vuM1U0CN9m/74b40bb1-364a-461a-bec5-200a38c7bc87.png",
"image": "https://replicate.delivery/pbxt/M0hxMJeO7wFCMr7QYNZsjRxzHhz6ntlLllMteRQNsRD7f3Nf/flux-fill-dev.webp",
"prompt": "a spaceship",
"guidance": 30,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 2,
"output_format": "webp",
"output_quality": 80,
"num_inference_steps": 28
}
}'返回响应
🟢200成功 application/json生成代码 Body 生成代码 示例
{
"id": "tv3jnp73n1rmc0crb54b3srz94",
"model": "black-forest-labs/flux-fill-dev",
"version": "hidden",
"input": {
"guidance": 30,
"image": "https://replicate.delivery/pbxt/M0hxMJeO7wFCMr7QYNZsjRxzHhz6ntlLllMteRQNsRD7f3Nf/flux-fill-dev.webp",
"lora_scale": 1,
"mask": "https://replicate.delivery/pbxt/M0hxLu8a1YBcybWuumSsfoEec8ooer6JZ2fR28vuM1U0CN9m/74b40bb1-364a-461a-bec5-200a38c7bc87.png",
"megapixels": "1",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a spaceship"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-30T03:03:25.864Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/tv3jnp73n1rmc0crb54b3srz94/cancel",
"get": "https://api.replicate.com/v1/predictions/tv3jnp73n1rmc0crb54b3srz94",
"stream": "https://stream.replicate.com/v1/files/bcwr-epcf2nmmvkvxq7trerel6zuoiwzyoji3ifhkuu3lf7rtdzh3i6ca",
"web": "https://replicate.com/p/tv3jnp73n1rmc0crb54b3srz94"
}
}修改于 2025-10-10 15:32:58
