Developer preview

Jutusta Speech · Developer API

An HTTP interface to the Jutusta speech stack: text-to-speech with the same voices that power Jutusta, plus speech-to-text (sync and async/webhook). Point your baseUrl at /api/v1 and authenticate with an xi-api-key header.

Quick start

Base URL
Authentication
xi-api-key: sk_jt_…

First request

curl -X POST 'https://jutusta.ee/api/v1/text-to-speech/kerli' \
  -H "xi-api-key: $JUTUSTA_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"text": "Tere! Siin räägib Jutusta."}' \
  --output tere.wav

The request returns a WAV file. Put your API key in the JUTUSTA_API_KEY variable. Create an API key →

Endpoint shapes follow the ElevenLabs v1 API, so existing ElevenLabs SDKs work as drop-in clients — point their baseUrl at /api/v1.

Machine-readable spec openapi.json openapi.yaml /models

Voice samples

Your personal voice samples are exposed through the same v1 endpoints as the presets. Pass a sample's voice_id to /text-to-speech/{voice_id} to synthesize with it.

  • GET /v1/voices returns presets plus your voice samples, marked category: "cloned".
  • POST /v1/voices/add creates a new voice sample from a reference audio file, multipart files field, 6–45 s of clean speech (30–45 s clones best), max 16 MB.
  • POST /v1/text-to-voice/design makes up to three Estonian voice previews from a short description of the speaker (sex, age, setting); save one with POST /v1/text-to-voice and its generated_voice_id within 24 hours.
  • preview_url on user-created voices requires the same xi-api-key as the rest of the API.

You can also manage voice samples in the UI at /en/app/text-to-speech.

Streaming TTS

For long scripts where time-to-first-audio matters, the synth has two streaming modes. Chunked HTTP POST /text-to-speech/{voice_id}/stream splits the input into sentence-sized segments and streams a single WAV — drop-in for any HTTP client. The WebSocket wss://…/api/v1/text-to-speech/{voice_id}/stream-input mirrors the ElevenLabs `stream-input` protocol for voice-agent use: push JSON text frames as your LLM emits tokens, receive base64 PCM audio frames back, and send a `cancel` frame to stop the speech when the caller interrupts, without reconnecting. See the full protocol (frame shapes, auth, cancel, billing, idle timeout, error codes) in the API reference below.

Your own voice clones work here too: put the clone's id in the voice_id part of the URL.

API reference

Live schema served from /api/v1/openapi.json.

Loading reference…