typefile
{
"audio": "https://replicate.delivery/pbxt/NWYEr8QPkBeQZaJ2GkPlU1z1B7CWQJtyUJRoUnpwlluZaZ6g/replicate-prediction-gz0dq0zj71rma0crky99mj4q0r.mp3",
"captions": true,
"duration": 10,
"image": "https://replicate.delivery/pbxt/NWYErO2DeKhMsKFRuV3QKR8lfNh8M4uu69kX0NxC4H3jc9lx/jennai.jpg",
"resolution": "720p"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_QnT**********************************
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/talking-avatar using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
audio: "https://replicate.delivery/pbxt/NWYEr8QPkBeQZaJ2GkPlU1z1B7CWQJtyUJRoUnpwlluZaZ6g/replicate-prediction-gz0dq0zj71rma0crky99mj4q0r.mp3",
captions: true,
duration: 10,
image: "https://replicate.delivery/pbxt/NWYErO2DeKhMsKFRuV3QKR8lfNh8M4uu69kX0NxC4H3jc9lx/jennai.jpg",
resolution: "720p"
};
const output = await replicate.run("lucataco/talking-avatar", { 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_QnT**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/talking-avatar using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/talking-avatar",
input={
"audio": "https://replicate.delivery/pbxt/NWYEr8QPkBeQZaJ2GkPlU1z1B7CWQJtyUJRoUnpwlluZaZ6g/replicate-prediction-gz0dq0zj71rma0crky99mj4q0r.mp3",
"captions": True,
"duration": 10,
"image": "https://replicate.delivery/pbxt/NWYErO2DeKhMsKFRuV3QKR8lfNh8M4uu69kX0NxC4H3jc9lx/jennai.jpg",
"resolution": "720p"
}
)
# 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_QnT**********************************
This is your API token. Keep it to yourself.
Run lucataco/talking-avatar 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": {
"audio": "https://replicate.delivery/pbxt/NWYEr8QPkBeQZaJ2GkPlU1z1B7CWQJtyUJRoUnpwlluZaZ6g/replicate-prediction-gz0dq0zj71rma0crky99mj4q0r.mp3",
"captions": true,
"duration": 10,
"image": "https://replicate.delivery/pbxt/NWYErO2DeKhMsKFRuV3QKR8lfNh8M4uu69kX0NxC4H3jc9lx/jennai.jpg",
"resolution": "720p"
}
}' \
https://api.replicate.com/v1/models/lucataco/talking-avatar/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "c1jpds3m91rm80crkz8tz24hy8",
"model": "lucataco/talking-avatar",
"version": "hidden",
"input": {
"audio": "https://replicate.delivery/pbxt/NWYEr8QPkBeQZaJ2GkPlU1z1B7CWQJtyUJRoUnpwlluZaZ6g/replicate-prediction-gz0dq0zj71rma0crky99mj4q0r.mp3",
"captions": true,
"duration": 10,
"image": "https://replicate.delivery/pbxt/NWYErO2DeKhMsKFRuV3QKR8lfNh8M4uu69kX0NxC4H3jc9lx/jennai.jpg",
"resolution": "720p"
},
"logs": "Generating video from image...\nAdding lip synchronization...\nAdding captions...",
"output": "https://replicate.delivery/xezq/YsDq2BglBDoHCpHwKhkEH2CDP8HRULE9V5xF5HYic0UtNlSF/output.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-12T19:46:00.904Z",
"started_at": "2025-08-12T19:46:01.273676Z",
"completed_at": "2025-08-12T19:53:26.182121Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/c1jpds3m91rm80crkz8tz24hy8/cancel",
"children": "https://api.replicate.com/v1/predictions/c1jpds3m91rm80crkz8tz24hy8/children",
"get": "https://api.replicate.com/v1/predictions/c1jpds3m91rm80crkz8tz24hy8",
"root": "https://api.replicate.com/v1/predictions/c1jpds3m91rm80crkz8tz24hy8",
"stream": "https://stream.replicate.com/v1/files/bcwr-dimmsdyumdnkwrry5ws55sxhjvbbqjymjej4acr3is6gy7f7ruza",
"web": "https://replicate.com/p/c1jpds3m91rm80crkz8tz24hy8"
},
"metrics": {
"predict_time": 444.908444913,
"total_time": 445.278121
}
}