typetext
{
"create_videos": true,
"num_variations": 5,
"person_prompt": "a woman with a platinum pixie haircut"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_LkB**********************************
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/make-someone using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
create_videos: true,
num_variations: 5,
person_prompt: "a woman with a platinum pixie haircut"
};
const output = await replicate.run("fofr/make-someone", { 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_LkB**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/make-someone using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/make-someone",
input={
"create_videos": True,
"num_variations": 5,
"person_prompt": "a woman with a platinum pixie haircut"
}
)
# 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_LkB**********************************
This is your API token. Keep it to yourself.
Run fofr/make-someone 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": {
"create_videos": true,
"num_variations": 5,
"person_prompt": "a woman with a platinum pixie haircut"
}
}' \
https://api.replicate.com/v1/models/fofr/make-someone/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "gmbj22csdxrme0crg4srchh8hm",
"model": "fofr/make-someone",
"version": "hidden",
"input": {
"create_videos": true,
"num_variations": 5,
"person_prompt": "a woman with a platinum pixie haircut"
},
"logs": "🎭 Creating initial character: a woman with a platinum pixie haircut\n✅ Created original character image\n🎨 Generating 5 scenario variations...\n🎭 Character name: Alex\n✅ Generated scenarios\n 📝 Parsed scenario 1: studio - Alex in her photography studio, adjusting professi...\n 📝 Parsed scenario 2: market - Alex browsing a bustling farmer's market, selectin...\n 📝 Parsed scenario 3: kitchen - Alex in her modern kitchen experimenting with mole...\n 📝 Parsed scenario 4: rooftop - Alex on a city rooftop at golden hour, setting up ...\n 📝 Parsed scenario 5: gallery - Alex at her photography exhibition opening, standi...\n📸 Creating 5 character variations in parallel...\n ✅ Created studio variation\n ✅ Created market variation\n ✅ Created kitchen variation\n ✅ Created rooftop variation\n ✅ Created gallery variation\n🎬 Creating videos for all images in parallel...\n ✅ Created original video\n ✅ Created studio video\n ✅ Created market video\n ❌ Failed to create kitchen video: The input or output was flagged as sensitive. Please try again with different inputs. (E005)\n ✅ Created rooftop video\n ✅ Created gallery video\n🎞️ Stitching 5 videos together...\n✅ Created final merged video\n🎉 Pipeline complete! Created 6 images and 5 videos",
"output": [
"https://replicate.delivery/xezq/DddeNh0pMm0GGC1QwUHZYFO7Vs6SGEfNojAdeGcVTTcLxuQqA/tmpd1w4e71m.png",
"https://replicate.delivery/xezq/8y2KaIKb1Xb4KlrHbMFX0ejn8txqk96hK3k3fXMKGbVmYXIVA/tmpwikw4g4p.png",
"https://replicate.delivery/xezq/QYTLqKaZve0pGqblqfZDAlu91akt2ecnp9PoN3qbhy2NxuQqA/tmpdhp0v0fq.png",
"https://replicate.delivery/xezq/7930zrmHTLqdLZoON0UT9ck7e1IeTxUqESYt2U1zCIlmYXIVA/tmphqbcxp0r.png",
"https://replicate.delivery/xezq/nILqh8efb9i8iUeM9b5enSy0quFvdNoUCBwiiYKty85bidhUB/tmpa_d7nwv2.png",
"https://replicate.delivery/xezq/5Uucajd8eOQpf0oPiVF55vfnZtxLBx1IRBHAf3uzP5wYidhUB/tmpavoc7qub.png",
"https://replicate.delivery/xezq/cERjbsLFuYZnABz3M9xriBKXeuWtpqEUrEm5s5XYsdfmYXIVA/tmpfjdrmw9r.mp4",
"https://replicate.delivery/xezq/ey1buTlEuJzSFCWT7BxGqNRmfODtDGjuutSLL9snRnWmYXIVA/tmp54jsrrpq.mp4",
"https://replicate.delivery/xezq/DrbxPBpbRYrrENoFitDFgHwjMBMbS9pBW7VNnHY7VjmJ2FSF/tmpju8f1m90.mp4",
"https://replicate.delivery/xezq/8sDno4NmEQbXERUOIfm0gPZaJpnhinW1zlYaiEcfCEMnYXIVA/tmpmqanx5n7.mp4",
"https://replicate.delivery/xezq/IghfxgFJWz1sfkXj6r2vefYezRQeh61OXXgibbzQZwReTsLkKA/tmpa8sqoh9s.mp4",
"https://replicate.delivery/xezq/nUL6fhalj6z2QKAbfKq8k1Wc6EGVy4xb9EwlqULsQImnYXIVA/output.mp4"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-06T21:04:59.247Z",
"started_at": "2025-08-06T21:05:03.977494Z",
"completed_at": "2025-08-06T21:07:51.476066Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/gmbj22csdxrme0crg4srchh8hm/cancel",
"children": "https://api.replicate.com/v1/predictions/gmbj22csdxrme0crg4srchh8hm/children",
"get": "https://api.replicate.com/v1/predictions/gmbj22csdxrme0crg4srchh8hm",
"root": "https://api.replicate.com/v1/predictions/gmbj22csdxrme0crg4srchh8hm",
"stream": "https://stream.replicate.com/v1/files/bcwr-3pcneghcqb54d62pzv3be7udlrc3bz3fs4kkqh4nqoeax66ev5kq",
"web": "https://replicate.com/p/gmbj22csdxrme0crg4srchh8hm"
},
"metrics": {
"predict_time": 167.498571738,
"total_time": 172.229066
}
}




