typetext
{
"audio_format": "mp3",
"bitrate": 128000,
"channel": "mono",
"emotion": "auto",
"english_normalization": false,
"language_boost": "None",
"output_format": "hex",
"pitch": 0,
"sample_rate": 32000,
"speed": 1,
"subtitle_enable": false,
"text": "Minimax just released Speech 2.6, It's really good, It builds on top of what existed before, The HD version is perfectly optimized for high-fidelity applications like voiceovers and audiobooks, And the Turbo variant is better for real-time applications with low latency.",
"voice_id": "Wise_Woman",
"volume": 1
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_315**********************************
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 minimax/speech-2.6-hd using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
audio_format: "mp3",
bitrate: 128000,
channel: "mono",
emotion: "auto",
english_normalization: false,
language_boost: "None",
output_format: "hex",
pitch: 0,
sample_rate: 32000,
speed: 1,
subtitle_enable: false,
text: "Minimax just released Speech 2.6, It's really good, It builds on top of what existed before, The HD version is perfectly optimized for high-fidelity applications like voiceovers and audiobooks, And the Turbo variant is better for real-time applications with low latency.",
voice_id: "Wise_Woman",
volume: 1
};
const output = await replicate.run("minimax/speech-2.6-hd", { 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_315**********************************
This is your API token. Keep it to yourself.
import replicate
Run minimax/speech-2.6-hd using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"minimax/speech-2.6-hd",
input={
"audio_format": "mp3",
"bitrate": 128000,
"channel": "mono",
"emotion": "auto",
"english_normalization": False,
"language_boost": "None",
"output_format": "hex",
"pitch": 0,
"sample_rate": 32000,
"speed": 1,
"subtitle_enable": False,
"text": "Minimax just released Speech 2.6, It's really good, It builds on top of what existed before, The HD version is perfectly optimized for high-fidelity applications like voiceovers and audiobooks, And the Turbo variant is better for real-time applications with low latency.",
"voice_id": "Wise_Woman",
"volume": 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_315**********************************
This is your API token. Keep it to yourself.
Run minimax/speech-2.6-hd 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_format": "mp3",
"bitrate": 128000,
"channel": "mono",
"emotion": "auto",
"english_normalization": false,
"language_boost": "None",
"output_format": "hex",
"pitch": 0,
"sample_rate": 32000,
"speed": 1,
"subtitle_enable": false,
"text": "Minimax just released Speech 2.6, It\'s really good, It builds on top of what existed before, The HD version is perfectly optimized for high-fidelity applications like voiceovers and audiobooks, And the Turbo variant is better for real-time applications with low latency.",
"voice_id": "Wise_Woman",
"volume": 1
}
}' \
https://api.replicate.com/v1/models/minimax/speech-2.6-hd/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "0gems1vwf1rmc0ct663b26hvg8",
"model": "minimax/speech-2.6-hd",
"version": "hidden",
"input": {
"audio_format": "mp3",
"bitrate": 128000,
"channel": "mono",
"emotion": "auto",
"english_normalization": false,
"language_boost": "None",
"output_format": "hex",
"pitch": 0,
"sample_rate": 32000,
"speed": 1,
"subtitle_enable": false,
"text": "Minimax just released Speech 2.6, It's really good, It builds on top of what existed before, The HD version is perfectly optimized for high-fidelity applications like voiceovers and audiobooks, And the Turbo variant is better for real-time applications with low latency.",
"voice_id": "Wise_Woman",
"volume": 1
},
"logs": "Generating speech with model speech-2.6-hd\nGenerated speech in 3.73sec\nEach character is 1 token\nTokens: 270",
"output": "https://replicate.delivery/xezq/oreRsfBcZaiyXkasjFrPWaCSsgQVBwD64JYbZ8e8RwmJSEIrA/tmpagatekgw.mp3",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-29T19:51:28.632Z",
"started_at": "2025-10-29T19:51:28.651183Z",
"completed_at": "2025-10-29T19:51:32.397415Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/0gems1vwf1rmc0ct663b26hvg8/cancel",
"get": "https://api.replicate.com/v1/predictions/0gems1vwf1rmc0ct663b26hvg8",
"stream": "https://stream.replicate.com/v1/files/bcwr-5gdxfvhj6y2hzajrbhiijnxrft7agoqd34ow23h3oxejr7admjlq",
"web": "https://replicate.com/p/0gems1vwf1rmc0ct663b26hvg8"
},
"metrics": {
"predict_time": 3.74623168,
"total_time": 3.765415053
}
}