typefile
{
"image": "https://replicate.delivery/pbxt/NhUw7FwiyVKiXhVRB8V4C6YA4AvjApEXyQJnMrRAaKrQguoY/image.png",
"include_original": false,
"layout": "vertical",
"model_1": "🍌 Google Nano-Banana",
"model_2": "🌱 ByteDance Seedream-4",
"output_width": 1024,
"prompt": "give me the POV of this person",
"text_size": 32
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Q5J**********************************
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 zsxkib/compare-image-editing-models using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
image: "https://replicate.delivery/pbxt/NhUw7FwiyVKiXhVRB8V4C6YA4AvjApEXyQJnMrRAaKrQguoY/image.png",
include_original: false,
layout: "vertical",
model_1: "🍌 Google Nano-Banana",
model_2: "🌱 ByteDance Seedream-4",
output_width: 1024,
prompt: "give me the POV of this person",
text_size: 32
};
const output = await replicate.run("zsxkib/compare-image-editing-models", { 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_Q5J**********************************
This is your API token. Keep it to yourself.
import replicate
Run zsxkib/compare-image-editing-models using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/compare-image-editing-models",
input={
"image": "https://replicate.delivery/pbxt/NhUw7FwiyVKiXhVRB8V4C6YA4AvjApEXyQJnMrRAaKrQguoY/image.png",
"include_original": False,
"layout": "vertical",
"model_1": "🍌 Google Nano-Banana",
"model_2": "🌱 ByteDance Seedream-4",
"output_width": 1024,
"prompt": "give me the POV of this person",
"text_size": 32
}
)
# 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_Q5J**********************************
This is your API token. Keep it to yourself.
Run zsxkib/compare-image-editing-models 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": {
"image": "https://replicate.delivery/pbxt/NhUw7FwiyVKiXhVRB8V4C6YA4AvjApEXyQJnMrRAaKrQguoY/image.png",
"include_original": false,
"layout": "vertical",
"model_1": "🍌 Google Nano-Banana",
"model_2": "🌱 ByteDance Seedream-4",
"output_width": 1024,
"prompt": "give me the POV of this person",
"text_size": 32
}
}' \
https://api.replicate.com/v1/models/zsxkib/compare-image-editing-models/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "9j46jf4mbhrmc0cs7tgas6stz4",
"model": "zsxkib/compare-image-editing-models",
"version": "hidden",
"input": {
"image": "https://replicate.delivery/pbxt/NhUw7FwiyVKiXhVRB8V4C6YA4AvjApEXyQJnMrRAaKrQguoY/image.png",
"include_original": false,
"layout": "vertical",
"model_1": "🍌 Google Nano-Banana",
"model_2": "🌱 ByteDance Seedream-4",
"output_width": 1024,
"prompt": "give me the POV of this person",
"text_size": 32
},
"logs": "warnings.warn(",
"output": "https://replicate.delivery/xezq/a4H1BDt03Ub9MZugI9YMfnRjLM8Jevm2I55OmdlF887HPfoqA/image_comparison_1757692359.jpg",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-12T15:52:15.196Z",
"started_at": "2025-09-12T15:52:15.759421Z",
"completed_at": "2025-09-12T15:52:39.342753Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/9j46jf4mbhrmc0cs7tgas6stz4/cancel",
"children": "https://api.replicate.com/v1/predictions/9j46jf4mbhrmc0cs7tgas6stz4/children",
"get": "https://api.replicate.com/v1/predictions/9j46jf4mbhrmc0cs7tgas6stz4",
"root": "https://api.replicate.com/v1/predictions/9j46jf4mbhrmc0cs7tgas6stz4",
"stream": "https://stream.replicate.com/v1/files/bcwr-rce4zjdmv6ynez2ewzcchahzaktnzks7a4npxi23ozmkw7buf2dq",
"web": "https://replicate.com/p/9j46jf4mbhrmc0cs7tgas6stz4"
},
"metrics": {
"predict_time": 23.583331722,
"total_time": 24.146753
}
}
