MiniMax speech synthesis (native synchronous)
API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai
Use the MiniMax T2A native HTTP request format with an XRToken API key. Models are minimax/speech-2.8-hd and minimax/speech-2.8-turbo, subject to availability in the model list.
Native options such as voice_setting and audio_setting are accepted; output_format can be hex or url. Only stream: false is supported. Text must be fewer than 10,000 characters.
Only provider system voices are supported; cloned and designed voices are not available.
Authorization
BearerAuth AuthorizationBearer <token>
API key authentication (OpenAI format). Pass in the Authorization header:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X post "https://api.xrtoken.ai/v1/t2a_v2" \ -H "Content-Type: application/json" \ -d '{ "model": "minimax/speech-2.8-hd", "text": "Hello from XRToken.", "voice_setting": {} }'{}{
"error": "model field is required",
"type": "invalid_request_error"
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "insufficient balance -- please top up or upgrade your plan",
"type": "billing_error"
}{
"error": "upstream provider error",
"type": "server_error"
}