typetext
{
"aspect_ratio": "16:9",
"guidance": 4,
"prompt": "A real life anime guy with huge spiky white hair and dark eyes is wearing a yellow zippie-hoodie, unzipped and a green band t-shirt with text \"fofr\" and a repeating tropical monstera motif, he's sat on a busy london underground train on his commute home, he is listening to music from his phone on white wired earbuds (dark outside the window)"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6mc**********************************
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/real-life-anime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "16:9",
guidance: 4,
prompt: "A real life anime guy with huge spiky white hair and dark eyes is wearing a yellow zippie-hoodie, unzipped and a green band t-shirt with text \"fofr\" and a repeating tropical monstera motif, he's sat on a busy london underground train on his commute home, he is listening to music from his phone on white wired earbuds (dark outside the window)"
};
const output = await replicate.run("fofr/real-life-anime", { 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_6mc**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/real-life-anime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/real-life-anime",
input={
"aspect_ratio": "16:9",
"guidance": 4,
"prompt": "A real life anime guy with huge spiky white hair and dark eyes is wearing a yellow zippie-hoodie, unzipped and a green band t-shirt with text \"fofr\" and a repeating tropical monstera motif, he's sat on a busy london underground train on his commute home, he is listening to music from his phone on white wired earbuds (dark outside the window)"
}
)
# 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_6mc**********************************
This is your API token. Keep it to yourself.
Run fofr/real-life-anime 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": "16:9",
"guidance": 4,
"prompt": "A real life anime guy with huge spiky white hair and dark eyes is wearing a yellow zippie-hoodie, unzipped and a green band t-shirt with text \\"fofr\\" and a repeating tropical monstera motif, he\'s sat on a busy london underground train on his commute home, he is listening to music from his phone on white wired earbuds (dark outside the window)"
}
}' \
https://api.replicate.com/v1/models/fofr/real-life-anime/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "cv7nkg9eq9rme0crrw6bfppz5g",
"model": "fofr/real-life-anime",
"version": "hidden",
"input": {
"aspect_ratio": "16:9",
"guidance": 4,
"prompt": "A real life anime guy with huge spiky white hair and dark eyes is wearing a yellow zippie-hoodie, unzipped and a green band t-shirt with text \"fofr\" and a repeating tropical monstera motif, he's sat on a busy london underground train on his commute home, he is listening to music from his phone on white wired earbuds (dark outside the window)"
},
"logs": "",
"output": "https://replicate.delivery/xezq/f6aKo1MiBh31ByQLzbd29f1GceFmOtIs67LseVhslnV9uVzUB/out-0.webp",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-20T10:35:21.146Z",
"started_at": "2025-08-20T10:35:21.471084Z",
"completed_at": "2025-08-20T10:35:27.402066Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/cv7nkg9eq9rme0crrw6bfppz5g/cancel",
"children": "https://api.replicate.com/v1/predictions/cv7nkg9eq9rme0crrw6bfppz5g/children",
"get": "https://api.replicate.com/v1/predictions/cv7nkg9eq9rme0crrw6bfppz5g",
"root": "https://api.replicate.com/v1/predictions/cv7nkg9eq9rme0crrw6bfppz5g",
"stream": "https://stream.replicate.com/v1/files/bcwr-edysibtr4p2wwgtwbakyfq4njr52ytllecza76jl5c6gqeefyjnq",
"web": "https://replicate.com/p/cv7nkg9eq9rme0crrw6bfppz5g"
},
"metrics": {
"predict_time": 5.930982217,
"total_time": 6.256066
}
}