Endpoints
Text-to-speech (TTS)
The speech synthesis endpoint accepts text and returns an audio track. The request and response format is compatible with the OpenAI Audio Speech API.
Speech synthesis
POST/v1/audio/speech
Pass the text in input, the voice model ID in model and, optionally, voice; the response returns an audio file.
cURL
curl -X POST https://kiree.net/v1/audio/speech \
-H "Authorization: Bearer sk-your-kiree-key" \
-H "Content-Type: application/json" \
-d '{
"model": "<tts-model-id>",
"input": "Hello! This is text-to-speech via kiree.net.",
"voice": "default"
}' --output speech.mp3