typefile
{
"add_music": true,
"image": "https://api.replicate.com/v1/files/ZmRkMzFiZWMtOGIyZi00YWJlLWE0NjQtYTNjYjk0NmI4Yzgz"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_eEI**********************************
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 erbridge/vhs-degrade using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
add_music: true,
image: "https://api.replicate.com/v1/files/ZmRkMzFiZWMtOGIyZi00YWJlLWE0NjQtYTNjYjk0NmI4Yzgz"
};
const output = await replicate.run("erbridge/vhs-degrade", { 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_eEI**********************************
This is your API token. Keep it to yourself.
import replicate
Run erbridge/vhs-degrade using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"erbridge/vhs-degrade",
input={
"add_music": True,
"image": "https://api.replicate.com/v1/files/ZmRkMzFiZWMtOGIyZi00YWJlLWE0NjQtYTNjYjk0NmI4Yzgz"
}
)
# 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_eEI**********************************
This is your API token. Keep it to yourself.
Run erbridge/vhs-degrade 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": {
"add_music": true,
"image": "https://api.replicate.com/v1/files/ZmRkMzFiZWMtOGIyZi00YWJlLWE0NjQtYTNjYjk0NmI4Yzgz"
}
}' \
https://api.replicate.com/v1/models/erbridge/vhs-degrade/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "kzpt3pq57drmc0crmccsh8gy5g",
"model": "erbridge/vhs-degrade",
"version": "hidden",
"input": {
"add_music": true,
"image": "https://api.replicate.com/v1/files/ZmRkMzFiZWMtOGIyZi00YWJlLWE0NjQtYTNjYjk0NmI4Yzgz"
},
"logs": "",
"output": "https://replicate.delivery/xezq/kGCPJj3GKxoPKdaKJmW6nXeYKnNoUzYX9fxznUM7ACUuNiKVA/final_vhs_video_with_tape_audio.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-13T11:04:00.059Z",
"started_at": "2025-08-13T11:04:01.00601Z",
"completed_at": "2025-08-13T11:05:18.728718Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/kzpt3pq57drmc0crmccsh8gy5g/cancel",
"children": "https://api.replicate.com/v1/predictions/kzpt3pq57drmc0crmccsh8gy5g/children",
"get": "https://api.replicate.com/v1/predictions/kzpt3pq57drmc0crmccsh8gy5g",
"root": "https://api.replicate.com/v1/predictions/kzpt3pq57drmc0crmccsh8gy5g",
"stream": "https://stream.replicate.com/v1/files/bcwr-vbxdwwd4d7c7b2lhhd44zithx3qpbgdm7fysqrtjc6w7n4u5q7ja",
"web": "https://replicate.com/p/kzpt3pq57drmc0crmccsh8gy5g"
},
"metrics": {
"predict_time": 77.722708126,
"total_time": 78.669718
}
}