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.

Dart
// 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)));

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_zero when 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=type splits calls, minutes and spend by type, and every stats answer carries by_type totals for video and audio. Add type=audio to filter.
  • call.type is in both webhooks (live_host.call.connected and live_host.call.ended) and in the receipt as receipt.type, so a webhook receiver (optional) can tell audio from video without a lookup.

Errors specific to audio

HTTPCodeWhen
402insufficient_balanceBalance below one minute at your Live Hosts rate (plus one minute for each call already running)
403live_hosts_disabledLive Hosts is not enabled for your account
403end_user_blockedThis end user is blocked
409host_unavailableThe chosen host is busy, offline or no longer available
409no_host_available"any" and nobody is free right now
409end_user_busyThis end user is already on a Live Hosts call
429daily_cap_reachedToday's Live Hosts spending cap is reached (resets at midnight in your account time zone)
429concurrency_limitToo many Live Hosts calls at once for your account (default 5) or on our side
503lines_busyEvery audio line is in use right now (audio has its own line limit, separate from video); retry in a minute
503partner_pausedAudio calls are switched off, or Live Hosts is paused; try later
503partner_unavailable, media_unavailableA 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

terminal
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

terminal
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"}'
201 Created
{ "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:

Dart
final call = await TitliCall.connect(url: livekitUrl, token: token, video: false);
// then
TitliCallScreen(call: call)

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

Free SDK. Pay only for the minutes you use.

Create a free account: it starts with ₹100 welcome credit, about 250 minutes of 1:1 video, so your first call needs no recharge. Questions? Message us on WhatsApp and a person replies.

Start free