zsxkib
/
flux-schnell-inpainting
🎨 Fill in masked parts of images with FLUX.1-schnell 🖌️
- Public
- 6K runs
-
A100 (80GB)
- License
Prediction
zsxkib/flux-schnell-inpainting:1e52688cIDty95zz96h1rgp0ch9jq8bmjbs4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 42
- prompt
- a herd of grazing sheep, close up shot, lots of sheep
- strength
- 0.85
- output_format
- jpg
- output_quality
- 90
- num_inference_steps
- 4
{ "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "seed": 42, "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "a herd of grazing sheep, close up shot, lots of sheep", "strength": 0.85, "output_format": "jpg", "output_quality": 90, "num_inference_steps": 4 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-schnell-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-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", { input: { mask: "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", seed: 42, image: "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", prompt: "a herd of grazing sheep, close up shot, lots of sheep", strength: 0.85, output_format: "jpg", output_quality: 90, num_inference_steps: 4 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zsxkib/flux-schnell-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", input={ "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "seed": 42, "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "a herd of grazing sheep, close up shot, lots of sheep", "strength": 0.85, "output_format": "jpg", "output_quality": 90, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zsxkib/flux-schnell-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": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", "input": { "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "seed": 42, "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "a herd of grazing sheep, close up shot, lots of sheep", "strength": 0.85, "output_format": "jpg", "output_quality": 90, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-13T17:02:36.446347Z", "created_at": "2024-08-13T16:59:27.240000Z", "data_removed": false, "error": null, "id": "ty95zz96h1rgp0ch9jq8bmjbs4", "input": { "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "seed": 42, "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "a herd of grazing sheep, close up shot, lots of sheep", "strength": 0.85, "output_format": "jpg", "output_quality": 90, "num_inference_steps": 4 }, "logs": "Using seed: 42\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:02<00:08, 2.71s/it]\n 50%|█████ | 2/4 [00:04<00:04, 2.45s/it]\n 75%|███████▌ | 3/4 [00:07<00:02, 2.36s/it]\n100%|██████████| 4/4 [00:08<00:00, 1.95s/it]\n100%|██████████| 4/4 [00:08<00:00, 2.14s/it]\n[~] Saving to /tmp/output.jpeg...\n[~] Output format: JPEG\n[~] Output quality: 90", "metrics": { "predict_time": 13.749009122, "total_time": 189.206347 }, "output": "https://replicate.delivery/pbxt/ar6wxM3GJ9aFJt2Y6rmQh9fplQly05jZdMXWVlOBtfkrOUSTA/output.jpeg", "started_at": "2024-08-13T17:02:22.697337Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ty95zz96h1rgp0ch9jq8bmjbs4", "cancel": "https://api.replicate.com/v1/predictions/ty95zz96h1rgp0ch9jq8bmjbs4/cancel" }, "version": "74b7490e677727e7a2fd68b087b6ea17d3e73433e21e8289de4e60644208115d" }
Generated inUsing seed: 42 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:02<00:08, 2.71s/it] 50%|█████ | 2/4 [00:04<00:04, 2.45s/it] 75%|███████▌ | 3/4 [00:07<00:02, 2.36s/it] 100%|██████████| 4/4 [00:08<00:00, 1.95s/it] 100%|██████████| 4/4 [00:08<00:00, 2.14s/it] [~] Saving to /tmp/output.jpeg... [~] Output format: JPEG [~] Output quality: 90
Prediction
zsxkib/flux-schnell-inpainting:1e52688cIDp98a8ngnshrgm0ch9jwbth8vk8StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
{ "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "lava", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-schnell-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-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", { input: { mask: "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", image: "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", prompt: "lava", strength: 0.76, output_format: "webp", output_quality: 90, num_inference_steps: 4 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zsxkib/flux-schnell-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", input={ "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "lava", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zsxkib/flux-schnell-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": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", "input": { "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "lava", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-13T17:10:31.198440Z", "created_at": "2024-08-13T17:10:18.316000Z", "data_removed": false, "error": null, "id": "p98a8ngnshrgm0ch9jwbth8vk8", "input": { "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "lava", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 }, "logs": "Using seed: 61026\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:02<00:08, 2.72s/it]\n 50%|█████ | 2/4 [00:05<00:04, 2.46s/it]\n 75%|███████▌ | 3/4 [00:07<00:02, 2.38s/it]\n100%|██████████| 4/4 [00:08<00:00, 1.98s/it]\n100%|██████████| 4/4 [00:08<00:00, 2.16s/it]\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 12.784563594, "total_time": 12.88244 }, "output": "https://replicate.delivery/pbxt/b9yI8fcMquy5D690yTpuoQvDUfyjqQVnIjRqefAD8r0YYRJNB/output.webp", "started_at": "2024-08-13T17:10:18.413876Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/p98a8ngnshrgm0ch9jwbth8vk8", "cancel": "https://api.replicate.com/v1/predictions/p98a8ngnshrgm0ch9jwbth8vk8/cancel" }, "version": "74b7490e677727e7a2fd68b087b6ea17d3e73433e21e8289de4e60644208115d" }
Generated inUsing seed: 61026 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:02<00:08, 2.72s/it] 50%|█████ | 2/4 [00:05<00:04, 2.46s/it] 75%|███████▌ | 3/4 [00:07<00:02, 2.38s/it] 100%|██████████| 4/4 [00:08<00:00, 1.98s/it] 100%|██████████| 4/4 [00:08<00:00, 2.16s/it] [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Prediction
zsxkib/flux-schnell-inpainting:1e52688cIDmxzygq8ct5rgp0ch9jwtf8by94StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedby @zsxkibInput
- prompt
- sea ocean, scenic, dynamic shot
- strength
- 0.76
- output_format
- webp
- output_quality
- 90
- num_inference_steps
- 4
{ "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "sea ocean, scenic, dynamic shot", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-schnell-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-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", { input: { mask: "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", image: "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", prompt: "sea ocean, scenic, dynamic shot", strength: 0.76, output_format: "webp", output_quality: 90, num_inference_steps: 4 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zsxkib/flux-schnell-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", input={ "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "sea ocean, scenic, dynamic shot", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zsxkib/flux-schnell-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": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", "input": { "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "sea ocean, scenic, dynamic shot", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-13T17:11:34.492195Z", "created_at": "2024-08-13T17:11:21.553000Z", "data_removed": false, "error": null, "id": "mxzygq8ct5rgp0ch9jwtf8by94", "input": { "mask": "https://replicate.delivery/pbxt/LRJOuPPw5Wxkfvz5xoAmJaj3R21bsDyVNsZCs6enlPj11a0x/Inverted_Mask.png", "image": "https://replicate.delivery/mgxm/f8c9cb3a-8ee8-41a7-9ef6-c65b37acc8af/desktop.png", "prompt": "sea ocean, scenic, dynamic shot", "strength": 0.76, "output_format": "webp", "output_quality": 90, "num_inference_steps": 4 }, "logs": "Using seed: 30130\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:02<00:08, 2.72s/it]\n 50%|█████ | 2/4 [00:05<00:04, 2.47s/it]\n 75%|███████▌ | 3/4 [00:07<00:02, 2.39s/it]\n100%|██████████| 4/4 [00:08<00:00, 1.98s/it]\n100%|██████████| 4/4 [00:08<00:00, 2.16s/it]\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 12.797195297, "total_time": 12.939195 }, "output": "https://replicate.delivery/pbxt/NmcEca66iyrYDV9As2seIvA5UCegRcRA4NAaNmqBzidFXUSTA/output.webp", "started_at": "2024-08-13T17:11:21.695000Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/mxzygq8ct5rgp0ch9jwtf8by94", "cancel": "https://api.replicate.com/v1/predictions/mxzygq8ct5rgp0ch9jwtf8by94/cancel" }, "version": "74b7490e677727e7a2fd68b087b6ea17d3e73433e21e8289de4e60644208115d" }
Generated inUsing seed: 30130 0%| | 0/4 [00:00<?, ?it/s] 25%|██▌ | 1/4 [00:02<00:08, 2.72s/it] 50%|█████ | 2/4 [00:05<00:04, 2.47s/it] 75%|███████▌ | 3/4 [00:07<00:02, 2.39s/it] 100%|██████████| 4/4 [00:08<00:00, 1.98s/it] 100%|██████████| 4/4 [00:08<00:00, 2.16s/it] [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Prediction
zsxkib/flux-schnell-inpainting:1e52688cIDtqz6pg9h3drj40chbd9vjjmmfrStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
- 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 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-schnell-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-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", { 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 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zsxkib/flux-schnell-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", 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.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zsxkib/flux-schnell-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": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", "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:38.895353Z", "created_at": "2024-08-16T13:14:24.411000Z", "data_removed": false, "error": null, "id": "tqz6pg9h3drj40chbd9vjjmmfr", "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: 2332031470\n 0%| | 0/29 [00:00<?, ?it/s]\n 3%|▎ | 1/29 [00:00<00:15, 1.80it/s]\n 7%|▋ | 2/29 [00:01<00:13, 2.00it/s]\n 10%|█ | 3/29 [00:01<00:12, 2.07it/s]\n 14%|█▍ | 4/29 [00:01<00:11, 2.11it/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.16it/s]\n 31%|███ | 9/29 [00:04<00:09, 2.16it/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.18it/s]\nINFERENCE DONE\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 14.474911536, "total_time": 14.484353 }, "output": "https://replicate.delivery/yhqm/Pg0jebEO0y1ffoj4H8mf3B7Qto7PPFoCfvESnpRzE8ixXBaaC/output.webp", "started_at": "2024-08-16T13:14:24.420442Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tqz6pg9h3drj40chbd9vjjmmfr", "cancel": "https://api.replicate.com/v1/predictions/tqz6pg9h3drj40chbd9vjjmmfr/cancel" }, "version": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf" }
Generated inUsing seed: 2332031470 0%| | 0/29 [00:00<?, ?it/s] 3%|▎ | 1/29 [00:00<00:15, 1.80it/s] 7%|▋ | 2/29 [00:01<00:13, 2.00it/s] 10%|█ | 3/29 [00:01<00:12, 2.07it/s] 14%|█▍ | 4/29 [00:01<00:11, 2.11it/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.16it/s] 31%|███ | 9/29 [00:04<00:09, 2.16it/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.18it/s] INFERENCE DONE [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Prediction
zsxkib/flux-schnell-inpainting:1e52688cIDtqz6pg9h3drj40chbd9vjjmmfrStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
- 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 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run zsxkib/flux-schnell-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-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", { 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 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run zsxkib/flux-schnell-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/flux-schnell-inpainting:1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", 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.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zsxkib/flux-schnell-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": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf", "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:38.895353Z", "created_at": "2024-08-16T13:14:24.411000Z", "data_removed": false, "error": null, "id": "tqz6pg9h3drj40chbd9vjjmmfr", "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: 2332031470\n 0%| | 0/29 [00:00<?, ?it/s]\n 3%|▎ | 1/29 [00:00<00:15, 1.80it/s]\n 7%|▋ | 2/29 [00:01<00:13, 2.00it/s]\n 10%|█ | 3/29 [00:01<00:12, 2.07it/s]\n 14%|█▍ | 4/29 [00:01<00:11, 2.11it/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.16it/s]\n 31%|███ | 9/29 [00:04<00:09, 2.16it/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.18it/s]\nINFERENCE DONE\n[~] Saving to /tmp/output.webp...\n[~] Output format: WEBP\n[~] Output quality: 90", "metrics": { "predict_time": 14.474911536, "total_time": 14.484353 }, "output": "https://replicate.delivery/yhqm/Pg0jebEO0y1ffoj4H8mf3B7Qto7PPFoCfvESnpRzE8ixXBaaC/output.webp", "started_at": "2024-08-16T13:14:24.420442Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tqz6pg9h3drj40chbd9vjjmmfr", "cancel": "https://api.replicate.com/v1/predictions/tqz6pg9h3drj40chbd9vjjmmfr/cancel" }, "version": "1e52688c4204e543363071497ac358993fa579ae7c0e2bea7041184827d65adf" }
Generated inUsing seed: 2332031470 0%| | 0/29 [00:00<?, ?it/s] 3%|▎ | 1/29 [00:00<00:15, 1.80it/s] 7%|▋ | 2/29 [00:01<00:13, 2.00it/s] 10%|█ | 3/29 [00:01<00:12, 2.07it/s] 14%|█▍ | 4/29 [00:01<00:11, 2.11it/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.16it/s] 31%|███ | 9/29 [00:04<00:09, 2.16it/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.18it/s] INFERENCE DONE [~] Saving to /tmp/output.webp... [~] Output format: WEBP [~] Output quality: 90
Want to make some of these yourself?
Run this model