Real-time
Live video & world models
Some video models are not “submit a prompt, get a clip.” An interactive world model
holds a GPU for you while you steer it — walk around, change the scene, give it instructions — and streams
the result live. /v1/live-video/sessions opens one of those sessions and bills it
per second the GPU is held.
VideoRouter is the session broker, not the video pipe. It checks your key and credits, asks the host for a short-lived credential, and returns it to you.
Your browser or app then connects directly to the host with the host’s own SDK — the video never passes through our servers, and the host API key never reaches your browser.
Two hosts keep us in a thin control loop so that what you pay matches what actually ran:
- Decart Lucy: the SDK’s signaling socket goes through us.
- Reactor: you tell us which session your browser created (see Hosts & metering).
We meter the session and settle it when it ends.
Prefer a client library? There are Python and JavaScript SDKs — see the SDK overview.
AvatarModel). Two models want infrastructure of your own, because the host only renders the character and you supply the room and the voice: boson/higgs-avatar-live needs a LiveKit Cloud project (the avatar joins your room), and vidu/vidu-s2-avatar-component needs your own RTC channel (Alibaba, Tencent, Agora or Volcano Engine). runway/characters and heygen/liveavatar also run on LiveKit, but the host runs the room (and, for LiveAvatar, the whole conversation) and you just join it with the credentials we return.
GET /v1/live-video/models lists only models you can book, each with its price, and a model we cannot price yet is not listed and cannot be started.
Happy Oyster is served by Reactor and billed per second the session is ready, including the 30–120 s it takes to build a world inside the session — there is no separate world fee, so budget roughly build time plus travel time (adventure travel is at most 2 min, directing 3 min). A few models also carry a minimum billed time (min_billed_seconds).
Quote a session before you book with POST /v1/pricing/estimate.
The browser snippet below has not been run end to end against a live session yet.
1. Open a session (your server)
from videorouter_live import LiveVideo
lv = LiveVideo(api_key="llmr_sk_live_...") # or set VIDEOROUTER_API_KEY
# On YOUR server: open a session. The block heartbeats in the background and settles on exit.
# The world is built inside the session by your browser (see step 2); that time is billed too.
with lv.session("reactor/happy-oyster-adventure", max_duration_seconds=300) as s:
# {"jwt": "...", "base_url": "...", "model": "...", ...} - returned once; hand it to the browser
send_to_browser(s.connect)
wait_for_user_to_finish()
# Settled on exit, even if your code raised.
print(s.status, s.billed_seconds, s.cost_usd, s.end_reason) # ended 41 ... client
connect is returned once, in the response that created (or first saw ready) the session. It is a
short-lived credential and is deliberately not stored or re-served — if you lose it, end the session and open a new one.
2. Stream it (your browser)
Hand connect to the host’s SDK. For Happy Oyster that is
Reactor’s JavaScript SDK.
Each host has its own SDK and its own control vocabulary (movement, instructions, prompts, pause/rewind) — we do not wrap them.
import { Reactor } from "@reactor-team/js-sdk";
// `connect` is what your server got back from VideoRouter (connect.jwt is locked to this one model). Never ship your llmr_sk_ key.
const reactor = new Reactor({ modelName: connect.model, jwt: connect.jwt });
await reactor.connect();
// Tell VideoRouter which Reactor session this is, so ending the booking ends exactly that session and you pay
// Reactor's own record of it (POST connect.host_session_path with a live-video token).
// Then build or attach a world and steer it with Reactor's Happy Oyster commands:
// createWorld() / attachWorld(), then move / look / interact (adventure) or instruct / pause / resume / rewind (directing).
// https://docs.reactor.inc/model-api-reference/happy-oyster/overview
Models
odyssey/odyssey-2-proWorld · steer in browser (pricing soon)150 s720pdecart/lucy-2.5Real-time edit of a live stream600 s720pdecart/lucy-2.6/falReal-time edit · plain WebRTC signaling600 s720pdecart/lucy-2.5/falReal-time edit · plain WebRTC signaling600 s720pdecart/lucy-2.6Real-time edit of a live stream600 s720pdecart/lucy-2.1Real-time edit of a live stream600 s720pfal/lucy-vton-2.1-webrtcReal-time try-on · plain WebRTC signaling600 s720pdecart/lucy-vton-3.5Real-time edit of a live stream600 s720pdecart/lucy-vton-3.6Real-time edit of a live stream600 s720pdecart/lucy-restyle-2Real-time edit of a live stream600 s704pgoogle/genie-4World · steer with keys over a JSON socket120 s720pdecart/oasis-3-previewWorld · server-driven (not bookable yet)600 s768x512reactor/heliosReal-time video generation1800 s768preactor/longlive-v2Real-time video generation1800 s704preactor/sana-streamingReal-time edit of a live stream1800 s704preactor/eden-liveReal-time edit of a live stream1800 s704pxmax/x2.1Real-time edit of a live stream1800 s1080pxmax/x2.0Real-time edit of a live stream1800 s832preactor/x2Real-time edit of a live stream1800 s832preactor/xmax-x2-1Real-time edit of a live stream1800 s832preactor/vidu-s2-editing-reactorReal-time edit of a live stream1800 s720preactor/happy-oyster-adventureWorld · steer in browser900 s720preactor/happy-oyster-directorWorld · steer in browser900 s480p / 720preactor/lingbotWorld · steer in browser1800 s960preactor/lingbot-world-2World · steer in browser1800 s960preactor/visko-orbis-stableReal-time video generation900 s480preactor/visko-orbis-dynamicReal-time video generation900 s480preactor/fast-h3-omniReal-time video generation900 s768preactor/fast-h3Real-time video generation900 s768preactor/h3-reference-turboReal-time video generation900 s768preactor/ltx2Real-time digital character · voice chat300 s352prunway/charactersReal-time digital character · voice chat1800 s1088x704vidu/vidu-s2-avatarReal-time digital character · voice chat1800 s720pvidu/vidu-s2-avatar-componentReal-time digital character · your own RTC channel1800 s720pheygen/liveavatarConversational avatar · join over LiveKit120 s720ptavus/cviConversational video persona · AvatarModel30 min720panam/caraConversational persona · AvatarModel3 min720psimli/trinity-2Speaks the audio you send · AvatarModel30 min768x768vidu/vidu-s2-editingReal-time edit of a live camera stream1800 s720pboson/higgs-avatar-liveReal-time avatar · joins your LiveKit room3600 s480x640 / 640x480nuance/nuance-liveReal-time AI persona · video call over LiveKit (pricing soon)1800 s720pLooking for a face you can talk to? See Live avatars for how to choose between HeyGen LiveAvatar, Tavus, Runway and Vidu, with an AI-interviewer recipe.
Lifecycle & billing
waitingThe host is building a world (Happy Oyster: roughly 30–120 s). Nothing is metered. Poll GET until it flips.readyA host session exists and you have credentials. The meter runs every second until the session ends, including idle seconds.endedSettled. billed_seconds, cost_usd and end_reason are final.- Several hosts. A model served by more than one host (Lucy 2.5 / 2.6 on Decart and fal) can fall back to the other at creation if the first cannot open the session; the response says which host served it. See Hosts & fallback.
- Hold, then settle. Opening a session holds
max_duration_seconds × price_per_secondagainst your credits (402if you can’t cover it). Ending it debits the real cost and releases the rest of the hold. - What you’re billed. Whole seconds, the larger of the host’s own reported duration and our measured ready→end time, never more than your cap on our side. Never the client’s claim. Vidu is the exception: its meter starts only when your browser’s control connection is acknowledged (not while the session is being set up) and is exact, so for Vidu we bill the host’s own figure — a session you opened but never started streaming costs $0.
- A session that never became ready costs $0 and releases its whole hold — except that a world build you started still owes its world fee (the world is built and its
world_idis yours to reuse); a build that fails is free. - Replays. Where the host composes a replay video,
recording_urlis populated on the ended session and mirrored to our storage.
Heartbeat
Call POST .../heartbeat about every 5 s. What the beat does depends on the host:
- Happy Oyster: the host key lives with us, so the beat is forwarded to the host.
- Odyssey, Vidu, Boson and Reactor: the beat is purely our liveness signal (Vidu’s own control connection is the browser’s business; Boson’s media runs in your LiveKit room).
- Decart: needs none while its stream is connected — the relayed socket is the signal — but a session you booked and never connected to is released after about 40 s.
If beats stop, we settle the session at the host’s own timeout — a forgotten tab costs at most the silence window, not the whole cap.
Hard cap
Every session ends at max_duration_seconds (default and ceiling are per model, below; Decart needs at least 10 s). How the cap is enforced depends on the host:
- Vidu: has no duration setting of its own, so we hang the live up at your cap, from our servers, even while your browser is still connected. We do the same when your heartbeats stop. To do it we take over the control connection: your page receives
CONN_REPLACED(a type103message with the code inpayload.error.code) and the socket closes with code4001. Noforce_hangup(type6) follows. TreatCONN_REPLACEDas the end of the session, the same as type6: leave the RTC channel, call.../end, and do not reconnect.videorouter-live0.4.1 and later does this for you withViduAvatarModelandViduEditingModel; if you use the real-time editing interface, end the session whenonStatereportsended. - Decart: we hold the signaling socket. Ending the session (or closing the stream) stops Decart’s generation within about a second, and what you pay is the seconds Decart reports — a session that never streams is free.
Pass host_travel_id to /end to settle on the host’s authoritative duration and to get a replay.
Xmax X2: real-time video editing
xmax/x2.1 and xmax/x2.0 (and the same models on Reactor, reactor/xmax-x2-1 and reactor/x2) edit a live camera or video stream from a prompt and an optional reference image. Upload reference images to VideoRouter with POST /v1/uploads, never to a model host. The X2 integration guide covers browser tokens, image upload, one JavaScript interface for both hosts, preset modes, Xmax-only features and errors.
Reactor: tell us your session
Your browser creates the Reactor session itself with connect.jwt, and Reactor keeps a session running (and billing) after its client disappears.
- Report it. Right after you connect, send
POST /v1/live-video/sessions/{id}/host-sessionwith{"session_id": reactor.getSessionId()}(Python:reactor.session_id). - We end it. Ending the session — or the cap, or silence — then ends that Reactor session from our side, and you pay Reactor’s own record of how long it ran. A booking you never connect is free. If that record can’t be read yet, the session reads
settlingand keeps its hold while we retry; if it is still unreadable 6 hours after your cap, it is settled on our own timer. - Connect promptly. Connect within about 60 s of booking (
connect.connect_within_seconds). - Several sessions at once. If you run several sessions of one model at once and do not report them, we cannot tell them apart: none is ended early and each is billed its full booked duration.
Eden Live: plain WebRTC
These models answer with connect.protocol: "fal-wma". No vendor SDK: build an RTCPeerConnection with connect.ice_servers, open a data channel named control, gather every ICE candidate, and send your one offer to POST /v1/live-video/sessions/{id}/offer. Video and the JSON control messages then run straight between your browser and the host. In the JavaScript SDK, RealtimeEditModel drives the two Eden video models and WorldModel drives the worlds; each model page has the browser code.
- Close the peer connection to stop. Call
pc.close(), then/end. We stop the host’s heartbeat on/end, shortly before yourmax_duration_seconds, or if your heartbeats to us stop; billing ends about 10 s after the last one. A connection bills at least 10 s. - Settling. You are billed what the host’s own ledger records for your connection (plus our fee). After
/endthe session readssettlinguntil that record is posted, usually within a minute. The hold, and the session’s place in your open-session limit, stay until then. We never charge an estimate: if the host’s record has not appeared after 24 hours, the hold is released and you pay nothing. - One connection per session. To reconnect, open a new session. A session you never send an offer for is free; once the host has accepted your offer it bills at least 10 s, even if the connection never comes up.
Options
options accepts exactly these keys, per host (Decart takes speed, Vidu, Boson, Runway, Nuance, LiveAvatar, Tavus and Anam take session_params only, Odyssey takes none — its prompt and image go to the SDK in the browser); anything else is a 400.
worldObject. Not used by the Happy Oyster rows now offered (Reactor builds the world inside your session). Kept for hosts that build a world before a session: build a new world on the host first (prompt, perspective, first_frame_image_url, … — passed through to the host). The session starts waiting. Cannot be combined with the two below.world_idString. Reuse a world you built earlier; the session is ready immediately.session_paramsObject. Forwarded verbatim to the host’s session call on hosts that take one. Vidu: required — the avatar takes avatar (persona and image_uri required; voice, greeting_instruction, farewell_enabled, persona_enhance optional), call_mode (video or audio), voice_model, audio, vad, llm, idle_motion and idle_timeout_seconds; editing takes image_url (required) and editing_type; the component avatar takes image_uri (required) and rtc_info (see Component avatar). Images are http(s) URLs or data:image/ URIs. Boson Higgs Avatar: required — transport (your LiveKit room, required; see Higgs Avatar), avatar_id (a builtin_* preset, default builtin_claire_v1) and output (480x640 default, or 640x480). Runway Characters: optional — avatar (one of Runway’s preset avatars: game-character, music-superstar, game-character-man, cat-character, influencer, tennis-coach, human-resource, fashion-designer, cooking-teacher; default music-superstar). Each preset is a fixed persona: Runway accepts no personality or opening line for it. Custom avatars are not available. HeyGen LiveAvatar: optional — prompt (the persona, up to 10,000 characters), opening_text, language, avatar_id and voice_id (public LiveAvatar ids only), quality and llm_model (see HeyGen LiveAvatar below). Saved personas: for LiveAvatar, Tavus and Anam, persona_id loads a persona saved with POST /v1/live-avatar/personas; keys you name in the session win over it (see Live avatars). Anam Cara: optional — prompt (up to 20,000 characters), opening_text, language, avatar_id (an Anam stock avatar or one of your own), voice_id (a stock voice) and llm_id (see Live avatars). The response's connect holds a session_token that our SDK’s AvatarModel starts the call with (valid for 2 minutes); Anam ends the call at your cap and meters only while the persona streams. Simli Trinity-2: optional — face_id (one of its stock faces), streaming_width / streaming_height (512–1920, as 1:1, 16:9 or 9:16), handle_silence and max_idle_seconds. It speaks the audio you send; drive it with AvatarModel. Tavus CVI: optional — prompt (the system prompt, up to 20,000 characters), greeting, languages (a list of codes such as ['en', 'es']), face_id (a Tavus stock face; default Luna) and audio_only. The response's connect holds conversation_url and meeting_token for a Daily client, and room_url for a page Tavus hosts; Tavus starts its meter when the room is created and closes one nobody joins after 90 s. Nuance Live: optional — persona_id (sam default, sonia or mira), system_prompt (who the persona is, up to 64,000 characters; English only), expressiveness (0–2, default 1), timezone (IANA, so the persona knows the local time) end_user_id (your id for the person; hashed before it reaches the host), green_screen (the persona over solid #00FF00) and interface_setup — Nuance’s own session settings, forwarded as minted: delegation (client, responses with your tools, or none), video.input.camera and runtime_tools (stay_quiet, end_call, call_time). The response’s connect holds the LiveKit room (livekit_url, token); join it with livekit-client, publish the microphone, and exchange Nuance Live events on the nuance_live data topic (the JavaScript SDK and Python SDK do this for you). Mint warnings (tools the session will run without) are in connect.warnings. Any other key is a 400.speedstandard (default) or fast. Decart Lucy 2.5 / VTON only — fast bills at 2× the standard rate. The tier is fixed when you book: VideoRouter pins it on the signaling socket, so a standard session cannot be run as fast.Prompts in options.world and a Vidu avatar’s persona and greeting go through the same content moderation as video and image requests. Live steering you send straight to the host afterwards is between you and the host — we cannot see it.
Go deeper
Hosts & fallback
How each host is metered (Decart Lucy, Lucy on fal, Reactor), how to fall back between hosts, and what changed on 2026-11-14.
Bring-your-own avatars
Higgs Avatar in your LiveKit room and the Vidu component avatar on your own RTC channel. (Managed avatars: see Live avatars.)
API reference
Every endpoint, parameter and error of /v1/live-video.
SDKs
Python and JavaScript clients; one model class per host.