typefile
{
"aspect_ratio": "1:1",
"output_format": "png",
"prompt": "Create a professional headshot in the StatMuse artistic style with bold colors and graphic design elements",
"reference_image_1": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fgolden-state-warriors-stephen-curry2021-min-1-1--gmckzkgf.png&w=600&h=600&f=webp",
"reference_image_2": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnfl%2Fplayers%2Fbaltimore-ravens-lamar-jackson-min--itclg2yg.png&w=600&h=600&f=webp",
"reference_image_3": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fphoenix-suns-devin-booker2025--ik_6bscu.png&w=600&h=600&f=webp",
"resolution": "2K",
"user_photo": "https://replicate.delivery/pbxt/OAL0mQ1UNRtjlSOIEGklaAHbEAZFS7fDxdTpJDjRfhQyMSGU/Mahatma-Gandhi%2C_studio%2C_1931.jpg"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_4mr**********************************
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 pranavsekhar/flaremuse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "1:1",
output_format: "png",
prompt: "Create a professional headshot in the StatMuse artistic style with bold colors and graphic design elements",
reference_image_1: "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fgolden-state-warriors-stephen-curry2021-min-1-1--gmckzkgf.png&w=600&h=600&f=webp",
reference_image_2: "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnfl%2Fplayers%2Fbaltimore-ravens-lamar-jackson-min--itclg2yg.png&w=600&h=600&f=webp",
reference_image_3: "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fphoenix-suns-devin-booker2025--ik_6bscu.png&w=600&h=600&f=webp",
resolution: "2K",
user_photo: "https://replicate.delivery/pbxt/OAL0mQ1UNRtjlSOIEGklaAHbEAZFS7fDxdTpJDjRfhQyMSGU/Mahatma-Gandhi%2C_studio%2C_1931.jpg"
};
const output = await replicate.run("pranavsekhar/flaremuse", { 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_4mr**********************************
This is your API token. Keep it to yourself.
import replicate
Run pranavsekhar/flaremuse using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pranavsekhar/flaremuse",
input={
"aspect_ratio": "1:1",
"output_format": "png",
"prompt": "Create a professional headshot in the StatMuse artistic style with bold colors and graphic design elements",
"reference_image_1": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fgolden-state-warriors-stephen-curry2021-min-1-1--gmckzkgf.png&w=600&h=600&f=webp",
"reference_image_2": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnfl%2Fplayers%2Fbaltimore-ravens-lamar-jackson-min--itclg2yg.png&w=600&h=600&f=webp",
"reference_image_3": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fphoenix-suns-devin-booker2025--ik_6bscu.png&w=600&h=600&f=webp",
"resolution": "2K",
"user_photo": "https://replicate.delivery/pbxt/OAL0mQ1UNRtjlSOIEGklaAHbEAZFS7fDxdTpJDjRfhQyMSGU/Mahatma-Gandhi%2C_studio%2C_1931.jpg"
}
)
# 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_4mr**********************************
This is your API token. Keep it to yourself.
Run pranavsekhar/flaremuse 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",
"output_format": "png",
"prompt": "Create a professional headshot in the StatMuse artistic style with bold colors and graphic design elements",
"reference_image_1": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fgolden-state-warriors-stephen-curry2021-min-1-1--gmckzkgf.png&w=600&h=600&f=webp",
"reference_image_2": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnfl%2Fplayers%2Fbaltimore-ravens-lamar-jackson-min--itclg2yg.png&w=600&h=600&f=webp",
"reference_image_3": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fphoenix-suns-devin-booker2025--ik_6bscu.png&w=600&h=600&f=webp",
"resolution": "2K",
"user_photo": "https://replicate.delivery/pbxt/OAL0mQ1UNRtjlSOIEGklaAHbEAZFS7fDxdTpJDjRfhQyMSGU/Mahatma-Gandhi%2C_studio%2C_1931.jpg"
}
}' \
https://api.replicate.com/v1/models/pranavsekhar/flaremuse/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "nkevtk9nhnrma0ctw3wr23ae3c",
"model": "pranavsekhar/flaremuse",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"output_format": "png",
"prompt": "Create a professional headshot in the StatMuse artistic style with bold colors and graphic design elements",
"reference_image_1": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fgolden-state-warriors-stephen-curry2021-min-1-1--gmckzkgf.png&w=600&h=600&f=webp",
"reference_image_2": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnfl%2Fplayers%2Fbaltimore-ravens-lamar-jackson-min--itclg2yg.png&w=600&h=600&f=webp",
"reference_image_3": "https://www.statmuse.com/_image?href=https%3A%2F%2Fcdn.statmuse.com%2Fimg%2Fnba%2Fplayers%2Fphoenix-suns-devin-booker2025--ik_6bscu.png&w=600&h=600&f=webp",
"resolution": "2K",
"user_photo": "https://replicate.delivery/pbxt/OAL0mQ1UNRtjlSOIEGklaAHbEAZFS7fDxdTpJDjRfhQyMSGU/Mahatma-Gandhi%2C_studio%2C_1931.jpg"
},
"logs": "",
"output": "https://replicate.delivery/xezq/QxQKW9ki6eV0NitZx1cMAPeIcoxkn3AvcNFZn4ObjU8WyQvVA/tmprxd_pmt4.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-12-02T21:30:19.917Z",
"started_at": "2025-12-02T21:30:20.448226Z",
"completed_at": "2025-12-02T21:31:03.060281Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/nkevtk9nhnrma0ctw3wr23ae3c/cancel",
"children": "https://api.replicate.com/v1/predictions/nkevtk9nhnrma0ctw3wr23ae3c/children",
"get": "https://api.replicate.com/v1/predictions/nkevtk9nhnrma0ctw3wr23ae3c",
"root": "https://api.replicate.com/v1/predictions/nkevtk9nhnrma0ctw3wr23ae3c",
"stream": "https://stream.replicate.com/v1/files/bcwr-jfjykn4toydpcgmdlb4hzlmpvudlmwi44eajsnazw2jxtmkqukfq",
"web": "https://replicate.com/p/nkevtk9nhnrma0ctw3wr23ae3c"
},
"metrics": {
"predict_time": 42.6120552,
"total_time": 43.143281733
}
}
