Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
zsxkib /step1x-edit:12b5a5a6
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
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.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
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"
}
Using 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)