Frequently asked questions
How do I get my API key?
Sign up on /get-api-key/ using Google or email. Your key appears on the dashboard, ready for immediate use. You can issue a new key at any time, which instantly invalidates the previous one. One active key is allowed per account.
Can I use the OpenAI SDK with this API?
Yes. The endpoint matches the OpenAI speech shape. Change the SDK’s base_url to https://api.erek69.info/v1 and use your site key. The official OpenAI SDKs work directly without modification, providing a familiar integration path for developers.
What audio formats are supported?
We support mp3, wav, opus, flac, and pcm. Select your preferred format in the response_format field. These options cover most assistive device requirements, from compressed web audio to lossless formats for high-quality playback.
How do I handle API errors?
Failed requests are free; charges are returned in full. Check the response status code to identify issues like rate limits or invalid input. Ensure your text is under 4096 characters and your key is valid.
What are the rate limits?
Limits are 60 requests per minute per key. New accounts start with 10 requests per minute until the first top-up. Requests process sequentially, so high load may cause queuing delays. Monitor your usage via the dashboard.
How do I choose a voice?
Select from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each has a distinct tone, from warm narration to deep documentary styles. All voices support all 23 languages. Use the /v1/voices endpoint to list them.
Which languages are supported?
We support 23 languages including English, Spanish, German, Japanese, and Hindi. Voices can speak any supported language. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported. Set the language code explicitly for non-English Latin text.
Can I use this API with React Native?
Yes. Since the API uses standard HTTP POST requests, you can integrate it with React Native using fetch or axios. The request body matches the OpenAI speech endpoint format. No specific mobile SDK is required.
How do I detect the language automatically?
If you omit the language field, the system guesses it from the script. Latin script defaults to English. For non-English Latin text, explicitly set the language parameter to ensure accurate synthesis and avoid mispronunciation.
What happens if I exceed the rate limit?
Requests will be rejected with an error status. No charge is applied for failed requests; charges are returned in full. You must wait until the minute window resets or reduce your request frequency. Monitor your usage to stay within the 60 requests/minute limit.
Is there a Python SDK?
There is no dedicated Python SDK. However, you can use the official OpenAI Python SDK by setting the base_url to https://api.erek69.info/v1. Alternatively, use standard HTTP libraries like requests to send JSON payloads directly.
How do I specify a language manually?
Include the language field in your request body with the ISO code (e.g., "es" for Spanish). This overrides automatic detection. It is recommended for Latin-script text that is not English to ensure correct pronunciation and voice behavior.
Can I stream audio in real-time?
No. The API returns the complete audio file in the response. There is no WebSocket or streaming support. For long texts, split the input into parts under 4096 characters, generate each, and join the audio files.
How do I test the API with sample text?
Use the curl example on /get-api-key/. Send a POST request to /v1/audio/speech with a short text. Your free trial includes $0.50 credit (approx. 50,000 characters) if signed in with Google. Failed requests are free.
First request
curl
curl https://api.erek69.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.erek69.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.erek69.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 |
Get Your API Key
Start by creating an account on the /get-api-key/ page using your Google account or an email address. This gives you immediate access to the dashboard where your API credentials and usage statistics are managed.
Once registered, you can generate a unique API key. This single key authenticates all your requests to the speech endpoint and is tied to your billing balance.
Sign up with Google or email
Registration takes seconds. Google sign-in provides a $0.50 trial credit valid for 7 days, allowing you to test the API immediately. Email accounts start with zero balance but offer the same core functionality.
Generate your key
Navigate to the dashboard to generate your Bearer token. Each account holds one active key at a time; issuing a new key instantly invalidates the previous one, ensuring security if a key is compromised.
- Keys begin with "tts-"
- One active key per account
- Instant revocation on new generation
Copy and secure your key
Copy the generated key from your dashboard. Store it securely in your environment variables or secret manager. Do not share it publicly, as it is directly linked to your character usage and billing.
First Request with cURL
Send a POST request to https://api.erek69.info/v1/audio/speech with your API key. This endpoint accepts JSON bodies containing the text to convert.
Basic text-to-speech request
Use the tts-1 or tts-1-hd model with your input text (up to 4096 characters). Include your Authorization: Bearer header to authenticate the request.
Specify voice and language
Select from 8 preset voices like nova for clear narration or atlas for neutral tones. Optionally set the language parameter to ISO codes; otherwise, the system guesses from the script, defaulting to English for Latin text.
- Voice:
nova,aria,atlas, etc. - Language: Optional ISO code
Receive audio file
The API returns the audio file directly in the response body. Supported formats include mp3, wav, opus, flac, and pcm via the response_format field.
- Format:
mp3,wav,opus - Response: Binary audio data
OpenAI SDK Integration
Integrate our TTS API using the official OpenAI SDK by simply pointing it to our endpoint. This approach ensures compatibility with standard libraries without requiring additional dependencies or custom wrappers.
By adjusting the base URL, you can leverage existing code structures while accessing our specific voice models. This method simplifies deployment for applications that require reliable, predictable audio generation.
Set base_url to api endpoint
Configure your OpenAI client's base_url to https://api.erek69.info/v1. This directs all requests to our infrastructure while maintaining the standard request shape used by the OpenAI speech endpoint.
Ensure you include your API key in the Authorization header as Bearer <your-key>. This key is generated via your account dashboard at /get-api-key/.
- Base URL: https://api.erek69.info/v1
- Auth Header: Authorization: Bearer tts-...
Use standard OpenAI SDK methods
Use the standard client.audio.speech.create() method. Pass your model (tts-1 or tts-1-hd), input text, and desired voice preset. The SDK handles the JSON payload and audio response serialization.
This works seamlessly for generating audio files for assistive devices. You can specify formats like MP3 or WAV and adjust speed between 0.25 and 4.0 to suit user needs.
No custom SDK needed
No proprietary SDK is required. You can use any language supported by the OpenAI SDK or make direct HTTP requests. This reduces integration overhead for developers maintaining legacy codebases.
The request structure mirrors the OpenAI spec exactly, allowing easy migration if needed. We do not offer a separate mobile or WordPress SDK, keeping the stack lightweight.
Supported Audio Formats
The API returns synthesized audio in standard formats compatible with most assistive device players. Selecting the appropriate format balances file size, quality, and playback compatibility.
MP3 for web playback
MP3 is the default choice for web-based interfaces and mobile apps. It offers a good balance between file size and audio quality, ensuring quick loading times for voice responses in assistive applications.
WAV for high quality
Use WAV when bit-perfect audio is required, such as for local storage or high-fidelity playback systems. This uncompressed format ensures no loss in quality during processing but results in larger file sizes.
OPUS for low bandwidth
OPUS provides excellent compression efficiency, ideal for devices with limited storage or slow network connections. It maintains clear speech intelligibility even at lower bitrates, making it suitable for remote assistive care setups.
Handling Errors
Synthesizing audio for assistive devices requires robust error handling to ensure a seamless experience for elderly users. Understanding failure modes helps you implement reliable fallbacks in your voice interface.
Requests may fail due to transient network issues or input constraints. Implementing exponential backoff for retries ensures your application remains responsive without overwhelming the API.
Common error codes
The API returns standard HTTP status codes to indicate the result of your synthesis request. A 4xx error typically indicates an issue with your request, such as an invalid voice ID or a text input exceeding the 4096-character limit. A 5xx error suggests a temporary server-side issue.
- 400: Bad Request (e.g., invalid model or voice)
Retry failed requests
For temporary failures (5xx), implement exponential backoff to retry the request. Since each request is independent, retrying a failed synthesis is safe and will incur a charge only if the retry succeeds. Failed requests are free, so you do not lose credit for retries that also fail.
- Retry on 5xx with exponential backoff
Check rate limits
Each API key is limited to 60 requests per minute. If you exceed this limit, you will receive a 429 Too Many Requests error. New accounts start with a limit of 10 requests per minute until the first top-up is processed. Monitor your usage in the dashboard to avoid interruptions in your voice service.
- 60 requests/minute per key
- 10 requests/minute for new accounts
- 429 error on limit exceeded

Rate Limits
Predictable latency is critical for assistive devices. Our API enforces a global limit of 60 requests per minute per key. This ensures consistent performance for voice interfaces.
60 requests per minute
Each API key allows 60 synthesis requests within a 60-second window. Requests are processed sequentially, so under load, generation may queue slightly. For typical use, long texts generate at roughly real-time speed (25 characters per second).
10 requests before first top-up
New accounts start with a restricted rate of 10 requests per minute. This applies until your first USDT top-up is credited. Once funded, the limit increases to the full 60 requests per minute, supporting sustained usage for your app.
Monitor usage in dashboard
Track your consumption and remaining balance directly in the dashboard. View character counts, request status, and key details. This transparency helps indie developers manage costs and ensure reliability for low-volume, high-reliability assistive tech deployments.
Voice Selection
Selecting the right voice is critical for assistive devices where clarity reduces cognitive load for elderly users. Our API provides eight distinct presets, each engineered for specific use cases, from calm narration to energetic announcements.
8 preset voices
Choose from four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion). Each voice is based on licensed recordings.
- 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
Male and female options
The balance of male and female options allows you to tailor the auditory experience to your user base. Whether you need a neutral news anchor tone or a friendly conversational partner, the preset covers common accessibility needs.
Clear, distinct tones
Each voice has a distinct timbre. The consistent tone across requests ensures a predictable user experience in assistive applications.
Language Support
Language support is critical for assistive devices serving diverse elderly users. Our API covers 23 languages, including Arabic, Chinese, English, German, Japanese, Korean, Spanish, and Hindi, ensuring broad accessibility for global or multilingual user bases.
Text clarity depends on accurate language handling. We provide automatic detection for most inputs, but manual override ensures precision when context is ambiguous, preventing mispronunciation in critical instructions.
23 languages available
The API supports 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
Any voice can speak any of these languages, allowing developers to mix voices and languages in a single application without technical constraints.
Automatic language detection
If the language field is omitted, the API guesses the language from the script. Latin script text defaults to English.
This simplifies integration for single-language apps but may misinterpret multilingual inputs or code-switching.
- Unsupported languages include Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and others not listed.
Manual language override
Set the language parameter to an ISO code (e.g., "de" for German) to force specific output.
Use this for non-English Latin-script text or mixed-language inputs to ensure accurate pronunciation and clear audio delivery for users.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This allows for easy integration into existing projects without learning a new proprietary client.
23 languages
Any voice speaks any of these languages.
