Qwen Audio 3.1 Realtime Plus

WEBSOCKET /v1/realtimeDuplex speech conversation over one socket, with 27 voices, native web search, tool calling, and separate text and audio token rates.
At a glance
Pricing
Example request
Parameters
Notes
Connecting
Full-duplex voice over a WebSocket at wss://api.empiriolabs.ai/v1/realtime?model=qwen-audio-3-1-realtime-plus, authenticated with the ordinary Authorization Bearer header. Configure the session with session.update over the socket: voice, instructions, modalities, and turn detection.
Sending audio
- Append microphone audio as
input_audio_buffer.appendevents. - Voice activity detection decides when you have stopped speaking, so keep streaming for about a second after the speech ends.
Voices
The voices on this model are its own set. Pick one from the voice list rather than carrying a voice across from another model, or leave it unset and the default is supplied for you.
Web search
Web search is off by default. Turn it on with enable_search. It cannot be enabled in the same session as function calling, and search results are added to the conversation and count as input tokens.
Billing
Audio and text tokens are priced separately in both directions, and each completed turn is billed on its own from the usage the model reports.
Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/qwen-audio-3-1-realtime-plus.
