SDKs & compatibility
The Svara Python SDK, and using the OpenAI or ElevenLabs SDKs against Svara.
Svara Python SDK
The official SDK. One dependency-light package (httpx + websockets) that covers the whole surface: sync and async clients, HTTP streaming, the input-streaming WebSocket behind one method call, pronunciation dictionaries, a CLI, and drop-in LiveKit / Pipecat plugins. The distribution is svara-voice; the import is import svara.
pip install git+https://github.com/kenpath-labs/svara-python.gitpip install svara-voice is the same package and the same import. Extras use the same URL: pip install "svara-voice[livekit] @ git+https://github.com/kenpath-labs/svara-python.git".OpenAI SDKs
The official OpenAI Python and JavaScript SDKs work against Svara unmodified: point base_url at Svara and pass your key. Svara-specific fields ride in extra_body (Python) or as extra properties (JS).
pip install openaiElevenLabs SDKs
The official ElevenLabs SDKs also work unmodified, including their realtime WebSocket client. Pass any non-empty api_key; its presence is also how GET /v1/models decides to answer in the ElevenLabs array shape.
pip install elevenlabsBase URL conventions
/v1: OpenAI SDKs include it in the base URL (https://api.kenpathlabs.com/v1), while ElevenLabs SDKs do not (https://api.kenpathlabs.com); they append v1/… themselves.Compatibility surface
What maps, and what to expect:
- Full support: TTS + streaming, all output formats and rates, timestamps, the realtime WebSocket, voice list/search, models, languages.
- Honored:
voice_settings.speedmaps onto the native speed parameter (their 0.7–1.2 range sits inside our 0.7–1.5) — on HTTP, with-timestamps and the realtime WebSocket alike. - Accepted and ignored:
voice_settings(stability/similarity/style),seed,model_id,previous_text/next_text, request stitching. These don’t map onto this model; requests including them still succeed. (Pronunciation dictionaries are supported — see the guide.) - Stubbed: user/subscription and voice-settings endpoints return valid, permissive shapes so SDK flows don’t break.
A machine-readable OpenAPI document is served live at https://api.kenpathlabs.com/openapi.json: generate typed clients from it (Fern, Stainless, Scalar) for languages the official SDK doesn’t cover yet.