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
minimax/voice-cloneRun 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
| Name | Type | Description |
|---|---|---|
audio_urlrequired | string (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_reduction | boolean | Enable noise reduction for the cloned voice |
need_volume_normalization | boolean | Enable volume normalization for the cloned voice |
accuracy | number | Text validation accuracy threshold (0-1) |
text | string | Text to generate a TTS preview with the cloned voice (optional) |
model | string (enum) | TTS model to use for preview. Options: 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.
"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