typefile
{
"include_audio": false,
"speed": 2.5,
"video": "https://replicate.delivery/pbxt/Nvi0eZokAzt5PVfTZS2J3LA3BBigsCQI1gfOxoHBzI19V3Bx/mondrian%20trimmed.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Eo8**********************************
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 zeke/change-video-speed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
include_audio: false,
speed: 2.5,
video: "https://replicate.delivery/pbxt/Nvi0eZokAzt5PVfTZS2J3LA3BBigsCQI1gfOxoHBzI19V3Bx/mondrian%20trimmed.mp4"
};
const output = await replicate.run("zeke/change-video-speed", { 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_Eo8**********************************
This is your API token. Keep it to yourself.
import replicate
Run zeke/change-video-speed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zeke/change-video-speed",
input={
"include_audio": False,
"speed": 2.5,
"video": "https://replicate.delivery/pbxt/Nvi0eZokAzt5PVfTZS2J3LA3BBigsCQI1gfOxoHBzI19V3Bx/mondrian%20trimmed.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_Eo8**********************************
This is your API token. Keep it to yourself.
Run zeke/change-video-speed 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": {
"include_audio": false,
"speed": 2.5,
"video": "https://replicate.delivery/pbxt/Nvi0eZokAzt5PVfTZS2J3LA3BBigsCQI1gfOxoHBzI19V3Bx/mondrian%20trimmed.mp4"
}
}' \
https://api.replicate.com/v1/models/zeke/change-video-speed/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "5c21fk5xg9rmc0ct1jx9r4hk70",
"model": "zeke/change-video-speed",
"version": "hidden",
"input": {
"include_audio": false,
"speed": 2.5,
"video": "https://replicate.delivery/pbxt/Nvi0eZokAzt5PVfTZS2J3LA3BBigsCQI1gfOxoHBzI19V3Bx/mondrian%20trimmed.mp4"
},
"logs": "",
"output": "https://replicate.delivery/xezq/L5IRzkbWh2opP9vTEiNlZvev1ISaqqfoak4duIu3XnFTbrhVA/speed_adjusted_video.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-22T16:22:36.162Z",
"started_at": "2025-10-22T16:22:36.525188Z",
"completed_at": "2025-10-22T16:22:43.336837Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/5c21fk5xg9rmc0ct1jx9r4hk70/cancel",
"children": "https://api.replicate.com/v1/predictions/5c21fk5xg9rmc0ct1jx9r4hk70/children",
"get": "https://api.replicate.com/v1/predictions/5c21fk5xg9rmc0ct1jx9r4hk70",
"root": "https://api.replicate.com/v1/predictions/5c21fk5xg9rmc0ct1jx9r4hk70",
"stream": "https://stream.replicate.com/v1/files/bcwr-td4zir5jakotk3eyze3g645bdlbqlw2s3gcdmb4vegozttkmf26q",
"web": "https://replicate.com/p/5c21fk5xg9rmc0ct1jx9r4hk70"
},
"metrics": {
"predict_time": 6.811649159,
"total_time": 7.174837
}
}