typetext
{
"cfg_strength": 4.5,
"duration": 8,
"negative_prompt": "music",
"num_steps": 25,
"prompt": "dog barking",
"seed": -1,
"video": "https://replicate.delivery/xezq/xevDe1TxQRjK5EefyM4p2APef6lrgJqObmWAfKvjEQxfQQbXVA/output.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Ymi**********************************
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 zsxkib/mmaudio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zsxkib/mmaudio:62871fb59889b2d7c13777f08deb3b36bdff88f7e1d53a50ad7694548a41b484",
{
input: {
cfg_strength: 4.5,
duration: 8,
negative_prompt: "music",
num_steps: 25,
prompt: "dog barking",
seed: -1,
video: "https://replicate.delivery/xezq/xevDe1TxQRjK5EefyM4p2APef6lrgJqObmWAfKvjEQxfQQbXVA/output.mp4"
}
}
);
// 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_Ymi**********************************
This is your API token. Keep it to yourself.
import replicate
Run zsxkib/mmaudio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/mmaudio:62871fb59889b2d7c13777f08deb3b36bdff88f7e1d53a50ad7694548a41b484",
input={
"cfg_strength": 4.5,
"duration": 8,
"negative_prompt": "music",
"num_steps": 25,
"prompt": "dog barking",
"seed": -1,
"video": "https://replicate.delivery/xezq/xevDe1TxQRjK5EefyM4p2APef6lrgJqObmWAfKvjEQxfQQbXVA/output.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_Ymi**********************************
This is your API token. Keep it to yourself.
Run zsxkib/mmaudio 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": "zsxkib/mmaudio:62871fb59889b2d7c13777f08deb3b36bdff88f7e1d53a50ad7694548a41b484",
"input": {
"cfg_strength": 4.5,
"duration": 8,
"negative_prompt": "music",
"num_steps": 25,
"prompt": "dog barking",
"seed": -1,
"video": "https://replicate.delivery/xezq/xevDe1TxQRjK5EefyM4p2APef6lrgJqObmWAfKvjEQxfQQbXVA/output.mp4"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "3fm1b06f0xrm80csdj48c6pj3r",
"model": "zsxkib/mmaudio",
"version": "62871fb59889b2d7c13777f08deb3b36bdff88f7e1d53a50ad7694548a41b484",
"input": {
"cfg_strength": 4.5,
"duration": 8,
"negative_prompt": "music",
"num_steps": 25,
"prompt": "dog barking",
"seed": -1,
"video": "https://replicate.delivery/xezq/xevDe1TxQRjK5EefyM4p2APef6lrgJqObmWAfKvjEQxfQQbXVA/output.mp4"
},
"logs": "Using seed: 44092\nProcessing video: /tmp/tmph7_1w3o_output.mp4\n[\u001b[33mWARNING \u001b[0m]: \u001b[33mClip video is too short: 5.00 < 8.00\u001b[0m\n[\u001b[33mWARNING \u001b[0m]: \u001b[33mTruncating to 5.00 sec\u001b[0m\n[\u001b[33mWARNING \u001b[0m]: \u001b[33mSync video is too short: 4.96 < 5.00\u001b[0m\n[\u001b[33mWARNING \u001b[0m]: \u001b[33mTruncating to 4.96 sec\u001b[0m",
"output": "https://replicate.delivery/xezq/bgxrLsLN4s6kH15GNBf0ed3zcfr1FQ1bzd7uek0nKHeBJa7qC/20250921_134854.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-21T13:48:49.287Z",
"started_at": "2025-09-21T13:48:52.312699Z",
"completed_at": "2025-09-21T13:48:56.367909Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/3fm1b06f0xrm80csdj48c6pj3r/cancel",
"get": "https://api.replicate.com/v1/predictions/3fm1b06f0xrm80csdj48c6pj3r",
"stream": "https://stream.replicate.com/v1/files/bcwr-spb56ub32737wkhbgjxacmkdcajummcx355fceh6fbuzume7dj7a",
"web": "https://replicate.com/p/3fm1b06f0xrm80csdj48c6pj3r"
},
"metrics": {
"predict_time": 4.055209528,
"total_time": 7.080909
}
}