typetext
{
"guidance_scale": 5.5,
"image": "https://replicate.delivery/pbxt/NPq0BTwvEXNZdyB1MA4U66pHP0j1OJLj6oLOYtn6LKfKa4rf/woman-city-doodle.jpg",
"prompt": "replace the taxi with a bus, change the pants to white, replace the wall with a window, remove the text"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_7bT**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run bytedance/seededit-3.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
guidance_scale: 5.5,
image: "https://replicate.delivery/pbxt/NPq0BTwvEXNZdyB1MA4U66pHP0j1OJLj6oLOYtn6LKfKa4rf/woman-city-doodle.jpg",
prompt: "replace the taxi with a bus, change the pants to white, replace the wall with a window, remove the text"
};
const output = await replicate.run("bytedance/seededit-3.0", { input });
// 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=r8_7bT**********************************
This is your API token. Keep it to yourself.
import replicate
Run bytedance/seededit-3.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"bytedance/seededit-3.0",
input={
"guidance_scale": 5.5,
"image": "https://replicate.delivery/pbxt/NPq0BTwvEXNZdyB1MA4U66pHP0j1OJLj6oLOYtn6LKfKa4rf/woman-city-doodle.jpg",
"prompt": "replace the taxi with a bus, change the pants to white, replace the wall with a window, remove the text"
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_7bT**********************************
This is your API token. Keep it to yourself.
Run bytedance/seededit-3.0 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 $'{
"input": {
"guidance_scale": 5.5,
"image": "https://replicate.delivery/pbxt/NPq0BTwvEXNZdyB1MA4U66pHP0j1OJLj6oLOYtn6LKfKa4rf/woman-city-doodle.jpg",
"prompt": "replace the taxi with a bus, change the pants to white, replace the wall with a window, remove the text"
}
}' \
https://api.replicate.com/v1/models/bytedance/seededit-3.0/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "g7mz8yq1h5rmc0cr7saabq1kqg",
"model": "bytedance/seededit-3.0",
"version": "hidden",
"input": {
"guidance_scale": 5.5,
"image": "https://replicate.delivery/pbxt/NPq0BTwvEXNZdyB1MA4U66pHP0j1OJLj6oLOYtn6LKfKa4rf/woman-city-doodle.jpg",
"prompt": "replace the taxi with a bus, change the pants to white, replace the wall with a window, remove the text"
},
"logs": "Downloading 375414 bytes\nDownloaded 0.36MB in 2.35sec",
"output": "https://replicate.delivery/xezq/Hvghbhtf88UGBi1xxbUZWRiZBpnVSlgOeesUwdWP53qI5KIqA/tmpucy4f5vu.jpg",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-24T21:26:46.921Z",
"started_at": "2025-07-24T21:26:46.928638Z",
"completed_at": "2025-07-24T21:27:00.181381Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/g7mz8yq1h5rmc0cr7saabq1kqg/cancel",
"get": "https://api.replicate.com/v1/predictions/g7mz8yq1h5rmc0cr7saabq1kqg",
"stream": "https://stream.replicate.com/v1/files/bcwr-hbjpsswzcoeg7gr6qziq2ze4xdztvj3nwgelmv34oj5weypz6cra",
"web": "https://replicate.com/p/g7mz8yq1h5rmc0cr7saabq1kqg"
},
"metrics": {
"predict_time": 13.252742345,
"total_time": 13.260381
}
}
