Skip to main content
This page documents the complete LingBot wire surface: the media tracks it produces, the session lifecycle, every command you can send, and the messages the model emits back. For what LingBot is and a quick start, see the overview.

Tracks

Default resolution is 1664 x 960. There are no inbound tracks; all client → model communication is through commands.

Session lifecycle

LingBot runtime states: WAITING, GENERATING, PAUSED, with start/pause/resume/reset transitions and the set_* commands that take effect in each state
Once the connection reaches ready, the session begins in 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 using reactor.sendCommand(). Setter commands (set_*) take effect at the next chunk boundary. Below are all available commands:

set_prompt

Stores the prompt and re-applies it on the next chunk boundary. Works before start 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.

Complete example

Stage a seed image and prompt, wait for the image to decode, start, then drive the camera.