Updates

Get started with the TTS API: find voices and generate speech

Find available voices and generate your first line as an MP3 with the Kitsch Labs TTS API. Learn API key setup, request examples, streaming, and current capabilities.

Kitsch LabsUpdated
Oil-painted doorways leading into different story worlds

Introducing the Kitsch Labs API. You can now bring the AI voices you choose in the app into games, animation tools, AI character chat, and other products. Generate a voice for the moment a character first says hello, or for a line that changes with a player's choice.

The API lets you list available voices, turn text into speech, and receive a streaming-format response. Voice access and request limits are checked against your account. See the full request contract in the Text to Speech API documentation. Here's how to create an audio file from your first line.

Find a voice and generate a line

Start with GET /v1/voices to see the voices available to your account. Choose a voice ID that suits your character, then send it and your line to POST /v1/text-to-speech/{voice_id} to receive audio.

Listen to character samples in the voice catalog before choosing a voice.

Create a key in the app's API key page, then replace YOUR_API_KEY and VOICE_ID below with your values. Keep the API key on your server.

curl --fail --show-error "https://api.kitschlabs.com/v1/voices" \
  -H "xi-api-key: YOUR_API_KEY"

Use a voice_id from the response in the request below. Store the ID rather than the display name so a name change does not break your voice selection.

curl --fail --show-error -X POST "https://api.kitschlabs.com/v1/text-to-speech/VOICE_ID?output_format=mp3_44100_128" \
  -H "xi-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"You made it. I was waiting for you.","language_code":"en"}' \
  --output character-line.mp3

This request saves an MP3 file. In a product, your server can call the API and deliver the resulting audio at the right point in a game dialogue or conversation.

Receive audio as a streaming response

To receive an HTTP streaming response, send the same request body to POST /v1/text-to-speech/{voice_id}/stream. Authentication stays the same, and streaming supports MP3, PCM, and WAV output.

The time before someone hears a voice depends on generation, transfer, and playback preparation in your client. Check the time to first audible speech and interruptions with your actual line lengths and network conditions. See the speech streaming API documentation for WebSocket connections that accept text in parts and playback guidance for each output format.

Choose a voice and language for your character

The same line can create a different scene depending on the voice. Check the GET /v1/voices response for voices and languages available to your account, then set the spoken language with language_code.

The current public API does not support delivery instructions through instruct or speed and duration control through speed and duration. Bracketed strings such as [laughter] are not emotion controls and may be spoken aloud. Enter the dialogue and punctuation you want, then listen to the generated audio to choose a voice and wording that suit your character.

Listen to several lines before settling on a voice. A single sample is only the beginning; the character should still sound like the same person across consecutive game lines, animation cuts, and longer character-chat exchanges.

Before connecting a live product

Store API keys on your server, never in browser or client code. Available voices depend on your account's access, and requests are subject to usage and credit limits. Check the plan usage terms and your chosen voice's terms before commercial use.

Start with a short representative line and check audio quality, response time, and what people see when a request fails.

Give your character a first line

The Kitsch Labs API is a starting point for bringing a voice into a scene in your product. Check the current request format and supported features in the Text to Speech API documentation, then create an API key and generate your first line.

If you are building character chat, explore the AI companion use case too.

Kitsch Labs

We make AI lovable.