Scope Server API
The Scope Server provides a REST API for pipeline management and a WebRTC API for real-time video streaming. Build custom applications that generate video in real-time using text prompts or input video.What You Can Build
- Text-to-Video streaming - Generate live video from text prompts
- Video-to-Video transformation - Transform input video in real-time
- Custom creative tools - Build VJ software, live performance tools, interactive installations
- Integrations - Connect Scope to your existing applications and workflows
Quick Start
Get streaming video from the Scope API in under 5 minutes. You’ll create anindex.html file that streams real-time generated video using the longlive pipeline.
1
Start the server
http://localhost:8000 by default.2
Download models
If not already downloaded:
3
Create index.html
Create a file named
index.html with the following content:4
Open in browser
Open
index.html in your browser. The page will:- Load the
longlivepipeline - Establish a WebRTC connection
- Display real-time generated video based on the prompt
Configuration
Server Options
Environment Variables
TURN Server Credentials
For WebRTC connections that need to traverse firewalls (NAT traversal), TURN servers are used. The server automatically configures TURN credentials when environment variables are set: Using Cloudflare (via Hugging Face):API Endpoints
Health & Info
Pipeline Management
Model Management
WebRTC
Assets
LoRA
Next Steps
Learn how to use the API for specific workflows:Load Pipeline
Load and configure pipelines with custom parameters, LoRAs, and VAE types
Send Parameters
Update prompts, transitions, and settings in real-time during streaming
Receive Video (T2V)
Set up WebRTC to receive generated video from text prompts
Send & Receive Video (V2V)
Transform input video in real-time with bidirectional WebRTC
VACE
Guide generation with reference images and control videos