
Reactor Runtime handles all the infrastructure for you. Define your model, mark methods with
@command to create your input schema, and your model becomes a real-time API that anyone can
interact with. We handle the networking, streaming, and session management. You focus on your ML
code.

start_session() method. Your model generates frames
continuously while accepting real-time commands. When the user disconnects, cleanup runs and
the model waits for the next user. Weights stay loaded.

@command decorators define the schema. Clients send inputs that match this schema.
The model reacts to those inputs and emits video. All in real time.

The Guide
This guide walks you through the model lifecycle:Model Instancing
How models are loaded and instantiated, with weights staying in memory across sessions.
Start the Guide
Begin with Model Instancing to learn how your model’s lifecycle starts.
