typefile
{
"video_clip_1": "https://replicate.delivery/pbxt/NhYoqJdPWqlaCJ5KI7bD4B5riHjdol6XmuO33hbnaAoigtMR/replicate-prediction-4mf7gsmctxrma0cs7x2b5bv3nc.mp4",
"video_clip_2": "https://replicate.delivery/pbxt/NhYoq3mGccjBfQZ229DjQQNTkeo6G2Be0lIVSkoyYHFvP75E/replicate-prediction-jcrks8nyedrma0cs7x28pvrbc8.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Y7p**********************************
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 lucataco/video-transition using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
video_clip_1: "https://replicate.delivery/pbxt/NhYoqJdPWqlaCJ5KI7bD4B5riHjdol6XmuO33hbnaAoigtMR/replicate-prediction-4mf7gsmctxrma0cs7x2b5bv3nc.mp4",
video_clip_2: "https://replicate.delivery/pbxt/NhYoq3mGccjBfQZ229DjQQNTkeo6G2Be0lIVSkoyYHFvP75E/replicate-prediction-jcrks8nyedrma0cs7x28pvrbc8.mp4"
};
const output = await replicate.run("lucataco/video-transition", { 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_Y7p**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/video-transition using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/video-transition",
input={
"video_clip_1": "https://replicate.delivery/pbxt/NhYoqJdPWqlaCJ5KI7bD4B5riHjdol6XmuO33hbnaAoigtMR/replicate-prediction-4mf7gsmctxrma0cs7x2b5bv3nc.mp4",
"video_clip_2": "https://replicate.delivery/pbxt/NhYoq3mGccjBfQZ229DjQQNTkeo6G2Be0lIVSkoyYHFvP75E/replicate-prediction-jcrks8nyedrma0cs7x28pvrbc8.mp4"
}
)
# 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_Y7p**********************************
This is your API token. Keep it to yourself.
Run lucataco/video-transition 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": {
"video_clip_1": "https://replicate.delivery/pbxt/NhYoqJdPWqlaCJ5KI7bD4B5riHjdol6XmuO33hbnaAoigtMR/replicate-prediction-4mf7gsmctxrma0cs7x2b5bv3nc.mp4",
"video_clip_2": "https://replicate.delivery/pbxt/NhYoq3mGccjBfQZ229DjQQNTkeo6G2Be0lIVSkoyYHFvP75E/replicate-prediction-jcrks8nyedrma0cs7x28pvrbc8.mp4"
}
}' \
https://api.replicate.com/v1/models/lucataco/video-transition/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "pweddy9r4xrme0cs7xvbfrsh00",
"model": "lucataco/video-transition",
"version": "hidden",
"input": {
"video_clip_1": "https://replicate.delivery/pbxt/NhYoqJdPWqlaCJ5KI7bD4B5riHjdol6XmuO33hbnaAoigtMR/replicate-prediction-4mf7gsmctxrma0cs7x2b5bv3nc.mp4",
"video_clip_2": "https://replicate.delivery/pbxt/NhYoq3mGccjBfQZ229DjQQNTkeo6G2Be0lIVSkoyYHFvP75E/replicate-prediction-jcrks8nyedrma0cs7x28pvrbc8.mp4"
},
"logs": "/app/.venv/lib/python3.13/site-packages/coglet/scope.py:36: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning.\n warnings.warn(",
"output": "https://replicate.delivery/xezq/sMtQCMIAX8LmPFtZfYyEPB0yazVehHTJZWztBPf2Ze8JpKSVB/output.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-12T19:45:36.295Z",
"started_at": "2025-09-12T19:45:36.955697Z",
"completed_at": "2025-09-12T19:46:26.981957Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/pweddy9r4xrme0cs7xvbfrsh00/cancel",
"children": "https://api.replicate.com/v1/predictions/pweddy9r4xrme0cs7xvbfrsh00/children",
"get": "https://api.replicate.com/v1/predictions/pweddy9r4xrme0cs7xvbfrsh00",
"root": "https://api.replicate.com/v1/predictions/pweddy9r4xrme0cs7xvbfrsh00",
"stream": "https://stream.replicate.com/v1/files/bcwr-lfhefobqa5smfuzmeq6gzxjhjcdswjnnfg7grdms3yb5iqjppf5a",
"web": "https://replicate.com/p/pweddy9r4xrme0cs7xvbfrsh00"
},
"metrics": {
"predict_time": 50.026259454,
"total_time": 50.686957
}
}