Skip to main content
This example turns a live webcam feed into annotated video using YOLO. WebRTC is the transport layer for low-latency, real-time streaming.

🚀 Try this Example

View the complete source code on GitHub. Steps to run:
  1. Install fal:
  1. Authenticate:
  1. Clone the demos repo and install dependencies:
  1. Run the backend (local dev):
  1. Run the frontend:
Open the Vite dev server in your browser and set the Endpoint field to the full real-time endpoint (for example: myuser/myapp/webrtc).
This deployment flow is the same as other serverless examples, like Deploy Text-to-Image Model, but the request path is a real-time endpoint.

Deploy to fal

To host the backend, deploy the app and use the resulting endpoint in the UI:
The real-time endpoint will be your-username/your-app/webrtc.

How it works

  • The browser streams your webcam to the app in real-time (WebRTC transport).
  • The backend runs YOLO on each frame and draws detection boxes.
  • The annotated stream is sent back to the browser over the same connection.