typetext
{
"num_scenes": 5,
"prompt": "adam and eve",
"seed": 42
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_75M**********************************
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 shridharathi/film-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
num_scenes: 5,
prompt: "adam and eve",
seed: 42
};
const output = await replicate.run("shridharathi/film-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_75M**********************************
This is your API token. Keep it to yourself.
import replicate
Run shridharathi/film-generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"shridharathi/film-generator",
input={
"num_scenes": 5,
"prompt": "adam and eve",
"seed": 42
}
)
# 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_75M**********************************
This is your API token. Keep it to yourself.
Run shridharathi/film-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": {
"num_scenes": 5,
"prompt": "adam and eve",
"seed": 42
}
}' \
https://api.replicate.com/v1/models/shridharathi/film-generator/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "chx1dkm6dhrma0cr3q2sk4fz9m",
"model": "shridharathi/film-generator",
"version": "hidden",
"input": {
"num_scenes": 5,
"prompt": "adam and eve",
"seed": 42
},
"logs": "Generating 5 scenes for: adam and eve\nStep 1: Generating scene list...\n['In a lush, vibrant garden filled with an abundance of fruits and flowers, Adam and Eve, the first humans, explore their surroundings, reveling in the beauty and peace of their paradise while forming a deep bond rooted in love and curiosity.', 'As they wander through the garden, they come across the forbidden Tree of Knowledge, where a cunning serpent tempts Eve to partake of its fruit, promising wisdom and enlightenment that will elevate their existence beyond mere survival.', \"Despite Adam's cautious warnings, Eve succumbs to temptation and shares the fruit with him, leading to an awakening of self-awareness that brings both exhilaration and confusion as they experience the complexities of shame and desire for the first time.\", 'The couple faces the consequences of their choice as they are confronted by a divine presence, resulting in their banishment from the garden, stripping them of their innocence while instilling deeper emotional connection and responsibility toward one another.', 'Exiled from paradise, Adam and Eve embark on a new journey together, cultivating the earth and learning the struggles of survival, ultimately finding hope and purpose in their unity and determination to embrace life outside the confines of their once-innocent existence.']\nGenerated 5 scenes\nStep 2: Converting scenes to structured format...\nGenerating first scene to establish base style...\n{\n \"shot\": {\n \"composition\": \"Wide shot capturing the expansive garden setting, framed to include a bounty of colorful flowers and fruits. The lens is an 18mm to create depth, with a slight low angle to emphasize the towering blossoms above Adam and Eve. The format is a 4K digital capture for vibrant detail.\",\n \"camera_motion\": \"Static, allowing the beauty of the garden to remain the focus.\",\n \"frame_rate\": \"24fps\",\n \"film_grain\": \"digital clean\"\n },\n \"subject\": {\n \"description\": \"Adam, a young man in his early twenties with a muscular build, tousled dark hair, and a warm, inquisitive expression. Eve, a young woman of similar age with flowing hair, gentle features, and an expression of wonder and joy. They are standing closely together, occasionally touching each other in gestures of affection.\",\n \"wardrobe\": \"Adam is draped in a simple, natural-toned tunic that blends with the earthy surroundings. Eve wears a flowing, delicate dress made of soft, leafy materials that mimic the flora of the garden, adorned with floral accents.\"\n },\n \"scene\": {\n \"location\": \"A lush and vibrant Eden-like garden, bursting with an abundance of colorful flowers, fruit trees laden with ripe produce, and dappled sunlight filtering through the leaves.\",\n \"time_of_day\": \"Late afternoon, when the sunlight is warm and golden.\",\n \"environment\": \"The atmosphere is serene and idyllic, with rich textures from natural elements and a sense of timelessness reminiscent of a biblical paradise.\"\n },\n \"visual_details\": {\n \"action\": \"Adam and Eve explore their surroundings, reaching out to touch the blossoms and fruits, sharing smiles and laughter as they take in the beauty around them.\",\n \"props\": \"Various fruits hanging from branches, flowers of diverse colors scattered throughout the garden, a small stream trickling nearby, and a gentle breeze rustling the leaves.\"\n },\n \"cinematography\": {\n \"lighting\": \"Soft, diffused sunlight bathes the scene, casting gentle shadows and highlighting the vivid colors of the garden, creating a warm, inviting atmosphere.\",\n \"tone\": \"Whimsical and romantic, evoking a sense of wonder and enchantment.\"\n },\n \"audio\": {\n \"ambient\": \"The gentle rustle of leaves, the chirping of birds, and the subtle sound of water trickling in the background.\",\n \"music\": \"A light, ethereal instrumental piece with strings and flutes, enhancing the dreamlike quality of the scene.\"\n },\n \"color_palette\": \"Dominant colors include lush greens, vibrant pinks, yellows, and deep reds, with a warm golden hue permeating the scene, creating a rich saturation typical of an idealized garden.\",\n \"dialogue\": {\n \"character\": \"Eve\",\n \"line\": \"Look at the beauty around us, Adam. It's like we are part of a dream.\",\n \"subtitles\": false\n }\n}\nBase style extracted: {'subject': 'Adam, a young man in his early twenties with a muscular build, tousled dark hair, and a warm, inquisitive expression. Eve, a young woman of similar age with flowing hair, gentle features, and an expression of wonder and joy. They are standing closely together, occasionally touching each other in gestures of affection.', 'cinematography_tone': 'Whimsical and romantic, evoking a sense of wonder and enchantment.', 'color_palette': 'Dominant colors include lush greens, vibrant pinks, yellows, and deep reds, with a warm golden hue permeating the scene, creating a rich saturation typical of an idealized garden.'}\nStarting parallel scene JSON generation...\nGenerating scene JSON 1\nGenerating scene JSON 2\nGenerating scene JSON 3\nGenerating scene JSON 4\nScene JSON 4 generated successfully\nScene JSON 2 generated successfully\nScene JSON 3 generated successfully\nScene JSON 1 generated successfully\nParallel scene JSON generation complete. 4 scenes processed successfully.\nAll 5 scene JSONs generated\nStep 3: Generating videos in parallel...\nStarting parallel video generation...\nGenerating video 1\nGenerating video 2\nGenerating video 3\nGenerating video 4\nGenerating video 5\nVideo 3 generated successfully\nVideo 1 generated successfully\nVideo 4 generated successfully\nVideo 2 generated successfully\nVideo 5 generated successfully\nParallel generation complete. 5 videos generated successfully.\nStep 4: Stitching videos together...",
"output": "https://replicate.delivery/xezq/yclT8PaT1u7RAFssVUfU50twKjL6q5ySxQq98tpWpy4SDAhKA/final_video.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-18T13:42:21.036Z",
"started_at": "2025-07-18T13:42:28.671736Z",
"completed_at": "2025-07-18T13:44:05.975638Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/chx1dkm6dhrma0cr3q2sk4fz9m/cancel",
"children": "https://api.replicate.com/v1/predictions/chx1dkm6dhrma0cr3q2sk4fz9m/children",
"get": "https://api.replicate.com/v1/predictions/chx1dkm6dhrma0cr3q2sk4fz9m",
"root": "https://api.replicate.com/v1/predictions/chx1dkm6dhrma0cr3q2sk4fz9m",
"stream": "https://stream.replicate.com/v1/files/bcwr-biybao3dibvxhzarxuuymjhxwm7i4dthiab2d6esw4aw2jdsatlq",
"web": "https://replicate.com/p/chx1dkm6dhrma0cr3q2sk4fz9m"
},
"metrics": {
"predict_time": 97.30390216,
"total_time": 104.939638
}
}