Quick mode New
Package, App Key, init: video and voice calls with no backend.
No backend needed: add your App Key in the app and start calling. A server is optional, for production hardening.
Available onnpmpub.devJitPackSwift Package ManagerGitHub
What Quick mode is
Three things, and nothing on your server:
- The package for your platform, from its public registry (pub.dev, npm, JitPack or Swift Package Manager).
- The App Key, from the console under Projects → Quick mode.
initwith the App Key and your own id of the signed-in user, thenstartCallorjoinCall.
flutter pub add titli_video_sdk
# or in pubspec.yaml
dependencies:
titli_video_sdk: ^0.2.0// settings.gradle.kts: repositories { google(); mavenCentral(); maven("https://jitpack.io") }
dependencies { implementation("com.github.titli-video-sdk:titli-video-sdk-android:0.2.0") }// Xcode → File → Add Package Dependencies… → https://github.com/titli-video-sdk/titli-video-sdk-ios (from 0.2.0)
// CocoaPods: pod 'TitliVideoSDK', :git => 'https://github.com/titli-video-sdk/titli-video-sdk-ios.git', :tag => '0.2.0'
import TitliVideoSDKnpm install titli-video-sdk-react-native<!-- titli-call.js from npm (titli-video-sdk), served by jsDelivr; it defines TitliVideo. With a bundler: npm i titli-video-sdk -->
<script src="https://cdn.jsdelivr.net/npm/titli-video-sdk@0.2.0/titli-call.js"></script>
<div id="stage"></div>import 'package:titli_video_sdk/titli_video_sdk.dart';
// 1. Once, at app start: your App Key and your own user id. No server needed.
await TitliVideo.init(appKey: 'tak_…', userId: 'user-42', userName: 'Asha');
// 2. Start a video call (you are the caller and the payer)...
final call = await TitliVideo.startCall(type: TitliCallType.video);
// share call.callId with the other person your own way (push, your chat, Titli Chat)
// 3. ...and on the other phone, join it.
await TitliVideo.joinCall(callId);// 1. Once, in Application.onCreate: your App Key and your own user id
TitliVideo.init(context, appKey = "tak_…", userId = "user-42", userName = "Asha")
// 2. Start a video call (suspend; call from a coroutine)
val call = TitliVideo.startCall(type = TitliCallType.VIDEO)
// share call.callId with the other person
// 3. On the other phone
TitliVideo.joinCall(callId)import TitliVideoSDK
// 1. Once, at launch: your App Key and your own user id
TitliVideo.initialize(appKey: "tak_…", userId: "user-42", userName: "Asha")
// 2. Start a video call
let call = try await TitliVideo.startCall(type: .video)
// share call.callId with the other person
// 3. On the other phone
try await TitliVideo.joinCall(callId)import { TitliVideo } from 'titli-video-sdk-react-native';
// 1. Once, at app start
TitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Asha' });
// 2. Start a video call
const call = await TitliVideo.startCall({ type: 'video' });
// share call.callId with the other person
// 3. On the other phone
await TitliVideo.joinCall(callId);// 1. Once, on page load: your App Key and your own user id
TitliVideo.init({ appKey: 'tak_…', userId: 'user-42', userName: 'Asha' });
// 2. Start a video call into a container on your page
const call = await TitliVideo.startCall({ type: 'video', container: '#stage' });
// share call.callId with the other person
// 3. In the other browser
await TitliVideo.joinCall(callId, { container: '#stage' });The same App Key also reaches Live Hosts, Live Streams, gifts and chat from the app. Every route and parameter it can use is on the Client API (Quick mode) page; a step-by-step first call is in the Quickstart.
The App Key is publishable, not a secret: it can only reach the app-facing routes, it is bound to your package name, bundle ID or website, and spend and usage caps fence it. The binding is a deterrent, not a lock (a determined attacker can copy an app's identity), so the caps are what limit the damage. For strict control, add server tokens (production hardening below).
Set in your dashboard vs. set in code
| Setting | Where |
|---|---|
| App Key, its bindings (package name, bundle ID, website, signing certificate) and Quick-mode caps | Dashboard: Console → Projects → Quick mode |
| Daily spend cap of a project | Dashboard: Console → Projects |
| Minutes per user per day and the longest Quick-mode call | Dashboard: Console → Projects → Quick mode |
| Who the user is (user id, display name) | Code: init / setUser in the app |
| Call length | Code: max_duration_seconds when you create the call, or the project default |
Bindings: which apps may use the key
Add every app that may use the App Key in the console. A request from anything else is refused with APP_NOT_ALLOWED (AB-403).
| Platform | What you add |
|---|---|
| Android | Package name (applicationId), and if you like the SHA-256 of your signing certificate |
| iOS | Bundle ID |
| Web | Website origin, for example https://app.example.com (or http://localhost:5173 while you develop) |
The binding is a deterrent, not a lock: an app's identity can be copied. The caps below are what limit any damage.
Caps
- Daily spend cap for Quick mode, per project: when it is reached, new calls get
QUICK_DAILY_CAP_REACHED(QC-402). - Minutes per user per day: when a user has used them,
END_USER_DAILY_LIMIT(UM-429); a running call ends with that reason. - Longest call:
max_duration_secondsis capped by the Quick-mode call length. - Rate limits per IP and per device.
Quick-mode calls are paid from the same prepaid balance at the same prices as any other call.
Error codes
Every SDK raises one error type with a short message you can show your users as is (userMessage, userMessageHi). The full text of each code is on Error codes.
| Code | Short code | HTTP | When |
|---|---|---|---|
APP_KEY_INVALID | AK-401 | 401 | The App Key is missing, wrong, rotated away or disabled. |
QUICK_DAILY_CAP_REACHED | QC-402 | 402 | The project's Quick-mode daily spend cap is reached. |
QUICK_MODE_OFF | QM-403 | 403 | Quick mode is switched off for the project, or paused by us. |
APP_NOT_ALLOWED | AB-403 | 403 | The package name, bundle ID, website or signing certificate is not on the key's allowlist. |
END_USER_DAILY_LIMIT | UM-429 | 429 | This user used today's minutes (also the end reason when a call is cut). |
Never retry a 4xx answer except 429 (wait for Retry-After); back off 1 s, 2 s, 4 s on a 5xx answer.
When to move to server tokens
Stay on Quick mode while the caps are enough control. Move to server tokens when you need any of these:
- your server must decide who joins which call, for how long and in which role (paid consultations, verified users only);
- you cannot accept that anyone holding the App Key can claim any user id;
- you need the server-only routes anyway: balance, usage, receipts, webhooks setup, gift prices, keys.
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.
The move needs no new SDK: keep init for the user, have your server create calls and mint tokens (Authentication, REST API) and pass the token to the existing connect call. Switch Quick mode off in the console once every app version uses server tokens (QUICK_MODE_OFF, QM-403).