TTS API
Generates audio from the input text.
Official Guide
We provide this cost friendly API for high throughput scenarios, there's no rate limit 🚀!
For more detailed API spec, see platform.openai.com/docs/api-reference/audio/createSpeech
Available models:
- tts-1
- tts-1-hd
Pricing
The price of tts call is 75% of the price of OpenAI official website. Details: LLM API | PPU Quota | Endpoint Usage
Request Example
curl https://api.goapi.ai/v1/audio/speech \
-H "Authorization: Bearer $YOUR_GOAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}' \
--output speech.mp3