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

Use this in every request
minimax/speech-02-turbo

Run 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

Input fields for minimax/speech-02-turbo
NameTypeDescription
textrequiredstring
Text to convert to speech (max 5000 characters, minimum 1 non-whitespace character)
voice_settingobject
Voice configuration settings

Default: {"english_normalization":false,"pitch":0,"speed":1,"voice_id":"Wise_Woman","vol":1}

audio_settingobject
Audio configuration settings
language_booststring (enum)
Enhance recognition of specified languages and dialects
output_formatstring (enum)
Format of the output content (non-streaming only)

Default: url

One of: url

pronunciation_dictobject
Custom pronunciation dictionary for text replacement

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"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