typetext
{
"prompt": "",
"resolution": "1080p"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_XNM**********************************
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/not-real using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "",
resolution: "1080p"
};
const output = await replicate.run("fofr/not-real", { 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_XNM**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/not-real using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/not-real",
input={
"prompt": "",
"resolution": "1080p"
}
)
# 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_XNM**********************************
This is your API token. Keep it to yourself.
Run fofr/not-real 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": {
"prompt": "",
"resolution": "1080p"
}
}' \
https://api.replicate.com/v1/models/fofr/not-real/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "n18n9t93gsrme0cr1vj8xs780c",
"model": "fofr/not-real",
"version": "hidden",
"input": {
"prompt": "",
"resolution": "1080p"
},
"logs": "",
"output": "https://replicate.delivery/xezq/ebvenhBxMqkKG0Dv3mF0PSesnn23pLm9V6O4h403fRAUkMEUB/tmp1x47erdj.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-15T16:21:29.094Z",
"started_at": "2025-07-15T16:21:29.625186Z",
"completed_at": "2025-07-15T16:22:29.659514Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/n18n9t93gsrme0cr1vj8xs780c/cancel",
"children": "https://api.replicate.com/v1/predictions/n18n9t93gsrme0cr1vj8xs780c/children",
"get": "https://api.replicate.com/v1/predictions/n18n9t93gsrme0cr1vj8xs780c",
"root": "https://api.replicate.com/v1/predictions/n18n9t93gsrme0cr1vj8xs780c",
"stream": "https://stream.replicate.com/v1/files/bcwr-ls6dzjxj5cmriccsbxynadx6pycndn366olioy57jvh7a6srarka",
"web": "https://replicate.com/p/n18n9t93gsrme0cr1vj8xs780c"
},
"metrics": {
"predict_time": 60.034328633,
"total_time": 60.565514
}
}