typetext
{
"image": "https://replicate.delivery/pbxt/NSQVKjsAERAkOpKseICbVejzAdD99Q2uiJsXuTt46FHGZ4Ju/replicate-prediction-y8p7hhav6xrma0crcdq8fbeqww.webp",
"prompt": "Oaxaca Día-de-los-Muertos parade"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Oen**********************************
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/wan-2.2-i2v-audio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
image: "https://replicate.delivery/pbxt/NSQVKjsAERAkOpKseICbVejzAdD99Q2uiJsXuTt46FHGZ4Ju/replicate-prediction-y8p7hhav6xrma0crcdq8fbeqww.webp",
prompt: "Oaxaca Día-de-los-Muertos parade"
};
const output = await replicate.run("lucataco/wan-2.2-i2v-audio", { 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_Oen**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/wan-2.2-i2v-audio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/wan-2.2-i2v-audio",
input={
"image": "https://replicate.delivery/pbxt/NSQVKjsAERAkOpKseICbVejzAdD99Q2uiJsXuTt46FHGZ4Ju/replicate-prediction-y8p7hhav6xrma0crcdq8fbeqww.webp",
"prompt": "Oaxaca Día-de-los-Muertos parade"
}
)
# 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_Oen**********************************
This is your API token. Keep it to yourself.
Run lucataco/wan-2.2-i2v-audio 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": {
"image": "https://replicate.delivery/pbxt/NSQVKjsAERAkOpKseICbVejzAdD99Q2uiJsXuTt46FHGZ4Ju/replicate-prediction-y8p7hhav6xrma0crcdq8fbeqww.webp",
"prompt": "Oaxaca Día-de-los-Muertos parade"
}
}' \
https://api.replicate.com/v1/models/lucataco/wan-2.2-i2v-audio/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "yw27nm6q7hrme0crcfj8v5271w",
"model": "lucataco/wan-2.2-i2v-audio",
"version": "hidden",
"input": {
"image": "https://replicate.delivery/pbxt/NSQVKjsAERAkOpKseICbVejzAdD99Q2uiJsXuTt46FHGZ4Ju/replicate-prediction-y8p7hhav6xrma0crcdq8fbeqww.webp",
"prompt": "Oaxaca Día-de-los-Muertos parade"
},
"logs": "",
"output": "https://replicate.delivery/xezq/Zl3LoWE8qC6AGxMtNn8XWZr2SxaYlF5HY3BJRdKrudzepPjKA/20250801_043049.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-01T04:29:58.46Z",
"started_at": "2025-08-01T04:29:59.037113Z",
"completed_at": "2025-08-01T04:30:51.635889Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/yw27nm6q7hrme0crcfj8v5271w/cancel",
"children": "https://api.replicate.com/v1/predictions/yw27nm6q7hrme0crcfj8v5271w/children",
"get": "https://api.replicate.com/v1/predictions/yw27nm6q7hrme0crcfj8v5271w",
"root": "https://api.replicate.com/v1/predictions/yw27nm6q7hrme0crcfj8v5271w",
"stream": "https://stream.replicate.com/v1/files/bcwr-5d5kxfvsvntqnqphiu3rlw6qcg3vqu5m6jtp3jnrqcs3qw5jfrsq",
"web": "https://replicate.com/p/yw27nm6q7hrme0crcfj8v5271w"
},
"metrics": {
"predict_time": 52.598776082,
"total_time": 53.175889
}
}