Runnable examples
The KittenML API examples repository contains small programs and sample audio for every primary inference route.
Clone them. Run them. Change them. Break them. These are deliberately small enough to understand before you carry them into a real application.
| Task | cURL | Python | Node.js |
|---|---|---|---|
| Upload STT | Yes | OpenAI SDK | OpenAI SDK |
| Upload STT with SSE | Yes | — | — |
| Realtime STT | — | websockets | ws |
| Multi-turn realtime STT | — | websockets | — |
| Browser WebRTC STT | — | — | Browser + Node.js token server |
| Streaming TTS | Yes | OpenAI SDK | OpenAI SDK |
Clone and configure
git clone https://github.com/haaziq-sl/kittenml-api-examples.git
cd kittenml-api-examples
export KITTENML_API_KEY="sk_kitten_live_..."
The repository includes a small audio sample, dependency versions, expected terminal output, and a README beside each example.
Pick your path
- Upload examples
- Realtime WebSocket examples
- Browser WebRTC example
- TTS examples
- Realtime event reference
Happy building, kittens. If an example behaves differently on your audio or in
your environment, keep the request_id and tell us what happened.