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
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# · HarmonyOS · Flutter
Qwen-Audio-TTSPython · Java · Node.js · C# · Android · iOS · HarmonyOS · Flutter
CosyVoicePython · Java · C# · Android · iOS · HarmonyOS · Flutter
Qwen-TTS-RealtimePython · Java
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: Suitable for real-time voice and multimodal interaction, server-side integration, and prototype validation. The DashScope SDK enables quick implementation of real-time voice conversations.
  • WebRTC: Suitable for real-time audio and video interaction that requires native browser support or an existing WebRTC infrastructure.
  • AOQ: AOQ is based on QUIC and optimized for real-time interaction on weak networks. It supports separate-track transmission of audio/video and model events, and is suitable for native applications that need to integrate media capture, encoding/decoding, and playback capabilities.

Preparation

Confirm the regions and endpoints for calls, and obtain the API Key for the corresponding region and workspace.
For first-time use, activate the service as prompted by the console. After creation, immediately copy and securely store the API Key, manage it through environment variables, and do not embed it in clients or commit it to code repositories.
When using AOQ, download the AOQ SDK based on your client platform.

Authentication Method

The Realtime API uses an API Key for identity authentication. Whether you connect via the AOQ, WebRTC, or WebSocket protocol, authentication is completed through the Authorization field in the HTTP request header carrying a Bearer Token. WebRTC and WebSocket authenticate at connection establishment; AOQ uses the API Key for authentication when the AppServer requests a connection credential, and the client then establishes the connection with a temporary token. Data transmission after the connection is established does not require repeated authentication.

Connection Authentication Details

  • WebSocket
  • WebRTC
  • AOQ
WebSocket carries the API Key in the HTTP request header for authentication when establishing the connection. For specific requirements, see the access documentation of the corresponding model.

Developer resources

WebRTC Tutorials

AOQ Tutorials and Demos

Use the Android Demo to verify AOQ integration results. Scan the QR code to download the APK, configure the API Key and workspaceId after installation, and then you can try some of the models supported by the Demo.
AOQ Android Demo 下载二维码