Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email with a password. Accounts are per site. The dashboard displays your key, balance, and usage details.
What is the base URL for the API?
The base URL is https://api.play78f.com/v1. Use this for all endpoints, including POST for speech generation, GET for voices, and GET for models.
Which voices can I use?
You can choose from eight presets: female voices aria, nova, luna, and sage; or male voices felix, milo, atlas, and orion. All voices support any of the 23 available languages.
What audio formats are supported?
Supported formats include mp3, wav, opus, flac, and pcm. Select your preferred format in the response_format field of your API request.
What are the rate limits?
The limit is 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so high load may cause queuing.
How do I handle long texts?
Split texts into parts of up to 4096 characters per request. Generate audio for each part and join the resulting audio files to create the final narration.
What happens if a request fails?
If synthesis fails, the charge is returned in full. Failed requests are free, so you can retry without worrying about additional costs for the failed attempt.
Is the API compatible with OpenAI SDK?
Yes. The request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.play78f.com/v1 and using your site's key.
Do I need to install any libraries?
No specific library is required. You can use the OpenAI SDK, plain HTTP requests, or any standard HTTP client to interact with the API endpoints.
How do I authenticate my requests?
Include your API key in the Authorization header as Bearer tts-.... Each account has one active key, which can be renewed at any time.
Can I use the API with Python?
Yes. You can use the OpenAI Python SDK by setting the base URL to https://api.play78f.com/v1, or send standard HTTP POST requests using any Python HTTP library.
How do I specify a language?
Pass an optional ISO language code in the request. If omitted, the system guesses the language, defaulting to English for Latin script. Set it explicitly for non-English Latin text.
What is the maximum text length?
Each request accepts up to 4096 characters. Spaces and punctuation count toward this limit. For longer stories, split the text into multiple requests and join the audio outputs.
Are there any SDKs provided?
We do not provide an official SDK. However, the API is compatible with the official OpenAI SDKs and works with standard HTTP clients, so you can use any existing library.
First request
curl
curl https://api.play78f.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.play78f.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.play78f.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 |
Getting Your API Key
Accessing the LullRead API begins with creating an account on play78f.com. Navigate to the /get-api-key/ page and sign in using your Google account or create a new login with an email and password. This step establishes your unique identity within our system, allowing you to manage your specific key and billing details.
Sign Up on the Site
Visit the /get-api-key/ page to register. You can sign up instantly using Google or by providing an email and password. Accounts are created per site, ensuring your credentials are tied directly to your usage history and balance on play78f.com.
Copy Your Key
Once registered, your dashboard displays your active API key, starting with "tts-". This key authenticates all your requests. You can copy it directly from the dashboard and use it immediately in your code or curl commands. If needed, you can issue a new key at any time, which instantly invalidates the old one.
Keep It Secure
Treat your API key like a password. Include it in the Authorization: Bearer tts-... header of your requests. Since each account has one active key, ensure it is not exposed in public client-side code if possible. If you suspect a leak, generate a new key via the dashboard to stop the old one immediately.
First API Request
Send your first text-to-speech request using standard HTTP. LullRead’s API accepts JSON payloads and returns audio files directly, making it simple to integrate narration into your teaching materials or classroom resources.
You can test the endpoint immediately with a command-line tool or any programming language that supports HTTP requests. The process is straightforward: provide your key, select a voice, and send the text.
cURL Example
Use this command to generate audio instantly. Replace YOUR_API_KEY with your actual credential from the dashboard.
```bash curl -X POST "https://api.play78f.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"tts-1","input":"Once upon a time, a little rabbit hopped through the forest.","voice":"luna","response_format":"mp3"}' \ -o output.mp3 ```
This generates a gentle narration using Luna’s soft storytelling voice, perfect for bedtime stories or calm reading sessions.
JSON Body Structure
The request body is a standard JSON object. It includes the model, input text, voice selection, and desired audio format.
All fields are defined in the request payload. The API processes these parameters to synthesize the audio file.
You can adjust speed or specify a language if needed, but the core fields remain consistent across all requests.
model: "tts-1" or "tts-1-hd"input: Your text (max 4096 chars)voice: One of the 8 presetsresponse_format: mp3, wav, opus, flac, or pcm
Required Fields
You must provide model, input, voice, and response_format. These four fields are essential for generating any audio file.
The input field accepts up to 4096 characters. If your story is longer, you will need to split it into parts.
The voice field determines the character’s tone. For children’s stories, Aria or Luna are often preferred for their clarity and warmth.
Supported Voices
LullRead’s TTS API offers four gentle, expressive female voices ideal for narrating children’s stories. Aria provides a warm, clear narrator tone, while Luna excels at soft, storytelling narration. Nova delivers a bright, upbeat energy, and Sage offers a calm, instructional style for educational content.
Aria, Luna, Nova, Sage
These voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobooks. Each generated file includes an inaudible watermark marking it as synthetic speech, ensuring transparency for young listeners and educators.
- Aria: Warm, clear narrator
- Luna: Soft, storytelling
- Nova: Bright, upbeat
- Sage: Calm, instructional
Voice Selection Parameters
Select any voice using the voice parameter in your JSON body. The API supports 23 languages, including English, Spanish, and German. If you omit the language field, the system guesses the language from the script, defaulting to English for Latin text.
Gender Options
All four voices listed here are female, curated specifically for their suitability in children’s literature. They offer distinct tones without requiring complex SSML tags. You can easily switch between them to match the mood of your story, from adventurous tales to soothing bedtime readings.
Audio Formats
Choose the format that best fits your distribution channel. We support MP3, WAV, OPUS, FLAC, and PCM to ensure compatibility with your specific classroom tools or publishing workflows.
MP3 Output
MP3 is the default and most widely supported format for web players and mobile apps. It offers a good balance between file size and audio quality, making it ideal for playing stories on children's devices.
WAV Quality
WAV provides uncompressed, high-fidelity audio. This format is perfect for archiving teacher recordings or for use in offline educational software where maximum clarity is required without data loss.
Other Formats
We also offer OPUS, FLAC for lossless compression, and raw PCM for direct audio processing. Use these formats when your specific ed-tech platform requires them.
- OPUS: Great for low-bandwidth connections
- FLAC: Lossless compression for archives
- PCM: Raw audio data
Rate Limits
Efficient API usage ensures your audio generation workflows run smoothly without unexpected interruptions. Understanding the rate limits helps teachers and methodologists plan their narration sessions effectively, whether generating a single story or a full chapter book.
The system enforces a standard limit of 60 requests per minute per API key. This allows for rapid generation of short phrases while maintaining stable performance. Requests are processed sequentially, so high-volume jobs may queue briefly under load.
60 Requests Per Minute
After your initial trial period or first top-up, you can send up to 60 requests per minute. This standard limit supports classroom preparation needs, allowing you to generate multiple story segments.
Each request counts toward this limit, regardless of text length. Since long texts are split into 4096-character chunks, a single story may consume multiple request slots.
- Limit applies per API key, not per account.
- Requests are processed sequentially, so under heavy load, jobs may queue.
- Typical generation speed is roughly real-time (25 characters per second).
Initial Limit
New accounts start with a lower limit of 10 requests per minute. This ensures system stability while you explore the API and test different voices like Aria or Luna.
You can quickly increase this limit by topping up your balance. Once you add funds, your rate limit immediately rises to the standard 60 requests per minute.
Higher Limits After Top-Up
To unlock the full 60 requests per minute, simply top up your account using USDT on the TRON network (TRC-20). Minimum top-up is $5.
Credits are added automatically within minutes of transfer confirmation. Your higher rate limit is active immediately, allowing you to generate more audio content for your teaching materials without delay.
- No monthly plans or subscriptions required.
- Balance does not expire.
- USDT (TRC-20) only; no credit cards or PayPal.

Handling Long Texts
For stories exceeding the 4096-character limit, split the input into smaller chunks and generate audio for each part individually. This ensures consistent quality and avoids truncation, allowing you to build a complete narration from multiple segments.
Splitting Text
Divide your narrative into segments of up to 4096 characters, including spaces and punctuation. This limit applies per API request, so ensure each chunk fits within this boundary before sending it to the endpoint.
- Count characters accurately, as spaces and punctuation count toward the limit.
- Split at natural pauses, such as paragraph breaks, to maintain narrative flow.
- Avoid splitting mid-sentence to prevent disjointed audio segments.
Joining Audio Files
After generating each segment, download the resulting audio files and concatenate them in order. Most audio editing tools or simple scripts can merge these files seamlessly, creating a continuous listening experience for children.
Ensure that the audio formats match across all segments to avoid compatibility issues during merging. Use consistent settings for speed and voice to maintain uniform tone throughout the story.
Character Limits
The API enforces a strict 4096-character limit per request. Exceeding this will result in an error, so always validate your text length before sending. This limit applies regardless of the language or voice selected.
Keep track of your character usage to optimize your workflow. If a story is very long, consider pre-calculating split points to streamline the generation process.
- Limit: 4096 characters per request.
- Includes all spaces and punctuation.
- Exceeding the limit causes a request error.
Error Handling
Synthesis failures can occur if the input exceeds 4096 characters or the API key is invalid. Our system processes requests sequentially, so high load may cause temporary delays before a voice is assigned.
Common Errors
Ensure your text fits within the 4096-character limit per request. If the API returns an error, check that your Authorization header uses the correct tts-... key format.
- Input too long: Split text into smaller chunks.
- Invalid key: Verify your key starts with
tts-. - Rate limit exceeded: Wait until the queue clears.
Failed Request Refunds
If synthesis fails completely, the charge is returned in full. Failed requests are free, so you lose no credit for errors during generation.
Status Codes
Use standard HTTP codes to debug. A 200 OK means audio is ready. 429 indicates you have hit the 60 requests per minute limit or the initial 10 requests per minute threshold for new accounts.
- 200: Success. Audio file returned.
- 400: Bad request (invalid JSON or fields).
- 401: Unauthorized (invalid API key).
- 429: Too Many Requests (rate limit exceeded).
SDK Integration
The API mirrors the OpenAI speech endpoint structure, allowing you to use the official OpenAI SDKs without rewriting your logic. Simply update the base URL to our API endpoint and provide your LullRead key.
This compatibility means you can switch providers or integrate our gentle voices into existing TTS pipelines with minimal code changes. It works with Python and JavaScript libraries.
OpenAI SDK Compatibility
Our endpoint follows the same request shape as the OpenAI speech API. This allows you to use the official OpenAI SDKs by changing the base URL.
You can integrate our expressive female voices into your existing projects with minimal refactoring, ensuring a smooth transition for teachers and methodologists building audio stories.
- Uses standard JSON body structure
- Supports tts-1 and tts-1-hd models
- Compatible with official OpenAI SDKs
Base URL Change
Update your SDK configuration to point to https://api.play78f.com/v1 instead of the default OpenAI endpoint.
Ensure your Authorization header uses your LullRead key (Bearer tts-...) for authentication.
- Base URL: https://api.play78f.com/v1
- Auth: Bearer tts-...
Python and JS Examples
In Python, initialize the OpenAI client with our base URL and your API key. Pass the text, voice (e.g., aria), and desired format.
For JavaScript, configure the client similarly. The response returns the audio file directly, which you can save or play immediately.
This approach works for generating narrations of children's stories quickly and reliably.
- Use official OpenAI SDKs
- Change base_url only
- Pass standard parameters
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. She is also excellent for educational stories that blend learning with entertainment.
23 languages
Any voice speaks any of these languages.
