typefile
{
"video": "https://replicate.delivery/pbxt/MU1k1JmnKnQBOX6SQBvgD5TOl0D5pCBWTTqAv2xZIO9qxDif/First-Example.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Giv**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run basord/lip-reading-ai-vsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"basord/lip-reading-ai-vsr:ef752b7211e3dbca200e82a8e5d00373e0a8c52d6974b61f9dfcb92f698fefe4",
{
input: {
video: "https://replicate.delivery/pbxt/MU1k1JmnKnQBOX6SQBvgD5TOl0D5pCBWTTqAv2xZIO9qxDif/First-Example.mp4"
}
}
);
console.log(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_Giv**********************************
This is your API token. Keep it to yourself.
import replicate
Run basord/lip-reading-ai-vsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"basord/lip-reading-ai-vsr:ef752b7211e3dbca200e82a8e5d00373e0a8c52d6974b61f9dfcb92f698fefe4",
input={
"video": "https://replicate.delivery/pbxt/MU1k1JmnKnQBOX6SQBvgD5TOl0D5pCBWTTqAv2xZIO9qxDif/First-Example.mp4"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Giv**********************************
This is your API token. Keep it to yourself.
Run basord/lip-reading-ai-vsr 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 $'{
"version": "basord/lip-reading-ai-vsr:ef752b7211e3dbca200e82a8e5d00373e0a8c52d6974b61f9dfcb92f698fefe4",
"input": {
"video": "https://replicate.delivery/pbxt/MU1k1JmnKnQBOX6SQBvgD5TOl0D5pCBWTTqAv2xZIO9qxDif/First-Example.mp4"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{"status": "success", "transcript": "HEARS PEOPLE WHO ARE TAKING TIME OUT OF THEIR LIFE JUST COME DOWN AND ACTUALLY PRODUCE THINGS AND SO IT WAS A REALLY COOL ENVIRONMENT"}{
"id": "nwgjrx60h1rma0cmyybtaq274w",
"model": "basord/lip-reading-ai-vsr",
"version": "ef752b7211e3dbca200e82a8e5d00373e0a8c52d6974b61f9dfcb92f698fefe4",
"input": {
"video": "https://replicate.delivery/pbxt/MU1k1JmnKnQBOX6SQBvgD5TOl0D5pCBWTTqAv2xZIO9qxDif/First-Example.mp4"
},
"logs": "",
"output": "{\"status\": \"success\", \"transcript\": \"HEARS PEOPLE WHO ARE TAKING TIME OUT OF THEIR LIFE JUST COME DOWN AND ACTUALLY PRODUCE THINGS AND SO IT WAS A REALLY COOL ENVIRONMENT\"}",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-02-12T00:38:25.16Z",
"started_at": "2025-02-12T00:39:38.240917Z",
"completed_at": "2025-02-12T00:39:59.422865Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/nwgjrx60h1rma0cmyybtaq274w/cancel",
"get": "https://api.replicate.com/v1/predictions/nwgjrx60h1rma0cmyybtaq274w",
"web": "https://replicate.com/p/nwgjrx60h1rma0cmyybtaq274w"
},
"metrics": {
"predict_time": 21.181948536,
"total_time": 94.262865
}
}