Model API

MiniMax Speech 2.8 [HD]

Generate speech from text prompts and different voices using the MiniMax Speech-2.8 HD model, which leverages advanced AI techniques to create high-quality text-to-speech.

Model id

Use this in every request
minimax/speech-2.8-hd

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-2.8-hd",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light"
  }
}'

# 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-2.8-hd", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light"}}'

# 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-2.8-hd
NameTypeDescription
promptrequiredstring
Text to convert to speech. Use `<#x#>` for pauses (x = 0.01-99.99 seconds). Supports interjection tags: `(laughs)`, `(sighs)`, `(coughs)`, `(clears throat)`, `(gasps)`, `(sniffs)`, `(groans)`, `(yawns)`.
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
normalization_settingobject
Loudness normalization settings for the audio
voice_modifyobject
Voice modification settings for Speech 2.8 models.

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 characters$0.17/ run

The exact charge for your input comes from a quote. How charges settle