TTS-1
openai/tts-1Call this model
Turn text into speech with this model. The response is the audio file; the cost is in the X-Lykia-Cost header.
curl https://api.getlykia.com/v1/audio/speech \
-H "Authorization: Bearer $LYKIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "openai/tts-1", "input": "Your order is on its way.", "voice": "VOICE_ID" }' \
--output speech.mp3import os
from openai import OpenAI
client = OpenAI(base_url="https://api.getlykia.com/v1", api_key=os.environ["LYKIA_API_KEY"])
audio = client.audio.speech.create(
model="openai/tts-1",
input="Your order is on its way.",
voice="VOICE_ID", # list voices: GET /audio/voices?model=...
)
audio.write_to_file("speech.mp3")Capabilities
- Audio formats
- mp3, opus, aac, flac, wav, pcm
- Speed
- 0.25×–4×
- Input limit (characters)
- 4,096
- Voice instructions
- Not supported
- Retires on
- Jan 6, 2027
A value the model doesn't support is rejected with an error that names the parameter; it is never dropped silently.
Pricing
| Variant | Price |
|---|---|
| Base price | $0.015per 1K characters |
List prices in USD for the variant you request. The highest possible cost is set aside before the request runs, and you are charged for the units the provider reports. Failed and cancelled jobs are free unless the provider charged for the rejection.
See pricingConnection
Lykia connects to this model directly through OpenAI. Requests are sent with the key for that provider that you add to your project.
This model's provider isn't sold on Lykia credits. Add the provider's API key to your project and you can call the model through Lykia; the provider bills you for the usage. The price shown is the provider's list price.
Dates
- Released or added
- Nov 23, 2026
- Retirement date
- Jan 6, 2027