typefile
{
"input_image": "https://replicate.delivery/pbxt/NXYXMemCDO8Y38yCPfGsj8QyMTMhp6PwfiDwcmOXYmqCwQI1/Charlie%20Gleason%20LinkedIn%20Image.jpeg",
"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_3Ex**********************************
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 corywilkerson/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/NXYXMemCDO8Y38yCPfGsj8QyMTMhp6PwfiDwcmOXYmqCwQI1/Charlie%20Gleason%20LinkedIn%20Image.jpeg",
mascot_name: "hoss",
mascot_style: "sports team mascot",
seed: 1,
team_colors: "green and gold"
};
const output = await replicate.run("corywilkerson/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_3Ex**********************************
This is your API token. Keep it to yourself.
import replicate
Run corywilkerson/mascot-me using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"corywilkerson/mascot-me",
input={
"input_image": "https://replicate.delivery/pbxt/NXYXMemCDO8Y38yCPfGsj8QyMTMhp6PwfiDwcmOXYmqCwQI1/Charlie%20Gleason%20LinkedIn%20Image.jpeg",
"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_3Ex**********************************
This is your API token. Keep it to yourself.
Run corywilkerson/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/NXYXMemCDO8Y38yCPfGsj8QyMTMhp6PwfiDwcmOXYmqCwQI1/Charlie%20Gleason%20LinkedIn%20Image.jpeg",
"mascot_name": "hoss",
"mascot_style": "sports team mascot",
"seed": 1,
"team_colors": "green and gold"
}
}' \
https://api.replicate.com/v1/models/corywilkerson/mascot-me/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "37n5s0pc5xrmc0crns7rdxbvgm",
"model": "corywilkerson/mascot-me",
"version": "hidden",
"input": {
"input_image": "https://replicate.delivery/pbxt/NXYXMemCDO8Y38yCPfGsj8QyMTMhp6PwfiDwcmOXYmqCwQI1/Charlie%20Gleason%20LinkedIn%20Image.jpeg",
"mascot_name": "hoss",
"mascot_style": "sports team mascot",
"seed": 1,
"team_colors": "green and gold"
},
"logs": "",
"output": "https://replicate.delivery/xezq/OkcBOL8cyBaFIFuZEXTr73s8PgrF80KvtUFiKe6e75qnHQLVA/tmpo3a_ub6n.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-15T15:18:41.967Z",
"started_at": "2025-08-15T15:18:42.465242Z",
"completed_at": "2025-08-15T15:19:03.466142Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/37n5s0pc5xrmc0crns7rdxbvgm/cancel",
"children": "https://api.replicate.com/v1/predictions/37n5s0pc5xrmc0crns7rdxbvgm/children",
"get": "https://api.replicate.com/v1/predictions/37n5s0pc5xrmc0crns7rdxbvgm",
"root": "https://api.replicate.com/v1/predictions/37n5s0pc5xrmc0crns7rdxbvgm",
"stream": "https://stream.replicate.com/v1/files/bcwr-gcejyuj53a45ohwqjjodhnwlhd52gldv5pdb54sloupjkrv3koya",
"web": "https://replicate.com/p/37n5s0pc5xrmc0crns7rdxbvgm"
},
"metrics": {
"predict_time": 21.000900526,
"total_time": 21.499142
}
}
