MiniMax Speech 2.8 HD
MiniMax/speech-2.8-hd
MiniMaxText-to-speechREST
Price$0.049 /1K chars
EndpointPOST /v2/audio/minimax-speech-2-8-hd/generate REST
Quick start
Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/audio/minimax-speech-2-8-hd/generate \ -H "Authorization: Bearer $WIDELABS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Welcome to the MiniMax 2.8 HD demo.", "voice_id": "male-qn-qingse" }'
import os
import requests
resp = requests.post(
"https://api.widelabs.tr/v2/audio/minimax-speech-2-8-hd/generate",
headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
json={
"text": "Welcome to the MiniMax 2.8 HD demo.",
"voice_id": "male-qn-qingse"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/audio/minimax-speech-2-8-hd/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ text: "Welcome to the MiniMax 2.8 HD demo.", voice_id: "male-qn-qingse" }), }); console.log(await resp.json());
Parameters
| Name | Type | Description |
|---|---|---|
store_output | "provider" | "wl1d" | "wl7d" | "wl30d" default "provider" | Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,… |
text required | string | Text to synthesize (max 10000 chars). Supports <#x.xx#> pause tags and (laughs)/(chuckle)/... interjection tags. |
voice_id required | string | MiniMax system, cloned, or text-generated voice ID. See https://platform.minimaxi.com/docs/faq/system-voice-id |
speed | number | Speech speed multiplier (0.5–2). Default 1. |
vol | number | Volume multiplier (0–10]. Default 1. |
pitch | integer | Pitch in semitones (-12 to 12). Default 0. |
emotion | "happy" | "sad" | "angry" | "fearful" | "disgusted" | "surprised" | Emotion preset ('whisper' is not supported by 2.8-hd). |
audio_format | "mp3" | "pcm" | "flac" | "wav" | Output audio format. Default 'mp3' ('wav' non-streaming only). |
audio_sample_rate | 8000 | 16000 | 22050 | 24000 | 32000 | 44100 | Audio sample rate (Hz). Default 32000. |
audio_bitrate | 32000 | 64000 | 128000 | 256000 | Audio bitrate (mp3 only). Default 128000. |
audio_channel | 1 | 2 | 1 (mono) or 2 (stereo). Default 1. |
language_boost | string | Boost a specific language/dialect (e.g. 'English', 'Chinese', 'auto'). |
subtitle_enable | boolean | Generate a subtitle .json file (non-streaming only). Default false. |
aigc_watermark | boolean | Append an AIGC rhythm watermark (non-streaming only). Default false. |
webhook_url | string | HTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification. |
Related
Similar models
Start building on Wide Labs Compute
Create an account, add credit and send your first request with the SDK you already use.