Tracks
Default resolution is 1664 x 960. There are no inbound tracks; all client → model communication is
through commands.
Session lifecycle
WAITING. start transitions to
GENERATING (provided a prompt and seed image are set); pause moves to PAUSED; resume returns
to GENERATING; reset clears state and returns to WAITING from any state. The
Commands table below lists each command’s preconditions and effects. See
Sessions for the separate connection-level lifecycle
(disconnected → connecting → waiting → ready) the session passes through before reaching the
runtime states above.
When all chunks of a run complete and the session is still started, the server automatically kicks
off the next run with the same prompt and image. Call reset to stop the loop and re-stage with new
conditions.
Commands
Send commands to the model usingreactor.sendCommand(). Setter commands (set_*) take effect at
the next chunk boundary. Below are all available commands:
- set_prompt
- set_image
- movement / look
- set_rotation_speed_deg
- set_seed
- start / pause / resume / reset
set_prompt
Stores the prompt and re-applies it on the next chunk boundary. Works beforestart and
mid-generation for live prompt swaps. Emits prompt_accepted then conditions_ready.Parameters:Messages
LingBot emits the following messages. Every message is delivered as JSON{ "type": "<name>", "data": { … } }.
state payload
state is the single source of truth for driving UI. Subscribe once and treat it as the
authoritative session snapshot; you generally do not need to track individual set_* and
chunk_complete events yourself.