Bring multimodal real-time interaction to your AI applications with Cloudflare Calls
Dec 20, 2024Will Allen, Felipe Astroza Araya, Kevin Kipp

Summary
This post details the integration of Cloudflare Calls with OpenAI's Realtime API to enable multimodal, real-time interaction with AI applications. It explains how Cloudflare Calls leverages WebRTC to overcome the latency limitations of WebSockets for audio and video streams, allowing multiple users to interact with AI simultaneously. The post provides a code example demonstrating how to connect human and AI sessions by adding AI audio tracks to human sessions and vice-versa, facilitating bidirectional communication.
More from the Artificial Intelligence Integration & Impact trail
- Introducing Clef-omni with full multimodality, plus a faster Clef and a cheaper Clef-flash
- Introducing Web Search API via AI Gateway
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform
- One year later: Sovereign AI and the fight for choice
- AI Search is now generally available