Skip to main content

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.

TaskcURLPythonNode.js
Complete-response TTSYesOpenAI SDKOpenAI SDK
Binary or SSE output-streaming TTSYesOpenAI SDKOpenAI SDK
Realtime text-input TTS—WebSocketWebSocket
List TTS voicesYesStandard libraryfetch
Kitten TTS 2 decoding controlsYesOpenAI SDKOpenAI SDK
Upload STTYesOpenAI SDKOpenAI SDK
Upload STT with SSEYes——
Realtime STT—websocketsws
Multi-turn realtime STT—websockets—
Browser WebRTC STT——Browser + Node.js token server

Clone and configure​

git clone https://github.com/KittenML/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​

Happy building, kittens. If an example behaves differently on your audio or in your environment, keep the request_id and tell us what happened.