Skip to main content
Realtime API

Realtime API overview

Realtime API supports WebSocket, WebRTC, and AOQ transport protocols

Realtime API provides three transport protocols -- WebSocket, WebRTC, and AOQ (AI over QUIC) -- each optimized for different latency, platform, and integration requirements.

Overview

Realtime API supports three transport protocols: WebSocket, WebRTC, and AOQ (AI over QUIC). Choose the protocol that best fits your use case.
DimensionWebSocketWebRTCAOQ
Recommended use casesServer-side integration, rapid prototypingBrowser-based interaction, traditional audio/video callsAI multimodal real-time interaction, poor network conditions, multimodal data transport
Browser compatibilityNative supportNative supportNot supported
Integration complexityVery lowMediumLow
Poor network resiliencePoorGoodExceptional
Data typesText / audio / imageAudio/video + textAudio/video + text
Connection speedSlowSlowFast
Echo cancellation / noise reductionNone -- handled client-sideBuilt-inBuilt-in
AI suitabilityBasic -- suited for text-only or latency-tolerant use casesDesigned for traditional audio/video; requires extra adaptation for AIPurpose-built for AI multimodal workloads
Client platform supportAll platforms (any environment with WebSocket support)Browser, mobileAndroid / iOS / HarmonyOS
Choose a protocol based on your requirements:
  • WebSocket: Best for server-side integration, rapid prototyping, and scenarios where integration simplicity matters most. Use the DashScope SDK to get a real-time voice conversation running quickly.
  • WebRTC: Best for browser-native scenarios and applications already built on WebRTC infrastructure, such as traditional audio/video calling. Includes built-in echo cancellation and noise reduction.
  • AOQ: Best for AI real-time interaction with strict latency, poor network resilience, and multimodal data transport requirements -- especially native mobile apps. Includes built-in echo cancellation and noise reduction.

Model and application support

The following table shows which models and application types each protocol supports.
Application typeModelAOQWebRTCWebSocket
Real-time omniqwen3.5-omni-plus-realtimeSupportedSupportedSupported
Real-time omniqwen3.5-omni-flash-realtimeSupportedSupportedSupported
Real-time omniqwen3.5-livetranslate-flash-realtimeSupportedSupportedSupported
Real-time speech recognitionFunASR series modelsUnsupportedUnsupportedSupported
Real-time speech synthesisCosyVoice series modelsUnsupportedUnsupportedSupported
For model names, context windows, pricing, and snapshot versions, see the QwenCloud console. For concurrency limits, see Rate limiting.