Live shows
Create an AI host, connect a platform, go live, pause and stop, and read what happened. For the concepts and a walkthrough see AI live shows; for how to set up a selling show (product cards, knowledge base, host) see Selling show.
All calls use Authorization: Bearer llmr_sk_live_... against https://videorouter.sh/api/v1 and need the live_show scope, which new keys have. Bodies are JSON. Everything is scoped to your organization: an id from another organization answers 404. Lists return {"object": "list", "data": [...]}.
POST /v1/live-destinationsGET /v1/live-destinations and /{id}PATCH /v1/live-destinations/{id}DELETE /v1/live-destinations/{id}POST /v1/live-productsGET /v1/live-products and /{id}PUT /v1/live-products/{id}DELETE /v1/live-products/{id}POST /v1/live-showsGET /v1/live-shows and /{id}PATCH /v1/live-shows/{id}DELETE /v1/live-shows/{id}Destinations
A destination is where a show's video goes. The stream key is write-only: it is stored encrypted, only its last four characters come back, and it is erased when you delete the destination.
POST/v1/live-destinations
Connect a platform. The key is checked with the platform first. A channel that is already connected (the same stream key on the same server, or for Twitch the same channel) is refused with 409 destination_exists, naming the existing one: use it, or delete it first to connect it again with a new key.
Parameters
platform *stringtwitch, youtube, facebook, trovo, restream, tiktok, kick, instagram, x, linkedin, rumble or custom.stream_key *string8 to 200 printable characters, no spaces. From your platform's stream settings.rtmp_urlstringrtmp:// or rtmps://. Optional for twitch, youtube, facebook, trovo and restream (their default server is used); required for custom and for tiktok, kick, instagram, x, linkedin and rumble, which give you a server address with the key. No credentials or query string in it. The host must be public. For the platforms with a default server it must be that server unless you use custom.labelstring1 to 60 characters. Defaults to the platform name.channelstringTwitch only: the login whose chat the host reads. 3 to 25 letters, digits or _; a leading # is dropped.Example request
{"platform": "twitch", "label": "My Twitch", "channel": "my_channel", "stream_key": "live_123456789_abcdefghijklmnop"}Example response
{"id": "dst_Vq3k8Wl0pYtZ", "object": "live_destination", "platform": "twitch", "label": "My Twitch", "rtmp_host": "live.twitch.tv",
"stream_key_last4": "ab12", "channel": "my_channel", "created_at": "2026-11-24T21:03:11+00:00"}GET/v1/live-destinations
List your destinations.
Example response
{"object": "list", "data": [{"id": "dst_Vq3k8Wl0pYtZ", "object": "live_destination", "platform": "twitch", "label": "My Twitch", "rtmp_host": "live.twitch.tv", "stream_key_last4": "ab12", "channel": "my_channel", "created_at": "2026-11-24T21:03:11+00:00"}, ...]}GET/v1/live-destinations/{id}
Read one destination.
Example response
{"id": "dst_Vq3k8Wl0pYtZ", "object": "live_destination", "platform": "twitch", "label": "My Twitch", "rtmp_host": "live.twitch.tv",
"stream_key_last4": "ab12", "channel": "my_channel", "created_at": "2026-11-24T21:03:11+00:00"}PATCH/v1/live-destinations/{id}
Change a destination: rename it, set or clear its Twitch channel, or replace its stream_key (checked with the platform, like when connecting). Send only what changes. The platform and server cannot change: connect a new destination for that. 409 in_use while a show is live on it; 409 destination_exists if the new key or channel is another destination of yours.
Parameters
labelstring1 to 60 characters.channelstring | nullTwitch only. null clears it.stream_keystringThe new key. Leave it out to keep the current one.Example request
{"label": "Main channel", "stream_key": "live_123456789_newkeynewkeynewkey"}Example response
{"id": "dst_Vq3k8Wl0pYtZ", "object": "live_destination", "platform": "twitch", "label": "Main channel", "rtmp_host": "live.twitch.tv",
"stream_key_last4": "ewke", "channel": "my_channel", "created_at": "2026-11-24T21:03:11+00:00"}DELETE/v1/live-destinations/{id}
Delete a destination and erase its key. 409 in_use while a show is live on it.
Example response
{"id": "dst_Vq3k8Wl0pYtZ", "object": "live_destination", "deleted": true}Products
Your library of product cards, reused by any show. The card is the one in the product card, without script (a script belongs to a shot of a show). A show copies the card when you use it in a shot.
POST/v1/live-products
Create a product. Send a product card; leave out id and one is made for you (p-...). 409 product_exists if you already have one with that id: use PUT to replace it.
Parameters
name *, price *stringAs in the product card.idstringOptional. 1 to 64 characters of letters, digits, _, ., -.script is ignored.Example request
{
"name": "AquaKeep steel bottle",
"price": "19.99",
"selling_points": [
"Keeps drinks cold for 24 hours"
]
}Example response
{"object": "live_product", "id": "aquakeep-24", "name": "AquaKeep steel bottle", "currency": "USD", "price": "19.99", "selling_points": ["Keeps drinks cold for 24 hours"],
"assets": [], "updated_at": "2026-11-24T22:10:05+00:00"}GET/v1/live-products
List your products, newest first.
Example response
{"object": "list", "data": [{"object": "live_product", "id": "aquakeep-24", "name": "AquaKeep steel bottle", "currency": "USD", "price": "19.99", "selling_points": ["Keeps drinks cold for 24 hours"], "assets": [], "updated_at": "2026-11-24T22:10:05+00:00"}, ...]}GET/v1/live-products/{id}
Read one product.
Example response
{"object": "live_product", "id": "aquakeep-24", "name": "AquaKeep steel bottle", "currency": "USD", "price": "19.99", "selling_points": ["Keeps drinks cold for 24 hours"],
"assets": [], "updated_at": "2026-11-24T22:10:05+00:00"}PUT/v1/live-products/{id}
Replace the product with this id (this is how you update one), or create it if you do not have it if you already have one with this id. The body is a product card; id comes from the path. Saving refreshes the copy in each of your shows that uses this product and is not on air (shows_updated says how many), keeping each shot's own script.
Parameters
name *, price *stringAs in the product card.script is ignored.Example request
{
"name": "AquaKeep steel bottle",
"price": "19.99",
"selling_points": [
"Keeps drinks cold for 24 hours"
]
}Example response
{"object": "live_product", "id": "aquakeep-24", "name": "AquaKeep steel bottle", "currency": "USD", "price": "19.99", "selling_points": ["Keeps drinks cold for 24 hours"],
"assets": [], "updated_at": "2026-11-24T22:10:05+00:00", "shows_updated": 1}DELETE/v1/live-products/{id}
Delete a product. Shows that already copied it keep their copy and keep playing.
Example response
{"id": "aquakeep-24", "object": "live_product", "deleted": true}Shows
A show is the configuration of a host. Editing and deleting are refused (409 show_live) while it is on air.
POST/v1/live-shows
Create a show.
Parameters
name *string1 to 100 characters. (On PATCH optional.)modestringprogramme (default), interactive or swap. generative is refused with mode_unavailable.product / productsobject / object[]programme only. One product card, or 1 to 12 shots. A shot is a full card, or {product_id, script} to use a product from your library; a script makes the host read exactly your words (see scripts). Required on create for a selling show. See the product card. Sending products replaces the whole list.minutes_per_productnumber1 to 30. How long the host stays on each product. Default 3.knowledge_qaobject[]Up to 200 {q, a} pairs.personaobjectname (1 to 20 letters; required for interactive), character (interactive only: 20 to 1,500 characters), topics (up to 20 strings).swapobjectswap only. source_face_consent * (must be true when the show is created, see Face swap show), model (default reactor/xmax-x2-1) and label {text, position} (the AI label, 1 to 40 characters, cannot be turned off).voiceobject{provider, voice_id}; provider elevenlabs, minimax or openai. Default: Jessica (ElevenLabs). Not used by swap.hostobject{avatar_id}: a preset, a gallery face or one of your own. Default builtin_claire_v1. See GET /v1/live-shows/options.destination_idstring | nullOne of your destinations, or null for none.previewbooleantrue records a preview file instead of streaming. A show needs a destination_id or preview: true to start.Example request
{
"name": "Summer bottle launch",
"preview": true,
"product": {
"id": "aquakeep-24",
"name": "AquaKeep steel bottle",
"price": "19.99",
"selling_points": [
"Keeps drinks cold for 24 hours"
]
},
"knowledge_md": "# Warranty\n2 year limited warranty.",
"host": {
"avatar_id": "builtin_claire_v1"
}
}Example response
{"id": "shw_QhYlMloIx2Aa", "object": "live_show", "name": "Summer bottle launch", "mode": "programme",
"product": {"id": "aquakeep-24", "name": "AquaKeep steel bottle", "price": "19.99", "currency": "USD"},
"products": [{"id": "aquakeep-24", "name": "AquaKeep steel bottle", "price": "19.99", "currency": "USD"}], "minutes_per_product": 3,
"knowledge_entries": 2, "persona": {"name": "Mia"}, "voice": {"provider": "elevenlabs", "voice_id": "cgSgspJ2msm6clMCkdW9"},
"host": {"model": "boson/higgs-avatar-live", "avatar_id": "builtin_claire_v1"}, "destination_id": null, "preview": true,
"created_at": "2026-11-24T21:51:43+00:00", "updated_at": "2026-11-24T21:51:43+00:00"}GET/v1/live-shows
List your shows. A show that is on air has live_run: {id, status}, so a client that lost its state can find the run again.
Example response
{"object": "list", "data": [{"id": "shw_QhYlMloIx2Aa", "object": "live_show", "name": "Summer bottle launch", "mode": "programme", "product": {"id": "aquakeep-24", "name": "AquaKeep steel bottle", "price": "19.99", "currency": "USD"}, "products": [{"id": "aquakeep-24", "name": "AquaKeep steel bottle", "price": "19.99", "currency": "USD"}], "minutes_per_product": 3, "knowledge_entries": 2, "persona": {"name": "Mia"}, "voice": {"provider": "elevenlabs", "voice_id": "cgSgspJ2msm6clMCkdW9"}, "host": {"model": "boson/higgs-avatar-live", "avatar_id": "builtin_claire_v1"}, "destination_id": null, "preview": true, "live_run": {"id": "lsr_k3F9xQ2mP0aB", "status": "live"}, "created_at": "2026-11-24T21:51:43+00:00", "updated_at": "2026-11-24T21:51:43+00:00"}, ...]}GET/v1/live-shows/{id}
Read one show, including its full config: product, products, knowledge_md, knowledge_qa and the rest of what you sent.
Example response
{"id": "shw_QhYlMloIx2Aa", "object": "live_show", "name": "Summer bottle launch", "mode": "programme",
"product": {"id": "aquakeep-24", "name": "AquaKeep steel bottle", "price": "19.99", "currency": "USD"},
"products": [{"id": "aquakeep-24", "name": "AquaKeep steel bottle", "price": "19.99", "currency": "USD"}], "minutes_per_product": 3,
"knowledge_entries": 2, "persona": {"name": "Mia"}, "voice": {"provider": "elevenlabs", "voice_id": "cgSgspJ2msm6clMCkdW9"},
"host": {"model": "boson/higgs-avatar-live", "avatar_id": "builtin_claire_v1"}, "destination_id": null, "preview": true,
"created_at": "2026-11-24T21:51:43+00:00", "updated_at": "2026-11-24T21:51:43+00:00",
"config": {"product": {...}, "products": [{...}], "knowledge_md": "# Warranty\n...", "knowledge_qa": [], ...}}PATCH/v1/live-shows/{id}
Change a show. Send only what changes; anything you leave out keeps its value. 409 show_live while it is on air.
Parameters (all optional)
name *string1 to 100 characters. (On PATCH optional.)modestringprogramme (default), interactive or swap. generative is refused with mode_unavailable.product / productsobject / object[]programme only. One product card, or 1 to 12 shots. A shot is a full card, or {product_id, script} to use a product from your library; a script makes the host read exactly your words (see scripts). Required on create for a selling show. See the product card. Sending products replaces the whole list.minutes_per_productnumber1 to 30. How long the host stays on each product. Default 3.knowledge_qaobject[]Up to 200 {q, a} pairs.personaobjectname (1 to 20 letters; required for interactive), character (interactive only: 20 to 1,500 characters), topics (up to 20 strings).swapobjectswap only. source_face_consent * (must be true when the show is created, see Face swap show), model (default reactor/xmax-x2-1) and label {text, position} (the AI label, 1 to 40 characters, cannot be turned off).voiceobject{provider, voice_id}; provider elevenlabs, minimax or openai. Default: Jessica (ElevenLabs). Not used by swap.hostobject{avatar_id}: a preset, a gallery face or one of your own. Default builtin_claire_v1. See GET /v1/live-shows/options.destination_idstring | nullOne of your destinations, or null for none.previewbooleantrue records a preview file instead of streaming. A show needs a destination_id or preview: true to start.Example request
{"products": [{"id": "lid", "name": "AquaKeep travel lid", "price": "7.50"}], "minutes_per_product": 4}Example response
the updated show, as aboveDELETE/v1/live-shows/{id}
Delete a show. 409 show_live while it is on air. Its past runs are kept.
Example response
{"id": "shw_QhYlMloIx2Aa", "object": "live_show", "deleted": true}POST/v1/live-shows/{id}/start
Go live. Returns 202 with the run. See what happens when you press start.
Parameters
max_minutesintegerA whole number from 1 to 55. Default 55. The longest the show may stay on air: held from your credits now, and only the seconds actually on air are charged.Example request
{"max_minutes": 20}Example response
{"id": "lsr_k3F9xQ2mP0aB", "object": "live_show_run", "show_id": "shw_QhYlMloIx2Aa", "status": "starting", "max_minutes": 20,
"created_at": "2026-11-24T22:40:01+00:00", "live_since": null, "ended_at": null, "end_reason": null, "error": null,
"billed_seconds": 0, "cost_usd": 0, "reserved_usd": 3.075, "paused": false, "price_per_minute_usd": 0.15375}Refused with 400 destination_required (no destination and not a preview), 400 destination_missing, 400 invalid_max_minutes, 409 already_running, 429 concurrency_limit or 402 insufficient_credits. Nothing is held when it is refused.
Runs
A run is one time a show was on air. While it runs, billed_seconds and cost_usd stay 0: they are set when the run is settled. To show a running total, compute it from live_since and GET /v1/live-shows/pricing.
GET/v1/live-show-runs/{id}
Read a run: status, whether it is paused, and, once it has ended, what it cost.
Example response
{"id": "lsr_k3F9xQ2mP0aB", "object": "live_show_run", "show_id": "shw_QhYlMloIx2Aa", "status": "live", "max_minutes": 20,
"created_at": "2026-11-24T22:40:01+00:00", "live_since": "2026-11-24T22:40:34+00:00", "ended_at": null, "end_reason": null, "error": null,
"billed_seconds": 0, "cost_usd": 0, "reserved_usd": 3.075, "paused": false}POST/v1/live-show-runs/{id}/stop
Stop now. Returns when the run has settled (usually within a second or two), with the final billed_seconds, cost_usd and end_reason: "client". Stopping a run that has already ended returns it as it is.
Example response
{"id": "lsr_k3F9xQ2mP0aB", "object": "live_show_run", "show_id": "shw_QhYlMloIx2Aa", "status": "ended", "max_minutes": 20,
"created_at": "2026-11-24T22:40:01+00:00", "live_since": "2026-11-24T22:40:34+00:00", "ended_at": "2026-11-24T22:52:10+00:00", "end_reason": "client", "error": null,
"billed_seconds": 697, "cost_usd": 1.78, "reserved_usd": 3.075, "paused": false}POST/v1/live-show-runs/{id}/pause
Pause the host: it stops after the line it is saying, the stream shows "Be right back", and chat is not answered until you resume. The stream stays on air and the meter keeps running. Pausing twice is fine. 409 not_live unless the run is on air.
Example response
{"id": "lsr_k3F9xQ2mP0aB", "object": "live_show_run", "show_id": "shw_QhYlMloIx2Aa", "status": "live", "max_minutes": 20,
"created_at": "2026-11-24T22:40:01+00:00", "live_since": "2026-11-24T22:40:34+00:00", "ended_at": null, "end_reason": null, "error": null,
"billed_seconds": 0, "cost_usd": 0, "reserved_usd": 3.075, "paused": true}POST/v1/live-show-runs/{id}/resume
Resume a paused host: it carries on from where it was.
Example response
{"id": "lsr_k3F9xQ2mP0aB", "object": "live_show_run", "show_id": "shw_QhYlMloIx2Aa", "status": "live", "max_minutes": 20,
"created_at": "2026-11-24T22:40:01+00:00", "live_since": "2026-11-24T22:40:34+00:00", "ended_at": null, "end_reason": null, "error": null,
"billed_seconds": 0, "cost_usd": 0, "reserved_usd": 3.075, "paused": false}POST/v1/live-show-runs/{id}/performer
A face swap show's pass for the performer's browser: the LiveKit room address and a token that can only publish a camera and a microphone, plus what the page needs to know (the label and the swap model to open). 409 not_a_swap_show for any other show, 409 run_ended once the run has ended.
Example response
{"object": "live_show_performer", "run_id": "lsr_...", "lk_url": "wss://....livekit.cloud", "lk_token": "eyJ...", "room": "ls-lsr_...", "identity": "performer", "expires_in": 28800, "mock": false,
"publish": {"width": 1280, "height": 720, "fps": 30}, "label": {"text": "AI-generated", "position": "bottom-left"},
"destination": {"id": "lsd_...", "platform": "youtube", "label": "My YouTube channel"},
"swap_model": {"id": "reactor/xmax-x2-1", "open_with": "POST /v1/live-video/sessions", "max_session_sec": 1800}}GET/v1/live-show-runs/{id}/events
What the host did: a log, oldest first. Poll with after set to the last_id you got last.
Query parameters
afterintegerReturn events with an id greater than this. Default 0.limitinteger1 to 500. Default 200.Example response
{"object": "list", "last_id": 9, "data": [
{"id": 3, "ts": "2026-11-24T22:40:28+00:00", "kind": "prepared", "data": {"lines": 18, "cached_answers": 41, "seconds": 27.4}},
{"id": 4, "ts": "2026-11-24T22:40:34+00:00", "kind": "live", "data": {"platform": "twitch", "ready_after_s": 33.1}},
{"id": 8, "ts": "2026-11-24T22:41:50+00:00", "kind": "comment", "data": {"user": "ana", "text": "is it dishwasher safe?", "outcome": "answered",
"kind": "answer", "speech": "Hand wash is recommended.", "source": "cache", "needs_human": false, "answer_wait_s": 3.1}}]}scriptvariants (the spoken lines of each script; a shot with your own script has exactly one, your lines), fallback (which were built straight from the card), products. Written before going on air.preparedlines, cached_answers, seconds: how much was prepared and how long it took.liveplatform (twitch, youtube, custom or preview) and ready_after_s: the show is on air.commentA viewer message and what happened to it. outcome is answered, or skipped: ..., ignored: ..., dropped: ... with the reason. For an answer: speech, source (cache, kb or synthesised), kb_sources, kb_miss, and needs_human: true when the host could not answer, which is your cue to add the answer to the knowledge base.paused, resumedThe host was paused or resumed.previewurl: the recording of a preview run. The link works for 24 hours.error, notemessage. An error never contains your stream key. A note such as Left out a line: ... says a line the host wrote was not supported by the product card and was not spoken; the show carries on.endedreason, cycles, comments.GET/v1/live-shows/{id}/runs
A show's runs, newest first (up to 50).
Example response
{"object": "list", "data": [{"id": "lsr_k3F9xQ2mP0aB", "object": "live_show_run", "show_id": "shw_QhYlMloIx2Aa", "status": "live", "max_minutes": 20, "created_at": "2026-11-24T22:40:01+00:00", "live_since": "2026-11-24T22:40:34+00:00", "ended_at": null, "end_reason": null, "error": null, "billed_seconds": 0, "cost_usd": 0, "reserved_usd": 3.075, "paused": false}, ...]}Options, pricing and knowledge preview
GET/v1/live-shows/options
What a show can be set up with. Free.
Example response
{"object": "live_show_options",
"modes": [{"id": "programme", "available": true, "description": "..."}, {"id": "interactive", "available": true, ...}, {"id": "generative", "available": false, ...}],
"faces": [{"id": "avatar_3e3ce6...", "name": "Mei", "gender": "f", "source": "gallery", "preview_url": "/assets/live-hosts/mei.jpg"}, ...,
{"id": "builtin_claire_v1", "name": "Claire", "gender": "f", "source": "preset", ...}, {"id": "avatar_...", "name": "Brand host", "source": "own", ...}],
"voices": [{"key": "jessica", "name": "Jessica - warm, upbeat", "provider": "elevenlabs", "voice_id": "cgSgspJ2msm6clMCkdW9", "gender": "f", "sample_url": "/assets/live-voices/jessica.mp3"}, ...],
"voice_providers": ["elevenlabs", "minimax", "openai"],
"limits": {"max_products": 12, "max_knowledge_chars": 60000, "max_knowledge_qa": 200, "min_minutes": 1, "max_minutes": 55, "default_minutes": 55,
"max_open_runs_per_organization": 1, "max_character_chars": 1500, "max_topics": 20, "minutes_per_product": {"min": 1, "max": 30, "default": 3}}}preview_url and sample_url are paths on https://videorouter.sh.
GET/v1/live-shows/pricing
What a live minute costs.
Example response
{"object": "live_show_pricing", "price_per_minute_usd": 0.1196, "price_per_hour_usd": 7.176,
"billing": "a flat per-minute price for the seconds the show is on air, plus the voice the show generates (charged by use at the rates below), plus the language-model tokens it uses, billed to you as chat requests at the normal chat price",
"price_per_second_usd": 0.00199,
"variable": {"voice": [{"voice": "minimax/speech-02-turbo", "usd_per_second_of_speech": 0.00117}, ...],
"ai_answer_usd_approx": 0.00055, "note": "..."},
"hold": "max_minutes x the per-minute price, plus 1.50 USD for the variable part, is held at start; only what was used is charged and the rest is released",
"variable_hold_usd": 1.5, "provisional": true}The per-minute price covers the avatar and the stream while you are on air; voice is charged on top at the listed rates, and the language-model tokens are billed to you as ordinary chat requests (they appear in your request log as api_live / studio_live, not in the run's charge). provisional: true means the rates will be re-checked; do not hard-code the numbers. When a run ends, GET /v1/live-show-runs/{id} returns cost_breakdown with the on-air charge and each voice line; language-model lines are listed with billed_separately: true.
POST/v1/live-shows/knowledge/preview
How a knowledge base will be read, and which entries a question would look at. Makes no model call, is free, and saves nothing.
Parameters
knowledge_mdstringUp to 60,000 characters.knowledge_qaobject[]Up to 200 {q, a} pairs.questionstringUp to 300 characters. Optional: also return the matching entries.Example request
{"knowledge_md": "# Warranty\n2 year limited warranty.\n\n# Colors\nBlue and green.", "knowledge_qa": [{"q": "Dishwasher safe?", "a": "Hand wash."}], "question": "what colors does it come in"}Example response
{"object": "live_show_knowledge_preview", "entries": [{"id": "kb1", "title": "Warranty", "chars": 28, "source": "text", "excerpt": "2 year limited warranty."},
{"id": "kb2", "title": "Colors", "chars": 15, "source": "text", "excerpt": "Blue and green."},
{"id": "qa1", "title": "Dishwasher safe?", "chars": 10, "source": "qa", "excerpt": "Hand wash."}],
"total_chars": 85, "max_chars": 60000, "read_whole": true, "matches": [{"id": "kb2", "title": "Colors", ...}]}read_whole is true when the knowledge base is small enough (6,000 characters) to be given to the model whole; then matches is informational, because the model reads everything. matches is empty when no entry shares a word with the question: the host will most likely say it does not have that detail.
POST/v1/live-shows/generate-script
Have a script written for one product, in a style and for a length of time. Saves nothing: put the result in a shot's script. The model call is billed to your organization like a chat request. Every line is checked against the card; a line it does not support is dropped (dropped). At most 60 per hour per organization.
Parameters
product *objectA product card with at least a name and a price. The model uses only the facts on it (and the captions of its pictures).minutesnumber0.5 to 30, default 3: how long the host stays on this product. The script is written for about that much speech (about 144 words a minute), up to 900 words.Example request
{"product": {"name": "AquaKeep steel bottle", "price": "19.99", "selling_points": ["Keeps drinks cold for 24 hours"]}, "style": "quick_pitch", "minutes": 3}Example response
{"object": "live_show_script", "model": "...", "style": "quick_pitch", "minutes": 3.0, "lines": 34, "words": 421, "estimated_minutes": 2.9,
"script": "Hi everyone, welcome in.\nToday I want to show you the AquaKeep steel bottle.\n...", "dropped": []}script is one sentence per line, ready for a shot's script. estimated_minutes is how long the host takes to read it. dropped lists lines left out because the card does not support them. Errors: 400 invalid_product, 400 invalid_minutes, 429 script_rate_limited, 502 script_failed (the model was down, or too little of what it wrote could be used: try again).
POST/v1/live-shows/import-text
Paste text you already have (a product page, a spec sheet, policies, a list of common questions): a model fills in the product cards and the knowledge entries. Saves nothing: you get the result back to review, correct and then send to POST /v1/live-shows.
Parameters
textstringUp to 20,000 characters: one product or one document at a time.Example request
{"text": "AquaKeep Steel Bottle 24 oz - $19.99 (was $29.99). Keeps drinks cold for 24 hours. Only 42 left. 30-day returns. Every bottle has a 2 year limited warranty."}Example response
{"object": "live_show_import", "model": "...", "products": [{"name": "AquaKeep Steel Bottle 24 oz", "currency": "USD", "price": "19.99", "compare_at_price": "29.99", "stock": 42,
"selling_points": ["Keeps drinks cold for 24 hours"], "returns": "30-day returns", ...}],
"knowledge_md": "# Warranty\nEvery bottle has a 2 year limited warranty.", "knowledge_entries": 1, "warnings": []}The model reads the text as data and is told to use only what it says. Then every number in the result (price, original price, stock, offer price, and any number inside a selling point, spec, answer or policy) is checked against your text, and anything that is not in it is dropped and listed in warnings. Cards come back without an id, and a card with no price in the text comes back without a price: add what is missing before you create the show. The call is billed to your organization like a chat request (a few thousand tokens). At most 30 imports per organization per hour.
Objects
The run object
idlsr_...statusstarting, live, stopping or ended.pausedtrue while the host is paused. Always false once ended.max_minutesThe cap you asked for.created_at, live_since, ended_atISO 8601. live_since is when the meter started; null until the show is on air.end_reasonclient, max_duration, finished, host_error, platform_rejected, abandoned, credits_exhausted. null until ended.errorA message when it ended on a failure. Never your stream key.billed_seconds, cost_usdSet when the run is settled. 0 while it runs, and 0 for a run that never reached the air.reserved_usdWhat was held at start.price_per_minute_usdOnly on the start response: the rate this run is charged at.The product card
Fields, limits and examples are in Selling show.
Errors
Errors are {"error": {"message", "type", "code"}}. The ones specific to live shows:
missing_scope403The key lacks the live_show scope (error type insufficient_scope).invalid_rtmp_url400Not rtmp:///rtmps://, has credentials or a query string, is not the platform's server for twitch/youtube, does not resolve, or is not a public address.invalid_mode, mode_unavailable400mode is not one of the modes, or is generative, which is not available yet.invalid_product400product/products is missing for a selling show, has more than 12 cards, a card does not validate (the message names the field: products[1]: price: ...), two cards share an id, or a shot's product_id is not one of your products.product_exists409POST /v1/live-products with an id you already have. Use PUT to replace it.invalid_minutes400minutes (generate-script) is not a number.script_rate_limited429More than 60 generated scripts in an hour for your organization.script_failed502The script could not be written right now, or too little of it could be used. Try again, or write it yourself.destination_exists409This channel is already connected (same stream key on the same server, or the same Twitch channel). The message names the existing destination.invalid_knowledge400knowledge_md is over 60,000 characters, or knowledge_qa is not up to 200 pairs of non-empty q and a.source_face_consent_required400A face swap show was created without swap.source_face_consent: true.invalid_swap_model, swap_model_unavailable, invalid_label, invalid_swap400A swap field is wrong: a model the performer page cannot drive (or one that is not available right now), the label, or an unknown field.not_a_swap_show409/performer was called for a run of a show that is not a face swap show.not_supported409A face swap show cannot be paused: its host is a real person.invalid_persona400persona.name is not 1 to 20 letters, or an interactive show lacks a name or a character of at least 20 characters, or character/topics are too long.invalid_voice400voice.provider is not elevenlabs, minimax or openai, or voice_id is not 1 to 80 characters of letters, digits, _, -, :.invalid_host400host.avatar_id is not a preset, a gallery face or one of your own.invalid_destination400destination_id is not one of your destinations.invalid_max_minutes400max_minutes is not a whole number from 1 to 55.destination_required400The show has no destination and is not a preview.destination_missing400The show's destination was deleted. Set another.insufficient_credits402Your credits cannot cover max_minutes. The message says how much it can cost. Top up, or start with fewer minutes.already_running409This show already has a run.concurrency_limit429Your organization already has 1 show(s) on air.show_live409The show is on air: stop it before changing or deleting it.in_use409A show is live on this destination: stop it before deleting the destination.not_live409The run is not on air, so it cannot be paused or resumed.invalid_request_error_field400A field that has no code of its own is invalid (name, minutes_per_product, ...). The message says which.An id that is not yours, or does not exist, answers 404. Content you send as a product, persona or knowledge base is not moderated at save time; what the host says is checked as it is spoken (see what the host will and will not do).