Llama, Qwen, DeepSeek, Mistral — drop-in OpenAI-compatible.
curl --request POST \
--url https://api.tera.gw/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hexgrad/Kokoro-82M",
"input": "<string>",
"voice": "af_bella",
"response_format": "wav",
"speed": 1,
"lang_code": "<string>"
}
'"<string>"OpenAI-compatible TTS endpoint backed by Kokoro. Returns raw audio bytes.
curl --request POST \
--url https://api.tera.gw/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hexgrad/Kokoro-82M",
"input": "<string>",
"voice": "af_bella",
"response_format": "wav",
"speed": 1,
"lang_code": "<string>"
}
'"<string>"Documentation Index
Fetch the complete documentation index at: https://docs.tera.gw/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
"hexgrad/Kokoro-82M"
Text to synthesize.
Kokoro voice id.
"af_bella"
wav, mp3 0.25 <= x <= 4BCP-47 language code, e.g. en-US.
Audio bytes (WAV by default).
The response is of type file.