Live Hosts API: 1:1 video calls with verified hosts, inside your app
Give your users someone friendly to talk to from day one. Your app lists verified hosts from the Titli host network, and your users video call them 1:1. You never recruit, train or manage hosts yourself.
Launching now, invite-only. We turn it on for approved apps on request.
OnlineMeera, 24Hindi · English
OnlineArjun, 25English · Hindi
BusyPooja, 27Bengali · Hindi
OnlineAnanya, 26Marathi · Hindi
OnlineRohan, 29Telugu · English
BusySam, 26Tamil · English

Sample: stock photos (Unsplash), not real hosts
Hosts as a service, for social and video-chat apps
Everything a video-chat product needs on the host side, delivered through the same Video SDK you already use.
No host recruiting
Hosts come from the Titli host network. You skip hiring, onboarding, payouts and scheduling.
Verified, moderated hosts
Every host is verified, and our trust and safety team moderates the network.
Online and busy, live
The host list shows photo, name, age, languages and whether each host is online or busy right now.
Any available host
Call a specific host, or ask for the first host who is free with one flag.
Pay for connected minutes
A per-minute rate from your prepaid balance: counted per second on the always-live listing, per started minute on a Direct call. A call the host does not pick up costs nothing.
Every SDK we have
REST, Flutter, Web/JS, iOS, Android and React Native, with the prebuilt call screens.
Host control
Hide any host from your app with one switch: that host never appears in your lists or matching. Search by host ID or name, hide or restore in bulk, and see a history of every change.
See host controlDirect calls
A second listing: hosts who take direct calls at their own price. Each host’s per-minute price is in the API and is locked when the call starts. Billed per started minute. Switched on per account on request.
See the two listingsYour own price for your users
You set what your users pay per minute, never below what a minute costs you. The API returns it for display, and your reports show your margin.
See the balance mathsHow it works, in three steps
No backend needed: your app browses hosts and starts a host call with your App Key. Hiding hosts, the price your users pay and stats stay in your console or on your server. Server tokens are optional production hardening.
- 1
List hosts
Your app asks for the host list with your App Key and shows the hosts in your own UI: photo, name, age, languages, online or busy. (Or your server asks our API.)
- 2
Start a call
When a user taps a host, the app starts a call with that host, or with the first host who is free: one SDK call, no backend needed.
- 3
Talk
The SDK connects and opens the prebuilt call screen. Billing starts only when the host picks up. With server tokens (optional), your server starts the call and passes the join token to the app instead, and webhooks for “connected” and “ended” keep it in step.
Full API referenceEvery endpoint, payload, error and webhook is in the Live Hosts API reference.
// Quick mode: no backend needed. The App Key is enough.
await TitliVideo.init(appKey: 'tak_…', userId: 'user-123', userName: 'Rahul');
// 1. List hosts: host_ref, name, photo, age, languages, online/busy
final list = await TitliVideo.liveHosts.hosts(query: {'type': 'video', 'language': 'hi'});
// 2. Start a call with one host, or 'any' for the first host who is free
final call = await TitliVideo.liveHosts.startCall(hostRef: 'any', type: TitliCallType.video);
// 3. Show the prebuilt call screen (gifts work without a handler)
Navigator.of(context).push(MaterialPageRoute(builder: (_) => TitliCallScreen(call: call)));
// Hiding hosts, your users' price and stats stay in the console (or on your server).// Quick mode: no backend needed
TitliVideo.init({ appKey: 'tak_…', userId: 'user-123', userName: 'Rahul' });
const { hosts } = await TitliVideo.liveHosts.hosts({ type: 'video', language: 'hi' });
const call = await TitliVideo.liveHosts.startCall({
hostRef: hosts[0]?.host_ref ?? 'any', type: 'video', container: '#stage',
});# 1. (Optional) list hosts: host_ref, name, photo, age, languages, online/busy
curl -s "https://api-videosdk.titliapp.com/v1/live-hosts/hosts?type=video&language=hi&limit=20" -u "$KEY_ID:$KEY_SECRET"
# Production hardening (optional): the same calls from your server
# 2. Create the call on your server: one host...
curl -s https://api-videosdk.titliapp.com/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":"h_9f2a","type":"video"}'
# ...or any available host
curl -s https://api-videosdk.titliapp.com/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":"video"}'
# 3. Send livekit_url + token to your app; it joins with the SDK you already use
# Voice only: "type":"audio" (audio rate; list with ?type=audio)
curl -s https://api-videosdk.titliapp.com/v1/live-hosts/calls -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"end_user_id":"user_123","host_ref":"any","type":"audio"}'
# Later: read the call, end it, get the receipt, see stats
curl -s https://api-videosdk.titliapp.com/v1/live-hosts/calls/<call_id> -u "$KEY_ID:$KEY_SECRET"
curl -s -X POST https://api-videosdk.titliapp.com/v1/live-hosts/calls/<call_id>/end -u "$KEY_ID:$KEY_SECRET"
curl -s https://api-videosdk.titliapp.com/v1/live-hosts/calls/<call_id>/receipt -u "$KEY_ID:$KEY_SECRET"
curl -s "https://api-videosdk.titliapp.com/v1/live-hosts/stats?group=host" -u "$KEY_ID:$KEY_SECRET"// GET /v1/live-hosts/hosts?type=video&language=hi
{ "hosts": [ { "host_ref": "h_9f2a", "name": "Asha", "photo_url": "https://…",
"age": 24, "languages": ["hi","en"], "status": "online",
"audio_available": true, "video_available": true } ],
"available_count": 1, "type": "video", "paused": false }
// POST /v1/live-hosts/calls -> 201
{ "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": 12 }, "max_seconds": 7200,
"billed_seconds": 0, "cost": 0, "end_reason": null, "created_at": "…" }// Your server: the key secret never leaves it (HTTP Basic key_id:key_secret)
const AUTH = 'Basic ' + Buffer.from(KEY_ID + ':' + KEY_SECRET).toString('base64');
const titli = async (path, body) => {
const r = await fetch('https://api-videosdk.titliapp.com' + path, {
method: body ? 'POST' : 'GET',
headers: { Authorization: AUTH, 'Content-Type': 'application/json' },
body: body && JSON.stringify(body),
});
const data = await r.json();
if (!r.ok) throw Object.assign(new Error(data.error?.message), { status: r.status, code: data.error?.code });
return data;
};
app.get('/api/hosts', requireLogin, async (req, res) => {
const { hosts } = await titli('/v1/live-hosts/hosts?language=hi&limit=20');
res.json(hosts);
});
app.post('/api/host-call', requireLogin, async (req, res) => {
// your own checks first: login, your coins, age gates
try {
const call = await titli('/v1/live-hosts/calls', {
end_user_id: req.user.id,
end_user_name: req.user.firstName,
host_ref: req.body.hostRef || 'any',
type: 'video',
});
res.json({ callId: call.call_id, livekitUrl: call.livekit_url, token: call.token, host: call.host });
} catch (e) {
// The host is busy, no host is free or every line is in use: ask the user to try again.
// Your balance is too low: recharge (not the user's fault). Each code is listed under Errors in the docs.
res.status(e.status || 500).json({ code: e.code });
}
});// Signed with Titli-Signature: t=…,v1=… (see /docs/webhooks)
app.post('/titli/webhooks', express.raw({ type: '*/*' }), (req, res) => {
if (!verify(req.body, req.get('Titli-Signature'), WEBHOOK_SECRET)) return res.sendStatus(400);
const { event, data } = JSON.parse(req.body);
if (event === 'live_host.call.connected') onConnected(data.call); // billing from call.connected_at
if (event === 'live_host.call.ended') onEnded(data.call, data.receipt); // receipt null if never connected
res.sendStatus(200);
});
// GET /v1/live-hosts/stats?group=day|end_user|host|type&type=audio|video&from&to&limit
// -> { group, currency, timezone, data: [{ key, calls, connected_calls, seconds, minutes, spend, … }],
// totals, by_type: { video: {…}, audio: {…} } }
// call.type ('audio' | 'video') is in both webhook events and in receipt.type// Server token (optional): livekitUrl + token minted on your server
final call = await TitliCall.connect(url: livekitUrl, token: token, video: true);
Navigator.of(context).push(MaterialPageRoute(
builder: (_) => TitliCallScreen(call: call),
));import { Room } from 'livekit-client';
const room = new Room();
await room.connect(livekitUrl, token);
await room.localParticipant.enableCameraAndMicrophone();
// the host is the remote participant (identity host_<host_ref>)import TitliVideoSDK
// prebuilt SwiftUI call view
TitliCallView(url: livekitUrl, token: token)
// or join and build your own UI
let call = try await TitliCall.join(url: livekitUrl, token: token, options: .init(audioOnly: false))// prebuilt Jetpack Compose call screen
TitliCallScreen(livekitUrl, token)
// or join and build your own UI
val call = TitliCall.join(context, livekitUrl, token, TitliCallOptions(audioOnly = false))import { TitliCall, TitliCallScreen } from 'titli-video-sdk-react-native';
// prebuilt call screen
<TitliCallScreen url={livekitUrl} token={token} />
// or join and build your own UI
const call = await TitliCall.join(livekitUrl, token, { audioOnly: false });Audio call hosts API: voice-only calls, same endpoints
Some users would rather just talk. Ask for an audio call and your user gets a voice-only call with a verified host, at a lower rate. States, webhooks, receipts and per-second billing stay exactly the same.
- List audio hosts by asking for the audio list; each host shows whether they take audio calls, video calls or both.
- Microphone only: your user can publish audio; a camera track is refused.
- Start it from the app with your App Key, camera off, in the SDK (Flutter, iOS, Android, React Native) or the web, or from your server with a token.
- Its own lines: audio has its own line limit, separate from video. When every audio line is in use, the call is refused with a clear “lines busy” error and nothing is charged.
// Quick mode: a voice-only call with any free audio host
final call = await TitliVideo.liveHosts.startCall(hostRef: 'any', type: TitliCallType.audio);# Hosts who take audio calls right now
curl -s "https://api-videosdk.titliapp.com/v1/live-hosts/hosts?type=audio&language=hi" -u "$KEY_ID:$KEY_SECRET"
# A voice-only call (audio rate)
curl -s https://api-videosdk.titliapp.com/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 { …, "rate": { "currency": "INR", "per_minute": 8 } }// microphone only
final call = await TitliCall.connect(url: livekitUrl, token: token, video: false);
TitliCallScreen(call: call)// iOS
try await TitliCall.join(url: livekitUrl, token: token, options: .init(audioOnly: true))
// Android
TitliCall.join(context, livekitUrl, token, TitliCallOptions(audioOnly = true))
// React Native
await TitliCall.join(livekitUrl, token, { audioOnly: true })const room = new Room();
await room.connect(livekitUrl, token);
await room.localParticipant.setMicrophoneEnabled(true);Simple per-minute pricing
All-inclusive: host time and call minutes in one per-minute rate for each call type, taken from the same prepaid balance as your calls. No separate call-minute charge.
Availability varies by time of day; you only pay for connected minutes.
Video hosts
- All-inclusive: host time and video minutes in one per-minute rate
- Per-minute rate, billed per second while connected
- No charge when the host does not pick up
- Volume discounts available (monthly or lifetime minute tiers)
- Free trial minutes on request
Audio hosts Live
- All-inclusive: host time and audio minutes in one per-minute rate
- Voice only: ask for an audio call
- Same per-second billing, webhooks and receipts
- No charge when the host does not pick up
- Volume discounts available (monthly or lifetime minute tiers)
- Free trial minutes on request
Two listings: always live, and Direct calls
Both run on the same API, the same call screens and the same prepaid balance. The same host can be in both.
Always live (auto-match)
Audio from ₹8$0.0865 per minute Live
- One flat price per call type, the same for every host
- Counted per second, taken from the balance every 5 seconds
- Call one host, or ask for the first host who is free
- Video and audio
- Volume tiers and free minutes apply here
- In the API: the host list
Direct calls
per minute, shown per host in the API
- Hosts who take direct calls at their own price
- The price is locked when the call starts: nothing changes mid-call
- Billed per started minute at the locked price: 1 min 05 s = 2 minutes
- Send the highest price per minute you accept and a call is never placed above it
- Video only; always paid at the locked price (no free minutes or tiers)
- In the API: the Direct host list, and the Direct listing chosen when you create the call
Direct is enabled per account on request: ask us to switch it on.
You decide which hosts your users see
From the console under Live Hosts → Hosts, or through the API. A hide applies to your account only.
Hide with one switch
A hidden host is in none of your lists and is never matched for your account, whether you ask for any free host or for that host by name. A call that is already running continues unless you ask to end it.
Search, bulk hide, restore
Search by host ID or name. Hide or restore up to 500 hosts at once, and download the whole list as CSV.
A history of every change
Who hid or restored which host, when and why: every change is kept in the console.
Green dot and "last seen"
A host who is online shows a green dot; the others show when they were last online. Last seen is rounded to 5 minutes for the host’s privacy.
Sort and filter
Sort by online first, price or newest; filter by language and age range. Save your choice as the default in the console.
Pin featured hosts
Hosts you pin always come first in the list, and are marked as featured in the API.
Exactly what is deducted from your balance
"Balance" is your prepaid wallet with us. Your users never pay us: you charge them your own price in your app. Two examples, with every number.
Always live (auto)
₹12/min from your balance
- Our price
- ₹12/min (video)
- How it is taken
- ₹12 for every connected minute, counted per second, taken every 5 seconds
- A call of 2 min 30 s
- 150 s × ₹12 ÷ 60 = ₹30 deducted
- Your users’ price (example)
- ₹15/min → your user pays you ₹37.50
- You keep
- ₹7.50 (₹3/min)
Direct call
₹22/min from your balance (example: Asha)
- Asha: your cost
- ₹22/min (shown per host in the API)
- When it is fixed
- Locked when the call starts; if she changes her price mid-call, nothing changes for this call
- How it is taken
- ₹22 for every started minute: 1 min 05 s = 2 minutes = ₹44
- A call of 3 min
- 3 minutes at ₹22/min = ₹66 from your balance
- Your users’ price (example)
- ₹30/min → for 3 minutes your user pays you ₹90
- You keep
- ₹24 (₹8/min)
The auto price here is the list price; your account’s own rate is in your console. The Direct numbers are one worked example: each Direct host has her own price to you, shown per host in the API. You add your own price or markup on top, never below your cost.
- When billing starts: when the call is connected: the host’s video and sound are flowing and your user is in the room. Ringing, a host who does not answer, a busy host and a call that never connects cost nothing.
- When it stops: when the call ends: your user or the host hangs up, you end it by API, or a limit is reached.
- How time is counted: auto listing: counted per second and taken from the balance every 5 seconds. Direct: billed per started minute: 1 min 05 s = 2 minutes = ₹44 at ₹22/min; 3 min = ₹66.
- The 10-second grace: if your user drops off (app closed, network lost) the call waits 10 seconds for them to come back. If they return, the call goes on; if not, it ends. Those 10 seconds are billed, because the host was still on the line. To stop at once, hang up from your app (in Quick mode the SDK ends the call when your user leaves; with server tokens, leave the room and ask your server to end the call).
- When the balance runs out: before each 5-second step we check that the balance can pay for the next 5 seconds. If it cannot, the call ends by itself, and the reason given says the balance ran out. The balance never goes below zero. For a Direct call you need at least one full minute of the host’s price to start.
- Welcome credit and free minutes: welcome credit is money in your balance and is spent like balance. Free minutes apply to the auto listing only. A Direct call is always paid at its locked price: no free minutes and no volume tiers.
- INR and USD accounts: an INR account sees and pays ₹, a USD account sees and pays $. A USD account sees each host’s cost in $ (for example $0.2379/min).
- We bill only our price. You collect your own price from your users in your app; every call and webhook shows our charge, your price and your margin together, and the signed receipt records our charge and your price.
The full rules are in the API reference: How your balance is charged.
The new endpoints, ready to paste
List Direct hosts and start a Direct call from the app with your App Key, or from your server with a price guard; hide a host and show your own price from your server. The same contract as the API reference.
// Quick mode: no backend needed. After TitliVideo.init(appKey: 'tak_…', userId: …):
final direct = await TitliVideo.liveHosts.directHosts(); // the Direct listing, your users' view
final call = await TitliVideo.liveHosts.startCall(hostRef: 'h_9f2a', listing: 'direct');
// Your cost never reaches the app. Hiding hosts and setting your prices stay in
// Console → Live Hosts (or the server-only routes in the other tabs).# Hosts who take direct calls at their own price (video)
curl -s "https://api-videosdk.titliapp.com/v1/live-hosts/direct-hosts?language=hi&max_cost=30&sort=price_asc&limit=20" \
-u "$KEY_ID:$KEY_SECRET"
# -> 200
{ "enabled": true, "listing": "direct", "currency": "INR", "total": 37, "offset": 0, "next_offset": 20, "sort": "price_asc",
"hosts": [ { "host_ref": "h_9f2a", "name": "Asha", "photo": { … }, "age": 24, "languages": ["hi","en"],
"status": "online", "online": true, "last_seen_at": null,
"listing": "direct", "featured": false, "is_new": false,
"pricing": { "currency": "INR", "cost_per_minute": 22,
"price_per_minute": 30, "margin_per_minute": 8 } } ] }
# cost_per_minute = YOUR cost for this host, per minute. Direct is billed per started minute:
# 1 min 05 s = 2 minutes = ₹44; 3 min = ₹66
# price_per_minute = YOUR price for your users (show this one in your app)
# "enabled": false with an empty list = Direct is not switched on for your account yet# Start a Direct call at the price your user saw
curl -s https://api-videosdk.titliapp.com/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":"h_9f2a",
"listing":"direct","max_cost_per_minute":22}'
# -> 201: the price is locked for the whole call.
# "billing_unit_seconds": 60 = billed per started minute (1 min 05 s = 2 minutes = ₹44)
{ "call_id": "…", "status": "connecting", "listing": "direct", "type": "video",
"livekit_url": "wss://…", "token": "eyJ…",
"rate": { "currency": "INR", "per_minute": 22 }, "billing_unit_seconds": 60,
"end_user_price": { "currency": "INR", "per_minute": 30 },
"end_user_amount": 0, "margin": 0, "billed_seconds": 0, "cost": 0 }
# The host’s price went up since you showed the list: nobody is rung
# -> 409
{ "error": { "code": "price_changed", "message": "…", "cost_per_minute": 25, "currency": "INR" } }
# A call is also refused when Direct is not switched on, the host is hidden or busy, or your balance
# is too low (see Errors in the docs for each code).# Hide a host: the host leaves your lists and matching at once.
# A running call continues unless "end_live" is true. Up to 500 host_refs at once.
curl -s https://api-videosdk.titliapp.com/v1/live-hosts/hosts/hide -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"host_refs":["h_9f2a"],"reason":"Not a fit for our app","end_live":false}'
# -> { "hidden": ["h_9f2a"], "already": [], "calls_ended": 0 }
# Bring the host back
curl -s https://api-videosdk.titliapp.com/v1/live-hosts/hosts/unhide -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"host_refs":["h_9f2a"]}'
# -> { "restored": ["h_9f2a"], "still_hidden": [] }
# Your hidden hosts (search by name or host_ref)
curl -s "https://api-videosdk.titliapp.com/v1/live-hosts/hidden-hosts?q=asha&limit=50" -u "$KEY_ID:$KEY_SECRET"// Production hardening (optional), your server: send YOUR price to the app, never the cost.
// titli() is the helper from the Node.js tab above (HTTP Basic key_id:key_secret).
app.get('/api/hosts', requireLogin, async (req, res) => {
const { hosts } = await titli('/v1/live-hosts/hosts?type=video&sort=online&limit=20');
res.json(hosts.map((h) => ({
hostRef: h.host_ref,
name: h.name,
photo: h.photo.url_256,
online: h.online, // green dot
lastSeenAt: h.last_seen_at, // rounded to 5 minutes; null while online
canCallNow: h.status === 'online',
featured: h.featured,
pricePerMinute: h.pricing.price_per_minute, // what your user pays you
currency: h.pricing.currency,
// h.pricing.cost_per_minute is your cost per minute: keep it on the server
})));
});
// Your prices at a glance (you set them in the console, never below the cost)
// GET /v1/live-hosts/pricing
// -> "end_user_prices": { "video": { "currency": "INR", "per_minute": 15, "cost_per_minute": 12, "margin_per_minute": 3 },
// "audio": { … } },
// "direct": { "enabled": true, "markup_type": "flat", "markup_value": 8, "round_to": 0 }Gifts: your users send gifts to the host during a call
Add a gift button to your call screen. In a connected Live Hosts call your user picks a gift and the app sends it with your App Key (or your server does), the animation plays in your app and the host sees the gift in her app like any gift. Gifts work the same way on Live Streams.
How it works, in three steps
- 1
List the gifts
The SDK gets the gift list with your App Key: each gift’s name, icon, animation and your price. (Your server gets the same list with your cost too.)
- 2
Show them in your app, at your prices
The SDK adds a gift button and a gift sheet to the prebuilt call and viewer screens, or build the sheet in your own UI. You collect your price from your user in your app.
- 3
Send from the app
When the user taps a gift, the app sends it in that call or live with your App Key: no backend needed. With production hardening (optional), your server sends it through our API instead. The SDK plays the animation in your app and the host sees the gift in her app.
What you control
Our gift catalog
Gifts come from our catalog only. You cannot upload or add your own gifts. You choose which ones your users see.
On or off
Switch gifts on or off for your whole account with one console switch or the API. While off, the list is empty and sends are refused.
Hide or show any gift
Hide a gift you do not want in your app. It leaves your list and cannot be sent. Show it again whenever you like.
Your own price for each gift
You set what your users pay for each gift. Your price cannot be below the gift list price. You keep the difference.
Receipts, stats and webhooks
Every gift has a signed receipt and shows in your stats and CSV export. One webhook fires when a gift is sent, and another when a pending gift is refused.
Safe to retry
Every send carries a request ID of your own. Sending the same ID again returns the first result and never charges twice.
Gifts follow Live Hosts and Live Streams: invite-only, and switched on per account. Ask us to turn them on for your app.
Your cost, your price, and what you keep
Each gift has a cost to you, shown in your console and the API. You set your price. You keep the difference.
Example: a gift costs you ₹60, you charge ₹150, you keep ₹90.
- Billed when it is sent: the cost comes out of the same prepaid balance as your calls.
- Refunded automatically if it cannot be delivered: the amount goes back to your balance at once.
- If the answer says the gift is pending, it is not confirmed yet. Your cost stays held until it is confirmed or refused; if it is refused, the amount comes back and a webhook tells you.
- If your balance is too low, the gift is not sent and nothing is charged. The call or live goes on.
- We bill only the cost. You collect your own price from your user in your app.
- INR and USD: a rupee account sees and pays ₹, a USD account sees and pays $.
Example only
₹90you keep on a gift you sell for ₹150
- Your cost
- ₹60 per gift, taken from your prepaid balance when it is sent
- Your price
- ₹150: you set it and collect it from your user in your app
- You keep
- ₹90
The numbers are only an example, not a price list. The real cost of every gift is in your console and in the API.
The real endpoints, ready to paste
Gifts API referenceEvery endpoint, field, error code and webhook is in the Gifts API reference.
// Quick mode: no backend needed. After TitliVideo.init(appKey: 'tak_…', userId: …), the prebuilt
// call and viewer screens show the gift button and send gifts themselves: no handler to write.
final call = await TitliVideo.liveHosts.startCall(hostRef: 'any'); // gift sheet included
// Your own UI: list the gifts (your price, never your cost) and send one
final gifts = await TitliVideo.gifts.list();
await TitliVideo.liveHosts.sendGift(call.callId, 'g_rose', count: 1);
// on a Live Stream: TitliVideo.liveStreams.sendGift(streamRef, 'g_rose')
// Gifts on/off, hidden gifts, your prices and stats stay in the console (or on your server).# 1. The gifts your users can send, each with your cost and your price
curl -s "https://api-videosdk.titliapp.com/v1/gifts" -u "$KEY_ID:$KEY_SECRET"
# 2. Set your own price for one gift (it cannot be below the gift list price, min_price)...
curl -s -X PUT https://api-videosdk.titliapp.com/v1/gifts/g_rose -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"price":150}'
# ...or hide it from your app ("hidden":false shows it again)
curl -s -X PUT https://api-videosdk.titliapp.com/v1/gifts/g_rose -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"hidden":true}'
# 3. Switch gifts off (or on) for your whole account
curl -s -X PATCH https://api-videosdk.titliapp.com/v1/gifts/settings -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"enabled":false}'// GET /v1/gifts -> 200 (example numbers, not a price list)
{ "enabled": true, "reason": null, "currency": "INR", "max_count": 99, "version": "9c1f0a2b7d3e4f56",
"gifts": [ { "gift_id": "g_rose", "name": "Rose",
"icon_url": "https://…", "animation_url": "https://…", "category": "popular",
"cost": 60, "price": 150, "you_keep": 90,
"min_price": …, "max_price": …,
"price_source": "own", "price_needs_review": false,
"hidden": false, "currency": "INR" } ] }
// cost = what one gift costs you (taken from your prepaid balance when it is sent)
// price = what you charge your user (show this one in your app)
// you_keep = price - cost
// min_price = the gift list price: your price cannot be below it
// max_count = the most gifts one send may carry
// version = changes when the list or a price changes: use it as your cache key
// "enabled": false with an empty list = gifts are off ("reason": "off_by_you" or "not_available")# A gift in a connected Live Hosts call. The end user is the call's.
# client_request_id: a fresh one for every gift, the same one when you repeat this request.
curl -s https://api-videosdk.titliapp.com/v1/live-hosts/calls/$CALL_ID/gifts -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"gift_id":"g_rose","count":1,"client_request_id":"6f0d2c1e-7a3b-4f1e-9c55-0b1d2e3f4a5b","expected_price":150}'
# -> 201 sent (200 = the same client_request_id again: the first result, nothing charged twice)
{ "id": "…", "object": "gift", "status": "sent", "surface": "call",
"gift_id": "g_rose", "name": "Rose", "count": 1,
"end_user_id": "user_123", "call_id": "…", "host": { "host_ref": "h_9f2a", "name": "Asha" },
"cost": 60, "unit_cost": 60, "price": 150, "unit_price": 150, "you_keep": 90, "currency": "INR",
"client_request_id": "6f0d2c1e-7a3b-4f1e-9c55-0b1d2e3f4a5b", "error": null,
"created_at": "…", "decided_at": "…", "replay": false, "balance": …,
"receipt": { … }, "receipt_signature": "…" }
# -> 202 "status": "pending": not confirmed yet. Your cost stays held until the gift is confirmed
# (webhook gift.sent) or refused (webhook gift.failed with "refunded": true). Nothing is refunded
# just because time passed. Repeating the request with the same client_request_id is always safe.# A gift from a viewer of a live stream: say which end user sends it
curl -s https://api-videosdk.titliapp.com/v1/live-streams/$STREAM_REF/gifts -u "$KEY_ID:$KEY_SECRET" -H 'Content-Type: application/json' \
-d '{"end_user_id":"user_123","gift_id":"g_rose","count":1,"client_request_id":"b1a7c9d2-5e4f-4a6b-8c3d-2e1f0a9b8c7d","expected_price":150}'
# -> 201 sent (200 = the same client_request_id again, 202 = pending: wait for gift.sent or gift.failed)
{ "id": "…", "object": "gift", "status": "sent", "surface": "stream",
"gift_id": "g_rose", "name": "Rose", "count": 1,
"end_user_id": "user_123", "stream_ref": "ls_8fK2…", "host": { "host_ref": "h_3Qe…", "name": "Riya" },
"cost": 60, "price": 150, "you_keep": 90, "currency": "INR",
"client_request_id": "b1a7c9d2-5e4f-4a6b-8c3d-2e1f0a9b8c7d", "replay": false, "balance": …,
"receipt": { … }, "receipt_signature": "…" }# These are answers to YOUR SERVER. Pass only code, user_message, user_message_hi and user_code on to your app.
# Balance too low: nothing is sent, nothing is charged
# -> 402
{ "error": { "code": "insufficient_balance", "message": "…", "cost": 60, "balance": 12.5, "currency": "INR",
"user_code": "VB-402", "user_message": "Gifts are unavailable right now. Please try again later. (code VB-402)",
"error_code": "VENDOR_BALANCE_INSUFFICIENT", "docs_url": "https://videosdk.titliapp.com/docs/errors#VENDOR_BALANCE_INSUFFICIENT" } }
# Your price changed since you showed the list (you sent expected_price): nothing is sent
# -> 409
{ "error": { "code": "gift_price_changed", "message": "…", "gift_id": "g_rose", "price": 160, "cost": 60, "currency": "INR",
"user_code": "GF-409", "user_message": "The price of this gift has changed. Please check it and try again." } }
# The gift could not be delivered (the call ended, the host left): your cost is back in your balance
# -> 409
{ "error": { "code": "gift_host_unavailable", "message": "…", "refunded": true, "gift": { … }, "balance": … } }
# A send that was answered 202 "pending" and then refused: webhook gift.failed
{ "event": "gift.failed", "data": { "gift": { "id": "…", "status": "refused", "client_request_id": "…", … }, "refunded": true } }
# Give your user the money back when the answer has "refunded": true, on a 4xx refusal (not 429), or on gift.failed.
# On 429, 5xx without "refunded", a timeout or 202: keep the payment and repeat with the same client_request_id.
# A send is also refused when gifts are switched off, the gift is no longer offered, the user is not in
# that call or live, the request ID was already used for a different gift, or there are too many requests
# (see Errors in the docs for each code).// Your server (Node 20+, Express). Complete on its own: the helper, the list, the send, the webhook.
//
// chargeUser(), keep() and giveBack() are YOUR wallet, keyed by client_request_id:
// chargeUser(user, id, what, amount) takes the amount once per id; answers false when that id
// was already used for another gift, count, session or user
// keep(id) the gift was sent: this payment is final
// giveBack(id) returns a payment that is not final (never one that was kept)
const AUTH = 'Basic ' + Buffer.from(process.env.TITLI_KEY_ID + ':' + process.env.TITLI_KEY_SECRET).toString('base64');
async function titli(path, body) { // throws on a timeout or a network failure: then there is no answer
const r = await fetch('https://api-videosdk.titliapp.com' + path, {
method: body ? 'POST' : 'GET', signal: AbortSignal.timeout(10000),
headers: { Authorization: AUTH, 'Content-Type': 'application/json' }, body: body && JSON.stringify(body),
});
return { status: r.status, data: await r.json().catch(() => ({})) };
}
// The list for your app: your prices only. cost and you_keep are your business figures: keep them here.
app.get('/api/gifts', requireLogin, async (req, res) => {
const { data } = await titli('/v1/gifts');
res.json({ enabled: data.enabled, version: data.version, max_count: data.max_count,
gifts: (data.gifts || []).map((g) => ({ gift_id: g.gift_id, name: g.name, icon_url: g.icon_url,
animation_url: g.animation_url, category: g.category, currency: g.currency, price: g.price })) });
});
// Refusals before any debit: nothing was sent, so the money goes back to your user.
const REFUSED = ['gifts_disabled', 'gift_unavailable', 'gift_price_changed', 'gift_host_unavailable',
'gift_not_in_session', 'gift_idempotency_conflict', 'insufficient_balance', 'invalid_request'];
// The app posts { gift_id, count, client_request_id, expected_price }: a fresh client_request_id
// (a UUID) for every gift, and the SAME one when it repeats a send that got no clear answer.
app.post('/api/calls/:callId/gift', requireLogin, async (req, res) => {
const { gift_id, client_request_id, expected_price } = req.body;
const count = Number(req.body.count ?? 1);
// (check here that this call belongs to req.user)
const list = (await titli('/v1/gifts')).data; // cache it in real code; reload when version changes
const gift = (list.gifts || []).find((g) => g.gift_id === gift_id);
if (!gift) return res.status(400).json({ error: { code: 'gift_unavailable' } });
if (!Number.isInteger(count) || count < 1 || count > list.max_count
|| !/^[A-Za-z0-9_.:-]{1,64}$/.test(client_request_id || '')) {
return res.status(400).json({ error: { code: 'invalid_request' } });
}
// 1. The price is the one in YOUR current list, never a number from the app. If the app showed
// another price, charge nothing: it shows the new price and your user confirms.
const price = gift.price;
if (expected_price != null && Number(expected_price) !== price) {
return res.status(409).json({ error: { code: 'gift_price_changed', price } });
}
// 2. Take your price x count from your user, once per client_request_id.
const what = ['call', req.params.callId, gift_id, count].join('/');
if (!(await chargeUser(req.user.id, client_request_id, what, price * count))) {
return res.status(409).json({ error: { code: 'gift_idempotency_conflict' } });
}
// 3. Send it, always with expected_price = the price you charged.
let r;
try {
r = await titli('/v1/live-hosts/calls/' + req.params.callId + '/gifts',
{ gift_id, count, client_request_id, expected_price: price });
// in a live stream: '/v1/live-streams/' + streamRef + '/gifts', with end_user_id: req.user.id added
} catch {
// No answer (timeout, network): unknown. KEEP the payment; the app repeats with the SAME id.
return res.status(502).json({ error: { code: 'unknown' } });
}
const e = r.data.error;
if (!e) {
if (r.data.status === 'sent') await keep(client_request_id); // 201, or 200 for a repeat
// 202 "pending": your cost stays held. Keep the payment until the webhook below decides.
return res.status(r.data.status === 'pending' ? 202 : 200).json({ id: r.data.id, status: r.data.status });
}
// 4. Give the money back ONLY when the answer says "refunded": true, or it is a refusal before
// any debit. 429 and 5xx without "refunded" decide nothing: the gift may still be delivered
// and billed, so the payment stays and the app repeats with the SAME client_request_id.
const back = e.refunded === true || (r.status >= 400 && r.status < 500 && r.status !== 429 && REFUSED.includes(e.code));
if (back) await giveBack(client_request_id);
res.status(r.status).json({ error: { code: e.code, user_message: e.user_message, user_message_hi: e.user_message_hi, user_code: e.user_code,
...(e.refunded === true ? { refunded: true } : {}),
...(e.code === 'gift_price_changed' ? { price: e.price } : {}) } });
// never pass cost, you_keep or balance on to the app
});
// Your webhook endpoint (verify the Titli-Signature header on the raw body first, see /docs/webhooks)
app.post('/webhooks/titli', async (req, res) => {
const { event, data } = req.body;
if (event === 'gift.sent') await keep(data.gift.client_request_id); // also for a send that was pending
// gift.failed: a pending send was refused and our debit was returned: give your user the money back
if (event === 'gift.failed') await giveBack(data.gift.client_request_id);
res.sendStatus(200);
});
// A payment that stayed open and was never repeated by the app: ask
// GET /v1/gifts/sends?client_request_id=... -> sent: keep · refused: give back · pending: wait ·
// no send at all: the request never reached us and nothing was debited: give back.// Production hardening (optional): give the SDK your gift list and a send function. The prebuilt call and viewer screens then show
// a gift button with a gift sheet and play the animation. The SDK never holds your API key.
// Web / JS
const session = await TitliCall.join(livekitUrl, token, {
container: '#stage',
giftCatalog, // the list from YOUR backend (no cost in it)
onSendGift: (request) => // { gift_id, count, client_request_id, expected_price }; your server
// charges the price of its own list, never the one in this request
fetch('/api/calls/' + callId + '/gift', {
method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(request),
}).then((r) => r.json()),
onLiveEvent: (e) => { if (e.type === 'gift') console.log(e.gift.name, e.gift.count); },
});
// Flutter: TitliCallScreen(call: call, giftCatalog: catalog, onSendGift: sendGift)
// Android: TitliCallScreen(call = call, giftCatalog = catalog, onSendGift = TitliGiftSender { ... })
// iOS: TitliCallView(url: url, token: token, giftCatalog: catalog, onSendGift: { request in ... })
// React Native: <TitliCallScreen url={url} token={token} giftCatalog={catalog} onSendGift={sendGift} />
// Your own UI: call.gifts has the list and send(gift, count). The gift arrives as a live event
// (onLiveEvent, type "gift"); with raw LiveKit it is a data message on topic "titli.live":
// { "type": "gift", "id": "…", "at": "…", "from": { "role": "partner", "end_user_id": "user_123" },
// "gift": { "gift_id": "g_rose", "name": "Rose", "icon_url": "…", "animation_url": "…", "count": 1 } }Every call, minute and rupee in your console
See calls, connected minutes and spend, broken down per user and per host, next to your other Video SDK usage.
- Per user: see who calls most and what they spend, to tune your own pricing.
- Per host: calls and minutes for each host your users talk to.
- Unanswered calls are listed too, at no charge.
- Your margin: our charge next to your own price, per call, per host and per listing, with CSV.
Safety and moderation
Clean, friendly conversation is the product. We keep it that way.
Verified hosts
Every host is verified before they can take calls on the network.
Trust and safety team
Our team moderates hosts, reviews reports and removes anyone who breaks the rules.
Same monitoring as our own app
Host calls get the same safety monitoring as calls in our own consumer app.
Clean content only
Our acceptable use policy applies: no inappropriate content, no harassment. Breaking it can end a call and suspend a host or an app.
Users aged 18+
Host calls are for users aged 18 and over. We ask partner apps to offer them only to those users.
No phone numbers shared
Users and hosts meet app to app. Your users are your user IDs, nothing more.
Live Streamers Pool — pilot
Verified hosts from our network go live inside your app. Your viewers watch, chat and send gifts, and the host sees them in real time. We are onboarding pilot partners now.
Live inside your app
Verified hosts from our network stream live in your own app, under your brand.
Chat and gifts in real time
Viewers chat and send gifts that reach the host in real time.
Simple billing
Billed per viewer-minute; each gift has its own cost, shown in your console. Pilot terms are agreed with each partner.
Our SDK on every platform
Android, iOS, Flutter, React Native and Web.
1:1 video and audio calls with hosts are live today; live streaming is in pilot.
Developers: this is the same product as the Live Streams API (beta, switched on per account). The reference covers joining, gifts and billing. Gifts have their own page: the Gifts API reference.
FAQ
What is the Live Hosts API?
A host-as-a-service API for social and video-chat apps. Your users make 1:1 video calls with verified hosts from the Titli host network, inside your app. Some teams call it a live companion video API: friendly, clean conversation with a real person who is online now.
Who are the hosts?
Verified hosts from the Titli host network. They are moderated by our trust and safety team, and their calls get the same safety monitoring as calls in our own app. You do not hire, pay or manage them.
How much does it cost?
Video calls from ₹12 per connected minute (from $0.1297), audio calls from ₹8 (from $0.0865), taken from your prepaid balance. All-inclusive: host time and call minutes in one per-minute rate, with no separate call-minute charge. Your account's own rates are shown in the console. Volume discounts are available (per-account minute tiers, monthly or lifetime), and free trial minutes on request.
Can I hide a host from my app?
Yes. Use one switch in the console (Live Hosts → Hosts) or the API. A hidden host never appears in your lists and is never matched for your account. Search by host ID or name, hide or restore up to 500 at once, and see a history of every change. A hide applies to your account only, and a call that is already running continues unless you ask to end it.
Can I set my own price for my users?
Yes. In the console you set what your users pay per minute. It can never be below what a minute costs you. The API returns it so your app can display it, and your reports show our charge next to your price: the difference is your margin. We bill only our price; you collect your own price from your users. Example: our price ₹12/min, your price ₹15/min, you keep ₹3/min.
What is a Direct call and how is it priced?
Direct is a second listing: hosts who take direct calls at their own price. Each host has their own per-minute price to you, shown per host in the API’s Direct host list. You add your own price or markup on top, never below your cost. Example: Asha: your cost ₹22/min, locked when the call starts; you charge your users ₹30/min and you keep ₹8/min. A 3-minute call: ₹66 from your balance, ₹90 from your user, ₹24 for you. Direct is billed per started minute: 1 min 05 s = 2 minutes = ₹44 at ₹22/min; 3 min = ₹66. Direct is enabled per account on request: ask us to switch it on.
Exactly how much is deducted from my balance?
Auto listing: our price is ₹12/min, so ₹12 is deducted for every connected minute, counted per second and taken every 5 seconds. 2 min 30 s = ₹30. Direct: at that host’s locked price, billed per started minute: 1 min 05 s = 2 minutes = ₹44 at ₹22/min; 3 min = ₹66. Billing starts only when the call is connected (the host’s video and sound are flowing and your user is in the room); ringing and unanswered calls are free. A USD account sees each host’s cost in $ (for example $0.2379/min).
What happens when my balance runs out during a call?
Before each 5-second step we check that the balance can pay for the next 5 seconds. If it cannot, the call ends by itself, and the reason given says the balance ran out. The balance never goes below zero and you are never charged more than you had. To start a call you need at least one minute of its price in the balance; for a Direct call, at least one full minute of the host’s price. Welcome credit is spent like balance; free minutes apply to the auto listing only.
What is the 10-second grace?
If your user drops off the call (the app closes or the network is lost), the call waits 10 seconds for them to come back. If they return, the call goes on; if not, it ends. Those 10 seconds are billed, because the host was still on the line. To stop at once, hang up from your app: in Quick mode the SDK ends the call when your user leaves; with server tokens, leave the room and ask your server to end the call.
Do you show whether a host is online?
Yes. A host who is online shows a green dot; the others show when they were last online. Last seen is rounded to 5 minutes for the host’s privacy. The API says separately whether the host can take a call now or is busy. You can sort the list by online first, price or newest, filter by language and age range, and pin featured hosts to the top.
Can I add my own gifts?
No. Gifts come from our gift catalog only, so the host’s app knows every gift and shows it properly. You cannot upload or add your own gifts. You can choose which gifts from the catalog your users see.
Can I set my own prices for gifts?
Yes. You set what your users pay for each gift, in the console or through the API. Your price cannot be below the gift list price. You collect your price from your user in your app, and you keep the difference.
What does a gift cost me?
Each gift has a cost to you, shown next to every gift in your console and in the API. You set your price and you keep the difference. Example: a gift costs you ₹60, you charge ₹150, you keep ₹90. The numbers are only an example, not a price list. The real cost of every gift is in your console and in the API.
What happens if my balance is too low?
A gift’s cost is taken from your prepaid balance when it is sent. If the balance is too low, the gift is not sent and nothing is charged: the API answers that the balance is too low. The call or live goes on under its own rules.
What if the host leaves?
If a gift cannot be delivered (the call ended, the live stopped or the host left), the amount goes back to your balance automatically, at once, and the API answers that the host was not available and that the gift was refunded. A gift that already reached her stands as sent.
Can a retry charge me twice?
No. Every send carries a request ID of your own. Sending the same ID again returns the first result, marked as a repeat, and never charges twice. Make one ID per gift and reuse it for every retry of that gift. If the answer says the gift is pending, your cost stays held until the gift is confirmed (one webhook tells you) or refused (another webhook, cost returned).
Can I switch gifts off or hide some?
Yes. One switch turns gifts on or off for your whole account (in the console, or through the API). You can also hide a single gift, in the console or through the API. A hidden gift is not in your list and cannot be sent.
Does it work for USD accounts?
Yes. The cost, your price and what you keep are all in your account’s billing currency: ₹ on a rupee account, $ on a USD account. Everything else works the same.
Which SDKs support gifts?
Web, Flutter, Android, iOS and React Native. Each SDK has an optional gift button and gift sheet for its prebuilt call and viewer screens, and delivers every gift to your app as a live event, so its animation plays. In Quick mode the app sends gifts with your App Key, no backend needed; gift prices, settings and stats stay in the console or on your server. With production hardening, sending goes from your server through the REST API.
Do you have audio-only hosts?
Yes: ask for an audio call to get a voice-only call, from ₹8 per minute (or $0.0865). Audio and video hosts are both live now. Ask for the audio host list to see who takes audio calls.
Can your hosts stream live inside my app?
Yes — we’re onboarding pilot partners now; 1:1 video and audio calls with hosts are live today. See the Live Streamers Pool pilot.
Am I charged if a host does not pick up?
No. Billing starts only when the host picks up, and you pay only for connected minutes. Calls that are not picked up are listed in your console at no charge.
Are hosts available all the time?
Availability varies by time of day. The API tells you who is online and who is busy right now, and "connect me to any available host" finds whoever is free. You only pay for connected minutes.
Which platforms does it work on?
Every SDK we have: Flutter, Web/JS, iOS, Android and React Native, plus the REST API. The call itself uses the same prebuilt call screens as the rest of the Video SDK.
Do I need a backend for the Live Hosts API?
No. With your App Key, your app lists hosts and starts a host call on its own. Hiding hosts, the price your users pay and stats stay in your console (or your server, if you have one). Server tokens are optional production hardening.
Is it available for video chat apps in India?
Yes. Indian accounts pay in rupees from a prepaid balance with UPI or bank transfer recharge. International accounts are billed in USD.
How do I get access?
It is launching now and invite-only. Message us on WhatsApp, or sign up in the console and ask for the Live Hosts API. We review each app and switch it on for approved accounts.
What does the API cover?
From the app with your App Key: list hosts and Direct hosts, start a call with a host or any available host, read or end your own calls and send gifts. From the console or your server only: pull stats per user, host or day, hide and restore hosts, read and set your prices, and receive a webhook when a call connects and when it ends. Full details are in the Live Hosts API reference.

Get access to the Live Hosts API
Invite-only while we launch. Tell us about your app on WhatsApp, or sign up in the console and ask for access.