Overview
Alongside the video stream, your app and the model exchange data over a real-time channel. This is how you control the model and receive feedback from it while video is generating.- Commands are instructions your app sends to the model. They change what the model is doing in real time.
- Messages are updates the model sends back to your app. They report state, signal events, or push any data the model wants to share.
set_prompt command to change what it is generating, and respond with periodic state messages reporting the current frame number and active prompt.
Commands
A command is a named action with a payload.set_prompt command. A model that accepts camera controls might expose move or rotate commands. The command names, parameter names, and parameter types are all specific to the model.
Check the model’s page under Models to see what commands it supports and what each parameter expects.
Commands can only be sent when the connection is in the
ready state.