Skip to main content
POST
/
api
/
v3
/
minimax
/
speech-02-turbo
Text to Audio
curl --request POST \
  --url https://gptproto.com/api/v3/minimax/speech-02-turbo \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "emotion": "<string>",
  "enable_base64_output": true,
  "enable_sync_mode": true,
  "english_normalization": true,
  "pitch": 123,
  "speed": 123,
  "text": "<string>",
  "voice_id": "<string>",
  "volume": 123,
  "language_boost": "<string>"
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

This endpoint provides text to audio functionality.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

emotion
string
default:"surprised"
Emotion parameter
enable_base64_output
boolean
default:"false"
Enable Base64 Output parameter
enable_sync_mode
boolean
default:"false"
Enable Sync Mode parameter
english_normalization
boolean
default:"false"
English Normalization parameter
pitch
integer
default:"0"
Pitch parameter
speed
number
default:"0.9"
Speed parameter
text
string
Text parameter
voice_id
string
default:"Deep_Voice_Man"
Voice Id parameter
volume
integer
default:"1"
Volume parameter
language_boost
string
default:"Chinese"
Language Boost parameter

Request Example

curl -X POST "https://gptproto.com/api/v3/minimax/speech-02-turbo" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emotion": "surprised",
  "enable_base64_output": false,
  "enable_sync_mode": false,
  "english_normalization": false,
  "pitch": 0,
  "speed": 0.9,
  "text": "Hi there! Minimax speech 2.5 now live on WaveSpeedAI! Let's try it!",
  "voice_id": "Deep_Voice_Man",
  "volume": 1,
  "language_boost": "Chinese"
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}