Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or an email and password. Your account is specific to bajeemat.cc. The dashboard displays your active API key, balance, and usage statistics immediately after registration. You can issue a new key at any time, which stops the old one instantly.
Can I use the OpenAI Python SDK?
Yes. The API accepts the same request shape as the OpenAI speech endpoint. Simply change the base_url to https://api.bajeemat.cc/v1 and use your KindlySay key. This allows you to use the official OpenAI SDKs directly without needing a custom library or wrapper for your integration.
What is the base URL for the API?
The base URL is https://api.bajeemat.cc/v1. You send POST requests to https://api.bajeemat.cc/v1/audio/speech. Other endpoints like /v1/voices and /v1/models are also available under this base URL for retrieving voice lists, languages, formats, and pricing information.
How do I specify a voice?
Include the voice parameter in your JSON body with one of the eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice has a distinct tone, from warm narrators to deep documentary styles. You can list all available voices via the GET /v1/voices endpoint.
Can I adjust the speech speed?
Yes, set the speed parameter between 0.25 and 4.0. This allows you to slow down speech for clarity or speed it up for brevity. The default speed is 1.0. Adjusting speed helps tailor the audio to the specific needs of elderly users or assistive device contexts.
What happens if I exceed the rate limit?
You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. If you exceed this, requests may queue or fail. Failed requests are free, so you are not charged for attempts that do not complete successfully due to limits.
How do I handle long texts?
Split your text into parts of up to 4096 characters per request. Generate audio for each part, then join the resulting audio files. This approach ensures you stay within character limits while delivering complete audio content for longer documents or detailed instructions for assistive devices.
Is SSML supported in requests?
No, SSML is not supported. The API accepts plain text input. You cannot use SSML tags for pronunciation or pauses. If you need specific control, you must manage pauses by splitting text into separate requests or using speed adjustments within the supported parameters.
Can I stream the audio response?
No, streaming is not supported. The API returns the complete audio file in the response body after synthesis finishes. You receive the full file once generation is complete, rather than receiving partial audio chunks. This fits well with batch processing for assistive technology applications.
How do I check my balance?
View your balance on the /get-api-key/ dashboard page. It shows your current credit, characters left, and usage history. You can also check the GET /v1/voices endpoint for pricing details. Top-ups via USDT on the TRON network (TRC-20) are credited automatically within minutes.
Can I revoke my API key?
Yes, you can issue a new key at any time from the dashboard. The new key becomes active immediately, and the old key stops working at once. This effectively revokes the old key without needing to wait for a manual deactivation process.
What happens if I use an expired key?
Keys do not expire on their own, but if you issue a new key, the old one stops immediately. If you use an old key after issuing a new one, the request will fail. Failed requests are free, so you will not be charged for these invalid attempts.
Do I need to install dependencies?
If you use the OpenAI SDK, you need to install that library. For plain HTTP requests, no specific dependencies are required beyond your standard HTTP client. The API works with any tool that can send JSON POST requests to the specified base URL.
How do I handle network timeouts?
Requests are processed sequentially, so under load, a request may wait in a queue. Short phrases take a few seconds, while long texts take longer. Implement retry logic with exponential backoff in your application to handle delays or temporary network issues gracefully.
First request
curl
curl https://api.bajeemat.cc/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.bajeemat.cc/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.bajeemat.cc/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
Sign up at /get-api-key/ using your Google account to receive a free $0.50 trial valid for seven days. This gives you approximately 50,000 characters to test the API with your assistive device or elderly care gadget immediately.
Sign up with Google
Registering via Google is the fastest way to start. You get instant access to your dashboard and trial credit without waiting for email verification.
Generate new key anytime
Your dashboard displays your active API key and current balance. You can issue a new key at any moment directly from the settings page.
Old key stops immediately
When you generate a new key, the previous one becomes invalid instantly. This ensures secure access for your hardware devices without lingering permissions.
First API request
Sending your first request is straightforward. You simply POST JSON to the API endpoint with your text and desired voice settings. The system processes the input and returns a downloadable audio file directly in the response.
Send POST request
Point your HTTP client to POST https://api.bajeemat.cc/v1/audio/speech. Include your API key in the Authorization header as Bearer tts-.... Ensure your request body is valid JSON containing the required fields.
- Endpoint: POST https://api.bajeemat.cc/v1/audio/speech
- Header: Authorization: Bearer tts-...
Include text input
Provide your text in the input field, keeping it under 4096 characters. Specify the voice preset (e.g., 'aria' or 'milo') and the model ('tts-1' or 'tts-1-hd'). You may also set response_format to mp3, wav, opus, flac, or pcm.
- input: Your text string (max 4096 chars)
- voice: One of 8 presets
- model: tts-1 or tts-1-hd
- response_format: mp3, wav, opus, flac, pcm
Receive audio file
Upon success, the API returns the audio binary directly. Save this output to your device or embed it in your assistive device’s firmware. If the synthesis fails, you receive a refund, so you are not charged for errors.
Use OpenAI SDK
The API mimics the OpenAI speech endpoint structure, allowing you to reuse existing codebases with minimal changes. By simply updating the base URL, your application can switch providers without rewriting the core logic.
This compatibility means you can use the official OpenAI SDKs directly. It reduces integration time for developers who already have experience with standard TTS libraries.
Change base URL ['Point your SDK client to https://api.bajeemat.cc/v1 instead of the default OpenAI endpoint. This single change routes all requests to our infrastructure while maintaining the same protocol expectations.', 'bullets']
Use official libraries ['Leverage the standard OpenAI Python or Node.js libraries. No custom client wrapper is needed because the request shape is identical, ensuring reliable data serialization and authentication headers.', 'bullets']
Same request format ['Send a JSON body with model, input, voice, and response_format fields. The API accepts these standard parameters, so your existing generation logic works out of the box without adaptation.', 'bullets']
Supported audio formats
The API returns audio in multiple formats, letting you choose the best balance between file size and quality for your assistive device or elderly care gadget. You pick the format via the response_format parameter in your request.
MP3 files are compact and perfect for devices with limited storage. WAV and FLAC provide higher fidelity, ensuring clear speech for users with hearing impairments or those relying on precise audio cues.
MP3 for small files
MP3 is the default choice for most integrations. It keeps file sizes small, reducing bandwidth usage and storage needs on your hardware. This efficiency is crucial for devices that generate speech frequently.
Use this format when you need quick playback without significant quality loss. It works well for simple prompts or status updates in elderly care gadgets.
- Default format for most requests
- Smallest file size among supported options
- Ideal for limited storage devices
WAV for high quality
WAV offers uncompressed audio, preserving the full quality of the synthesized voice. This is useful when you need the clearest possible sound for users who rely on audio cues.
Choose WAV if your device has sufficient storage and bandwidth. It ensures that every nuance of the voice is preserved without compression artifacts.
- Uncompressed audio quality
- Higher file size than MP3
- Best for critical audio feedback
FLAC for lossless
FLAC provides lossless compression, meaning the audio is identical to the original source but with a smaller file size than WAV. This is ideal for archival or high-fidelity playback.
Use FLAC when you need the best of both worlds: perfect audio quality and efficient storage. It is suitable for devices that prioritize sound accuracy over minimal file size.
- Lossless compression
- Smaller than WAV, larger than MP3
- Perfect audio fidelity
Rate limits explained
For developers building assistive devices, predicting audio generation time is critical. Our API processes requests sequentially, meaning long texts or high traffic can introduce slight delays. Understanding these limits ensures your gadget remains responsive without overwhelming the service.
60 requests per minute
Each API key allows up to 60 requests per minute once your account is funded. This limit applies to the POST /v1/audio/speech endpoint. If you send more than 60 requests within a 60-second window, subsequent requests will be rejected until the window resets.
- Standard limit: 60 requests/minute per key.
- Applies to all synthesis requests.
- Reset occurs on a rolling minute basis.
10 requests before top-up
New accounts without a USDT top-up start with a reduced limit of 10 requests per minute. This ensures fair usage during the free trial phase. Once you add funds via TRC-20, your limit automatically increases to the standard 60 requests per minute.
- Unfunded accounts: 10 requests/minute.
- Funded accounts: 60 requests/minute.
- Limits update automatically after payment.
Queue processing under load
Requests are processed one after another. During peak times, your request may wait in a queue before synthesis begins. Typical speed is roughly real-time (25 characters per second), but short phrases may take a few seconds due to queueing. Plan your device's UI to reflect this waiting state.
- Sequential processing ensures stability.
- Short phrases may take a few seconds.
- UI should indicate processing status.

Handle errors gracefully
Text-to-speech synthesis can fail for various reasons, such as temporary server overload or invalid parameters. Handling these cases ensures your assistive device or elderly care gadget remains responsive without crashing the user experience.
By implementing simple error checks and retry logic, you can maintain a smooth audio playback flow even during peak usage times or when the API is busy processing other requests.
Check response status
Always inspect the HTTP status code returned by the API. A 200 OK response means your audio file is ready for playback. Any other code indicates a problem that needs attention before proceeding.
Retry on failure
If the API returns an error, wait briefly and try again. Requests are processed in a queue, so temporary delays are common. Implementing exponential backoff helps avoid overwhelming the server during high traffic periods.
- Wait 1–2 seconds before the first retry.
- Increase wait time with each subsequent attempt.
- Limit retries to avoid infinite loops.
Get refund on error
Failed requests are free. If synthesis fails, the charge is returned in full. This ensures you only pay for successful audio generation, which is crucial for tight hardware budgets in assistive technology devices.
Split long texts
For assistive devices with limited memory, breaking text into chunks under 4,096 characters ensures reliable synthesis. Each request generates a separate audio file, which your device must store temporarily before playback.
Use simple concatenation to join these files. Since the API returns standard formats like MP3 or WAV, most audio libraries can merge them seamlessly without losing quality or timing.
Max 4096 characters
Split your input text at natural boundaries like sentences or phrases. Any text exceeding this limit triggers an error, so pre-process your strings before sending the POST request to the endpoint.
Join audio parts
Once you receive multiple audio files, combine them into a single track. This approach keeps individual request sizes small and manageable for embedded systems with constrained storage or bandwidth.
Ensure your audio merging tool preserves the original sample rate and format to avoid playback glitches in elderly care gadgets or speech synthesis hardware.
Maintain context
- Always split at sentence or phrase boundaries to preserve natural rhythm.
- Test joining logic with your specific audio library before production deployment.
- Monitor character counts to stay within the 4,096-character limit per request.
- Use consistent voice presets to ensure uniform tone across all chunks.
Set language explicitly
Setting the language parameter explicitly ensures your assistive device speaks exactly what you intend, rather than guessing based on script. While the API attempts to detect language from Latin characters, assuming English for any Latin text can lead to incorrect pronunciation if the input is actually Dutch, German, or Swedish.
By providing the ISO code, you remove ambiguity. This is especially critical for devices serving multilingual elderly users or assistive tech in diverse regions. It guarantees consistent output without relying on heuristic detection that might misinterpret mixed scripts or proper nouns.
ISO code parameter
Pass the two-letter ISO code (e.g., de for German, fr for French) in the request body. This overrides any automatic detection and forces the engine to use the correct phonetic model for that specific language, ensuring accurate intonation and rhythm.
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. Any voice can speak any of these languages when the code is provided.
- Use standard ISO 639-1 codes.
- Works with all 8 voice presets.
- Overrides default English detection for Latin text.
Auto-detect Latin
If you omit the language field, the API assumes Latin-script text is English. This default works well for simple English prompts but fails for other Latin-based languages.
For example, a Dutch phrase sent without a language tag will be spoken with an English accent, making it harder for elderly users with hearing impairments to understand. Explicitly setting the language prevents this common pitfall.
Avoid mispronunciation
Correct language settings ensure proper handling of special characters, diacritics, and name pronunciations. This reduces errors in assistive devices where clarity is paramount.
Even with correct language codes, some proper nouns may still be mispronounced. However, explicit language settings significantly reduce these errors compared to relying on auto-detection, especially for non-English Latin texts.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Accounts created with email and password start without trial credit, so plan your testing accordingly.
23 languages
Any voice speaks any of these languages.
