Audio call hosts API: setup and billing
Voice-only calls between your users and verified hosts. It is the Live Hosts API with one field changed, microphone only, and its own per-minute rate. The app can start it with the App Key alone; a server is optional.
What changes for audio
The Live Hosts API is launching now and invite-only. It is off for every account until we switch it on: ask support (console → Support) or contact us, and we turn it on for approved apps. Availability of hosts varies by time of day.
Ask for the audio type when you start the call: from the app with the App Key (no backend), or from your own server with "type": "audio" on POST /v1/live-hosts/calls. Everything else (states, ending a call, webhooks, receipts, per-second billing) is the same as a video host call. If you have not integrated Live Hosts yet, read the Live Hosts guide first; this page covers only what differs. Product overview: Live Hosts API.
Quick mode: start an audio host call from the app
With your App Key (Projects → Quick mode) and the SDK installed, one call lists hosts and one starts the audio call. No server and no tokens.
// after TitliVideo.init(appKey: 'tak_…', userId: 'user-42', userName: 'Rahul')
final hosts = await TitliVideo.liveHosts.hosts(); // optional: who is online
final call = await TitliVideo.liveHosts.startCall(type: TitliCallType.audio); // any free host, or hostRef: 'h_9f2a'
Navigator.push(context, MaterialPageRoute(builder: (_) => TitliCallScreen(call: call)));// after TitliVideo.init(context, appKey = "tak_…", userId = "user-42", userName = "Rahul")
val hosts = TitliVideo.liveHosts.hosts() // optional: who is online
val call = TitliVideo.liveHosts.startCall(type = TitliCallType.AUDIO) // any free host, or hostRef = "h_9f2a"
TitliCallScreen(call = call, onClose = { finish() })// after TitliVideo.initialize(appKey: "tak_…", userId: "user-42", userName: "Rahul")
let hosts = try await TitliVideo.liveHosts.hosts() // optional: who is online
let call = try await TitliVideo.liveHosts.startCall(type: .audio) // any free host, or hostRef: "h_9f2a"
TitliCallView(call: call)// after TitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Rahul' })
const hosts = await TitliVideo.liveHosts.hosts(); // optional: who is online
const call = await TitliVideo.liveHosts.startCall({ type: 'audio' }); // any free host, or hostRef: 'h_9f2a'
<TitliCallScreen call={call} />// after TitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Rahul' })
const hosts = await TitliVideo.liveHosts.hosts(); // optional: who is online
const call = await TitliVideo.liveHosts.startCall({ type: 'audio', container: '#stage' });The hosts list in the app has the same audio_available field described below. No backend needed: add your App Key in the app and start calling. A server is optional, for production hardening.
Billing
- Rate: the audio rate, from ₹8 per minute for INR accounts and from $0.0865 per minute for USD accounts. Video host calls are from ₹12 and $0.1297. Your account's own rates are shown in the console.
- All-inclusive: host time and audio minutes are one rate. It is separate from your normal audio and video call rates and their free seconds.
- Per second, only while connected. Ringing, a host who does not answer and calls that never connect cost nothing.
- Debited live every 5 seconds from your prepaid balance; the call ends gracefully with
balance_zerowhen the balance cannot pay for the next few seconds.
Worked example at the list rate: an audio call connected for 12 minutes 15 seconds is 735 seconds. 735 ÷ 60 × ₹8 = ₹98.00. The same length on video would be 735 ÷ 60 × ₹12 = ₹147.00.
Volume tiers and free minutes are kept per call type, so audio minutes count towards audio tiers and audio free minutes only. GET /v1/live-hosts/pricing returns a separate status for video and audio, each with the current rate, minutes used this period and free minutes left.
Reporting
- Server-only (project key), and also in the console:
GET /v1/live-hosts/stats?group=typesplits calls, minutes and spend by type, and every stats answer carriesby_typetotals forvideoandaudio. Addtype=audioto filter. call.typeis in both webhooks (live_host.call.connectedandlive_host.call.ended) and in the receipt asreceipt.type, so a webhook receiver (optional) can tell audio from video without a lookup.
Errors specific to audio
| HTTP | Code | When |
|---|---|---|
402 | insufficient_balance | Balance below one minute at your Live Hosts rate (plus one minute for each call already running) |
403 | live_hosts_disabled | Live Hosts is not enabled for your account |
403 | end_user_blocked | This end user is blocked |
409 | host_unavailable | The chosen host is busy, offline or no longer available |
409 | no_host_available | "any" and nobody is free right now |
409 | end_user_busy | This end user is already on a Live Hosts call |
429 | daily_cap_reached | Today's Live Hosts spending cap is reached (resets at midnight in your account time zone) |
429 | concurrency_limit | Too many Live Hosts calls at once for your account (default 5) or on our side |
503 | lines_busy | Every audio line is in use right now (audio has its own line limit, separate from video); retry in a minute |
503 | partner_paused | Audio calls are switched off, or Live Hosts is paused; try later |
503 | partner_unavailable, media_unavailable | A dependency did not answer; retry in a few seconds |
Production hardening (optional): server tokens
You do not need a server to start: Quick mode works with the App Key alone. Add a server when you want strict control over every call (who joins which call, for how long, in which role): keep the project key on your server and mint a short-lived join token per person there. The app uses the same SDK and hands it a token instead of the App Key. Both ways can run side by side.
Server step 1: List hosts who take audio calls
curl -s "$API/v1/live-hosts/hosts?type=audio&limit=20" -u "$KEY_ID:$KEY_SECRET"Every host in the list carries audio_available and video_available, which say which call types the host takes right now. Only hosts with audio_available: true take audio calls. status stays online or busy for both types.
Server step 2: Create the audio call
curl -s $API/v1/live-hosts/calls -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"end_user_id":"user_123","end_user_name":"Rahul","host_ref":"any","type":"audio"}'{ "call_id": "…", "id": "…", "object": "live_host_call", "status": "connecting", "room": "lh_…",
"livekit_url": "wss://…", "token": "eyJ…", "identity": "eu_user_123",
"host": { "host_ref": "h_9f2a", "name": "Asha", "photo_url": "…", "age": 24, "languages": ["hi","en"] },
"rate": { "currency": "INR", "per_minute": 8 }, "max_seconds": 7200,
"billed_seconds": 0, "cost": 0, "end_reason": null, "created_at": "…" }The rate in the answer is your audio rate. As with video, host_ref can be a specific host from the list or "any", and the token is valid for one hour to join.
Server step 3: Join with the microphone only
The token lets your user publish the microphone only; a camera track is refused. Join in audio mode:
final call = await TitliCall.connect(url: livekitUrl, token: token, video: false);
// then
TitliCallScreen(call: call)const room = new Room();
await room.connect(livekitUrl, token);
await room.localParticipant.setMicrophoneEnabled(true);TitliCallView(url: livekitUrl, token: token)
// or
try await TitliCall.join(url: livekitUrl, token: token, options: .init(audioOnly: true))TitliCallScreen(livekitUrl, token)
// or
TitliCall.join(context, livekitUrl, token, TitliCallOptions(audioOnly = true))<TitliCallScreen url={livekitUrl} token={token} />
// or
await TitliCall.join(livekitUrl, token, { audioOnly: true })On Flutter that is video: false in TitliCall.connect; on iOS, Android and React Native it is audioOnly: true in TitliCall.join; on the web, enable only the microphone. The prebuilt call screens show the audio layout.
Next steps
- The full flow, states and good practice: Add live hosts to your social app.
- Every endpoint and field: the Live Hosts API reference.
- Voice calls between your own users instead: the voice call SDK and voice call API.
- Prices: the pricing page.
