File size: 971 Bytes
b32b43e a4c1dcd b32b43e a4c1dcd b32b43e a4c1dcd b32b43e a4c1dcd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | ---
title: StreamDiffusion Visual Engine
emoji: 🎨
colorFrom: purple
colorTo: indigo
sdk: docker
app_port: 7860
hardware: a10g-small
pinned: false
---
# StreamDiffusion Real-Time Visual Engine
WebSocket server for real-time AI visual generation during immersive healing sessions.
## Protocol
**WebSocket endpoint:** `wss://<space-url>/ws`
**Client → Server (JSON):**
```json
{
"prompt": "sacred geometry, ethereal light",
"amplitude": 0.3,
"beat": false,
"phase": 1
}
```
**Server → Client:** Binary JPEG frame
## Configuration
| Env Var | Default | Description |
|---------|---------|-------------|
| `MODEL_ID` | `stabilityai/sd-turbo` | Diffusion model |
| `TINY_VAE_ID` | `madebyollin/taesd` | Fast VAE decoder |
| `WIDTH` | `512` | Output width |
| `HEIGHT` | `512` | Output height |
| `NUM_STEPS` | `1` | Inference steps (1 = fastest) |
| `GUIDANCE_SCALE` | `0.0` | CFG scale (0 for SD-Turbo) |
| `JPEG_QUALITY` | `75` | Output JPEG quality |
|