We are pleased to announce the new partnership between CloudFlare and Hugging Face to enable FASTRTC developers to instantly access the enterprise-grade WeBRTC infrastructure with embracing face tokens.
Check out this voice chat app built with Meta’s new Llama 4 models as a preview of what you can build with Fastrtc and CloudFlare!
Fills the gaps in AI developer toolboxes
With conversational AI becoming the core interface of tools, products and services, real-time communication infrastructures are increasingly essential to supporting natural, multimodal interactions. Facing Face builds FASTRTC to allow AI developers to build low latency AI-powered audio and video streams with minimal Python code by abstracting the complexity of WeBRTC.
Applications with WeBRTC often face deployment challenges as they require specialized turn servers that allow for reliable connections in a variety of network environments. To address this issue, CloudFlare has built a global network of these servers spanning over 335 locations worldwide.
This partnership combines FASTRTC’s simple development approach with CloudFlare’s global turn network to enable developers to create fast, reliable WeBRTC applications with global connectivity.
Free access using a hugging face account
FASTRTC developers with a valid hugging face access token can stream 10GB of data for free every month without a credit card. Once the monthly limit is reached, developers can switch to CloudFlare accounts for higher capacity (instructions).
This is why it’s important for AI developers
This partnership is especially valuable for AI developer buildings.
Audio assistants that require reliable low-latency audio streaming video analytics applications
This partnership allows developers to focus on core application logic using FASTRTC, eliminating the need to build and maintain turn infrastructure. CloudFlare’s managed services handle global scalability and reliability, enabling AI developers to deliver a great experience without the overhead of maintaining their infrastructure.
Get started
The integration is available for FASTRTC version 0.0.20 and above. To get started:
Hugging face token with read access (obtained here) Install or upgrade Fastrtc:pip install ‘fastrtc(vad)’ Configure the stream to use the cloudflatter network as shown below.
from Fastrtc Import ReplyOnPause, Stream, get_cloudflare_turn_credentials
Import os os.environ (“HF_TOKEN”)= “”
def echo(audio):
yield Audio Stream = Stream (ReplyOnPause (ECHO), RTC_CONFIG = GET_CLOUDFLARE_TURN_CREDENTIALS) STREEM.UI.LAUNCH()
Launch script with python, python .py
For more examples, see this collection of Face’s embrace as well as the FASTRTC Cookbook.
What’s next?
If you have any questions or feedback, please contact us via Github or Hugging Face. Hugging your face for the latest updates and announcements.