Live Avatar (Beta)
A real-time talking AI avatar in the browser, in beta. Share TensorFactory's machines and pay by the minute, or run a machine of your own and pay by the hour.
Off for now
Live Avatar is switched off for now: no new session starts in either mode, from the console, the API or an assistant (403 not_available). This page stays as its reference for when it returns.
Live Avatar is a talking AI avatar that runs in a web browser. You talk with it and it answers in real time. You can give it a name, a greeting, instructions and knowledge.
Each session runs in one of two modes:
- Shared (
"mode": "shared", the default): your session waits in line for one of TensorFactory's shared machines, then you get a link for one call. $0.10 per minute of call, billed by the second. When no machine is up, one starts for the line, which can take about 10 to 15 minutes. - Your own machine (
"mode": "dedicated"): TensorFactory starts a machine for you alone. It is ready in about 10 to 15 minutes, and its link works for as many calls as you like until the session ends. $1.05 per hour the machine runs, from start-up to shut-down, billed by the second.
Both modes:
- Browser only. A call runs on the page at the session's
join_url. Joining video meetings isn't available yet. - It says it is an AI. The avatar tells people it is an AI avatar.
- See Pricing for what each mode needs to start.
When Live Avatar is back on, start a session from the console. After the rollout you can also start one with the API below, or a shared session from an assistant with the create_live_session tool.
The flow (API, after rollout)
Shared
POST /v1/live/sessions with an optional persona. The answer is 201 with the session's id and status. When a machine is free, status is ready and join_url is set at once.
When status is queued, wait retry_after_s seconds, then GET /v1/live/sessions/{id} again. queue_position is your place in line (1 is next). Repeat until status is ready.
Open join_url in a browser before expires_at (5 minutes after the session became ready). Allow the microphone if the browser asks. The session is live once the page's call starts.
Close the avatar's tab to end the call. Read the session again: it is ended, with its seconds and price_usd.
Your own machine
POST /v1/live/sessions with "mode": "dedicated" and an optional persona. The answer is 201 with status: "provisioning": the machine is starting, and is billed from now. machine_started_at is when it started.
Ask again every retry_after_s seconds (30) until status is ready, in about 10 to 15 minutes. machine_usd_so_far shows its cost so far.
Open join_url and talk. When the call closes, the session is ready again and the same link starts the next call.
End the session with POST /v1/live/sessions/{id}/end when you are done. The machine shuts down and machine_usd shows its charge. It also shuts down by itself after 10 minutes without a call, or when the credit it started with runs out (expires_at).
# 1. Start a session (add "mode": "dedicated" for a machine of your own)
curl https://tensorfactory.ai/v1/live/sessions \
-H "Authorization: Bearer $TENSORFACTORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mode": "shared", "persona": {"name": "Mira", "greeting": "Hi! Ask me anything about our kites.", "instructions": "Be warm and brief.", "knowledge": "We sell three kites: Delta ($40), Box ($55) and Stunt ($90)."}}'
# 2. While it is queued or provisioning: ask again after retry_after_s seconds
curl https://tensorfactory.ai/v1/live/sessions/$ID \
-H "Authorization: Bearer $TENSORFACTORY_API_KEY"
# 3. Open join_url in a browserA ready shared session:
{
"id": "6f1c2a9e-3b7d-4c55-9a1e-2f8d4b6c7e10",
"mode": "shared",
"status": "ready",
"queue_position": null,
"retry_after_s": null,
"join_url": "https://live.piku.dv4.ai/live/6f1c2a9e-3b7d-4c55-9a1e-2f8d4b6c7e10/",
"expires_at": "2026-11-14T10:05:00.000Z",
"price_per_minute_usd": 0.1,
"max_s": null,
"seconds": 0,
"price_usd": 0,
"machine_started_at": null,
"machine_ended_at": null,
"machine_usd": 0,
"machine_usd_so_far": null,
"persona": {"name": "Mira", "greeting": "Hi! Ask me anything about our kites.", "instructions": "Be warm and brief.", "knowledge": "We sell three kites: Delta ($40), Box ($55) and Stunt ($90)."},
"end_requested": false,
"end_reason": null,
"created_at": "2026-11-14T10:00:00.000Z",
"ready_at": "2026-11-14T10:00:00.000Z",
"started_at": null,
"ended_at": null,
"note": "Open join_url in a browser before expires_at, or the session expires and the next one in line gets the avatar."
}join_url is the key to the session: anyone with the link can open it while the session is ready or live. Share it only with the person who should talk with the avatar.
Persona
Every field is optional. Leave persona out for the default avatar, Aria.
| Field | Up to | What it is |
|---|---|---|
name | 40 characters | The name the avatar goes by. |
maker | 60 characters | Who the avatar says made it. |
greeting | 300 characters | The first thing it says. |
instructions | 4,000 characters | How it behaves and what it talks about. |
knowledge | 12,000 characters | Facts it can draw on. |
A field over its limit, an unknown field or a field that isn't text is 400 invalid_request, with field naming it (for example persona.name). The persona is fixed when the session is created. The page at join_url can't change it.
Sessions
| Endpoint | What it does |
|---|---|
POST /v1/live/sessions | Starts a session. Body: {"persona": {...}, "mode": "shared" | "dedicated"} or {} (shared). 201. |
GET /v1/live/sessions/{id} | The session as it stands now. |
POST /v1/live/sessions/{id}/end | Ends it (see Ending). |
GET /v1/live/sessions | Your 20 newest sessions, newest first, with price_per_minute_usd and dedicated_usd_per_hour. |
status | Meaning |
|---|---|
provisioning | Your own machine is starting. retry_after_s is set. |
queued | Shared: waiting in line for a machine. queue_position and retry_after_s are set. |
ready | Open join_url. Shared: before expires_at. Your own machine: any time until it shuts down at expires_at (10 minutes without a call, or the end of your credit). |
live | In a call. expires_at is when the call's time limit runs out. |
ended | Shared: the call closed, with seconds connected and price_usd charged. Your own machine: it shut down, with machine_usd charged and end_reason saying why. |
cancelled | Ended before it started. Shared: nothing charged. Your own machine: its time so far is charged. |
expired | Shared: join_url wasn't opened within 5 minutes. Nothing charged. |
failed | Your own machine didn't start within 20 minutes (end_reason: "failed_start"). Nothing charged. |
Sessions of your own machine also show machine_started_at, machine_ended_at, machine_usd (charged when it ends) and machine_usd_so_far (an estimate while it runs). seconds is the time of all its calls, and max_s the longest it may run, the seconds your balance covered when it started.
The line (shared)
Shared sessions take turns on TensorFactory's shared machines, oldest first. A session becomes ready when a machine is free and it is first in line. A ready session holds its machine for up to 5 minutes. If its link isn't opened by then, it expires and the next session gets its turn. When no machine is up, one is started for the line, which can take about 10 to 15 minutes. The line moves when sessions are read and once a minute.
retry_after_s is an estimate of when to ask again (5 to 60 seconds), not a promise of when your turn comes.
Ending
POST /v1/live/sessions/{id}/end:
- Shared, queued or ready: the session is cancelled. Nothing is charged.
- Shared, live: the call is stopped now, and billed up to that moment. The session shows
end_reason: "ended", thenstatus: "ended"with itssecondsandprice_usdonce the call is reported closed (read it again if the answer is stilllive). - Shared, live, machine unreachable: if the machine can't be reached to stop the call, the session is only marked
end_requestedand the call goes on until it is closed in the browser or its time limit runs out. Send the same request again to retry, or close the avatar's tab. Billing stops when the call closes. - Your own machine: the machine shuts down now, a call in progress stops, and its time is charged. While it is still starting the session is
cancelled, and the time so far is charged too.
Pricing
Shared: $0.10 per minute, billed by the second: a call's connected time is rounded up to the whole second, and every second comes from your credit. Time waiting in line, or with the page open before the call connects, is not billed. A session needs at least one minute of credit ($0.10). Each call has a time limit, max_s, set when the call starts: the seconds your balance pays for, at most 30 minutes. The avatar ends the call at the limit. If a call is lost (the machine neither runs it nor reports it closed), the session ends with end_reason: "lost" and is not charged.
Your own machine: $1.05 per hour, billed by the second from start-up (machine_started_at) to shut-down (machine_ended_at), rounded up to the whole second. Calls themselves cost nothing more. Starting one needs credit for 30 minutes ($0.53), and the machine runs at most as long as your balance covered when it started. It shuts down after 10 minutes without a call. A machine that doesn't start within 20 minutes is not charged. If it stops answering, it is charged up to its last sign of life (end_reason: "lost").
Each session's charge is one entry on Billing, made when it ends.
Errors
The API's usual error shape.
| Status | Type | When |
|---|---|---|
| 400 | invalid_request | A persona field is over its limit or not taken, mode is not shared or dedicated, or the body has another field. |
| 402 | insufficient_credit | Shared: your balance is under $0.10 (one minute), or your credit covers less than 10 seconds when the call starts. Your own machine: your balance covers less than 30 minutes ($0.53), or the time it covered is used up when a call starts. Add credit on Billing. |
| 403 | not_available | Live Avatar is off for now, and the API and the assistant tools don't take it. |
| 404 | not_found | No such session on your account. |
| 409 | live_session_active | Your account already has a provisioning, queued, ready or live session. End it or let it finish first. |
| 429 | queue_full | The shared line is full. Retry after retry_after_s. |
| 503 | unavailable | Live Avatar isn't available right now, or no machine of your own could be started. Nothing is charged. |
Join links are on their own address, live.piku.dv4.ai. The page at join_url answers 404 once the session is not ready or live (queued, provisioning, ended, cancelled, expired, failed or unknown), and, for a shared session, 410 when its 5 minutes to open it have passed. If the call can't start because the machine is in another call, the page shows a 409 busy error and the session stays ready. Try again. If your credit ran out between creating the session and opening it, the call doesn't start (402).