typefile
{
"aspect_ratio": "1:1",
"image": "https://replicate.delivery/pbxt/NOaCDUo1s0Khmyjko3JmaVz7rx4JsM1KboRVz6fRjKM6yZWb/0_1.webp",
"label_model_name": true,
"prompt": "put her in a smart casual outfit in an office",
"return_grid": true
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OER**********************************
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 fofr/compare-character-consistency using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "1:1",
image: "https://replicate.delivery/pbxt/NOaCDUo1s0Khmyjko3JmaVz7rx4JsM1KboRVz6fRjKM6yZWb/0_1.webp",
label_model_name: true,
prompt: "put her in a smart casual outfit in an office",
return_grid: true
};
const output = await replicate.run("fofr/compare-character-consistency", { input });
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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_OER**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/compare-character-consistency using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/compare-character-consistency",
input={
"aspect_ratio": "1:1",
"image": "https://replicate.delivery/pbxt/NOaCDUo1s0Khmyjko3JmaVz7rx4JsM1KboRVz6fRjKM6yZWb/0_1.webp",
"label_model_name": True,
"prompt": "put her in a smart casual outfit in an office",
"return_grid": True
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].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_OER**********************************
This is your API token. Keep it to yourself.
Run fofr/compare-character-consistency 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": {
"aspect_ratio": "1:1",
"image": "https://replicate.delivery/pbxt/NOaCDUo1s0Khmyjko3JmaVz7rx4JsM1KboRVz6fRjKM6yZWb/0_1.webp",
"label_model_name": true,
"prompt": "put her in a smart casual outfit in an office",
"return_grid": true
}
}' \
https://api.replicate.com/v1/models/fofr/compare-character-consistency/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "23pgqfg9z5rmc0csc7e9dwacyw",
"model": "fofr/compare-character-consistency",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"image": "https://replicate.delivery/pbxt/NOaCDUo1s0Khmyjko3JmaVz7rx4JsM1KboRVz6fRjKM6yZWb/0_1.webp",
"label_model_name": true,
"prompt": "put her in a smart casual outfit in an office",
"return_grid": true
},
"logs": "warnings.warn(\nPrompt for runway: @person is wearing a smart casual outfit in an office",
"output": [
"https://replicate.delivery/xezq/OnR6M4buw240JdRsFPkyCbZwKdWtyJbieWSiY1vEIafIjvWVA/tmpwz50i5pz.png",
"https://replicate.delivery/xezq/OU1FGrCAeN2IFCnMo6wLfNUC0KMqpgexKUhUUhefmMpBZ81qC/tmp8epyct4d.webp",
"https://replicate.delivery/xezq/32StxWFjwUoaMVNZ9797qHFXUXDiEzhaMKopG9ve4GDkxXrKA/tmpfvvv59e9.jpg",
"https://replicate.delivery/xezq/zo8sxgamKqIGH1JKYHlS7BCvfRj4MeC3S9XvSQtEfYmQGfaVB/tmpyfkslzyo.jpeg",
"https://replicate.delivery/xezq/x5orUzI5aqYoCxHgkV5oCoVK4lj4eSt3BRrSL1QvFrOkxXrKA/tmpcq1q15vc.png",
"https://replicate.delivery/xezq/mt0IezlwDsVFA68qLQJRVQtIzT7Dx34dMRvYXODqow8kxXrKA/tmphe2u0t0x.png",
"https://replicate.delivery/xezq/lNjNwxe5fDlZg0bK2oIfFHtOk2ZO6erXNU1aIAWYcSKnMe1qC/tmphuw10npp.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-19T12:03:54.489Z",
"started_at": "2025-09-19T12:03:55.133615Z",
"completed_at": "2025-09-19T12:04:25.23158Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/23pgqfg9z5rmc0csc7e9dwacyw/cancel",
"children": "https://api.replicate.com/v1/predictions/23pgqfg9z5rmc0csc7e9dwacyw/children",
"get": "https://api.replicate.com/v1/predictions/23pgqfg9z5rmc0csc7e9dwacyw",
"root": "https://api.replicate.com/v1/predictions/23pgqfg9z5rmc0csc7e9dwacyw",
"stream": "https://stream.replicate.com/v1/files/bcwr-sjkp5jhbvpmuvpcf7l6uppvcgxtodppsx3b7aknvqccbjqid5nnq",
"web": "https://replicate.com/p/23pgqfg9z5rmc0csc7e9dwacyw"
},
"metrics": {
"predict_time": 30.097964513,
"total_time": 30.74258
}
}






