Skip to main content
Transform live video streams in realtime. Insert your imagination into any live video feed, turning passive viewing into active creation. The Video Restyling Realtime API takes a video stream and a prompt, then generates a transformed version of the video based on that prompt with minimal latency.

Model Specifications

The model expects video input with these specifications:
  • Frame Rate: 25 FPS
  • Resolution: 1280x704 (16:9 aspect ratio)

Realtime API

The realtime API uses WebRTC for low-latency video transformation. Clients establish a connection with our inference server, stream video with a prompt, and receive a transformed video stream in return. The connection remains active as long as the input video stream continues, allowing you to change prompts on-the-fly to modify the output video dynamically.

Installation

Basic Usage

Advanced Features

Image Reference

Use a reference image to guide the style transformation. Instead of describing a style with text, you can provide an image that the model will use as a visual reference.
Supported formats: JPEG, PNG, WebP
Image reference works great for capturing specific artistic styles, color palettes, or visual aesthetics that are hard to describe in text.

Dynamic Prompt Management

Connection State Management

Complete Example with Error Handling

WebSocket + WebRTC (Vanilla)

For direct WebSocket communication without the SDK: