Hailuo AI / MiniMax · AsyncAPI Specification
MiniMax Text-to-Speech (T2A) WebSocket API
Version 1.0
MiniMax publishes a documented real-time text-to-speech WebSocket API. A client opens a WebSocket connection to wss://api.minimax.io/ws/v1/t2a_v2 (US West: wss://api-uw.minimax.io/ws/v1/t2a_v2), authenticates with a Bearer API key, sends a task_start event with the model and voice settings, streams text with task_continue events, and receives audio chunks pushed back over the same connection as they are synthesized. This is a genuine bidirectional server-push transport, distinct from the synchronous HTTP T2A endpoint. This document models the event flow from MiniMax's published WebSocket guide. Exact event field names should be reconciled against the live reference.
View Spec
View on GitHub
Video GenerationAI VideoGenerative AIText-to-VideoImage-to-VideoText to SpeechLLMFoundation ModelsAsyncAPIWebhooksEvents
Channels
/ws/v1/t2a_v2
Control events sent from the client to MiniMax.
Real-time text-to-speech session. The client drives the session with task_start / task_continue / task_finish events; the server streams connected_success, then audio_chunk events, then task_finished.
Messages
TaskStart
Start a synthesis task
TaskContinue
Stream text to synthesize
TaskFinish
End the synthesis task
ConnectedSuccess
Connection established
AudioChunk
Streamed audio chunk
TaskFinished
Task complete
Servers
wss
production
api.minimax.io
MiniMax International real-time T2A WebSocket.
wss
us-west
api-uw.minimax.io
US West region, lower time-to-first-audio.