Model API
MiniMax Speech-02 Turbo
Generate fast speech from text prompts and different voices using the MiniMax Speech-02 Turbo model, which leverages advanced AI techniques to create high-quality text-to-speech.
Model id
minimax/speech-02-turboRun it
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/speech-02-turbo",
"input": {
"text": "example"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "minimax/speech-02-turbo", "quote_id": "QUOTE_ID", "input": {"text":"example"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Input
| Name | Type | Description |
|---|---|---|
textrequired | string | Text to convert to speech (max 5000 characters, minimum 1 non-whitespace character) |
voice_setting | object | Voice configuration settings |
audio_setting | object | Audio configuration settings |
language_boost | string (enum) | Enhance recognition of specified languages and dialects |
output_format | string (enum) | Format of the output content (non-streaming only) |
pronunciation_dict | object | Custom pronunciation dictionary for text replacement |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]Pricing
- up to · 1,000 ASCII characters$0.10/ run
The exact charge for your input comes from a quote. How charges settle