Vision Agents uses Stream Video for real-time WebRTC transport by default. External WebRTC transports are supported as well. Most AI providers offer free tiers to get started.
Installation
Quick start
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
model | str | "lucy_2_rt" | Decart model |
initial_prompt | str | "Cyberpunk city" | Style prompt for visual transformation |
initial_image | bytes | str | Path | None | Optional reference image for first connect (bytes, file path, http(s) URL, data URI, or raw base64) |
enhance | bool | True | Whether to enhance the prompt |
mirror | bool | True | Mirror mode for front-facing cameras |
width | int | 1280 | Output video width |
height | int | 720 | Output video height |
api_key | str | None | API key (defaults to DECART_API_KEY env var) |
Dynamic style changes
Update the video style during a call via function calling:Reference images
For models like Lucy that accept a reference image, pass it at construction time and/or swap it atomically with a prompt usingupdate_state:
initial_image and update_state(image=...) accept bytes, a local file path, an http(s) URL, a data: URI, or a raw base64 string.
Next steps
Build a Voice Agent
Get started with voice
Build a Video Agent
Add video processing