Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email and password. Accounts are per site. The page displays your key, balance, and usage details. You can issue a new key at any time, which immediately invalidates the old one. Each account has one active key for authentication.
Is the OpenAI SDK compatible?
Yes, the request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.m91login.com/v1 and using your site's key. This allows you to integrate ReadAid API into existing codebases with minimal configuration changes.
What is the base URL?
The API base URL is https://api.m91login.com/v1. Send POST requests to https://api.m91login.com/v1/audio/speech. Other endpoints include GET /v1/voices and GET /v1/models. Use this base URL when configuring your preferred HTTP client or SDK for authentication and requests.
Can I use Python SDK?
Yes, you can use the official OpenAI Python SDK. Configure it by setting the base_url to https://api.m91login.com/v1 and providing your Bearer token. Since the request format is identical to OpenAI's speech endpoint, your existing Python code should work with minimal adjustments.
How do I set the voice?
Include the voice parameter in your JSON body. Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. You can also optionally specify a language ISO code. If omitted, the system guesses the language, defaulting to English for Latin script.
What is the max text length?
Each request supports up to 4096 characters. If your text exceeds this limit, split it into parts of 4096 characters or less. Generate audio for each part and join the resulting audio files. Spaces and punctuation count toward the character limit.
How do I handle errors?
Failed requests are free, and the charge is returned in full. Monitor your response status codes. If synthesis fails, no characters are deducted from your balance. Ensure your input text is within the 4096 character limit and your voice is valid.
What happens if I hit the limit?
The rate limit is 60 requests per minute per key. Before your first top-up, it is 10 requests per minute. Requests are processed sequentially, so under load, a request may wait in a queue. Exceeding the limit may result in temporary delays or errors.
Can I change the speed?
Yes, set the speed parameter between 0.25 and 4.0. This allows you to adjust the playback rate of the generated audio. Adjusting speed helps tailor the audio for elderly users or specific assistive hardware requirements.
Is SSML supported?
No, SSML is not supported. The API accepts plain text input. You cannot use SSML tags for pronunciation or prosody control. For custom pronunciation, you must rely on the standard text input.
Can I stream the audio?
No, streaming is not supported. The API returns the complete audio file in the response. There is no WebSocket or real-time partial audio. You must wait for the full synthesis to complete before receiving the audio data.
How do I pay with USDT?
Top up using USDT on the TRON network (TRC-20). The minimum amount is $5. Credits are added automatically within minutes after your transfer. There are no subscriptions or invoices. Balance does not expire, and you can top up as needed.
Does the API support WebSocket?
No, the API does not support WebSocket. It uses standard HTTP POST requests. You receive the audio file as part of the response body. There is no real-time streaming or partial audio generation available through the current interface.
Is there a JavaScript SDK?
There is no official JavaScript SDK from ReadAid. However, you can use the official OpenAI JavaScript SDK by setting the base_url to https://api.m91login.com/v1. Alternatively, use any standard HTTP client to send POST requests to the speech endpoint.
First request
curl
curl https://api.m91login.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.m91login.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.m91login.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 |
Get Your API Key
ReadAid API provides a straightforward path for indie developers to integrate text-to-speech into assistive hardware. You can create an account in seconds using either a Google login or a standard email and password combination. This step grants you immediate access to the dashboard where your unique credentials are stored.
Your API key is the single point of authentication for all requests. Once generated, it allows your application to send text payloads to the speech endpoint. The key remains active until you explicitly issue a new one, at which point the previous key stops working immediately.
Sign up on the site
Navigate to the /get-api-key/ page on m91login.com. You can authenticate using your Google account for instant setup, or enter an email address and create a password for a traditional account. Both methods create a standalone account specific to this storefront.
After signing up, you will land on the dashboard. This interface displays your current API key, available balance, and usage statistics. If you signed up with Google, you also receive a $0.50 trial credit valid for 7 days.
Copy your key
Locate the API key field in your dashboard. The key begins with the prefix 'tts-'. Copy this entire string into your application's configuration environment variables. This key is used in the Authorization header as 'Bearer tts-...'.
Ensure you copy the exact string without extra spaces. This key is the only credential needed to access the /v1/audio/speech endpoint. You can generate a new key at any time, which instantly invalidates the old one.
Keep it secure
Treat your API key like a password. Since it provides access to your billing balance, store it in secure environment variables rather than hardcoding it in client-side code if your assistive device has limited security.
You can rotate the key at any time from the dashboard. Issuing a new key immediately invalidates the previous one, ensuring that if a key is compromised, access stops instantly without waiting for a billing cycle.
First Request with Curl
Send a POST request to https://api.m91login.com/v1/audio/speech to generate speech. This endpoint accepts a JSON body containing the text and voice settings, returning an audio file directly in the response.
Basic JSON body
Construct a JSON object with model, input, voice, and response_format. The input field holds your text (up to 4096 characters). The voice field selects one of the eight presets, such as sage for calm instructions or nova for upbeat content.
- model: "tts-1" or "tts-1-hd"
- input: your text string
- voice: e.g., "sage", "nova"
- response_format: "mp3", "wav", "opus", "flac", or "pcm"
Authorization header
Include your API key in the Authorization header. The format is Bearer tts-<your_key>. Obtain this key from your account dashboard at /get-api-key/.
Response format
A successful request returns an audio file (binary data) with the content type matching your chosen format. Failed requests return a JSON error object and do not charge your balance.
OpenAI SDK Integration
ReadAid API uses the same request shape as the OpenAI Speech endpoint, allowing you to reuse existing code with minimal changes. By simply updating the base URL, you can integrate our TTS engine into your assistive reading applications without rewriting your client logic.
This compatibility extends to the official OpenAI SDKs, which work seamlessly by pointing to our API base. Developers can continue using familiar libraries while benefiting from our character-based pricing and specific voice presets designed for clear, accessible audio output.
Change base_url
Update your SDK configuration to point to https://api.m91login.com/v1 instead of the default OpenAI endpoint. This single change redirects all requests to our infrastructure while maintaining the standard JSON structure.
Use official SDKs
You can use the official OpenAI SDKs directly. Since the request shape is identical, no custom client code is required. This reduces integration time for indie developers building accessible devices.
Same request shape
The JSON body structure matches the OpenAI standard exactly. Fields like model, input, voice, and response_format work as expected. You only need to provide your ReadAid API key in the Authorization header.
Supported Formats
Select your preferred audio format via the response_format field to match your target device’s playback capabilities. ReadAid API supports MP3, WAV, OPUS, and FLAC, ensuring compatibility with both modern web players and legacy assistive hardware.
MP3 audio file
MP3 is one of the supported formats. It offers efficient compression for easy storage and playback across web interfaces and mobile applications.
WAV audio file
WAV provides uncompressed audio. This format is ideal for local playback on assistive devices or desktop applications that require raw audio data without decoding overhead.
OPUS and FLAC options
OPUS provides excellent compression for low-bandwidth environments, while FLAC offers lossless quality for archival purposes. Choose OPUS for efficient delivery and FLAC when preserving every audio detail is critical.
Parameters Explained
Configure the synthesis engine and voice characteristics to match your assistive hardware or app’s accessibility profile. The API accepts two model variants with identical pricing and performance characteristics, allowing you to prioritize consistency or specific audio quality needs without changing infrastructure.
Model selection
The model parameter accepts either tts-1 or tts-1-hd. Both use the same underlying engine and incur the same rate of $0.01 per 1,000 characters. Select tts-1 or tts-1-hd; they use the same engine and price, so you can choose based on your preference.
Voice presets
Choose from eight distinct voice presets tailored for clear speech. Female options include aria (warm narrator), nova (bright), luna (soft storytelling), and sage (calm instruction). Male options include felix (energetic), milo (friendly), atlas (neutral news), and orion (deep documentary).
- Voice selection is static; no custom cloning or emotion tags are available.
Speed control
Adjust the speed parameter between 0.25 and 4.0 to accommodate users with varying reading paces. Slower speeds aid comprehension for elderly users, while faster speeds reduce latency for quick alerts. The default speed provides natural speech rhythm suitable for most assistive reading applications.

Error Handling
When your API key is missing, incorrect, or revoked, the API returns a 401 Unauthorized error. This often happens if you copy the key with extra spaces or if you issued a new key without waiting for the old one to fully expire in your client cache. Verify the Authorization: Bearer header matches your current active key exactly.
Invalid key errors
A 401 status code indicates authentication failure. Check that your key starts with tts- and contains no trailing whitespace. If you regenerated your key, ensure your application has fully switched to the new token, as the old key stops working immediately.
- Check for trailing spaces in the Bearer token
- Ensure key format starts with
tts- - Verify no concurrent usage of old keys
Rate limit responses
Exceeding the 60 requests per minute limit returns a 429 Too Many Requests error. New accounts start with a 10 requests per minute limit. Implement exponential backoff in your client to handle retries gracefully without overwhelming the queue.
- 429 status code on limit breach
- Default limit: 60 req/min
- Initial limit: 10 req/min
Input length limits
Each request accepts a maximum of 4096 characters. If your text exceeds this, split it into chunks and join the resulting audio files. The API does not auto-split; you must handle the logic client-side to ensure seamless playback for assistive readers.
- Max 4096 characters per request
- Split long texts manually
- Join audio files client-side
Rate Limits
ReadAid API enforces strict rate limits to ensure stable synthesis for assistive devices. Each API key is permitted a maximum of 60 requests per minute under normal conditions.
60 requests per minute
This limit applies per key. If you exceed this threshold, subsequent requests will receive a rate limit error response.
10 requests initially
New accounts start with a lower limit of 10 requests per minute. This restriction lifts after your first top-up is processed.
Queue behavior
Requests are processed sequentially. Under heavy load, synthesis may wait in a queue, causing slight delays before audio generation begins.
Text Limits
The API accepts a maximum of 4096 characters per request. This limit includes all spaces, punctuation, and special characters in your input text. If your content exceeds this threshold, you must divide it manually before sending it to the endpoint.
4096 characters max
Each POST call processes a single string up to 4096 characters. Any text beyond this length triggers an error. Ensure your application calculates character count accurately, including spaces, before constructing the JSON body.
Split long texts
Divide your input into chunks of 4096 characters or fewer. Send each chunk as a separate request to the /v1/audio/speech endpoint. Your application should handle the sequential processing of these requests.
Join audio files
Receive each audio file from the API responses. Concatenate these files in the correct order to reconstruct the full narrative. This approach ensures seamless playback for long articles or book chapters in assistive reading devices.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This decision influences voice selection and speed settings.
23 languages
Any voice speaks any of these languages.
