typefile
{
"input_image": "https://replicate.delivery/pbxt/NXYpYeQ6zFug5h1WAZDhhG5V1APKi6jVSrK6T8FW5sfKLgFx/image.png",
"mascot_name": "hoss",
"mascot_style": "sports team mascot",
"seed": 1,
"team_colors": "green and gold"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_5Gm**********************************
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 erbridge/mascot-me using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
input_image: "https://replicate.delivery/pbxt/NXYpYeQ6zFug5h1WAZDhhG5V1APKi6jVSrK6T8FW5sfKLgFx/image.png",
mascot_name: "hoss",
mascot_style: "sports team mascot",
seed: 1,
team_colors: "green and gold"
};
const output = await replicate.run("erbridge/mascot-me", { 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_5Gm**********************************
This is your API token. Keep it to yourself.
import replicate
Run erbridge/mascot-me using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"erbridge/mascot-me",
input={
"input_image": "https://replicate.delivery/pbxt/NXYpYeQ6zFug5h1WAZDhhG5V1APKi6jVSrK6T8FW5sfKLgFx/image.png",
"mascot_name": "hoss",
"mascot_style": "sports team mascot",
"seed": 1,
"team_colors": "green and gold"
}
)
# 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_5Gm**********************************
This is your API token. Keep it to yourself.
Run erbridge/mascot-me 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": {
"input_image": "https://replicate.delivery/pbxt/NXYpYeQ6zFug5h1WAZDhhG5V1APKi6jVSrK6T8FW5sfKLgFx/image.png",
"mascot_name": "hoss",
"mascot_style": "sports team mascot",
"seed": 1,
"team_colors": "green and gold"
}
}' \
https://api.replicate.com/v1/models/erbridge/mascot-me/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "fs1dgxk1nxrma0crnsgsgfjfpg",
"model": "erbridge/mascot-me",
"version": "hidden",
"input": {
"input_image": "https://replicate.delivery/pbxt/NXYpYeQ6zFug5h1WAZDhhG5V1APKi6jVSrK6T8FW5sfKLgFx/image.png",
"mascot_name": "hoss",
"mascot_style": "sports team mascot",
"seed": 1,
"team_colors": "green and gold"
},
"logs": "",
"output": "https://replicate.delivery/xezq/mUaL7uvQ16bhFp3RzlbeaivTDBZPYU4fC8EmUduWubKoZQLVA/tmpp8xstrkg.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-15T15:37:54.351Z",
"started_at": "2025-08-15T15:37:54.786379Z",
"completed_at": "2025-08-15T15:38:16.230455Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/fs1dgxk1nxrma0crnsgsgfjfpg/cancel",
"children": "https://api.replicate.com/v1/predictions/fs1dgxk1nxrma0crnsgsgfjfpg/children",
"get": "https://api.replicate.com/v1/predictions/fs1dgxk1nxrma0crnsgsgfjfpg",
"root": "https://api.replicate.com/v1/predictions/fs1dgxk1nxrma0crnsgsgfjfpg",
"stream": "https://stream.replicate.com/v1/files/bcwr-5vqdmhelonv4vcb73unoowjsssfoclactm2yguqj7bizqkc6yytq",
"web": "https://replicate.com/p/fs1dgxk1nxrma0crnsgsgfjfpg"
},
"metrics": {
"predict_time": 21.444076439,
"total_time": 21.879455
}
}
