Speech 02 Turbo
minimax/speech-02-turboTurn text into spoken audio in a chosen voice.
- character
- $0.0000236
- MiniMax
- 5 min
Overview
Converts a block of text into speech using a stock or previously cloned voice. This is the earliest turbo tier, the cheapest of the four voices on offer. Voice settings control delivery — speaking rate, volume, pitch, and an emotional register such as calm or whisper — while audio settings control the encoding: container format, sample rate, bitrate, and mono or stereo. A language hint improves pronunciation for a particular language or dialect. Billing counts the characters submitted, so the price of a call is known before it is made.
The audio, returned inline, with its length, sample rate, size, and the character count that was billed.
Input
These go in the input object of the run request.
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | What to say. |
| voice_setting | object | No | Which voice to use and how it delivers: `voice_id`, `speed`, `vol`, `pitch`, and an emotional register. |
| audio_setting | object | No | How to encode the audio: `format`, `sample_rate`, `bitrate`, and `channel`. |
| language_boost | string | No | A language hint that improves pronunciation. |
Requests up to 1 MB, text up to 10,000 characters.
Example
A call that works, with your own key.
curl https://gateway.agentsky.dev/v1/run \
-H "authorization: Bearer $AGENTSKY_API_KEY" \
-H "content-type: application/json" \
-d '{"provider":"minimax","endpoint":"speech-02-turbo","input":{"text":"Hello, and welcome back to the show.","voice_setting":{"voice_id":"female-shaonv","speed":1},"audio_setting":{"format":"mp3","sample_rate":32000}}}'Pricing
$0.0000236 per character on the default plan. Every run carries its price in the response.
