zsxkib / step1x-edit
✍️Step1X-Edit by stepfun-ai, Edit an image using text prompt📸
Prediction
zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610ID7ehhxc35thrj20cpgwxr58m87wStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
- prompt
- replace the gray blazer with a leather jacket
- size_level
- 512
- output_format
- webp
- output_quality
- 80
{ "image": "https://replicate.delivery/pbxt/MvZYYJqqzZ7aMOHDFbG1xXOIhMkViBXR6nY7BJ0dzNJosepV/image.png", "prompt": "replace the gray blazer with a leather jacket", "size_level": 512, "output_format": "webp", "output_quality": 80 }
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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", { input: { image: "https://replicate.delivery/pbxt/MvZYYJqqzZ7aMOHDFbG1xXOIhMkViBXR6nY7BJ0dzNJosepV/image.png", prompt: "replace the gray blazer with a leather jacket", size_level: 512, output_format: "webp", output_quality: 80 } } ); // 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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", input={ "image": "https://replicate.delivery/pbxt/MvZYYJqqzZ7aMOHDFbG1xXOIhMkViBXR6nY7BJ0dzNJosepV/image.png", "prompt": "replace the gray blazer with a leather jacket", "size_level": 512, "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/step1x-edit 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/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", "input": { "image": "https://replicate.delivery/pbxt/MvZYYJqqzZ7aMOHDFbG1xXOIhMkViBXR6nY7BJ0dzNJosepV/image.png", "prompt": "replace the gray blazer with a leather jacket", "size_level": 512, "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-30T15:11:41.039997Z", "created_at": "2025-04-30T15:05:39.028000Z", "data_removed": false, "error": null, "id": "7ehhxc35thrj20cpgwxr58m87w", "input": { "image": "https://replicate.delivery/pbxt/MvZYYJqqzZ7aMOHDFbG1xXOIhMkViBXR6nY7BJ0dzNJosepV/image.png", "prompt": "replace the gray blazer with a leather jacket", "size_level": 512, "output_format": "webp", "output_quality": 80 }, "logs": "Using seed: 3679524576\ndenoising…: 0it [00:00, ?it/s]\ndenoising…: 1it [00:10, 10.98s/it]\ndenoising…: 2it [00:11, 4.79s/it]\ndenoising…: 3it [00:11, 2.82s/it]\ndenoising…: 4it [00:12, 1.89s/it]\ndenoising…: 5it [00:12, 1.37s/it]\ndenoising…: 6it [00:13, 1.06s/it]\ndenoising…: 7it [00:13, 1.15it/s]\ndenoising…: 8it [00:14, 1.35it/s]\ndenoising…: 9it [00:14, 1.53it/s]\ndenoising…: 10it [00:15, 1.68it/s]\ndenoising…: 11it [00:15, 1.80it/s]\ndenoising…: 12it [00:16, 1.90it/s]\ndenoising…: 13it [00:16, 1.97it/s]\ndenoising…: 14it [00:16, 2.02it/s]\ndenoising…: 15it [00:17, 2.06it/s]\ndenoising…: 16it [00:17, 2.09it/s]\ndenoising…: 17it [00:18, 2.11it/s]\ndenoising…: 18it [00:18, 2.12it/s]\ndenoising…: 19it [00:19, 2.13it/s]\ndenoising…: 20it [00:19, 2.14it/s]\ndenoising…: 21it [00:20, 2.14it/s]\ndenoising…: 22it [00:20, 2.15it/s]\ndenoising…: 23it [00:21, 2.15it/s]\ndenoising…: 24it [00:21, 2.15it/s]\ndenoising…: 25it [00:22, 2.15it/s]\ndenoising…: 26it [00:22, 2.15it/s]\ndenoising…: 27it [00:23, 2.15it/s]\ndenoising…: 28it [00:23, 2.15it/s]\ndenoising…: 28it [00:23, 1.19it/s]\nSaved to /tmp/step1x_edit_output.webp (WEBP, q=80)", "metrics": { "predict_time": 26.548252615, "total_time": 362.011997 }, "output": "https://replicate.delivery/yhqm/ZttD2U3hH1ZgOVg879gS73hQM0OZgQfa6tFhKgA3PeTte9PpA/step1x_edit_output.webp", "started_at": "2025-04-30T15:11:14.491744Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-pu7cd4hxwilafzvc7zldkmza3bt7kn35wavchhhhibd2cgqbf75a", "get": "https://api.replicate.com/v1/predictions/7ehhxc35thrj20cpgwxr58m87w", "cancel": "https://api.replicate.com/v1/predictions/7ehhxc35thrj20cpgwxr58m87w/cancel" }, "version": "12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610" }
Generated inUsing seed: 3679524576 denoising…: 0it [00:00, ?it/s] denoising…: 1it [00:10, 10.98s/it] denoising…: 2it [00:11, 4.79s/it] denoising…: 3it [00:11, 2.82s/it] denoising…: 4it [00:12, 1.89s/it] denoising…: 5it [00:12, 1.37s/it] denoising…: 6it [00:13, 1.06s/it] denoising…: 7it [00:13, 1.15it/s] denoising…: 8it [00:14, 1.35it/s] denoising…: 9it [00:14, 1.53it/s] denoising…: 10it [00:15, 1.68it/s] denoising…: 11it [00:15, 1.80it/s] denoising…: 12it [00:16, 1.90it/s] denoising…: 13it [00:16, 1.97it/s] denoising…: 14it [00:16, 2.02it/s] denoising…: 15it [00:17, 2.06it/s] denoising…: 16it [00:17, 2.09it/s] denoising…: 17it [00:18, 2.11it/s] denoising…: 18it [00:18, 2.12it/s] denoising…: 19it [00:19, 2.13it/s] denoising…: 20it [00:19, 2.14it/s] denoising…: 21it [00:20, 2.14it/s] denoising…: 22it [00:20, 2.15it/s] denoising…: 23it [00:21, 2.15it/s] denoising…: 24it [00:21, 2.15it/s] denoising…: 25it [00:22, 2.15it/s] denoising…: 26it [00:22, 2.15it/s] denoising…: 27it [00:23, 2.15it/s] denoising…: 28it [00:23, 2.15it/s] denoising…: 28it [00:23, 1.19it/s] Saved to /tmp/step1x_edit_output.webp (WEBP, q=80)
Prediction
zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610IDtjwcfahta5rj20cpgx2brqg09mStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- prompt
- turn into an illustration in studio ghibli style
- size_level
- 512
- output_format
- webp
- output_quality
- 80
{ "image": "https://replicate.delivery/pbxt/MvZhjvHLH3FK29Hmj7zXjLcfYpPqA47kPKPerXYynfnVqVGL/image.png", "prompt": "turn into an illustration in studio ghibli style", "size_level": 512, "output_format": "webp", "output_quality": 80 }
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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", { input: { image: "https://replicate.delivery/pbxt/MvZhjvHLH3FK29Hmj7zXjLcfYpPqA47kPKPerXYynfnVqVGL/image.png", prompt: "turn into an illustration in studio ghibli style", size_level: 512, output_format: "webp", output_quality: 80 } } ); // 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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", input={ "image": "https://replicate.delivery/pbxt/MvZhjvHLH3FK29Hmj7zXjLcfYpPqA47kPKPerXYynfnVqVGL/image.png", "prompt": "turn into an illustration in studio ghibli style", "size_level": 512, "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/step1x-edit 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/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", "input": { "image": "https://replicate.delivery/pbxt/MvZhjvHLH3FK29Hmj7zXjLcfYpPqA47kPKPerXYynfnVqVGL/image.png", "prompt": "turn into an illustration in studio ghibli style", "size_level": 512, "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-30T15:18:13.130367Z", "created_at": "2025-04-30T15:15:17.713000Z", "data_removed": false, "error": null, "id": "tjwcfahta5rj20cpgx2brqg09m", "input": { "image": "https://replicate.delivery/pbxt/MvZhjvHLH3FK29Hmj7zXjLcfYpPqA47kPKPerXYynfnVqVGL/image.png", "prompt": "turn into an illustration in studio ghibli style", "size_level": 512, "output_format": "webp", "output_quality": 80 }, "logs": "Using seed: 3108598127\ndenoising…: 0it [00:00, ?it/s]\ndenoising…: 1it [00:00, 5.23it/s]\ndenoising…: 2it [00:00, 2.87it/s]\ndenoising…: 3it [00:01, 2.50it/s]\ndenoising…: 4it [00:01, 2.36it/s]\ndenoising…: 5it [00:02, 2.29it/s]\ndenoising…: 6it [00:02, 2.25it/s]\ndenoising…: 7it [00:02, 2.22it/s]\ndenoising…: 8it [00:03, 2.21it/s]\ndenoising…: 9it [00:03, 2.20it/s]\ndenoising…: 10it [00:04, 2.19it/s]\ndenoising…: 11it [00:04, 2.18it/s]\ndenoising…: 12it [00:05, 2.18it/s]\ndenoising…: 13it [00:05, 2.18it/s]\ndenoising…: 14it [00:06, 2.17it/s]\ndenoising…: 15it [00:06, 2.17it/s]\ndenoising…: 16it [00:07, 2.17it/s]\ndenoising…: 17it [00:07, 2.17it/s]\ndenoising…: 18it [00:08, 2.17it/s]\ndenoising…: 19it [00:08, 2.17it/s]\ndenoising…: 20it [00:08, 2.17it/s]\ndenoising…: 21it [00:09, 2.17it/s]\ndenoising…: 22it [00:09, 2.17it/s]\ndenoising…: 23it [00:10, 2.17it/s]\ndenoising…: 24it [00:10, 2.17it/s]\ndenoising…: 25it [00:11, 2.17it/s]\ndenoising…: 26it [00:11, 2.17it/s]\ndenoising…: 27it [00:12, 2.17it/s]\ndenoising…: 28it [00:12, 2.17it/s]\ndenoising…: 28it [00:12, 2.22it/s]\nSaved to /tmp/step1x_edit_output.webp (WEBP, q=80)", "metrics": { "predict_time": 13.668098196999999, "total_time": 175.417367 }, "output": "https://replicate.delivery/yhqm/VWlZTvnsJbYoENHQonzHvP6ddaLArFzXsdZf7YOdTCvaifnUA/step1x_edit_output.webp", "started_at": "2025-04-30T15:17:59.462269Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-wa52tipzkgusst5vqsjrktbiprd4tfb7zfztwi6dd5bxpm5il2gq", "get": "https://api.replicate.com/v1/predictions/tjwcfahta5rj20cpgx2brqg09m", "cancel": "https://api.replicate.com/v1/predictions/tjwcfahta5rj20cpgx2brqg09m/cancel" }, "version": "12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610" }
Generated inUsing seed: 3108598127 denoising…: 0it [00:00, ?it/s] denoising…: 1it [00:00, 5.23it/s] denoising…: 2it [00:00, 2.87it/s] denoising…: 3it [00:01, 2.50it/s] denoising…: 4it [00:01, 2.36it/s] denoising…: 5it [00:02, 2.29it/s] denoising…: 6it [00:02, 2.25it/s] denoising…: 7it [00:02, 2.22it/s] denoising…: 8it [00:03, 2.21it/s] denoising…: 9it [00:03, 2.20it/s] denoising…: 10it [00:04, 2.19it/s] denoising…: 11it [00:04, 2.18it/s] denoising…: 12it [00:05, 2.18it/s] denoising…: 13it [00:05, 2.18it/s] denoising…: 14it [00:06, 2.17it/s] denoising…: 15it [00:06, 2.17it/s] denoising…: 16it [00:07, 2.17it/s] denoising…: 17it [00:07, 2.17it/s] denoising…: 18it [00:08, 2.17it/s] denoising…: 19it [00:08, 2.17it/s] denoising…: 20it [00:08, 2.17it/s] denoising…: 21it [00:09, 2.17it/s] denoising…: 22it [00:09, 2.17it/s] denoising…: 23it [00:10, 2.17it/s] denoising…: 24it [00:10, 2.17it/s] denoising…: 25it [00:11, 2.17it/s] denoising…: 26it [00:11, 2.17it/s] denoising…: 27it [00:12, 2.17it/s] denoising…: 28it [00:12, 2.17it/s] denoising…: 28it [00:12, 2.22it/s] Saved to /tmp/step1x_edit_output.webp (WEBP, q=80)
Prediction
zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610IDee4641bkcxrj60cpgx3vkdh4ycStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MvZl4clVPRRn6QfrmCEkaBPH3kaRWQAd9ZoEkQOMOth2azzq/image.png", "prompt": "remove the cookie", "size_level": 512, "output_format": "webp", "output_quality": 80 }
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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", { input: { image: "https://replicate.delivery/pbxt/MvZl4clVPRRn6QfrmCEkaBPH3kaRWQAd9ZoEkQOMOth2azzq/image.png", prompt: "remove the cookie", size_level: 512, output_format: "webp", output_quality: 80 } } ); // 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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", input={ "image": "https://replicate.delivery/pbxt/MvZl4clVPRRn6QfrmCEkaBPH3kaRWQAd9ZoEkQOMOth2azzq/image.png", "prompt": "remove the cookie", "size_level": 512, "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/step1x-edit 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/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", "input": { "image": "https://replicate.delivery/pbxt/MvZl4clVPRRn6QfrmCEkaBPH3kaRWQAd9ZoEkQOMOth2azzq/image.png", "prompt": "remove the cookie", "size_level": 512, "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-30T15:19:11.514717Z", "created_at": "2025-04-30T15:18:48.935000Z", "data_removed": false, "error": null, "id": "ee4641bkcxrj60cpgx3vkdh4yc", "input": { "image": "https://replicate.delivery/pbxt/MvZl4clVPRRn6QfrmCEkaBPH3kaRWQAd9ZoEkQOMOth2azzq/image.png", "prompt": "remove the cookie", "size_level": 512, "output_format": "webp", "output_quality": 80 }, "logs": "Using seed: 1449083053\ndenoising…: 0it [00:00, ?it/s]\ndenoising…: 1it [00:00, 5.24it/s]\ndenoising…: 2it [00:00, 2.87it/s]\ndenoising…: 3it [00:01, 2.50it/s]\ndenoising…: 4it [00:01, 2.36it/s]\ndenoising…: 5it [00:02, 2.29it/s]\ndenoising…: 6it [00:02, 2.25it/s]\ndenoising…: 7it [00:02, 2.22it/s]\ndenoising…: 8it [00:03, 2.21it/s]\ndenoising…: 9it [00:03, 2.20it/s]\ndenoising…: 10it [00:04, 2.19it/s]\ndenoising…: 11it [00:04, 2.18it/s]\ndenoising…: 12it [00:05, 2.18it/s]\ndenoising…: 13it [00:05, 2.18it/s]\ndenoising…: 14it [00:06, 2.18it/s]\ndenoising…: 15it [00:06, 2.17it/s]\ndenoising…: 16it [00:07, 2.17it/s]\ndenoising…: 17it [00:07, 2.17it/s]\ndenoising…: 18it [00:08, 2.17it/s]\ndenoising…: 19it [00:08, 2.17it/s]\ndenoising…: 20it [00:08, 2.17it/s]\ndenoising…: 21it [00:09, 2.17it/s]\ndenoising…: 22it [00:09, 2.17it/s]\ndenoising…: 23it [00:10, 2.17it/s]\ndenoising…: 24it [00:10, 2.17it/s]\ndenoising…: 25it [00:11, 2.17it/s]\ndenoising…: 26it [00:11, 2.17it/s]\ndenoising…: 27it [00:12, 2.17it/s]\ndenoising…: 28it [00:12, 2.17it/s]\ndenoising…: 28it [00:12, 2.22it/s]\nSaved to /tmp/step1x_edit_output.webp (WEBP, q=80)", "metrics": { "predict_time": 13.813405405, "total_time": 22.579717 }, "output": "https://replicate.delivery/yhqm/H9DG4ARzvfVoMSlRyPTCgmqmzJTCN5LdbbO9euRfZYRfW8fkC/step1x_edit_output.webp", "started_at": "2025-04-30T15:18:57.701311Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-nxotbot27wr2lasvr5s6mkmznyevd357pncjtmlpdhujrp2cm3aa", "get": "https://api.replicate.com/v1/predictions/ee4641bkcxrj60cpgx3vkdh4yc", "cancel": "https://api.replicate.com/v1/predictions/ee4641bkcxrj60cpgx3vkdh4yc/cancel" }, "version": "12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610" }
Generated inUsing seed: 1449083053 denoising…: 0it [00:00, ?it/s] denoising…: 1it [00:00, 5.24it/s] denoising…: 2it [00:00, 2.87it/s] denoising…: 3it [00:01, 2.50it/s] denoising…: 4it [00:01, 2.36it/s] denoising…: 5it [00:02, 2.29it/s] denoising…: 6it [00:02, 2.25it/s] denoising…: 7it [00:02, 2.22it/s] denoising…: 8it [00:03, 2.21it/s] denoising…: 9it [00:03, 2.20it/s] denoising…: 10it [00:04, 2.19it/s] denoising…: 11it [00:04, 2.18it/s] denoising…: 12it [00:05, 2.18it/s] denoising…: 13it [00:05, 2.18it/s] denoising…: 14it [00:06, 2.18it/s] denoising…: 15it [00:06, 2.17it/s] denoising…: 16it [00:07, 2.17it/s] denoising…: 17it [00:07, 2.17it/s] denoising…: 18it [00:08, 2.17it/s] denoising…: 19it [00:08, 2.17it/s] denoising…: 20it [00:08, 2.17it/s] denoising…: 21it [00:09, 2.17it/s] denoising…: 22it [00:09, 2.17it/s] denoising…: 23it [00:10, 2.17it/s] denoising…: 24it [00:10, 2.17it/s] denoising…: 25it [00:11, 2.17it/s] denoising…: 26it [00:11, 2.17it/s] denoising…: 27it [00:12, 2.17it/s] denoising…: 28it [00:12, 2.17it/s] denoising…: 28it [00:12, 2.22it/s] Saved to /tmp/step1x_edit_output.webp (WEBP, q=80)
Prediction
zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610IDx20gp94a25rj20cpgx492zmpnwStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
{ "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace 'lambs' with 'llamas'", "size_level": 512, "output_format": "webp", "output_quality": 80 }
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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", { input: { image: "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", prompt: "replace 'lambs' with 'llamas'", size_level: 512, output_format: "webp", output_quality: 80 } } ); // 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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", input={ "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace 'lambs' with 'llamas'", "size_level": 512, "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/step1x-edit 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/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", "input": { "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace \'lambs\' with \'llamas\'", "size_level": 512, "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-30T15:20:20.415326Z", "created_at": "2025-04-30T15:20:00.273000Z", "data_removed": false, "error": null, "id": "x20gp94a25rj20cpgx492zmpnw", "input": { "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace 'lambs' with 'llamas'", "size_level": 512, "output_format": "webp", "output_quality": 80 }, "logs": "Using seed: 3477846415\ndenoising…: 0it [00:00, ?it/s]\ndenoising…: 1it [00:05, 5.61s/it]\ndenoising…: 2it [00:06, 2.58s/it]\ndenoising…: 3it [00:06, 1.61s/it]\ndenoising…: 4it [00:06, 1.16s/it]\ndenoising…: 5it [00:07, 1.10it/s]\ndenoising…: 6it [00:07, 1.33it/s]\ndenoising…: 7it [00:08, 1.52it/s]\ndenoising…: 8it [00:08, 1.68it/s]\ndenoising…: 9it [00:09, 1.81it/s]\ndenoising…: 10it [00:09, 1.91it/s]\ndenoising…: 11it [00:10, 1.98it/s]\ndenoising…: 12it [00:10, 2.03it/s]\ndenoising…: 13it [00:11, 2.07it/s]\ndenoising…: 14it [00:11, 2.10it/s]\ndenoising…: 15it [00:12, 2.12it/s]\ndenoising…: 16it [00:12, 2.14it/s]\ndenoising…: 17it [00:12, 2.14it/s]\ndenoising…: 18it [00:13, 2.15it/s]\ndenoising…: 19it [00:13, 2.16it/s]\ndenoising…: 20it [00:14, 2.16it/s]\ndenoising…: 21it [00:14, 2.16it/s]\ndenoising…: 22it [00:15, 2.16it/s]\ndenoising…: 23it [00:15, 2.16it/s]\ndenoising…: 24it [00:16, 2.16it/s]\ndenoising…: 25it [00:16, 2.16it/s]\ndenoising…: 26it [00:17, 2.16it/s]\ndenoising…: 27it [00:17, 2.16it/s]\ndenoising…: 28it [00:18, 2.16it/s]\ndenoising…: 28it [00:18, 1.55it/s]\nSaved to /tmp/step1x_edit_output.webp (WEBP, q=80)", "metrics": { "predict_time": 20.128773307, "total_time": 20.142326 }, "output": "https://replicate.delivery/yhqm/ZonMJwoNizptKBmMoUK0zGPtpIWUj7j1zqym3luyZjItxfTKA/step1x_edit_output.webp", "started_at": "2025-04-30T15:20:00.286553Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-iiq4oebtvry4fcippaokjyfkjcemb3unjbdgpsnggd2avoqrpchq", "get": "https://api.replicate.com/v1/predictions/x20gp94a25rj20cpgx492zmpnw", "cancel": "https://api.replicate.com/v1/predictions/x20gp94a25rj20cpgx492zmpnw/cancel" }, "version": "12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610" }
Generated inUsing seed: 3477846415 denoising…: 0it [00:00, ?it/s] denoising…: 1it [00:05, 5.61s/it] denoising…: 2it [00:06, 2.58s/it] denoising…: 3it [00:06, 1.61s/it] denoising…: 4it [00:06, 1.16s/it] denoising…: 5it [00:07, 1.10it/s] denoising…: 6it [00:07, 1.33it/s] denoising…: 7it [00:08, 1.52it/s] denoising…: 8it [00:08, 1.68it/s] denoising…: 9it [00:09, 1.81it/s] denoising…: 10it [00:09, 1.91it/s] denoising…: 11it [00:10, 1.98it/s] denoising…: 12it [00:10, 2.03it/s] denoising…: 13it [00:11, 2.07it/s] denoising…: 14it [00:11, 2.10it/s] denoising…: 15it [00:12, 2.12it/s] denoising…: 16it [00:12, 2.14it/s] denoising…: 17it [00:12, 2.14it/s] denoising…: 18it [00:13, 2.15it/s] denoising…: 19it [00:13, 2.16it/s] denoising…: 20it [00:14, 2.16it/s] denoising…: 21it [00:14, 2.16it/s] denoising…: 22it [00:15, 2.16it/s] denoising…: 23it [00:15, 2.16it/s] denoising…: 24it [00:16, 2.16it/s] denoising…: 25it [00:16, 2.16it/s] denoising…: 26it [00:17, 2.16it/s] denoising…: 27it [00:17, 2.16it/s] denoising…: 28it [00:18, 2.16it/s] denoising…: 28it [00:18, 1.55it/s] Saved to /tmp/step1x_edit_output.webp (WEBP, q=80)
Prediction
zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610ID48masnxt49rj40cphjya428dh8StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
{ "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace moth with a small humming bird", "size_level": 512, "output_format": "webp", "output_quality": 80 }
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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", { input: { image: "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", prompt: "replace moth with a small humming bird", size_level: 512, output_format: "webp", output_quality: 80 } } ); // 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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", input={ "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace moth with a small humming bird", "size_level": 512, "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/step1x-edit 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/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", "input": { "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace moth with a small humming bird", "size_level": 512, "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-05-01T16:45:14.420568Z", "created_at": "2025-05-01T16:45:00.834000Z", "data_removed": false, "error": null, "id": "48masnxt49rj40cphjya428dh8", "input": { "image": "https://replicate.delivery/pbxt/MvZmCkr5rzQLtsfOGziHpX7OK2kbRC5fAmAcVk39JQotwzmD/image.png", "prompt": "replace moth with a small humming bird", "size_level": 512, "output_format": "webp", "output_quality": 80 }, "logs": "Using seed: 3975123407\ndenoising…: 0it [00:00, ?it/s]\ndenoising…: 1it [00:00, 5.23it/s]\ndenoising…: 2it [00:00, 2.86it/s]\ndenoising…: 3it [00:01, 2.49it/s]\ndenoising…: 4it [00:01, 2.36it/s]\ndenoising…: 5it [00:02, 2.28it/s]\ndenoising…: 6it [00:02, 2.25it/s]\ndenoising…: 7it [00:02, 2.22it/s]\ndenoising…: 8it [00:03, 2.20it/s]\ndenoising…: 9it [00:03, 2.19it/s]\ndenoising…: 10it [00:04, 2.18it/s]\ndenoising…: 11it [00:04, 2.18it/s]\ndenoising…: 12it [00:05, 2.18it/s]\ndenoising…: 13it [00:05, 2.17it/s]\ndenoising…: 14it [00:06, 2.17it/s]\ndenoising…: 15it [00:06, 2.17it/s]\ndenoising…: 16it [00:07, 2.17it/s]\ndenoising…: 17it [00:07, 2.17it/s]\ndenoising…: 18it [00:08, 2.17it/s]\ndenoising…: 19it [00:08, 2.17it/s]\ndenoising…: 20it [00:08, 2.17it/s]\ndenoising…: 21it [00:09, 2.16it/s]\ndenoising…: 22it [00:09, 2.17it/s]\ndenoising…: 23it [00:10, 2.16it/s]\ndenoising…: 24it [00:10, 2.16it/s]\ndenoising…: 25it [00:11, 2.16it/s]\ndenoising…: 26it [00:11, 2.16it/s]\ndenoising…: 27it [00:12, 2.16it/s]\ndenoising…: 28it [00:12, 2.16it/s]\ndenoising…: 28it [00:12, 2.21it/s]\nSaved to /tmp/step1x_edit_output.webp (WEBP, q=80)", "metrics": { "predict_time": 13.576513942, "total_time": 13.586568 }, "output": "https://replicate.delivery/yhqm/jk5dmx205greBCNJCEwo3Ugexu1TR0GoorXxfrPjUyd14qQpA/step1x_edit_output.webp", "started_at": "2025-05-01T16:45:00.844054Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-ijtceyh264dnho3rfafgnfneu5sbyjsmq2roxshcxeniyqx3qovq", "get": "https://api.replicate.com/v1/predictions/48masnxt49rj40cphjya428dh8", "cancel": "https://api.replicate.com/v1/predictions/48masnxt49rj40cphjya428dh8/cancel" }, "version": "12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610" }
Generated inUsing seed: 3975123407 denoising…: 0it [00:00, ?it/s] denoising…: 1it [00:00, 5.23it/s] denoising…: 2it [00:00, 2.86it/s] denoising…: 3it [00:01, 2.49it/s] denoising…: 4it [00:01, 2.36it/s] denoising…: 5it [00:02, 2.28it/s] denoising…: 6it [00:02, 2.25it/s] denoising…: 7it [00:02, 2.22it/s] denoising…: 8it [00:03, 2.20it/s] denoising…: 9it [00:03, 2.19it/s] denoising…: 10it [00:04, 2.18it/s] denoising…: 11it [00:04, 2.18it/s] denoising…: 12it [00:05, 2.18it/s] denoising…: 13it [00:05, 2.17it/s] denoising…: 14it [00:06, 2.17it/s] denoising…: 15it [00:06, 2.17it/s] denoising…: 16it [00:07, 2.17it/s] denoising…: 17it [00:07, 2.17it/s] denoising…: 18it [00:08, 2.17it/s] denoising…: 19it [00:08, 2.17it/s] denoising…: 20it [00:08, 2.17it/s] denoising…: 21it [00:09, 2.16it/s] denoising…: 22it [00:09, 2.17it/s] denoising…: 23it [00:10, 2.16it/s] denoising…: 24it [00:10, 2.16it/s] denoising…: 25it [00:11, 2.16it/s] denoising…: 26it [00:11, 2.16it/s] denoising…: 27it [00:12, 2.16it/s] denoising…: 28it [00:12, 2.16it/s] denoising…: 28it [00:12, 2.21it/s] Saved to /tmp/step1x_edit_output.webp (WEBP, q=80)
Prediction
zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610ID2bfe44g9wnrj00cpj1xan2w3nwStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @zsxkibInput
- prompt
- Replace the leather jacket with a furry pink jacket, add sunglasses
- size_level
- 512
- output_format
- webp
- output_quality
- 80
{ "image": "https://replicate.delivery/pbxt/MwD3zFBYZxN6na4nJU1EIiTykF2TKBzdjXb9FmG82PqnXvT2/image.png", "prompt": "Replace the leather jacket with a furry pink jacket, add sunglasses", "size_level": 512, "output_format": "webp", "output_quality": 80 }
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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", { input: { image: "https://replicate.delivery/pbxt/MwD3zFBYZxN6na4nJU1EIiTykF2TKBzdjXb9FmG82PqnXvT2/image.png", prompt: "Replace the leather jacket with a furry pink jacket, add sunglasses", size_level: 512, output_format: "webp", output_quality: 80 } } ); // 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/step1x-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "zsxkib/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", input={ "image": "https://replicate.delivery/pbxt/MwD3zFBYZxN6na4nJU1EIiTykF2TKBzdjXb9FmG82PqnXvT2/image.png", "prompt": "Replace the leather jacket with a furry pink jacket, add sunglasses", "size_level": 512, "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run zsxkib/step1x-edit 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/step1x-edit:12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610", "input": { "image": "https://replicate.delivery/pbxt/MwD3zFBYZxN6na4nJU1EIiTykF2TKBzdjXb9FmG82PqnXvT2/image.png", "prompt": "Replace the leather jacket with a furry pink jacket, add sunglasses", "size_level": 512, "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-05-02T10:10:53.176684Z", "created_at": "2025-05-02T10:10:39.205000Z", "data_removed": false, "error": null, "id": "2bfe44g9wnrj00cpj1xan2w3nw", "input": { "image": "https://replicate.delivery/pbxt/MwD3zFBYZxN6na4nJU1EIiTykF2TKBzdjXb9FmG82PqnXvT2/image.png", "prompt": "Replace the leather jacket with a furry pink jacket, add sunglasses", "size_level": 512, "output_format": "webp", "output_quality": 80 }, "logs": "Using seed: 294440376\ndenoising…: 0it [00:00, ?it/s]\ndenoising…: 1it [00:00, 5.20it/s]\ndenoising…: 2it [00:00, 2.84it/s]\ndenoising…: 3it [00:01, 2.47it/s]\ndenoising…: 4it [00:01, 2.33it/s]\ndenoising…: 5it [00:02, 2.26it/s]\ndenoising…: 6it [00:02, 2.22it/s]\ndenoising…: 7it [00:02, 2.19it/s]\ndenoising…: 8it [00:03, 2.17it/s]\ndenoising…: 9it [00:03, 2.16it/s]\ndenoising…: 10it [00:04, 2.15it/s]\ndenoising…: 11it [00:04, 2.14it/s]\ndenoising…: 12it [00:05, 2.14it/s]\ndenoising…: 13it [00:05, 2.14it/s]\ndenoising…: 14it [00:06, 2.13it/s]\ndenoising…: 15it [00:06, 2.13it/s]\ndenoising…: 16it [00:07, 2.13it/s]\ndenoising…: 17it [00:07, 2.13it/s]\ndenoising…: 18it [00:08, 2.13it/s]\ndenoising…: 19it [00:08, 2.13it/s]\ndenoising…: 20it [00:09, 2.12it/s]\ndenoising…: 21it [00:09, 2.13it/s]\ndenoising…: 22it [00:10, 2.12it/s]\ndenoising…: 23it [00:10, 2.12it/s]\ndenoising…: 24it [00:10, 2.12it/s]\ndenoising…: 25it [00:11, 2.12it/s]\ndenoising…: 26it [00:11, 2.12it/s]\ndenoising…: 27it [00:12, 2.12it/s]\ndenoising…: 28it [00:12, 2.12it/s]\ndenoising…: 28it [00:12, 2.17it/s]\nSaved to /tmp/step1x_edit_output.webp (WEBP, q=80)", "metrics": { "predict_time": 13.959232877, "total_time": 13.971684 }, "output": "https://replicate.delivery/yhqm/DbCq0sv0s2bgGhN2hpyHwQ19tM31ThsekJpqHseeGr1ahJRpA/step1x_edit_output.webp", "started_at": "2025-05-02T10:10:39.217451Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-72zheyjs7hyhijk4fkptm7u6u25nszxaqywgov6hnyt256pzij4q", "get": "https://api.replicate.com/v1/predictions/2bfe44g9wnrj00cpj1xan2w3nw", "cancel": "https://api.replicate.com/v1/predictions/2bfe44g9wnrj00cpj1xan2w3nw/cancel" }, "version": "12b5a5a61e3419f792eb56cfc16eed046252740ebf5d470228f9b4cf2c861610" }
Generated inUsing seed: 294440376 denoising…: 0it [00:00, ?it/s] denoising…: 1it [00:00, 5.20it/s] denoising…: 2it [00:00, 2.84it/s] denoising…: 3it [00:01, 2.47it/s] denoising…: 4it [00:01, 2.33it/s] denoising…: 5it [00:02, 2.26it/s] denoising…: 6it [00:02, 2.22it/s] denoising…: 7it [00:02, 2.19it/s] denoising…: 8it [00:03, 2.17it/s] denoising…: 9it [00:03, 2.16it/s] denoising…: 10it [00:04, 2.15it/s] denoising…: 11it [00:04, 2.14it/s] denoising…: 12it [00:05, 2.14it/s] denoising…: 13it [00:05, 2.14it/s] denoising…: 14it [00:06, 2.13it/s] denoising…: 15it [00:06, 2.13it/s] denoising…: 16it [00:07, 2.13it/s] denoising…: 17it [00:07, 2.13it/s] denoising…: 18it [00:08, 2.13it/s] denoising…: 19it [00:08, 2.13it/s] denoising…: 20it [00:09, 2.12it/s] denoising…: 21it [00:09, 2.13it/s] denoising…: 22it [00:10, 2.12it/s] denoising…: 23it [00:10, 2.12it/s] denoising…: 24it [00:10, 2.12it/s] denoising…: 25it [00:11, 2.12it/s] denoising…: 26it [00:11, 2.12it/s] denoising…: 27it [00:12, 2.12it/s] denoising…: 28it [00:12, 2.12it/s] denoising…: 28it [00:12, 2.17it/s] Saved to /tmp/step1x_edit_output.webp (WEBP, q=80)
Want to make some of these yourself?
Run this model