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 parameter
Enable Sync Mode parameter
English Normalization parameter
voice_id
string
default:"Deep_Voice_Man"
Voice Id parameter
Request Example
curl -X POST "https://gptproto.com/api/v3/minimax/speech-02-hd" \
-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
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}