Getting started
Get an access key for the hosted ker-ai Malayalam voice API and make your first calls — health check, then a live voice turn over the WebSocket.
This guide takes you from nothing to a first voice turn against the hosted API.
1. Get a key
The API is invite-based during early access. Request access; when you are invited you receive an API key and your service base URL (e.g. https://api.kerai.io).
Keep the key server-side or inject it at build time. Never commit it.
2. Check the service
A plain REST call confirms your key and reachability.
List the speech, language, and voice options available to you:
3. Open a voice session
Voice runs over a WebSocket at /ws/voice. Open it, send a session.init, then stream the user's speech as audio.chunk events.
Prefer text instead of audio? Set mode: "client_text" and send text turns — ker-ai returns text. See interaction modes.
4. Handle a tool call
When the model decides to act, ker-ai emits function.call. Run the matching
function in your app and send the result back with the same id; ker-ai folds
it into the reply.
Now a user can say "ഇത് കാർട്ടിൽ ഇടൂ", ker-ai calls add_to_cart, and speaks
your result back.
Next steps
- Read the API reference for the full event list and session config.
- Understand interaction modes and tool calling.
A Flutter SDK that wraps all of the above is planned but not yet published. Until then, integrate against the API as shown here.