typefile
{
"audio_quality": "high",
"fade_in": 0,
"fade_out": 0,
"noise_reduction": false,
"normalize_audio": false,
"output_format": "mp3",
"trim_end": 0,
"trim_start": 0,
"video": "https://replicate.delivery/pbxt/NrX59OpTSevxOx7pMCSedOifdbELxtAPdWmHmh3fL5fCsgto/cloudflare.mp4",
"volume_boost": 1
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_MEY**********************************
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/extract-audio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
audio_quality: "high",
fade_in: 0,
fade_out: 0,
noise_reduction: false,
normalize_audio: false,
output_format: "mp3",
trim_end: 0,
trim_start: 0,
video: "https://replicate.delivery/pbxt/NrX59OpTSevxOx7pMCSedOifdbELxtAPdWmHmh3fL5fCsgto/cloudflare.mp4",
volume_boost: 1
};
const output = await replicate.run("lucataco/extract-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_MEY**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/extract-audio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/extract-audio",
input={
"audio_quality": "high",
"fade_in": 0,
"fade_out": 0,
"noise_reduction": False,
"normalize_audio": False,
"output_format": "mp3",
"trim_end": 0,
"trim_start": 0,
"video": "https://replicate.delivery/pbxt/NrX59OpTSevxOx7pMCSedOifdbELxtAPdWmHmh3fL5fCsgto/cloudflare.mp4",
"volume_boost": 1
}
)
# 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_MEY**********************************
This is your API token. Keep it to yourself.
Run lucataco/extract-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": {
"audio_quality": "high",
"fade_in": 0,
"fade_out": 0,
"noise_reduction": false,
"normalize_audio": false,
"output_format": "mp3",
"trim_end": 0,
"trim_start": 0,
"video": "https://replicate.delivery/pbxt/NrX59OpTSevxOx7pMCSedOifdbELxtAPdWmHmh3fL5fCsgto/cloudflare.mp4",
"volume_boost": 1
}
}' \
https://api.replicate.com/v1/models/lucataco/extract-audio/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "9d5ct5mea1rm80cst0hvrr1e28",
"model": "lucataco/extract-audio",
"version": "hidden",
"input": {
"audio_quality": "high",
"fade_in": 0,
"fade_out": 0,
"noise_reduction": false,
"normalize_audio": false,
"output_format": "mp3",
"trim_end": 0,
"trim_start": 0,
"video": "https://replicate.delivery/pbxt/NrX59OpTSevxOx7pMCSedOifdbELxtAPdWmHmh3fL5fCsgto/cloudflare.mp4",
"volume_boost": 1
},
"logs": "",
"output": "https://replicate.delivery/xezq/Fk5kF4Dk2W5HLpE1pjMT5HThjoINTSBm8P5q3LgaTtM8zcXF/extracted_audio.mp3",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-10T22:00:15.184Z",
"started_at": "2025-10-10T22:00:15.538164Z",
"completed_at": "2025-10-10T22:00:16.524971Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/9d5ct5mea1rm80cst0hvrr1e28/cancel",
"children": "https://api.replicate.com/v1/predictions/9d5ct5mea1rm80cst0hvrr1e28/children",
"get": "https://api.replicate.com/v1/predictions/9d5ct5mea1rm80cst0hvrr1e28",
"root": "https://api.replicate.com/v1/predictions/9d5ct5mea1rm80cst0hvrr1e28",
"stream": "https://stream.replicate.com/v1/files/bcwr-b5twvplfcq4axpyis5tqdbdthsd6kqs52epxnaoudcczxr7id22q",
"web": "https://replicate.com/p/9d5ct5mea1rm80cst0hvrr1e28"
},
"metrics": {
"predict_time": 0.986807529,
"total_time": 1.340971
}
}