Create Task Black Forest Labs/Flux Fill Dev

official文档:https://replicate.com/black-forest-labs/flux-fill-dev

Endpoint

POST http://v98store.com/replicate/v1/models/black-forest-labs/flux-fill-dev/predictions

cURL Command

curl -X POST 'http://v98store.com/replicate/v1/models/black-forest-labs/flux-fill-dev/predictions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "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 } }'

Parameters

NameInDescriptionRequired
AuthorizationheaderNo

Request Body

Example

{
  "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
  }
}

Responses

200 -

Example

{
  "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"
  }
}