Frequently asked questions
How do I generate an API key?
Sign up on /get-api-key/ using Google or email/password. One active key is issued per account. You can rotate it anytime via the dashboard; the old key stops immediately. Keys start with 'tts-'. No other key generation methods exist.
What is the base URL for the API?
The base URL is https://api.99laju.info/v1. Use this for all requests. The speech endpoint is POST https://api.99laju.info/v1/audio/speech. Other endpoints include GET /v1/voices and GET /v1/models. Ensure your SDK base_url matches this prefix.
Can I use the OpenAI Python SDK?
Yes. The request shape matches the OpenAI speech endpoint. Change the SDK's base_url to https://api.99laju.info/v1 and use your VoiceLift key. The official OpenAI SDKs work directly by adjusting this configuration parameter for authentication and routing.
What are the supported audio formats?
Supported formats are mp3, wav, opus, flac, and pcm. Specify the format using the response_format field in your JSON request body. Each format serves different latency and quality needs for your LMS integration workflow.
How do I specify the language in the request?
Pass an optional ISO language code in the request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting it ensures accuracy for non-English Latin-script content.
What is the maximum characters per request?
The input field supports up to 4096 characters per request. This limit applies to each individual API call. For longer course scripts, you must split the text into chunks of this size and join the resulting audio files.
How do I handle rate limits?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so under load, they may queue. Implement exponential backoff or batch processing to stay within these constraints.
Do I need to split long texts manually?
Yes. Since the maximum input is 4096 characters, you must split longer texts into parts. Generate audio for each part and join the files client-side or via your backend. The API does not handle multi-chunk joining automatically.
What happens if the API returns an error?
If synthesis fails, the charge is returned in full. Failed requests are free. Ensure your text is within the 4096 character limit and uses a valid voice and model. Check the response status code for specific error details.
Is the API compatible with other OpenAI clients?
Yes, if they use the standard OpenAI SDK structure. Change the base_url to https://api.99laju.info/v1. The endpoint and JSON body shape are identical to the OpenAI speech endpoint, allowing direct substitution for most standard integrations.
Can I change the speed of the audio?
Yes. Use the speed field in the request body. Acceptable values range from 0.25 to 4.0. This allows you to adjust the pacing of the generated audio to suit different course segments or listener preferences.
How do I rotate my API key?
Issue a new key from the /get-api-key/ dashboard page. The new key becomes active immediately, and the old one stops at once. You can perform this rotation anytime without downtime or additional fees.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and price. The difference is quality, not cost. Both are priced at $10 per 1 million characters. Choose tts-1-hd for higher fidelity or tts-1 for standard generation, with identical billing.
Can I use the API with JavaScript?
Yes. Use the OpenAI JavaScript SDK or plain HTTP requests. Set the base_url to https://api.99laju.info/v1. Include your Bearer token in the Authorization header. The JSON request body structure remains consistent with the standard OpenAI format.
First request
curl
curl https://api.99laju.info/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.99laju.info/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.99laju.info/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
Access the VoiceLift API by generating a unique key via the /get-api-key/ dashboard. Authenticate requests using the Authorization: Bearer <key> header. Each account holds one active key; issuing a new one immediately invalidates the previous token.
API Key Generation
Create a key on the dashboard. Sign up with Google or email/password. The interface displays your active key, balance, and usage stats.
Bearer Token Usage
Include the header in every POST request to /v1/audio/speech. The key authorizes up to 60 requests per minute. Short texts take a few seconds to generate; longer scripts are processed sequentially.
Key Rotation Policy
Issue a new key from the dashboard at any time. The old key stops working immediately upon generation. This ensures secure access for large LMS teams without downtime.
First Request with cURL
Retrieve an API key from /get-api-key/ and use it to generate audio. Send a POST request to the speech endpoint with your text and voice selection. The service returns the audio file directly in the response body for immediate playback or storage.
This approach allows LMS administrators to integrate bulk audio generation into their course scripts with minimal code. Use the provided cURL example to verify connectivity and understand the request structure before implementing in your preferred language.
Basic cURL Example
Use the following command to generate speech. Replace YOUR_API_KEY with your actual key and adjust the voice and text parameters as needed for your course content.
```bash curl -X POST https://api.99laju.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Welcome to this module.", "voice": "nova", "response_format": "mp3"}' \ --output audio.mp3 ```
JSON Body Structure
The request body is a standard JSON object. The model field accepts either tts-1 or tts-1-hd. The input field contains the text to convert, limited to 4096 characters. The voice field selects one of the eight available presets. The response_format field specifies the output file type.
Optional fields include speed (0.25–4.0) and language (ISO code). If language is omitted, the system guesses it from the script, defaulting to English for Latin text. Ensure you set language explicitly for non-English Latin-script text to avoid misidentification.
- model: "tts-1" or "tts-1-hd"
- input: string, max 4096 characters
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, pcm
- speed: float, 0.25–4.0
- language: optional ISO code
Response Format
A successful request returns the audio file binary in the response body. The HTTP status code is 200. The Content-Type header matches your requested format (e.g., audio/mpeg for MP3). Save the output directly to a file on your server or LMS media library.
If the request fails, you receive a JSON error object with a code and message. Failed requests incur no charge, and any prepaid balance is refunded immediately. Use the status code to determine if the audio generation was successful.
OpenAI SDK Integration
The VoiceLift API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing integration patterns with minimal changes. By updating the base URL, you can leverage familiar SDKs to generate audio files directly from your LMS scripts.
This approach simplifies integration for developers who already use OpenAI libraries, ensuring consistent behavior and easy switching between models without rewriting core request logic.
Base URL Configuration
Set your SDK's base URL to https://api.99laju.info/v1. This endpoint handles all requests, including text-to-speech synthesis, voice listing, and model information. Ensure your API key is passed in the Authorization header as Bearer <key>.
- Base URL: https://api.99laju.info/v1
- Auth Header: Authorization: Bearer <your-api-key>
- SDK Compatibility: Works with official OpenAI Python and JavaScript SDKs
Python SDK Example
Install the official OpenAI Python package. Initialize the client with your API key and the custom base URL. Call audio.speech.create() with your desired model, voice, input text, and response format. The SDK returns an AudioResponse object containing the audio bytes.
- pip install openai
- client = OpenAI(base_url="https://api.99laju.info/v1", api_key="tts-...")
- response = client.audio.speech.create(model="tts-1", voice="nova", input="Hello world", response_format="mp3")
JavaScript SDK Example
Use the openai npm package. Configure the client with the VoiceLift base URL and your API key. Invoke the speech creation method with the required parameters. The response provides a stream or blob containing the generated audio file, ready for playback or storage in your LMS.
- npm install openai
- const openai = new OpenAI({ baseURL: "https://api.99laju.info/v1", apiKey: "tts-..." });
- const response = await openai.audio.speech.create({ model: "tts-1", voice: "nova", input: "Hello world", response_format: "mp3" });
Supported Models
VoiceLift offers two model variants for text-to-speech synthesis, both powered by the same underlying engine. The choice between them affects audio fidelity, but not pricing, voice characteristics, or language support.
tts-1 Model
The tts-1 model provides standard audio quality at the base rate. It is suitable for most course content where ultra-high fidelity is not critical, such as instructional narration or background audio.
tts-1-hd Model
The tts-1-hd model delivers higher fidelity audio with less compression artifacts. It is ideal for premium course modules or content where audio clarity directly impacts learner engagement and retention.
Engine Differences
Both models use the same engine and voice presets. The primary difference lies in the synthesis complexity, which affects the output file size and perceived clarity. Pricing is identical for both: $0.01 per 1,000 characters.
- Same 8 voice presets available for both models
- Identical character limit of 4,096 per request
- Same speed control range (0.25–4.0)
- No difference in language support or audio formats
Voice Selection
VoiceLift provides eight distinct voice presets optimized for educational content, ranging from warm narrators to neutral news anchors. Each voice is engineered for clarity and consistency.
Select the voice that best matches your course tone. All voices support the full range of 23 languages, allowing you to maintain consistent audio quality across multilingual curricula regardless of the voice’s origin.
8 Preset Voices
Choose from four female and four male voices. Options include Aria and Luna for storytelling, Felix and Milo for conversational lessons, and Atlas for news-style or Orion for documentary content.
Each voice is derived from licensed LibriTTS-R recordings, ensuring high fidelity. Select the preset that aligns with your instructional style, whether it’s calm instruction or energetic promotion.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Voice Characteristics
Voices are designed for clarity in long-form content. They avoid excessive emotional inflection, making them suitable for dense educational material. Each generated file includes an inaudible watermark identifying it as synthetic speech.
Characteristics are consistent across requests. Speed adjustments (0.25–4.0) allow you to fine-tune pacing without altering the voice’s fundamental tone or quality.
Language Compatibility
Any voice can speak any of the 23 supported languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text. Set language explicitly for non-English Latin scripts to ensure accuracy.
Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.

Audio Formats
Choose the audio format that best fits your LMS player and bandwidth constraints. The API accepts mp3, wav, opus, and flac via the response_format field, allowing you to balance file size and quality without re-encoding.
MP3 Support
MP3 is the default and most compatible format for web players. It offers a good balance between file size and audio quality, making it ideal for streaming course modules over standard internet connections.
WAV Support
WAV provides uncompressed audio. Use this format when you need exact fidelity for archival purposes.
Opus and FLAC Options
Opus offers superior compression for smaller file sizes while maintaining high quality, ideal for mobile learners with limited data plans. FLAC provides lossless compression, preserving every detail of the synthesized speech.
- Opus: High efficiency, small file size
- FLAC: Lossless compression, perfect quality
Rate Limits
VoiceLift processes synthesis requests sequentially, meaning under load a request may wait in a queue. Typical generation speed is roughly real time, or about 25 characters of text per second of generation. Short phrases may take a few seconds to complete.
60 Requests Per Minute
Each API key is limited to 60 requests per minute. This limit applies to the total number of synthesis calls, regardless of text length or format. Exceeding this threshold results in a rate limit error until the window resets.
Initial 10 Requests Per Minute
New accounts start with a reduced limit of 10 requests per minute. This applies immediately after account creation or key generation. The limit remains in effect until you perform your first top-up.
Limit Increases
There are no custom tiered plans or seat-based limits. Your rate limit is fixed at 60 requests per minute after the initial top-up. To handle larger batches, split long texts into parts of up to 4096 characters and manage concurrency in your integration logic.
Error Handling
The API returns standard HTTP status codes to indicate request outcomes. Understanding these codes allows your integration to handle failures gracefully without wasting credits on invalid inputs or system limits.
Common Error Codes
Use 400 for invalid parameters like unsupported voices or format errors. Use 429 when you exceed the 60 requests per minute limit. A 500 indicates a temporary server issue during synthesis.
- 400: Bad Request (invalid input)
- 429: Too Many Requests (rate limit exceeded)
- 500: Internal Server Error (transient)
Retry Logic
Implement exponential backoff for 429 and 500 errors. Do not retry 400 errors as they indicate a configuration issue. Short texts may take a few seconds, so avoid aggressive immediate retries.
Failed Request Refunds
If synthesis fails due to server issues, the charge is returned in full. You do not need to manually claim credits. Check your balance after a failed request to confirm the refund.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. For precise control, especially with code-switching or proper nouns, always specify the language code explicitly.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- W3C WAI: making audio and video accessible
- OpenAI API reference: create speech
- Node.js documentation
- ISO 639 language codes
- Creative Commons Attribution 4.0
- openai-node on GitHub
- Python documentation
- LibriTTS-R paper (arXiv 2305.18802)
- curl documentation
- LibriTTS-R corpus (OpenSLR 141)
- TRON developer hub: TRC-20
