typearray
value typestring
{
"clip_duration": 14,
"duration": 300,
"overlap_seconds": 0.5,
"prompts": [
"A scene from the sitcom Friends"
],
"resolution": "1080p"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_b90**********************************
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 andreasjansson/cursed-sitcom-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
clip_duration: 14,
duration: 300,
overlap_seconds: 0.5,
prompts: ["A scene from the sitcom Friends"],
resolution: "1080p"
};
const output = await replicate.run("andreasjansson/cursed-sitcom-generator", { 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_b90**********************************
This is your API token. Keep it to yourself.
import replicate
Run andreasjansson/cursed-sitcom-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"andreasjansson/cursed-sitcom-generator",
input={
"clip_duration": 14,
"duration": 300,
"overlap_seconds": 0.5,
"prompts": ["A scene from the sitcom Friends"],
"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_b90**********************************
This is your API token. Keep it to yourself.
Run andreasjansson/cursed-sitcom-generator 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": {
"clip_duration": 14,
"duration": 300,
"overlap_seconds": 0.5,
"prompts": ["A scene from the sitcom Friends"],
"resolution": "1080p"
}
}' \
https://api.replicate.com/v1/models/andreasjansson/cursed-sitcom-generator/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "3597a721chrme0ct7ckb630gtr",
"model": "andreasjansson/cursed-sitcom-generator",
"version": "hidden",
"input": {
"clip_duration": 14,
"duration": 300,
"overlap_seconds": 0.5,
"prompts": [
"A scene from the sitcom Friends"
],
"resolution": "1080p"
},
"logs": "Generating 23 videos to reach ~300s total duration...\nStarting video 1/23: A scene from the sitcom Friends...\nStarting video 2/23: A scene from the sitcom Friends...\nStarting video 3/23: A scene from the sitcom Friends...\nStarting video 4/23: A scene from the sitcom Friends...\nStarting video 5/23: A scene from the sitcom Friends...\nStarting video 6/23: A scene from the sitcom Friends...\nStarting video 7/23: A scene from the sitcom Friends...\nStarting video 8/23: A scene from the sitcom Friends...\nStarting video 9/23: A scene from the sitcom Friends...\nStarting video 10/23: A scene from the sitcom Friends...\n✓ Video 4/23 complete (1/23 done)\n✓ Video 5/23 complete (2/23 done)\n✓ Video 6/23 complete (3/23 done)\nStarting video 11/23: A scene from the sitcom Friends...\nStarting video 12/23: A scene from the sitcom Friends...\nStarting video 13/23: A scene from the sitcom Friends...\n✓ Video 2/23 complete (4/23 done)\n✓ Video 3/23 complete (5/23 done)\n✓ Video 7/23 complete (6/23 done)\n✓ Video 8/23 complete (7/23 done)\n✓ Video 9/23 complete (8/23 done)\n✓ Video 10/23 complete (9/23 done)\nStarting video 14/23: A scene from the sitcom Friends...\nStarting video 15/23: A scene from the sitcom Friends...\nStarting video 16/23: A scene from the sitcom Friends...\nStarting video 17/23: A scene from the sitcom Friends...\nStarting video 18/23: A scene from the sitcom Friends...\nStarting video 19/23: A scene from the sitcom Friends...\n✓ Video 1/23 complete (10/23 done)\nStarting video 20/23: A scene from the sitcom Friends...\n✓ Video 12/23 complete (11/23 done)\n✓ Video 13/23 complete (12/23 done)\nStarting video 21/23: A scene from the sitcom Friends...\nStarting video 22/23: A scene from the sitcom Friends...\n✓ Video 11/23 complete (13/23 done)\n✓ Video 14/23 complete (14/23 done)\n✓ Video 17/23 complete (15/23 done)\n✓ Video 18/23 complete (16/23 done)\nStarting video 23/23: A scene from the sitcom Friends...\n✓ Video 16/23 complete (17/23 done)\n✓ Video 19/23 complete (18/23 done)\n✓ Video 15/23 complete (19/23 done)\n✓ Video 20/23 complete (20/23 done)\n✓ Video 22/23 complete (21/23 done)\n✓ Video 21/23 complete (22/23 done)\n✓ Video 23/23 complete (23/23 done)\n\nStitching 23 videos together...\n✓ All done!",
"output": "https://replicate.delivery/xezq/aajJNvAuXoLPDJ5m94a4fPU1ddjhPsjjCIXVvciEv2DqzUyKA/output.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-31T16:42:34.212Z",
"started_at": "2025-10-31T16:42:34.698747Z",
"completed_at": "2025-10-31T16:46:13.414456Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/3597a721chrme0ct7ckb630gtr/cancel",
"children": "https://api.replicate.com/v1/predictions/3597a721chrme0ct7ckb630gtr/children",
"get": "https://api.replicate.com/v1/predictions/3597a721chrme0ct7ckb630gtr",
"root": "https://api.replicate.com/v1/predictions/3597a721chrme0ct7ckb630gtr",
"stream": "https://stream.replicate.com/v1/files/bcwr-gofmoytfpb2yhed5nyee2n2tdhmeyeqybqkyjum2bmq7ijs4pgtq",
"web": "https://replicate.com/p/3597a721chrme0ct7ckb630gtr"
},
"metrics": {
"predict_time": 218.71570923,
"total_time": 219.202456324
}
}