Frequently asked questions
What is the base URL for the API?
The API base URL is https://api.play53a.com/v1. You can use the official OpenAI SDKs by setting this base URL and providing your API key in the Authorization header. The primary endpoint for generating audio is POST https://api.play53a.com/v1/audio/speech.
Does the API support SSML?
No, the API does not support SSML. It accepts plain text input up to 4096 characters. You cannot use SSML tags for pronunciation or prosody control. The API relies on the selected voice preset to determine speech patterns.
Can I stream audio in real-time?
No, the API does not support streaming or WebSocket connections. You send a request and receive the complete audio file upon success. Audio is not returned in partial chunks. You must wait for the full synthesis to complete before receiving the response.
How do I handle 4096 char limits?
Split your text into parts of up to 4096 characters. Send each part as a separate request to the /v1/audio/speech endpoint. Join the resulting audio files programmatically. This ensures compliance with the character limit per request while delivering the full content.
Is there a WebSocket endpoint?
No, there is no WebSocket endpoint. The API is purely RESTful. All interactions occur via standard HTTP requests. You cannot establish a persistent connection for real-time audio delivery. Each synthesis task is a discrete request-response cycle.
What SDKs are officially supported?
The official OpenAI SDKs are supported by changing the base URL to https://api.play53a.com/v1. We do not have an official SDK of our own. You can also use plain HTTP requests. No mobile SDK or WordPress plugin is provided.
How do I rotate my API key?
Issue a new key from your account dashboard. The new key becomes active immediately, and the old one stops working at once. You can rotate keys any time. Ensure your applications update to use the new key before the old one expires.
What happens on rate limit exceeded?
You are limited to 60 requests per minute per key (10 before the first top-up). Exceeding this limit results in HTTP 429 errors. Requests are processed sequentially, so under load, you may experience queuing delays. Failed requests are free.
Can I use the same key for multiple apps?
Yes, you can use the same API key for multiple applications. Each account has one active key. Share this key across your apps, but be aware that all usage counts toward the single rate limit of 60 requests per minute.
Is the API RESTful?
Yes, the API is RESTful. It uses standard HTTP methods like POST for speech generation and GET for retrieving voices and models. The speech endpoint returns audio; other endpoints return JSON. You interact with resources via clear, stateless endpoints defined in the documentation.
Do I need to install a library?
No, you do not need to install a specific library. You can use the OpenAI SDKs by adjusting the base URL. Alternatively, you can make plain HTTP requests using any standard HTTP client. No proprietary library is required for integration.
How do I debug a failed request?
Check the HTTP status code and response body for error details. Failed requests are free, and charges are returned in full. Ensure your text is under 4096 characters and your key is valid. Use the /v1/voices endpoint to verify available voices.
What is the max speed setting?
The maximum speed setting is 4.0. You can adjust speed between 0.25 and 4.0. This allows you to control the playback rate of the generated audio. The default speed is 1.0.
Are there limits on voice changes?
No, there are no limits on changing voices. You can switch between any of the 8 available voices for each request. The voice parameter accepts any preset name. You can change voices frequently without any additional cost or restriction.
First request
curl
curl https://api.play53a.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.play53a.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.play53a.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
The API authenticates requests using a Bearer token passed in the Authorization header. Include your key as Authorization: Bearer tts-... for every request to verify your account and track usage.
Bearer token in header
Pass your API key in the HTTP header Authorization: Bearer <key>. The endpoint validates this token before processing the text-to-speech conversion. Ensure the key matches your active account on play53a.com.
One active key per account
Each account holds exactly one active key. If you generate a new key, the previous one becomes invalid immediately. This ensures that only one token is valid at any given time for billing and rate limit tracking.
Rotate keys instantly
You can issue a new key at any time from your dashboard. The old key stops working instantly upon creation. This is useful if you suspect exposure or need a fresh token for a new project integration.
Endpoint: /v1/audio/speech
The primary interaction point for converting text to speech is the POST endpoint at /v1/audio/speech. This endpoint accepts your text payload and returns the synthesized audio file directly. It follows the standard request shape used by the OpenAI speech endpoint, ensuring consistent integration patterns for developers.
You must use the HTTP POST method. GET requests will not work. The endpoint is designed to handle single synthesis requests efficiently, processing them sequentially based on queue availability.
POST method required
Use HTTP POST to submit your request. The endpoint does not support GET methods for audio generation. Ensure your client library is configured to send POST requests to the correct API base URL.
JSON body input
The request body must be a valid JSON object. Include the input field with your text string (up to 4096 characters). Also specify the model, voice, and other parameters as required. The API parses this JSON to generate the audio.
Returns audio file
On success, the endpoint returns the audio file in the requested format (mp3, wav, opus, flac, or pcm). The response contains the binary audio data directly. If synthesis fails, a 4xx or 5xx error is returned with details. Failed requests do not incur charges.
Required Parameters
The API requires three specific fields to generate audio. Each request must define the synthesis engine, the source text, and the speaker voice. Omitting any of these fields will cause the request to fail immediately.
These parameters form the core of every synthesis job. The model determines the engine quality, the input carries the content up to 4096 characters, and the voice selects one of the eight available presets to render the speech.
model: tts-1 or tts-1-hd
Select either tts-1 or tts-1-hd. Both models use the same underlying engine and incur identical pricing, so the choice depends only on your quality preference.
The API processes requests sequentially, so both models queue under load. Both models use the same engine and price; choose based on your preference.
- Both models use the same engine
- Identical pricing per character
- No speed difference between options
input: text string
The input field accepts a plain text string containing the content to be converted. The maximum length for a single request is 4096 characters. Spaces, punctuation, and special characters all count toward this limit.
For texts exceeding this length, you must split the content into smaller chunks client-side and join the resulting audio files. Each chunk is processed independently, so ensure your splitting logic preserves natural pauses.
- Max 4096 characters per request
- Spaces and punctuation count
- Split logic required for long texts
voice: preset name
Specify one of the eight voice presets, such as aria, nova, or atlas. Each voice has a distinct tone, ranging from warm narrators to energetic promo styles. Every voice can speak all 23 supported languages.
If you do not specify a language parameter, the system guesses the language based on the text script. Latin script defaults to English, so explicitly set the language code for non-English Latin text to ensure accuracy.
- 8 presets available
- All voices support all 23 languages
- Language guessing defaults to English for Latin script
Optional Parameters
To configure output quality and playback speed, you can adjust the response format and rate. These optional fields allow you to optimize file size or synchronize audio with visual cues in your application.
response_format: mp3/wav/opus
Specify the audio container format. Supported options are mp3, wav, opus, flac, and pcm. Choose mp3 for smaller files or wav for lossless quality.
- mp3: compressed, widely compatible
- wav: uncompressed, high fidelity
- opus: efficient compression
- flac: lossless compression
- pcm: raw linear audio
speed: 0.25–4.0 range
Adjust playback speed relative to normal. Accepts values between 0.25 (slow) and 4.0 (fast). Default is 1.0. Use this to match voice pace to user preference or accessibility needs.
- 0.25: very slow
- 1.0: normal speed
- 2.0: double speed
- 4.0: maximum speed
language: ISO code
Provide an ISO 639-1 language code (e.g., de, ja, es). If omitted, the system guesses from the script, defaulting to English for Latin text. Explicitly set it for non-English Latin scripts to ensure correct pronunciation.
- de: German
- es: Spanish
- fr: French
- ja: Japanese
- zh: Chinese
- auto: defaults to English for Latin
voice: preset name
Select one of eight voice presets. Each voice has a distinct tone, from warm narration to energetic promos. The voice remains consistent across requests unless changed.
- aria: warm narrator
- nova: bright upbeat
- luna: soft storytelling
- sage: calm instructional
- felix: energetic promo
- milo: friendly conversational
Rate Limits
Rate limits are enforced per API key. You can send up to 60 requests per minute once your account is active. This limit applies to all speech synthesis calls, regardless of text length or voice selected.
If your key is new and hasn’t been topped up yet, the limit is lower: 10 requests per minute. This helps prevent abuse while you test the service. Top-ups do not change the rate limit; the limit is 60 requests per minute for funded accounts.
60 requests per minute
Once your account is active and funded, you can send up to 60 requests per minute. This is the standard limit for all users.
The limit is per key, so if you rotate your key, the new key starts fresh.
- Standard limit: 60 requests/minute
- Applies per API key
10 RPM before first top-up
New accounts without a top-up have a lower limit of 10 requests per minute. This helps prevent abuse.
The limit is 60 requests per minute once the account is active.
- New accounts: 10 requests/minute
- Top-up required for standard limit
Queued under load
Requests are processed sequentially. If you exceed the limit, requests are queued.
Under heavy load, requests may wait in a queue before being processed.
This ensures fair usage for all users.
- Requests are queued under load
- Processed sequentially

Handling Long Texts
The API limits each request to 4096 characters. For longer texts, you must split the input into chunks of this size. Spaces and punctuation count toward the limit.
Each chunk generates a separate audio file. You must join these files client-side to create a continuous playback experience. This ensures precise control over the final output.
Split at 4096 characters
Calculate the character count of your input text. Divide the text into segments not exceeding 4096 characters. Send each segment as a separate POST request to the speech endpoint.
If a request fails, the charge is returned. Failed segments do not affect your balance, allowing you to retry without penalty.
- Count spaces and punctuation as characters
- Send each chunk independently
- Retry failed segments automatically
Join audio files client-side
Receive audio files for each chunk. Concatenate them in your application to form a single audio file. This method preserves audio quality and timing.
Use standard audio libraries to merge MP3, WAV, or FLAC files. The result is a seamless listening experience for the end user.
Manage chunking logic
Handle network latency and queuing. Requests process sequentially, so longer texts may take time. Monitor the queue status for accurate timing estimates.
Implement error handling for incomplete chunks. Ensure your client can reconstruct the full audio even if one chunk fails to deliver.
OpenAI SDK Compatibility
LumiRead uses the same request structure as the OpenAI Speech endpoint, allowing you to use official OpenAI SDKs without rewriting your integration logic. You only need to update the base_url to point to our API domain, ensuring immediate compatibility with existing codebases.
This approach supports standard HTTP clients and SDKs. Developers can leverage familiar tools to integrate TTS capabilities into their accessibility tools with minimal configuration overhead.
Change base_url only
Modify your client configuration to use https://api.play53a.com/v1 as the base URL. This single change directs all requests to our infrastructure while maintaining standard OpenAI protocol behavior.
- Update
base_urlin your SDK configuration. - No changes to request payload structure required.
Use official SDKs
You can utilize the official OpenAI SDKs for languages like Python, JavaScript, and Go. This allows you to continue using your preferred development environment and tooling without adopting a new library.
- Compatible with OpenAI Python and Node.js SDKs.
- No custom client library needed.
Standard request shape
The JSON body for /v1/audio/speech follows the standard format: model, input, voice, and optional response_format or speed. This consistency simplifies testing and debugging using familiar interfaces.
Error Handling
The API returns standard HTTP status codes to indicate request outcomes. Client errors (4xx) typically stem from invalid authentication, malformed JSON, or exceeding character limits, while server errors (5xx) indicate transient processing issues.
Failed synthesis requests incur no charge, with the cost returned in full. Understanding these codes helps you quickly identify whether an issue lies in your request structure or temporary service availability.
4xx for client errors
Common 4xx responses include 401 Unauthorized (invalid or expired API key) and 400 Bad Request (invalid JSON body or unsupported voice ID). Ensure your Authorization header uses the correct Bearer format and that all required fields like model and input are present.
- 401: Check your API key in the dashboard
- 400: Validate JSON structure and required fields
- 429: Rate limit exceeded (60 RPM)
5xx for server issues
Server-side errors (500–503) are rare but may occur during high load or maintenance. These do not consume your character balance. The request metadata is logged for billing purposes, but the audio is not generated.
Retry on failure
For 5xx errors, implement exponential backoff retries. Since requests are processed sequentially, under heavy load a request may wait in a queue, potentially timing out if the client waits too long. Retry logic should account for this latency.
- Use exponential backoff for 5xx errors
- Retry logic should account for queue latency
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Make your content readable for everyone with dyslexia using simple accessibility tools anyone can use.
23 languages
Any voice speaks any of these languages.
