Send Parameters
After establishing a WebRTC connection, you can send real-time parameter updates via the data channel. This allows dynamic control of generation without reconnecting.Overview
Parameters are sent as JSON messages through the WebRTC data channel. Updates take effect on the next chunk that is generated.Setting Up the Data Channel
The data channel is created when establishing the WebRTC connection:Sending Parameter Updates
Available Parameters
Prompts
Control what is being generated:| Parameter | Type | Default | Description |
|---|---|---|---|
prompts | array | - | Array of { text: string, weight: number } |
prompt_interpolation_method | string | "linear" | "linear" or "slerp" for blending |
Prompt Transitions
Smoothly transition between prompts over multiple frames:| Parameter | Type | Default | Description |
|---|---|---|---|
transition.target_prompts | array | - | Target prompts to transition to |
transition.num_steps | int | 4 | Frames to transition over (0 = instant) |
transition.temporal_interpolation_method | string | "linear" | "linear" or "slerp" |
Denoising Steps
Control quality vs speed tradeoff:| Parameter | Type | Description |
|---|---|---|
denoising_step_list | array | Descending timesteps (e.g., [1000, 750, 500]) |
Noise Control
| Parameter | Type | Range | Description |
|---|---|---|---|
noise_scale | float | 0.0-1.0 | Manual noise amount |
noise_controller | bool | - | Enable automatic noise adjustment |
Cache Control
| Parameter | Type | Description |
|---|---|---|
manage_cache | bool | Auto cache management |
reset_cache | bool | Force cache reset (one-shot) |
Playback Control
LoRA Scale Updates
Update LoRA adapter scales at runtime (requireslora_merge_mode: "runtime_peft" at load time):
VACE Parameters
Control strength of visual conditioning:Spout (Windows)
Enable Spout output for sending frames to external applications:Initial Parameters
You can also send initial parameters when establishing the WebRTC connection:See Also
Receive Video
Set up WebRTC connection
VACE
Reference image conditioning
Load Pipeline
Configure pipeline at load time
Spout Guide
Using Spout for external apps