Frequently asked questions
How do I get my API key?
Sign up on the /get-api-key/ page using Google or an email and password. Your account page displays your active API key, current balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one.
Can I use the OpenAI Python SDK?
Yes. The API accepts the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.odv555th.com/v1 and providing your site-specific key for authentication.
What is the base URL?
The API base URL is https://api.odv555th.com/v1. Use this endpoint for all requests, including POST /v1/audio/speech for synthesis, GET /v1/voices for voice details, and GET /v1/models for model information.
How do I handle long texts?
Each request supports up to 4096 characters. For longer texts, split the input into parts of this size. Generate audio for each part separately, then join the resulting audio files to create the final output.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so under load a request may wait in a queue.
Can I change the API key?
Yes. You can issue a new API key at any time from your account page. When a new key is issued, the old one stops working immediately, ensuring you maintain control over your access credentials.
Is the API synchronous or asynchronous?
The API is synchronous. You send a POST request with your text and receive the audio file directly in the response. There is no streaming, WebSocket support, or real-time partial audio generation available in this endpoint.
Do I need to handle JSON parsing?
Yes. You must send a JSON body containing fields like model, input, voice, and response_format. The API returns the audio file, but you may need to handle errors which are returned in JSON format.
How do I specify the language?
Include the optional 'language' field with an ISO code in your request. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Set it explicitly for non-English Latin-script text.
What is the 'tts-1-hd' model?
The 'tts-1-hd' model uses the same engine and pricing as 'tts-1'. It is one of the two available model options for generating speech, with no difference in cost or character limits per request.
Can I use custom headers?
You must include the 'Authorization: Bearer tts-...' header with your API key. Other standard HTTP headers are supported.
How do I detect errors?
Check the HTTP status code and response body for error details. Failed synthesis requests are free, and the charge is returned in full. Monitor your account page for usage logs and status indicators to track request outcomes.
Is the response always an audio file?
The POST /v1/audio/speech endpoint returns the generated audio file directly. Other endpoints like GET /v1/voices return JSON data. The audio response contains an inaudible watermark marking it as synthetic speech, but is otherwise a standard audio file.
Can I send multiple voices in one request?
No. Each request specifies a single 'voice' parameter from the eight available presets. To use different voices, you must send separate requests for each voice segment and then join the resulting audio files together.
First request
curl
curl https://api.odv555th.com/v1/audio/speech \
-H "Authorization: Bearer $TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
--output hello.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.odv555th.com/v1", api_key="tts-...")
with client.audio.speech.with_streaming_response.create(
model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
response.stream_to_file("hello.mp3")Node.js (openai)
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ baseURL: "https://api.odv555th.com/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));| voice | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Authentication
Authentication for the LMS Audio Brief API relies on a single Bearer token key issued to your account. You must include this key in the Authorization header of every request to verify your identity and track usage against your balance.
Bearer token key
Each account is issued one active API key starting with tts-. This key must be passed as Authorization: Bearer tts-... in the request header. It grants access to generate speech and view usage details.
One active key per account
Your account maintains only one active key at any time. If you generate a new key, the previous one becomes invalid immediately. This ensures that all API usage is tracked under a single account for accurate billing and rate limiting.
Revoke old keys instantly
Since only one key is active, generating a new key effectively revokes the old one immediately. There is no delay or grace period. This feature allows you to secure your account quickly if a key is exposed in your LMS configuration.
Endpoints
The API provides three core endpoints to manage speech synthesis, voice selection, and model metadata. The primary endpoint handles text-to-audio conversion, while the discovery endpoints allow LMS administrators to verify available voices and format options programmatically.
POST /v1/audio/speech
This endpoint accepts JSON input containing the text, voice, and format parameters. It returns the generated audio file directly in the response body, allowing your LMS to store the audio asset immediately after generation.
- Accepts JSON body with model, input, voice, and response_format fields
- Returns audio file (MP3, WAV, OPUS, FLAC, or PCM) in the response
GET /v1/voices
Retrieve the full list of available voices, their associated languages, and supported audio formats. This endpoint helps you dynamically populate dropdown menus in your LMS interface, ensuring users select valid voice options for their course content.
- Returns list of 8 voice presets with language support details
- Includes metadata for available audio formats
GET /v1/models
Fetches the current model identifiers (tts-1 and tts-1-hd) and their technical specifications. Use this to ensure your integration aligns with the available engine capabilities and pricing structures without hardcoding model names.
- Returns model IDs and associated technical details
- Useful for validating model availability before synthesis requests

Request Body
The request body defines how the TTS engine processes your script. You specify the model, the text content, and the voice characteristics to ensure the generated audio matches your course's tone.
Model selection
Choose between "tts-1" for standard generation or "tts-1-hd" for higher quality audio. Both models use the same engine and pricing structure, allowing you to switch based on your quality needs without cost changes.
Input text field
The input field accepts your lesson script or quiz instructions. It supports up to 4096 characters per request. For longer content, split the text into parts and join the resulting audio files later.
- Spaces and punctuation count toward the character limit.
- Text up to 4096 characters is processed in a single request.
Voice parameter
Select one of eight preset voices to match your educational context. For example, use "sage" for calm instructional content or "aria" for warm narration. Each voice can speak any of the 23 supported languages.
- Available voices: aria, nova, luna, sage, felix, milo, atlas, orion.
Response Format
The API returns the synthesized audio directly in the response body, eliminating the need for polling or secondary download requests. This design allows LMS systems to receive audio data immediately after synthesis completes, streamlining the integration of voiceovers into lesson modules or quiz instructions.
Audio file in response
Generated audio is returned immediately in the HTTP response, ready for direct playback or storage. The response includes standard headers indicating the content type.
MP3, WAV, OPUS, FLAC, PCM
Specify the desired format using the response_format parameter. MP3 offers efficient compression for web delivery, while WAV and FLAC provide lossless quality for archival or high-fidelity playback. OPUS and PCM are also supported for specific technical requirements.
Error JSON on failure
If synthesis fails, the API returns a JSON object with error details. Failed requests are free, so you can retry without incurring costs, ensuring reliable integration even during high-traffic periods.
OpenAI SDK Usage
LMS administrators can leverage existing OpenAI SDKs to integrate our TTS API without learning a new library. The only adjustment required is updating the base_url to point to our endpoint. This allows teams to use familiar code structures for generating audio assets for lessons and quizzes.
Change base_url
Point your SDK client to https://api.odv555th.com/v1 instead of the default OpenAI endpoint. This ensures all requests route through our infrastructure while maintaining standard request shapes.
Use official SDKs
We support the official OpenAI SDKs for Python, Node.js, and other languages. Since our endpoint mirrors the OpenAI speech schema, no custom parsing logic is needed.
Pass API key
Include your unique API key in the Authorization header as Bearer tts-.... Ensure this key is stored securely within your LMS environment variables to prevent unauthorized usage.

Rate Limits
The API enforces a strict rate limit of 60 requests per minute per active API key. This limit applies to all endpoints and ensures fair usage across your LMS integration. Exceeding this threshold results in a 429 Too Many Requests error.
New accounts without prior top-ups start with a lower limit of 10 requests per minute. The limit is 60 requests per minute per key (10 per minute before the first top-up).
60 requests per minute
Each API key allows up to 60 requests per minute. This limit is per key, so if you use multiple keys, the limits are independent.
Requests are processed sequentially. Under heavy load, requests may wait in a queue before being processed.
- Limit is 60 requests per minute per key
- Requests are processed one after another
- Queuing may occur under load
10 requests initially
Accounts created without a top-up start with a reduced rate limit of 10 requests per minute. This applies until you add funds to your balance.
Top-ups via USDT (TRC-20) are credited automatically within minutes.
- Initial limit: 10 requests per minute
- Top-up increases limit to 60 requests per minute
- Automatic credit within minutes
Queue processing
Requests are processed in the order they are received. If the system is under load, requests may wait in a queue before synthesis begins.
This queuing mechanism ensures fair distribution of resources and prevents any single key from monopolizing the API.
- Requests processed in order
- Queuing under load
- Fair resource distribution
Text Limits
Each API request accepts up to 4,096 characters, including spaces and punctuation. This limit applies per call, not per document, so large lesson scripts require chunking before submission.
Longer texts must be divided into segments under this threshold. The API processes each segment independently, returning individual audio files that must be combined to reconstruct the full narration.
4096 characters max
Input text is capped at 4,096 characters per request. Spaces and punctuation count toward this total. Requests exceeding this limit will fail, so pre-splitting your course content is necessary.
Split long texts
Divide your script into segments of 4,096 characters or fewer. Send each segment as a separate POST request to /v1/audio/speech. This ensures consistent generation speed and avoids timeouts.
Join audio files
The API returns distinct audio files for each request. You must concatenate these files in the correct order to produce the final lesson audio. This allows flexible handling of different voice segments or pauses.

Error Handling
When synthesis fails, the API returns a JSON error object with a clear message. Failed requests incur no charge, and any prepaid balance is restored immediately. This ensures your LMS billing remains accurate even if a specific utterance fails due to transient issues.
The system distinguishes between client errors (e.g., invalid voice ID) and server errors. Failed requests are free: if synthesis fails, the charge is returned in full. You can inspect the response body to determine whether to retry or adjust the input text before resubmitting.
HTTP status codes
Standard HTTP codes indicate success (200) or specific failure types. Use 400 for invalid parameters, 401 for authentication issues, and 500 for internal service errors. Each response includes a JSON body with a descriptive error code.
- 200: Success, audio returned
- 400: Bad request, check parameters
- 401: Unauthorized, verify API key
- 500: Internal server error, retry later
Error message details
The response JSON includes a message field explaining the failure. For example, if the input text exceeds 4096 characters, the error specifies the limit. This detail helps you adjust your LMS script segmentation logic.
- Check
messagefor specific cause - Verify input length limits
- Ensure voice IDs are valid
Retry failed requests
Implement exponential backoff for 500 errors. Since requests are processed sequentially, high load may cause temporary delays. Retry failed requests after a short pause.
- Retry on 500 errors
- Use exponential backoff
- Avoid duplicate charges
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Empower large teams with seamless online courses via a unified learning management system.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- curl documentation
- FFmpeg documentation
- ISO 639 language codes
- IETF RFC 7845: Ogg Opus
- TRON developer hub: TRC-20
- W3C WAI: making audio and video accessible
- Creative Commons Attribution 4.0
- LibriVox public-domain audiobooks
- LibriTTS-R corpus (OpenSLR 141)
- Tether (USDT)
- LibriTTS-R paper (arXiv 2305.18802)
