zsxkib / flux-dev-inpainting
π¨ Fill in masked parts of images with FLUX.1-dev ποΈ
Prediction
zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0IDkxt9x4wqe5rj20chbd88bnsd9mStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
- prompt
- small cute cat sat on a park bench
- strength
- 1
- output_format
- webp
- output_quality
- 90
- num_inference_steps
- 30
{ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 1, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }
Install Replicateβs Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", { input: { mask: "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", image: "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", prompt: "small cute cat sat on a park bench", strength: 1, output_format: "webp", output_quality: 90, num_inference_steps: 30 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicateβs Python client library:pip install replicate
Import the client:import replicate
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", input={ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 1, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 1, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
Output
{ "completed_at": "2024-08-16T13:11:50.808526Z", "created_at": "2024-08-16T13:11:34.001000Z", "data_removed": false, "error": null, "id": "kxt9x4wqe5rj20chbd88bnsd9m", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 1, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }, "logs": "Using seed: 632880580\n 0%| | 0/34 [00:00<?, ?it/s]\n 3%|β | 1/34 [00:00<00:18, 1.79it/s]\n 6%|β | 2/34 [00:01<00:16, 1.99it/s]\n 9%|β | 3/34 [00:01<00:14, 2.07it/s]\n 12%|ββ | 4/34 [00:01<00:14, 2.11it/s]\n 15%|ββ | 5/34 [00:02<00:13, 2.13it/s]\n 18%|ββ | 6/34 [00:02<00:13, 2.14it/s]\n 21%|ββ | 7/34 [00:03<00:12, 2.15it/s]\n 24%|βββ | 8/34 [00:03<00:12, 2.15it/s]\n 26%|βββ | 9/34 [00:04<00:11, 2.16it/s]\n 29%|βββ | 10/34 [00:04<00:11, 2.16it/s]\n 32%|ββββ | 11/34 [00:05<00:10, 2.16it/s]\n 35%|ββββ | 12/34 [00:05<00:10, 2.16it/s]\n 38%|ββββ | 13/34 [00:06<00:09, 2.16it/s]\n 41%|ββββ | 14/34 [00:06<00:09, 2.16it/s]\n 44%|βββββ | 15/34 [00:07<00:08, 2.16it/s]\n 47%|βββββ | 16/34 [00:07<00:08, 2.16it/s]\n 50%|βββββ | 17/34 [00:07<00:07, 2.16it/s]\n 53%|ββββββ | 18/34 [00:08<00:07, 2.16it/s]\n 56%|ββββββ | 19/34 [00:08<00:06, 2.16it/s]\n 59%|ββββββ | 20/34 [00:09<00:06, 2.16it/s]\n 62%|βββββββ | 21/34 [00:09<00:06, 2.16it/s]\n 65%|βββββββ | 22/34 [00:10<00:05, 2.16it/s]\n 68%|βββββββ | 23/34 [00:10<00:05, 2.16it/s]\n 71%|βββββββ | 24/34 [00:11<00:04, 2.16it/s]\n 74%|ββββββββ | 25/34 [00:11<00:04, 2.16it/s]\n 76%|ββββββββ | 26/34 [00:12<00:03, 2.16it/s]\n 79%|ββββββββ | 27/34 [00:12<00:03, 2.16it/s]\n 82%|βββββββββ | 28/34 [00:13<00:02, 2.16it/s]\n 85%|βββββββββ | 29/34 [00:13<00:02, 2.16it/s]\n 88%|βββββββββ | 30/34 [00:13<00:01, 2.16it/s]\n 91%|βββββββββ | 31/34 [00:14<00:01, 2.16it/s]\n 94%|ββββββββββ| 32/34 [00:14<00:00, 2.16it/s]\n 97%|ββββββββββ| 33/34 [00:15<00:00, 2.16it/s]\n100%|ββββββββββ| 34/34 [00:15<00:00, 2.45it/s]\n100%|ββββββββββ| 34/34 [00:15<00:00, 2.17it/s]\nINFERENCE DONE\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 16.799082725, "total_time": 16.807526 }, "output": "https://replicate.delivery/yhqm/M3kYRwlZQ0YiG1PJaeIsDEnsO1JJozDQVbrVqMNjqETLEopJA/output.webp", "started_at": "2024-08-16T13:11:34.009444Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kxt9x4wqe5rj20chbd88bnsd9m", "cancel": "https://api.replicate.com/v1/predictions/kxt9x4wqe5rj20chbd88bnsd9m/cancel" }, "version": "11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0" }
Generated inUsing seed: 632880580 0%| | 0/34 [00:00<?, ?it/s] 3%|β | 1/34 [00:00<00:18, 1.79it/s] 6%|β | 2/34 [00:01<00:16, 1.99it/s] 9%|β | 3/34 [00:01<00:14, 2.07it/s] 12%|ββ | 4/34 [00:01<00:14, 2.11it/s] 15%|ββ | 5/34 [00:02<00:13, 2.13it/s] 18%|ββ | 6/34 [00:02<00:13, 2.14it/s] 21%|ββ | 7/34 [00:03<00:12, 2.15it/s] 24%|βββ | 8/34 [00:03<00:12, 2.15it/s] 26%|βββ | 9/34 [00:04<00:11, 2.16it/s] 29%|βββ | 10/34 [00:04<00:11, 2.16it/s] 32%|ββββ | 11/34 [00:05<00:10, 2.16it/s] 35%|ββββ | 12/34 [00:05<00:10, 2.16it/s] 38%|ββββ | 13/34 [00:06<00:09, 2.16it/s] 41%|ββββ | 14/34 [00:06<00:09, 2.16it/s] 44%|βββββ | 15/34 [00:07<00:08, 2.16it/s] 47%|βββββ | 16/34 [00:07<00:08, 2.16it/s] 50%|βββββ | 17/34 [00:07<00:07, 2.16it/s] 53%|ββββββ | 18/34 [00:08<00:07, 2.16it/s] 56%|ββββββ | 19/34 [00:08<00:06, 2.16it/s] 59%|ββββββ | 20/34 [00:09<00:06, 2.16it/s] 62%|βββββββ | 21/34 [00:09<00:06, 2.16it/s] 65%|βββββββ | 22/34 [00:10<00:05, 2.16it/s] 68%|βββββββ | 23/34 [00:10<00:05, 2.16it/s] 71%|βββββββ | 24/34 [00:11<00:04, 2.16it/s] 74%|ββββββββ | 25/34 [00:11<00:04, 2.16it/s] 76%|ββββββββ | 26/34 [00:12<00:03, 2.16it/s] 79%|ββββββββ | 27/34 [00:12<00:03, 2.16it/s] 82%|βββββββββ | 28/34 [00:13<00:02, 2.16it/s] 85%|βββββββββ | 29/34 [00:13<00:02, 2.16it/s] 88%|βββββββββ | 30/34 [00:13<00:01, 2.16it/s] 91%|βββββββββ | 31/34 [00:14<00:01, 2.16it/s] 94%|ββββββββββ| 32/34 [00:14<00:00, 2.16it/s] 97%|ββββββββββ| 33/34 [00:15<00:00, 2.16it/s] 100%|ββββββββββ| 34/34 [00:15<00:00, 2.45it/s] 100%|ββββββββββ| 34/34 [00:15<00:00, 2.17it/s] INFERENCE DONE [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Prediction
zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0ID60pryvc3r1rj60chbd9asfeq3cStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- prompt
- small cute cat sat on a park bench
- strength
- 0.85
- output_format
- webp
- output_quality
- 90
- num_inference_steps
- 30
{ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }
Install Replicateβs Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", { input: { mask: "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", image: "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", prompt: "small cute cat sat on a park bench", strength: 0.85, output_format: "webp", output_quality: 90, num_inference_steps: 30 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicateβs Python client library:pip install replicate
Import the client:import replicate
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", input={ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
Output
{ "completed_at": "2024-08-16T13:13:54.562034Z", "created_at": "2024-08-16T13:13:40.032000Z", "data_removed": false, "error": null, "id": "60pryvc3r1rj60chbd9asfeq3c", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }, "logs": "Using seed: 538719568\n 0%| | 0/29 [00:00<?, ?it/s]\n 3%|β | 1/29 [00:00<00:15, 1.79it/s]\n 7%|β | 2/29 [00:01<00:13, 1.99it/s]\n 10%|β | 3/29 [00:01<00:12, 2.07it/s]\n 14%|ββ | 4/29 [00:01<00:11, 2.10it/s]\n 17%|ββ | 5/29 [00:02<00:11, 2.13it/s]\n 21%|ββ | 6/29 [00:02<00:10, 2.14it/s]\n 24%|βββ | 7/29 [00:03<00:10, 2.15it/s]\n 28%|βββ | 8/29 [00:03<00:09, 2.15it/s]\n 31%|βββ | 9/29 [00:04<00:09, 2.15it/s]\n 34%|ββββ | 10/29 [00:04<00:08, 2.16it/s]\n 38%|ββββ | 11/29 [00:05<00:08, 2.16it/s]\n 41%|βββββ | 12/29 [00:05<00:07, 2.16it/s]\n 45%|βββββ | 13/29 [00:06<00:07, 2.16it/s]\n 48%|βββββ | 14/29 [00:06<00:06, 2.16it/s]\n 52%|ββββββ | 15/29 [00:07<00:06, 2.16it/s]\n 55%|ββββββ | 16/29 [00:07<00:06, 2.16it/s]\n 59%|ββββββ | 17/29 [00:07<00:05, 2.16it/s]\n 62%|βββββββ | 18/29 [00:08<00:05, 2.16it/s]\n 66%|βββββββ | 19/29 [00:08<00:04, 2.16it/s]\n 69%|βββββββ | 20/29 [00:09<00:04, 2.16it/s]\n 72%|ββββββββ | 21/29 [00:09<00:03, 2.16it/s]\n 76%|ββββββββ | 22/29 [00:10<00:03, 2.16it/s]\n 79%|ββββββββ | 23/29 [00:10<00:02, 2.16it/s]\n 83%|βββββββββ | 24/29 [00:11<00:02, 2.16it/s]\n 86%|βββββββββ | 25/29 [00:11<00:01, 2.16it/s]\n 90%|βββββββββ | 26/29 [00:12<00:01, 2.16it/s]\n 93%|ββββββββββ| 27/29 [00:12<00:00, 2.15it/s]\n 97%|ββββββββββ| 28/29 [00:13<00:00, 2.15it/s]\n100%|ββββββββββ| 29/29 [00:13<00:00, 2.45it/s]\n100%|ββββββββββ| 29/29 [00:13<00:00, 2.17it/s]\nINFERENCE DONE\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 14.52082133, "total_time": 14.530034 }, "output": "https://replicate.delivery/yhqm/GqsUEuRuqSZfCq18W1zXb32EHD0U3vstMWNzY9JFiZHJFopJA/output.webp", "started_at": "2024-08-16T13:13:40.041212Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/60pryvc3r1rj60chbd9asfeq3c", "cancel": "https://api.replicate.com/v1/predictions/60pryvc3r1rj60chbd9asfeq3c/cancel" }, "version": "11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0" }
Generated inUsing seed: 538719568 0%| | 0/29 [00:00<?, ?it/s] 3%|β | 1/29 [00:00<00:15, 1.79it/s] 7%|β | 2/29 [00:01<00:13, 1.99it/s] 10%|β | 3/29 [00:01<00:12, 2.07it/s] 14%|ββ | 4/29 [00:01<00:11, 2.10it/s] 17%|ββ | 5/29 [00:02<00:11, 2.13it/s] 21%|ββ | 6/29 [00:02<00:10, 2.14it/s] 24%|βββ | 7/29 [00:03<00:10, 2.15it/s] 28%|βββ | 8/29 [00:03<00:09, 2.15it/s] 31%|βββ | 9/29 [00:04<00:09, 2.15it/s] 34%|ββββ | 10/29 [00:04<00:08, 2.16it/s] 38%|ββββ | 11/29 [00:05<00:08, 2.16it/s] 41%|βββββ | 12/29 [00:05<00:07, 2.16it/s] 45%|βββββ | 13/29 [00:06<00:07, 2.16it/s] 48%|βββββ | 14/29 [00:06<00:06, 2.16it/s] 52%|ββββββ | 15/29 [00:07<00:06, 2.16it/s] 55%|ββββββ | 16/29 [00:07<00:06, 2.16it/s] 59%|ββββββ | 17/29 [00:07<00:05, 2.16it/s] 62%|βββββββ | 18/29 [00:08<00:05, 2.16it/s] 66%|βββββββ | 19/29 [00:08<00:04, 2.16it/s] 69%|βββββββ | 20/29 [00:09<00:04, 2.16it/s] 72%|ββββββββ | 21/29 [00:09<00:03, 2.16it/s] 76%|ββββββββ | 22/29 [00:10<00:03, 2.16it/s] 79%|ββββββββ | 23/29 [00:10<00:02, 2.16it/s] 83%|βββββββββ | 24/29 [00:11<00:02, 2.16it/s] 86%|βββββββββ | 25/29 [00:11<00:01, 2.16it/s] 90%|βββββββββ | 26/29 [00:12<00:01, 2.16it/s] 93%|ββββββββββ| 27/29 [00:12<00:00, 2.15it/s] 97%|ββββββββββ| 28/29 [00:13<00:00, 2.15it/s] 100%|ββββββββββ| 29/29 [00:13<00:00, 2.45it/s] 100%|ββββββββββ| 29/29 [00:13<00:00, 2.17it/s] INFERENCE DONE [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Prediction
zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0IDyy76h201r9rj20chbd9rqa4x2mStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- prompt
- small cute cat sat on a park bench
- strength
- 0.85
- output_format
- webp
- output_quality
- 90
- num_inference_steps
- 30
{ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }
Install Replicateβs Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", { input: { mask: "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", image: "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", prompt: "small cute cat sat on a park bench", strength: 0.85, output_format: "webp", output_quality: 90, num_inference_steps: 30 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicateβs Python client library:pip install replicate
Import the client:import replicate
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", input={ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
Output
{ "completed_at": "2024-08-16T13:14:26.767358Z", "created_at": "2024-08-16T13:14:12.290000Z", "data_removed": false, "error": null, "id": "yy76h201r9rj20chbd9rqa4x2m", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "small cute cat sat on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }, "logs": "Using seed: 235060614\n 0%| | 0/29 [00:00<?, ?it/s]\n 3%|β | 1/29 [00:00<00:15, 1.79it/s]\n 7%|β | 2/29 [00:01<00:13, 1.99it/s]\n 10%|β | 3/29 [00:01<00:12, 2.06it/s]\n 14%|ββ | 4/29 [00:01<00:11, 2.11it/s]\n 17%|ββ | 5/29 [00:02<00:11, 2.12it/s]\n 21%|ββ | 6/29 [00:02<00:10, 2.14it/s]\n 24%|βββ | 7/29 [00:03<00:10, 2.15it/s]\n 28%|βββ | 8/29 [00:03<00:09, 2.15it/s]\n 31%|βββ | 9/29 [00:04<00:09, 2.15it/s]\n 34%|ββββ | 10/29 [00:04<00:08, 2.16it/s]\n 38%|ββββ | 11/29 [00:05<00:08, 2.16it/s]\n 41%|βββββ | 12/29 [00:05<00:07, 2.16it/s]\n 45%|βββββ | 13/29 [00:06<00:07, 2.16it/s]\n 48%|βββββ | 14/29 [00:06<00:06, 2.16it/s]\n 52%|ββββββ | 15/29 [00:07<00:06, 2.16it/s]\n 55%|ββββββ | 16/29 [00:07<00:06, 2.16it/s]\n 59%|ββββββ | 17/29 [00:07<00:05, 2.16it/s]\n 62%|βββββββ | 18/29 [00:08<00:05, 2.16it/s]\n 66%|βββββββ | 19/29 [00:08<00:04, 2.16it/s]\n 69%|βββββββ | 20/29 [00:09<00:04, 2.16it/s]\n 72%|ββββββββ | 21/29 [00:09<00:03, 2.16it/s]\n 76%|ββββββββ | 22/29 [00:10<00:03, 2.16it/s]\n 79%|ββββββββ | 23/29 [00:10<00:02, 2.16it/s]\n 83%|βββββββββ | 24/29 [00:11<00:02, 2.16it/s]\n 86%|βββββββββ | 25/29 [00:11<00:01, 2.16it/s]\n 90%|βββββββββ | 26/29 [00:12<00:01, 2.16it/s]\n 93%|ββββββββββ| 27/29 [00:12<00:00, 2.16it/s]\n 97%|ββββββββββ| 28/29 [00:13<00:00, 2.16it/s]\n100%|ββββββββββ| 29/29 [00:13<00:00, 2.46it/s]\n100%|ββββββββββ| 29/29 [00:13<00:00, 2.17it/s]\nINFERENCE DONE\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 14.467368014, "total_time": 14.477358 }, "output": "https://replicate.delivery/yhqm/XgiTCp4dlDa1MpMXCmiemWdFzCrfqz5MUWKL9BnWf1eKrANNB/output.webp", "started_at": "2024-08-16T13:14:12.299990Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/yy76h201r9rj20chbd9rqa4x2m", "cancel": "https://api.replicate.com/v1/predictions/yy76h201r9rj20chbd9rqa4x2m/cancel" }, "version": "11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0" }
Generated inUsing seed: 235060614 0%| | 0/29 [00:00<?, ?it/s] 3%|β | 1/29 [00:00<00:15, 1.79it/s] 7%|β | 2/29 [00:01<00:13, 1.99it/s] 10%|β | 3/29 [00:01<00:12, 2.06it/s] 14%|ββ | 4/29 [00:01<00:11, 2.11it/s] 17%|ββ | 5/29 [00:02<00:11, 2.12it/s] 21%|ββ | 6/29 [00:02<00:10, 2.14it/s] 24%|βββ | 7/29 [00:03<00:10, 2.15it/s] 28%|βββ | 8/29 [00:03<00:09, 2.15it/s] 31%|βββ | 9/29 [00:04<00:09, 2.15it/s] 34%|ββββ | 10/29 [00:04<00:08, 2.16it/s] 38%|ββββ | 11/29 [00:05<00:08, 2.16it/s] 41%|βββββ | 12/29 [00:05<00:07, 2.16it/s] 45%|βββββ | 13/29 [00:06<00:07, 2.16it/s] 48%|βββββ | 14/29 [00:06<00:06, 2.16it/s] 52%|ββββββ | 15/29 [00:07<00:06, 2.16it/s] 55%|ββββββ | 16/29 [00:07<00:06, 2.16it/s] 59%|ββββββ | 17/29 [00:07<00:05, 2.16it/s] 62%|βββββββ | 18/29 [00:08<00:05, 2.16it/s] 66%|βββββββ | 19/29 [00:08<00:04, 2.16it/s] 69%|βββββββ | 20/29 [00:09<00:04, 2.16it/s] 72%|ββββββββ | 21/29 [00:09<00:03, 2.16it/s] 76%|ββββββββ | 22/29 [00:10<00:03, 2.16it/s] 79%|ββββββββ | 23/29 [00:10<00:02, 2.16it/s] 83%|βββββββββ | 24/29 [00:11<00:02, 2.16it/s] 86%|βββββββββ | 25/29 [00:11<00:01, 2.16it/s] 90%|βββββββββ | 26/29 [00:12<00:01, 2.16it/s] 93%|ββββββββββ| 27/29 [00:12<00:00, 2.16it/s] 97%|ββββββββββ| 28/29 [00:13<00:00, 2.16it/s] 100%|ββββββββββ| 29/29 [00:13<00:00, 2.46it/s] 100%|ββββββββββ| 29/29 [00:13<00:00, 2.17it/s] INFERENCE DONE [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Prediction
zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0ID9wmar1s28hrj60chbdhv7wshjcStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
- prompt
- Minion sat up on a park bench
- strength
- 0.85
- output_format
- webp
- output_quality
- 90
- num_inference_steps
- 30
{ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "Minion sat up on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }
Install Replicateβs Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", { input: { mask: "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", image: "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", prompt: "Minion sat up on a park bench", strength: 0.85, output_format: "webp", output_quality: 90, num_inference_steps: 30 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicateβs Python client library:pip install replicate
Import the client:import replicate
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", input={ "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "Minion sat up on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/flux-dev-inpainting using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "zsxkib/flux-dev-inpainting:11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "Minion sat up on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
Output
{ "completed_at": "2024-08-16T13:32:05.798528Z", "created_at": "2024-08-16T13:31:49.188000Z", "data_removed": false, "error": null, "id": "9wmar1s28hrj60chbdhv7wshjc", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "prompt": "Minion sat up on a park bench", "strength": 0.85, "output_format": "webp", "output_quality": 90, "num_inference_steps": 30 }, "logs": "Using seed: 1831057515\n 0%| | 0/29 [00:00<?, ?it/s]\n 3%|β | 1/29 [00:00<00:15, 1.78it/s]\n 7%|β | 2/29 [00:01<00:13, 1.98it/s]\n 10%|β | 3/29 [00:01<00:12, 2.05it/s]\n 14%|ββ | 4/29 [00:01<00:11, 2.09it/s]\n 17%|ββ | 5/29 [00:02<00:11, 2.12it/s]\n 21%|ββ | 6/29 [00:02<00:10, 2.13it/s]\n 24%|βββ | 7/29 [00:03<00:10, 2.14it/s]\n 28%|βββ | 8/29 [00:03<00:09, 2.14it/s]\n 31%|βββ | 9/29 [00:04<00:09, 2.14it/s]\n 34%|ββββ | 10/29 [00:04<00:08, 2.15it/s]\n 38%|ββββ | 11/29 [00:05<00:08, 2.15it/s]\n 41%|βββββ | 12/29 [00:05<00:07, 2.15it/s]\n 45%|βββββ | 13/29 [00:06<00:07, 2.15it/s]\n 48%|βββββ | 14/29 [00:06<00:06, 2.15it/s]\n 52%|ββββββ | 15/29 [00:07<00:06, 2.15it/s]\n 55%|ββββββ | 16/29 [00:07<00:06, 2.15it/s]\n 59%|ββββββ | 17/29 [00:07<00:05, 2.15it/s]\n 62%|βββββββ | 18/29 [00:08<00:05, 2.15it/s]\n 66%|βββββββ | 19/29 [00:08<00:04, 2.15it/s]\n 69%|βββββββ | 20/29 [00:09<00:04, 2.15it/s]\n 72%|ββββββββ | 21/29 [00:09<00:03, 2.15it/s]\n 76%|ββββββββ | 22/29 [00:10<00:03, 2.15it/s]\n 79%|ββββββββ | 23/29 [00:10<00:02, 2.15it/s]\n 83%|βββββββββ | 24/29 [00:11<00:02, 2.15it/s]\n 86%|βββββββββ | 25/29 [00:11<00:01, 2.15it/s]\n 90%|βββββββββ | 26/29 [00:12<00:01, 2.15it/s]\n 93%|ββββββββββ| 27/29 [00:12<00:00, 2.15it/s]\n 97%|ββββββββββ| 28/29 [00:13<00:00, 2.15it/s]\n100%|ββββββββββ| 29/29 [00:13<00:00, 2.45it/s]\n100%|ββββββββββ| 29/29 [00:13<00:00, 2.17it/s]\nINFERENCE DONE\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 14.581435374, "total_time": 16.610528 }, "output": "https://replicate.delivery/yhqm/81W4Rbruof1oYqdTfMuW01kbFbCf80bwV9SaWLhp5mWq2gmmA/output.webp", "started_at": "2024-08-16T13:31:51.217093Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/9wmar1s28hrj60chbdhv7wshjc", "cancel": "https://api.replicate.com/v1/predictions/9wmar1s28hrj60chbdhv7wshjc/cancel" }, "version": "11cca3274341de7aef06f04e4dab3d651ea8ac04eff003f23603d4fdf5b56ff0" }
Generated inUsing seed: 1831057515 0%| | 0/29 [00:00<?, ?it/s] 3%|β | 1/29 [00:00<00:15, 1.78it/s] 7%|β | 2/29 [00:01<00:13, 1.98it/s] 10%|β | 3/29 [00:01<00:12, 2.05it/s] 14%|ββ | 4/29 [00:01<00:11, 2.09it/s] 17%|ββ | 5/29 [00:02<00:11, 2.12it/s] 21%|ββ | 6/29 [00:02<00:10, 2.13it/s] 24%|βββ | 7/29 [00:03<00:10, 2.14it/s] 28%|βββ | 8/29 [00:03<00:09, 2.14it/s] 31%|βββ | 9/29 [00:04<00:09, 2.14it/s] 34%|ββββ | 10/29 [00:04<00:08, 2.15it/s] 38%|ββββ | 11/29 [00:05<00:08, 2.15it/s] 41%|βββββ | 12/29 [00:05<00:07, 2.15it/s] 45%|βββββ | 13/29 [00:06<00:07, 2.15it/s] 48%|βββββ | 14/29 [00:06<00:06, 2.15it/s] 52%|ββββββ | 15/29 [00:07<00:06, 2.15it/s] 55%|ββββββ | 16/29 [00:07<00:06, 2.15it/s] 59%|ββββββ | 17/29 [00:07<00:05, 2.15it/s] 62%|βββββββ | 18/29 [00:08<00:05, 2.15it/s] 66%|βββββββ | 19/29 [00:08<00:04, 2.15it/s] 69%|βββββββ | 20/29 [00:09<00:04, 2.15it/s] 72%|ββββββββ | 21/29 [00:09<00:03, 2.15it/s] 76%|ββββββββ | 22/29 [00:10<00:03, 2.15it/s] 79%|ββββββββ | 23/29 [00:10<00:02, 2.15it/s] 83%|βββββββββ | 24/29 [00:11<00:02, 2.15it/s] 86%|βββββββββ | 25/29 [00:11<00:01, 2.15it/s] 90%|βββββββββ | 26/29 [00:12<00:01, 2.15it/s] 93%|ββββββββββ| 27/29 [00:12<00:00, 2.15it/s] 97%|ββββββββββ| 28/29 [00:13<00:00, 2.15it/s] 100%|ββββββββββ| 29/29 [00:13<00:00, 2.45it/s] 100%|ββββββββββ| 29/29 [00:13<00:00, 2.17it/s] INFERENCE DONE [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Want to make some of these yourself?
Run this model