typetext
{
"aspect_ratio": "16:9",
"prompt": "flower",
"with_audio": true
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_KPI**********************************
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-wan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "16:9",
prompt: "flower",
with_audio: true
};
const output = await replicate.run("fofr/not-real-wan", { 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_KPI**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/not-real-wan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/not-real-wan",
input={
"aspect_ratio": "16:9",
"prompt": "flower",
"with_audio": True
}
)
# 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_KPI**********************************
This is your API token. Keep it to yourself.
Run fofr/not-real-wan 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",
"prompt": "flower",
"with_audio": true
}
}' \
https://api.replicate.com/v1/models/fofr/not-real-wan/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "jekxx0t749rma0crbmsa10bkr4",
"model": "fofr/not-real-wan",
"version": "hidden",
"input": {
"aspect_ratio": "16:9",
"prompt": "flower",
"with_audio": true
},
"logs": "",
"output": "https://replicate.delivery/xezq/7PcU47a8vIoNHV0ZHWdOwoZ5trk5mQ8qQ0fq2zlcgp9B8BjKA/20250730_211753.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-30T21:17:12.866Z",
"started_at": "2025-07-30T21:17:13.442445Z",
"completed_at": "2025-07-30T21:17:55.828314Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/jekxx0t749rma0crbmsa10bkr4/cancel",
"children": "https://api.replicate.com/v1/predictions/jekxx0t749rma0crbmsa10bkr4/children",
"get": "https://api.replicate.com/v1/predictions/jekxx0t749rma0crbmsa10bkr4",
"root": "https://api.replicate.com/v1/predictions/jekxx0t749rma0crbmsa10bkr4",
"stream": "https://stream.replicate.com/v1/files/bcwr-2y7ssypxgfzzs34ojplj43qeusspll3ooaogohuxdno5gok4ry7a",
"web": "https://replicate.com/p/jekxx0t749rma0crbmsa10bkr4"
},
"metrics": {
"predict_time": 42.385869057,
"total_time": 42.962314
}
}