Live video & world models
Face swap show
A face swap show (mode: "swap") puts a real performer on camera and streams them as another character: the model replaces how they look (the whole body, not just the face), while their movements, expressions and mouth stay theirs. There is no AI host and no script: a person performs. It is the third kind of live show, next to the selling show and the interactive host.
The stream always says it is AI-generated. The label is part of the stream, drawn by the show's stage, not by the performer's page, so the performer cannot turn it off.
Create a face swap show: POST /v1/live-shows
{
"name": "Friday stream",
"mode": "swap",
"destination_id": "dst_...",
"swap": {
"model": "reactor/xmax-x2-1",
"source_face_consent": true,
"label": {
"text": "AI-generated",
"position": "bottom-left"
}
}
}How it works
Three things run, and you pay for two of them separately:
/live-studio/performer/{run_id}; through the API you build it, or use the same client library it uses.-POST /v1/live-video/sessions). The model is chosen by you from the list in GET /v1/live-shows/options (swap_models).Per second of the session, at that model's own priceswap.price_per_minute_usd in GET /v1/live-shows/pricing)When the show ends (you stop it, the time you set runs out, the performer is away too long, or the server loses it), the model sessions the performer's page opened through Live Streaming Studio are ended with it. If you open the model session yourself through the API, end it yourself (POST /v1/live-video/sessions/{id}/end) or let its heartbeat lapse.
Choosing a model
GET /v1/live-shows/options lists swap_models: only models that are available right now and that the performer page can drive. Each has its price per hour, a measured delay and a short note. The measurements are ours, from one clip and one reference picture (2026-11-25), not a benchmark:
reactor/xmax-x2-1 (X2.1, default)about $6.27 per hourabout 0.5 sGood: same costume, the face drifts a littleBest: mouth and gestures follow closelyvidu/vidu-s2-editing (Vidu S2 Editing)about $18.45 per hourabout 1.2 sBest: matches the reference face, hair and clothesGood: arms and head followA model whose host is unavailable (out of funds, no capacity, no confirmed price) is left out of the list, so a model you chose earlier may not be offered later: pick again. Other real-time editing models exist in the live video catalogue; they are not offered for face swap shows because the performer page cannot drive them yet.
Quickstart
- Create a destination (Twitch, YouTube, ...):
POST /v1/live-destinations, or leavedestination_idout and setpreview: trueto record a file instead. See the guide. - Create the face swap show:
POST /v1/live-showswithmode: "swap", as above.swap.source_face_consentmust betrue. - Go live:
POST /v1/live-shows/{id}/start. Leavemax_minutesout and the show runs until you stop it; give it to end the show by itself after that long. The run starts instarting. The meter does not start until the performer is on air. - Open the performer page: in Live Streaming Studio this is your backstage,
/live-studio/performer/{run_id}. Or callPOST /v1/live-show-runs/{id}/performerfor the room address, the token and the show'sdestination(platform and name, never the stream key;nullfor a preview recording) and build your own page. - Perform. Pick a picture, press Start broadcasting. The backstage offers ready-made characters, outfits and backgrounds in three tabs, or you upload your own; you can switch while the model is running. One picture applies at a time. Our measurements are of character swaps; outfit and background changes are not yet measured. When the model returns a picture the page publishes it; the run becomes
liveand the stream is on air. - Stop:
POST /v1/live-show-runs/{id}/stop, or press End show in the backstage. Billing stops and the model sessions Live Streaming Studio opened are ended.
The easiest way is Live Streaming Studio: /live-studio, then New show and Face swap show. Pick the model from the list (with its price and delay), confirm you may use the character's appearance, set the label and destination, and save. Go live in the show list tells you which channel it will stream to, then opens your backstage. There you see your own camera and what viewers see, the channel, the time on air and the show fee; you change character, outfit, background and voice while on air, and end the show. Nothing is on air until you press Start broadcasting. There is no length to set: the show runs until you end it. Voice: keep your own, or pick an AI voice. It uses the platform's real-time voice changer, billed separately for the time you speak; speech comes back a few seconds later, so the backstage sends the picture about 4.5 seconds late to keep lips and voice together. While an AI voice is selected your microphone never reaches the stream: if the voice changer stops, viewers hear silence. No OBS or other broadcasting software is needed: the stream goes from our servers to the channel.
Try it before you go live
In Live Streaming Studio, Preview on a face swap show opens your camera and runs the show's swap model on it, with the AI label drawn where it will be on the stream. Nothing is streamed and the show fee is not charged, but the model does run: it is billed as a live-video session for the seconds it runs, and it stops by itself after 2 minutes. Opening the page costs nothing; pressing Start preview starts the charge.
There is no preview endpoint for a face swap show in the API (POST /v1/live-shows/{id}/preview answers 409 not_supported): from your own code, open the swap model yourself with POST /v1/live-video/sessions and a short max_duration_seconds.
Doing it from your own page
A custom performer page does four things. The model part uses the same client library as any live-video session:
- Call
POST /v1/live-show-runs/{id}/performerfrom your server (it needs your API key) and give the pagelk_urlandlk_token. The token can only publish a camera and a microphone, as the participantperformer. - Open the swap model with your own key or a browser token:
POST /v1/live-video/sessionswithmodelset toswap_model.id. Connect to it with the host's browser SDK and send it the camera and the character picture (the X2.1 and Vidu snippets are in the live-video docs). - Draw the model's picture onto a 1280×720 canvas at 30 fps and publish
canvas.captureStream(30)to the LiveKit room (livekit-client,source: Camera), and publish the microphone (source: Microphone). Delay the microphone by the model's delay (the table above) so lips and voice line up. - Heartbeat the model session while you perform, and end it when you leave.
The show's stage picks up whatever performer publishes. If the performer is gone for 2 minutes the run ends as abandoned; shorter gaps show a "Be right back" slate and keep billing, because the stream is still on air.
Voice
The swap model changes how the performer looks, not how they sound. The voice that goes on air is the performer's own microphone, delayed to match the model's picture. The show has no voice setting.
Live Streaming Studio's performer page has a Change my voice switch (experimental, off by default) with a pitch slider, plus or minus 8 semitones, that can be changed while on air. It makes your own voice higher or lower; it does not turn it into someone else's, and it is approximate. A page you build yourself can process the microphone however it likes before publishing it.
Sounding like another particular person is not available: it needs a real-time voice converter and the same consent process as a face, and neither is built.
Safety, and what is not allowed
A face swap show can be abused to impersonate someone, so it is deliberately restrictive. This is what the service does and what it asks of you:
invalid_label.swap.source_face_consent: true; the time it was given is stored on the show.pause is refused with not_supported.abandoned when the performer has been away for 2 minutes.Limits and known issues
- Time on air: there is nothing to set: a run started without
max_minuteslasts until you stop it (safety ceiling:swap_max_minutesinGET /v1/live-shows/options; the run readsopen_ended: true). Credit for the show is held 10 minutes at a time, the next block before the last runs out; if your balance cannot cover more, the run ends withcredits_exhaustedand you are never billed past what was held. A model session still has a fixed length (at most itsmax_session_sec, 30 minutes for X2.1 and Vidu; shorter in the backstage when your balance cannot hold that much): open the next one before it ends. The Live Streaming Studio backstage does this for you; with X2.1 it connects the next session first, with Vidu viewers see a short "Reconnecting". - One show at a time per organization, as for every live show.
- Delay: the audience sees the picture about 0.5 to 1.2 s after the performer moves (the model), plus the stream's own delay. Chat answers are not delayed by this: you are live, not a script.
- One performer in frame. The models were tested with one person; a second person entering the frame, fast turns and covering the face are not tested.
- Stalls. A model's picture can stop for a few seconds (seen once in testing). The page then shows "Reconnecting" on the stream and in its log; if it does not come back, Leave and Start again.
- Browsers: Chrome and Edge are tested. The page needs the camera, the microphone and a visible tab.