Skip to main content

Realtime API overview

Explore supported Realtime API models, access methods, authentication, and existing tutorials and demos.

The Realtime API supports real-time multimodal interaction, speech recognition, speech synthesis, voice conversation, and audio and video translation. Find the access methods supported by your model, then choose one for your application and open the corresponding access documentation.

Model and protocol support

The following table lists the protocols supported by each model and application. Click "Supported" to open the corresponding access documentation.
Model/application typeModelWebSocketWebRTCAOQ
Real-time multimodalqwen3.8-omni-flash-realtime, qwen3.5-omni-plus-realtime, qwen3.5-omni-flash-realtimeSupportedSupportedSupported
Real-time speech synthesisqwen-audio-3.1-tts-plus, qwen-audio-3.1-tts-flash, qwen-audio-3.0-tts-flash, qwen-audio-3.0-tts-plusSupportedUnsupportedSupported
CosyVoice series modelsSupportedUnsupportedSupported
Real-time speech recognitionqwen-audio-3.1-asr-flash-message, qwen-audio-3.1-asr-flash-streaming, qwen-audio-3.0-asr-flash-streaming, Fun-ASR-Realtime series modelsQwen-Audio-ASR-MessageQwen-Audio-ASR-StreamingFun-ASR-RealtimeUnsupportedQwen-Audio-ASR-MessageQwen-Audio-ASR-StreamingFun-ASR-Realtime
Real-time voice conversationqwen-audio-3.1-realtime-plus, qwen-audio-3.1-realtime-flash, qwen-audio-3.0-realtime-plus, qwen-audio-3.0-realtime-flashSupportedSupportedSupported
Qwen-Audio-Liveqwen-audio-3.1-liveSupportedSupportedSupported
Real-time speech translationQwen-Livetranslate-Realtime series modelsSupportedSupportedSupported
Multimodal development kitmultimodal-dialogSupportedSupportedSupported
For information such as model names, context windows, prices, and snapshot versions, see the Alibaba Cloud Model Studio console. For rate limits, see Rate limiting.

WebSocket SDKs by model

ModelLanguages and platforms
Qwen-Omni-RealtimePython · Java · C#
Qwen-Audio-ASR-StreamingPython · Java · Node.js · C# · Android · iOS · HarmonyOS · Flutter
Qwen-Audio-ASR-MessagePython · Java · Node.js · C# · Android · iOS · HarmonyOS · Flutter
Fun-ASR-RealtimePython · Java · C# · Android · iOS · HarmonyOS · Flutter
Qwen-ASR-RealtimePython · Java
ParaformerPython · Java · C# · Android · iOS · HarmonyOS · Flutter
Qwen-Audio-TTSPython · Java · Node.js · C# · Android · iOS · HarmonyOS · Flutter
CosyVoicePython · Java · C# · Android · iOS · HarmonyOS · Flutter
Qwen-TTS-RealtimePython · Java
SambertPython · Java · C# · Android · iOS · HarmonyOS · Flutter
Qwen-Audio-RealtimeNode.js · C# · Android · iOS · HarmonyOS · Flutter
Qwen-LiveTranslate-RealtimePython · Java · C# · Flutter
C# reference SDK overview · Methods and events

Choose an access method

The Realtime API supports WebSocket, WebRTC, and AOQ (AI over QUIC). Available access methods and input and output capabilities depend on the selected model. Refer to its access documentation.
DimensionWebSocketWebRTCAOQ
Use casesReal-time voice and multimodal interaction, server-side integration, rapid prototypingReal-time browser audio and video interaction, applications with existing WebRTC infrastructureNative applications that need weak-network optimization and coordinated transmission of audio, video, and model events
Browser compatibilityNatively supported; the API authentication requirements still applyNatively supportedThe current AOQ SDK does not provide browser access
Echo cancellation and noise suppressionProvided by the audio capture and processing components used by the clientProvided by the browser or WebRTC client, depending on the platform and configurationDepends on the AOQ SDK audio configuration for the selected platform
Client platform supportAll platforms (any environment that supports WebSocket)Browsers, mobile clientsMobile, desktop, and Linux. For details, see AOQ SDK downloads.
Token PlanSupportedSupportedSupported
  • WebSocket: For real-time voice and multimodal interaction, server-side integration, and prototyping. The DashScope SDK provides a quick way to implement real-time voice conversations.
  • WebRTC: For real-time audio and video interaction that requires native browser support or uses existing WebRTC infrastructure.
  • AOQ: Based on QUIC, AOQ is optimized for real-time interaction under weak-network conditions. It transports audio, video, and model events on separate tracks and suits native applications that need integrated media capture, codecs, and playback.

Prepare for access

Confirm the region and endpoint, and obtain the API Key for that region and workspace.
For first-time use, follow the console prompts to activate the service. Copy and securely store the API key immediately after creation. Manage it through environment variables; do not embed it in client code or commit it to a code repository.
For AOQ, download the AOQ SDK for the client platform.

Authentication methods

The Realtime API uses API keys for authentication. Whether you connect over AOQ, WebRTC, or WebSocket, you pass a bearer token in the Authorization HTTP request header. WebRTC and WebSocket authenticate during connection setup. With AOQ, the AppServer authenticates with an API key when requesting connection credentials, and the client then connects with a temporary token. Data transmission over an established connection does not require re-authentication.

Connection authentication details

  • WebSocket
  • WebRTC
  • AOQ
WebSocket authenticates the connection using an API Key in the HTTP request headers. Refer to the access documentation for the selected model for specific requirements.

Developer resources

WebRTC tutorials

AOQ tutorials and Demo

Use the Android Demo to try AOQ access. Scan the QR code to download the APK, then install it and configure the API Key and workspaceId. You can then try the subset of models supported by the Demo.
AOQ Android Demo APK download QR code