Frequently asked questions
What is the API endpoint?
Send POST requests to https://api.06a.info/v1/audio/speech. The endpoint accepts a JSON body containing the text, voice selection, and format preferences. This standard structure ensures compatibility with existing TTS integrations and simplifies implementation for developers using common HTTP libraries.
How do I authenticate?
Include your API key in the request header as Authorization: Bearer tts-... . Each account holds one active key; issuing a new key immediately invalidates the previous one. Ensure your key is active and correctly formatted to avoid authentication errors during synthesis requests.
Which models are available?
The API offers two models: tts-1 and tts-1-hd. Both utilize the same underlying engine and pricing structure. Select the model based on your quality requirements, as both support the full range of voices and languages available in the system without additional cost differences.
What languages are supported?
We support 23 languages including Arabic, Chinese, English, French, German, Hindi, Japanese, Korean, Spanish, and more. Any voice can speak any supported language. If the language parameter is omitted, the system guesses from the script, defaulting to English for Latin text.
Can I use the OpenAI SDK?
Yes, the official OpenAI SDKs work seamlessly. Simply change the base_url to https://api.06a.info/v1 and use your KlarRead key. The request shape matches the OpenAI speech endpoint, allowing you to integrate our service into existing OpenAI-based workflows with minimal code changes.
What output formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats. Choose the format that best fits your playback environment or storage constraints. Each generated file includes an inaudible watermark to identify it as synthetic speech.
What is the rate limit?
The limit is 60 requests per minute per key. New accounts without top-ups are limited to 10 requests per minute. Requests are processed sequentially, so high volume may cause queuing delays. Monitor your usage to ensure consistent performance for your publishing or accessibility pipelines.
How do I handle errors?
Failed requests are free, and charges are returned in full if synthesis fails. Check your response status codes and error messages for details on issues like invalid input or rate limits. Since requests are processed one by one, retrying after a brief pause often resolves temporary congestion.
Is streaming supported?
No, the API does not support streaming, WebSocket connections, or real-time partial audio delivery. You receive the complete audio file in the response after processing. This synchronous approach simplifies integration but means you must wait for the full generation before accessing the audio data.
Does the API support SSML?
No, the API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. You control pacing primarily through the speed parameter and voice selection. For precise control, split your text into smaller segments and adjust the speed or voice for each part.
Can I customize voice speed?
Yes, you can adjust the speed between 0.25 and 4.0. This allows you to slow down audio for better accessibility or speed up content for quick consumption. The speed applies to the selected voice, letting you fine-tune the listening experience for diverse audience needs.
How do I split long texts?
Split texts into parts of up to 4096 characters each. Generate audio for each part separately, then join the resulting files. This ensures reliable processing within character limits. Use standard audio concatenation tools or libraries to merge the segments into a single continuous audio file.
What is the input character limit?
Each request supports up to 4096 characters. Spaces and punctuation count toward this limit. For longer content, divide the text into chunks of this size. This constraint ensures consistent processing times and allows you to manage audio generation efficiently across large documents or books.
Do I need a specific SDK?
No, you do not need a proprietary SDK. Use the official OpenAI SDK, plain HTTP requests, or any standard HTTP library. The endpoint follows standard conventions, making it easy to integrate with your existing tech stack without installing additional dependencies specific to KlarRead.
First request
curl
curl https://api.06a.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.06a.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.06a.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 |
Authentication
Access the KlarRead TTS API by including a Bearer token in the Authorization header. This single key authenticates all requests to the endpoint and tracks your usage against your account balance.
Bearer token authorization
Include your API key as Authorization: Bearer tts-... in every HTTP request. The token validates your identity and links charges to your specific account.
One active key per account
Each account holds exactly one active key. If you generate a new key, the previous one becomes invalid immediately, ensuring strict security control.
- Keys start with
tts- - Only one key is active at any time
- Old keys stop working instantly upon rotation
Rotate keys instantly
You can issue a new key at any time via your dashboard. This is the recommended method for revoking access or refreshing credentials without downtime.
Endpoint Overview
The KlarRead API provides three primary endpoints for integration. The core speech generation endpoint accepts text and configuration parameters to return audio files, while the metadata endpoints allow you to retrieve available voices and model details.
POST /v1/audio/speech
This endpoint accepts a JSON body containing the text to convert, the voice preset, and the desired output format. It returns the generated audio file directly in the response body, allowing immediate playback or storage.
- Accepts up to 4096 characters of input text per request
- Returns audio in MP3, WAV, OPUS, FLAC, or PCM formats
- Supports speed adjustment from 0.25x to 4.0x
GET /v1/voices
Retrieve the complete list of available voice presets, their associated languages, and supported audio formats. This endpoint helps you verify which voices are currently active and which languages they support before making speech generation requests.
- Lists all 8 voice presets (e.g., aria, nova, felix)
- Shows supported languages for each voice
- Details available response formats
GET /v1/models
Fetch the current model identifiers available for synthesis. This endpoint confirms that both "tts-1" and "tts-1-hd" models are available, allowing you to select the appropriate quality level for your specific use case.
- Returns active model IDs
- Confirms model availability status
Request Parameters
The API accepts a simple JSON payload with the text to synthesize. You can choose between tts-1 or tts-1-hd models, which use the same underlying engine and pricing. Each request handles up to 4096 characters; longer texts should be split into chunks and concatenated by the client.
Model: tts-1 or tts-1-hd
Both tts-1 and tts-1-hd utilize the same voice engine and carry identical pricing. The choice is purely aesthetic, allowing you to select the preferred audio quality without affecting your cost per character.
Input text up to 4096 characters
Pass your article content or book excerpt in the input field. The limit is strict at 4096 characters per request, including spaces and punctuation. For longer documents, split the text and join the resulting audio files client-side.
- Include spaces and punctuation in the 4096-character count.
- Split long texts into smaller chunks before sending.
Voice selection from 8 presets
Select one of eight voices using the voice parameter. Options include female presets like Aria and Nova, or male voices like Felix and Atlas. All voices support all 23 listed languages, though you should specify the language code for non-English Latin text.
- Aria, Nova, Luna, Sage (Female)
- Felix, Milo, Atlas, Orion (Male)
- Supports 23 languages with optional ISO code
Response Formats
The API returns generated audio directly in the response body, allowing you to save or stream the file immediately. You can choose from five formats: MP3, WAV, OPUS, FLAC, or PCM. MP3 is recommended for most web and publishing use cases due to its balance of quality and file size.
Selecting the appropriate format depends on your downstream processing needs. WAV and FLAC offer lossless quality for archival purposes, while OPUS provides efficient compression. PCM is available for raw, uncompressed data processing.
MP3, WAV, OPUS, FLAC, PCM
Choose the format that best fits your delivery pipeline. MP3 is widely supported and ideal for web players. WAV and FLAC preserve full audio fidelity for high-quality publishing. OPUS offers superior compression for bandwidth-constrained environments. PCM provides raw audio data for custom analysis.
- MP3: Standard compression, widely compatible
- WAV: Lossless, uncompressed audio
- OPUS: High efficiency, low bandwidth
- FLAC: Lossless compression, archival quality
- PCM: Raw, uncompressed binary data
Audio file in response body
The audio binary is returned directly in the HTTP response body. This allows for efficient processing without needing to download a separate file from a storage bucket. Your application can write the response body directly to disk or pipe it to a player.
Content-Type header set correctly
The response includes a Content-Type header matching the selected format (e.g., audio/mpeg for MP3, audio/wav for WAV). This ensures that browsers and media players correctly identify and handle the returned audio data without manual configuration.
OpenAI SDK Compatibility
Developers can integrate KlarRead using the official OpenAI SDK, requiring minimal code changes. This compatibility allows teams to leverage familiar libraries and existing infrastructure without learning a new client or managing custom HTTP requests.
The primary adjustment involves updating the SDK configuration to point to our API base URL. By simply redirecting the client endpoint, you gain access to our TTS capabilities while maintaining the standard request structure you already know.
Use official OpenAI SDK
Utilize the standard OpenAI Python or Node.js SDKs directly. No custom wrapper or proprietary client library is needed. This ensures your integration remains lightweight and relies on well-maintained, community-supported tools.
Change base_url to our API
Set the base_url configuration parameter to https://api.06a.info/v1. This single change routes all subsequent API calls to KlarRead’s infrastructure. Ensure your API key is passed via the standard authorization header.
Same request shape as OpenAI
The JSON body structure matches the OpenAI speech endpoint exactly. Fields like model, input, voice, and response_format are identical. You can copy existing OpenAI TTS code snippets and swap the base URL to start generating audio immediately.

Example CURL Request
Retrieve your API key from the dashboard and use it to generate audio. The endpoint accepts text up to 4096 characters, returning a synthetic speech file directly. This workflow integrates seamlessly into publishing pipelines for articles or books.
Test the connection with a simple request to verify your key and balance. Adjust parameters like voice preset and response format to match your accessibility requirements. The API returns standard HTTP status codes to indicate success or failure.
Basic speech generation
Send a POST request to the speech endpoint with your text payload. Use the Authorization header with your Bearer token. The system processes the input and returns the audio file in the response body.
Ensure your text does not exceed 4096 characters. If longer, split the text into chunks and join the resulting audio files. This ensures consistent quality and prevents truncation.
- Base URL: https://api.06a.info/v1/audio/speech
- Method: POST
- Header: Authorization: Bearer YOUR_KEY
Setting voice and format
Specify the voice parameter from the eight available presets, such as aria or atlas. Choose the response_format from mp3, wav, opus, flac, or pcm. This flexibility supports various player compatibility needs.
Optionally set the speed between 0.25 and 4.0. This allows publishers to adjust listening speed for different audience preferences, including those with reading difficulties.
Handling the response
A successful response returns a 200 OK status with the audio file in the body. Save this file directly to your storage or play it. The Content-Type header indicates the format.
If an error occurs, the API returns a JSON object with details. Check the status code and error message to troubleshoot. Failed requests do not consume your balance, so you can retry safely.
Rate Limits
Rate limits protect API stability during high-volume generation. Your single API key allows up to 60 requests per minute once your account is active. Each request processes text sequentially, so complex or lengthy inputs may queue briefly under load. For new accounts without a payment method, the initial limit is lower to prevent resource exhaustion. You can monitor your usage and current status directly on your dashboard.
60 requests per minute
Once your account is funded, you can send up to 60 requests per minute. This limit applies per API key, so ensure you are not generating multiple keys for the same account unless necessary. If you exceed this limit, the API returns a 429 Too Many Requests error. Requests processed within the window count toward the total, regardless of success or failure.
- Limit applies per API key
- Calculates rolling minute window
- Applies to all request types
10 requests per minute initially
New accounts start with a 10 requests per minute limit. This lower threshold helps maintain service quality for unverified users. You can increase this limit by adding a top-up to your balance. The increase is automatic and immediate upon confirmation of your USDT transfer.
- Applies to all new accounts
- No manual upgrade required
Limit increases after top-up
Adding funds via USDT (TRC-20) increases your rate limit from 10 to 60 requests per minute. The change happens automatically within minutes of the transfer being confirmed on the TRON network. Your balance does not expire, so you can maintain a higher throughput indefinitely without recurring fees or monthly plans.
- USDT (TRC-20) only
- Automatic update
- No minimum spend for upgrade
Error Handling
The API returns standard HTTP status codes to indicate success or failure. A 200 OK response confirms audio generation, while 400-level errors indicate invalid input parameters such as exceeding the character limit or using an unsupported voice.
Failed synthesis requests are free; if an error occurs, the charge is returned in full. This ensures you only pay for successfully generated audio files.
Standard HTTP status codes
Use the HTTP status code to determine the request outcome. A 200 status indicates success, while 400, 401, or 429 codes signal specific issues like bad requests, authentication errors, or rate limits.
JSON error responses
Errors return a JSON object with a message field describing the issue. Parse this response to identify if the error is due to invalid parameters, expired keys, or insufficient balance.
Retry logic for failures
Implement exponential backoff for transient errors like rate limits (429) or server errors (500). Since requests are processed sequentially, brief delays often resolve queue congestion issues.
- Check the error message for specific retry instructions.
- Do not retry on 400 errors without modifying the request body.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Publishers converting articles and books to audio must evaluate three core factors: cost efficiency, voice clarity, and integration simplicity.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- IETF RFC 7845: Ogg Opus
- Node.js documentation
- LibriTTS-R paper (arXiv 2305.18802)
- LibriTTS-R corpus (OpenSLR 141)
- FFmpeg documentation
- Python documentation
- LibriVox public-domain audiobooks
- Tether (USDT)
- openai-node on GitHub
- W3C WAI: making audio and video accessible
- Creative Commons Attribution 4.0
