Model API

MiniMax Voice Cloning

Clone a voice from a sample audio and generate speech from text prompts using the MiniMax model, which leverages advanced AI techniques to create high-quality text-to-speech.

Model id

Use this in every request
minimax/voice-clone

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/voice-clone",
  "input": {
    "audio_url": "https://example.com/input.mp3"
  }
}'

# 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/voice-clone", "quote_id": "QUOTE_ID", "input": {"audio_url":"https://example.com/input.mp3"}}'

# 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/voice-clone
NameTypeDescription
audio_urlrequiredstring (URL)
URL of the input audio file for voice cloning. Should be at least 10 seconds long. To retain the voice permanently, use it with a TTS (text-to-speech) endpoint at least once within 7 days. Otherwise, it will be automatically deleted.
noise_reductionboolean
Enable noise reduction for the cloned voice

Default: false

need_volume_normalizationboolean
Enable volume normalization for the cloned voice

Default: false

accuracynumber
Text validation accuracy threshold (0-1)
textstring
Text to generate a TTS preview with the cloned voice (optional)

Default: Hello, this is a preview of your cloned voice! I hope you like it!

modelstring (enum)
TTS model to use for preview. Options: speech-02-hd, speech-02-turbo, speech-01-hd, speech-01-turbo

Default: speech-02-hd

One of: speech-02-hd, speech-02-turbo, speech-01-hd, speech-01-turbo

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$2.86/ run

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