REST API
A single endpoint per action - render, clone, list voices, list languages. Deterministic responses, well shaped errors.
Koythu ships with the primitives a production system expects - predictable latency, streaming output, scope bound tokens, timing metadata, and dedicated capacity at business scale. No surprises the first time you plug it into an IVR.
import { Koythu } from '@koythu/sdk';
const koythu = new Koythu({ token: process.env.KOYTHU_TOKEN });
const audio = await koythu.render({
voice: 'aanya',
tone: 'warm',
language: 'en-IN',
script: 'Welcome. Your table is ready.',
format: 'wav',
stream: true,
});
await audio.pipe(fs.createWriteStream('welcome.wav'));A single endpoint per action - render, clone, list voices, list languages. Deterministic responses, well shaped errors.
For live IVR and voice bots. Open a socket, stream text tokens, receive audio chunks with low first byte latency.
Median first byte on standard voices stays under one second. Business tier gets reserved capacity for peak traffic.
Phoneme, word and sentence boundaries returned with every render. Fits caption pipelines and IVR menu logic.
Every API key is scoped to voices, languages, and usage caps. Rotate without downtime, audit without effort.
Reference implementations for Node, Python, Go and PHP. Copy paste starts working before you finish the API tour.
Replace legacy IVR prompts one call flow at a time. The same voice reads menus, greets returning callers, and confirms transactions.
The onboarding tour, the delivery ETA, the confirmation of an action - all in a voice that matches the brand, in every language the product ships in.
Streaming render pairs with your LLM tokens for a voice agent that speaks as it thinks. No pre buffer stall, no read out lag.