Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email plus password. Your account displays the key, balance, and usage details. One active key is issued per account, and you can generate a new one at any time, which immediately invalidates the previous key.
Can I use the OpenAI SDK with this API?
Yes. The request shape matches the OpenAI speech endpoint. Update your SDK’s base_url to https://api.equal9.info/v1 and use your Equal Nine key. This allows you to use the official OpenAI SDKs directly without needing a custom client library or additional dependencies.
What are the rate limits for the API?
You are limited to 60 requests per minute per key. New accounts start with a limit of 10 requests per minute until the first top-up is processed. Requests are processed sequentially, so high load may cause queuing delays beyond the strict rate limit.
Which audio formats are supported?
You can choose from mp3, wav, opus, flac, or pcm by setting the response_format field. These formats cover various quality and size needs. The API returns the generated audio file directly in the response, ready for immediate playback or storage in your application.
How do I set the voice speed?
Use the speed parameter in your request, accepting values between 0.25 and 4.0. This allows you to adjust the playback rate of the synthesized speech. The default speed is 1.0, but you can slow it down for clarity or speed it up for brevity.
What happens if I exceed the rate limit?
Requests are processed one after another, so exceeding limits may cause your request to wait in a queue. If the synthesis fails for any reason, the charge is returned in full, ensuring you are not billed for failed attempts regardless of the rate limit status.
Do I need to install a specific SDK?
No. You can use the official OpenAI SDK by changing the base_url, or use plain HTTP requests. There is no official Equal Nine SDK, mobile SDK, or WordPress plugin. Standard HTTP libraries in any language are sufficient to interact with the API endpoints.
How does language detection work?
If you do not specify a language, the system guesses it from the script. Latin script text defaults to English. For non-English Latin text, you should explicitly set the language parameter. This ensures accurate pronunciation for languages like Dutch or Norwegian which share the Latin alphabet.
Can I specify a language code?
Yes. You can provide an optional ISO language code in the request body. This overrides automatic detection and ensures the correct voice model is used. Supported languages include Arabic, Chinese, English, French, German, Japanese, Spanish, and others listed in the /v1/voices endpoint.
What is the maximum character limit?
Each request supports up to 4096 characters of input text. For longer texts, split them into parts of this size and join the resulting audio files. This approach ensures consistent quality and manageable processing times, as each chunk is synthesized independently before being combined.
Are there any SSML tags supported?
No, SSML is not supported. The API accepts plain text input only. There are no phoneme dictionaries, custom pronunciation lexicons, or emotion tags available. You control pacing and emphasis primarily through the speed parameter and by structuring your input text with appropriate punctuation.
How do I handle errors in the response?
Failed requests are free, and the charge is returned in full. You should check the HTTP status code and response body for error details. If synthesis fails, no audio is generated, and you are not billed. Implement retry logic for transient network or processing errors.
Can I rotate my API key?
Yes. You can issue a new API key at any time from your account dashboard. When a new key is generated, the old one stops working immediately. This allows you to securely rotate keys without downtime, ensuring that only authorized applications use your current active key.
Is the API key secure when stored in code?
The key authenticates your requests via the Authorization header. It is a single active key per account. Store it securely in your environment variables or secret manager. Since only one key is active, rotating it invalidates any leaked keys immediately, enhancing overall security posture.
First request
curl
curl https://api.equal9.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.equal9.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.equal9.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 and Keys
Access the /get-api-key/ page to generate your API key via Google sign-in or email registration. Each account holds one active key that appears alongside your balance and usage metrics.
Getting Your API Key
Sign up on the /get-api-key/ page using Google or an email/password combination. Accounts created with Google receive a $0.50 free trial credit valid for 7 days, providing about 50,000 characters for testing. Email-based accounts start without trial credit. Your key is displayed immediately upon creation.
Bearer Token Usage
Include your key in the HTTP header as Authorization: Bearer tts-.... This token authenticates all requests to the API endpoint. Keep your key secure, as it provides direct access to your account balance and usage.
Key Rotation Policy
You can issue a new key at any time via the dashboard. When a new key is generated, the previous one stops working immediately. This ensures that if a key is compromised, you can revoke access instantly without waiting for a cooldown period.
- One active key per account
- Immediate deactivation of old keys
- Generate new keys via /get-api-key/
First Request with cURL
Send a simple POST request to convert your text into audio. This section covers the fundamental request structure you need to get your first audio file.
Basic JSON Body
Your request must be a JSON object sent to the speech endpoint. Include the model, input text, voice selection, and output format. The API expects standard fields compatible with the OpenAI speech endpoint structure.
- Content-Type: application/json
- Method: POST
- Endpoint: /v1/audio/speech
Required Fields
Specify "tts-1" or "tts-1-hd" for the model. Provide your text in the "input" field (max 4096 characters). Choose a voice from the eight presets and select your preferred audio format like mp3 or wav.
Response Handling
A successful response returns the audio file directly in the body. If synthesis fails, you receive an error object, and the request remains free. Save the returned binary data to your local storage.
OpenAI SDK Integration
The Equal Nine API mirrors the OpenAI speech endpoint structure, allowing you to use official OpenAI SDKs with minimal configuration. Simply update the base URL to point to our API endpoint and provide your unique API key for authentication.
This compatibility means you can leverage familiar libraries and tools without learning a new SDK, speeding up your integration process for accessibility-focused projects.
Base URL Configuration
Point your SDK client to https://api.equal9.info/v1. Replace the standard OpenAI base URL with this endpoint to route requests correctly to our infrastructure.
SDK Compatibility
Use any official OpenAI SDK for Python, Node.js, or other languages. The request shape remains identical, ensuring seamless drop-in replacement for existing TTS implementations.
Code Examples
Initialize your client with the new base URL and your tts-... key. Pass standard parameters like model, voice, and input just as you would for OpenAI, but receive audio from our engines.
This approach lets you quickly generate audio for articles or books, making content accessible to readers with dyslexia or visual impairments without complex infrastructure changes.
Supported Voices and Models
Equal Nine offers eight distinct voice presets, all capable of speaking any of our 23 supported languages. Whether you need the warm narration of Aria or the deep documentary tone of Orion, every voice is based on licensed recordings from LibriTTS-R and LibriVox, ensuring a natural, human-like quality for your accessible content.
Voice Presets List
Our eight presets cover a wide range of tonal needs. Female voices include Aria (warm, clear narrator), Nova (bright, upbeat), Luna (soft, storytelling), and Sage (calm, instructional). Male options feature Felix (energetic, promo), Milo (friendly, conversational), Atlas (neutral, news), and Orion (deep, documentary).
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Model Options
We provide two models: 'tts-1' and 'tts-1-hd'. Both use the same underlying engine and pricing structure, allowing you to choose based on your quality preference without affecting your billing rate. You can switch between them seamlessly in your API requests.
Voice Selection Guide
Choose voices based on your content type. For news articles, Atlas provides a neutral tone, while Felix suits promotional material. For longer reads or audiobooks, Aria or Luna offer engaging narration styles. All voices support the same language set, so you can mix and match based on your audience's needs.
Remember that every generated file carries an inaudible watermark, marking it as synthetic speech. This helps maintain transparency for your readers with visual impairments or dyslexia who rely on accurate audio cues.
Audio Formats and Speed
Choose the audio format that best fits your accessibility workflow. We support MP3, WAV, OPUS, FLAC, and PCM. WAV and FLAC offer lossless quality, ideal for archival purposes, while MP3 and OPUS provide smaller file sizes.
MP3, WAV, OPUS, FLAC
Select your preferred format via the response_format field. MP3 is widely compatible, while WAV and FLAC preserve full fidelity. OPUS offers efficient compression. PCM provides raw data for custom processing pipelines.
- MP3: Standard compressed audio.
- WAV: Lossless uncompressed audio.
- OPUS: Efficient compression.
- FLAC: Lossless compressed audio.
- PCM: Raw linear audio.
Speed Range 0.25-4.0
Adjust speech rate using the speed parameter, ranging from 0.25 to 4.0. Slower speeds aid comprehension for listeners with dyslexia, while faster speeds help experienced users consume content quickly. The default speed is 1.0.
Format Conversion
Convert formats by re-requesting with a different response_format. Since audio is not stored, you must regenerate the file. This ensures you always get the exact format needed for your specific player or archive system without extra conversion tools.

Rate Limits and Quotas
Our API enforces a steady processing pipeline where requests are handled sequentially. This means you can make up to 60 requests per minute with a single key, ensuring consistent throughput for your publishing workflow. Under heavy load, synthesis may queue, but you are never charged for failed attempts.
When you first create an account, your key starts with a lower limit of 10 requests per minute. This ensures system stability as your key begins processing. Once you add credit via USDT on the TRON network (TRC-20), your limit automatically increases to the standard 60 requests per minute.
60 Requests Per Minute
After topping up your account, you gain access to a generous quota of 60 requests per minute. This limit applies per API key, allowing you to run multiple independent processes if needed. Since texts are split into 4,096-character chunks, you can process long articles efficiently without hitting character limits, though audio generation time depends on text length.
Initial Limit for New Keys
Newly created API keys begin with a conservative limit of 10 requests per minute. This lower threshold helps us manage initial load as your key starts processing audio. You can verify your current rate limit in the dashboard or by checking the response headers of your first requests.
Handling Throttling
If you exceed the 60 requests per minute threshold, the API returns a 429 Too Many Requests error. We recommend implementing exponential backoff in your integration logic. Simply wait a few seconds before retrying, as requests are processed in the order they are received, and your turn will come naturally.
- Return a 429 HTTP status code when the limit is exceeded.
- Implement exponential backoff to avoid overwhelming the server.
- Check response headers for remaining quota information.
Error Codes and Handling
Understanding error responses ensures your integration handles failures gracefully without wasting credits. The API returns standard HTTP status codes to indicate success or failure, allowing you to log issues accurately.
Common HTTP Errors
A 401 Unauthorized error occurs when the Bearer token is missing or invalid. A 429 Too Many Requests indicates you have exceeded the 60 requests per minute limit. Check your key and rate limits.
- 400: Bad Request
- 401: Unauthorized
- 429: Rate Limit Exceeded
- 500: Internal Server Error
Invalid Input Types
Errors often arise from exceeding the 4096 character limit per request or providing an unsupported voice name. Ensure your response_format is one of mp3, wav, opus, flac, or pcm. Invalid JSON bodies will also trigger a 400 error.
Retry Strategies
For 429 errors, implement exponential backoff to avoid immediate re-throttling. Failed synthesis requests are free, so you can safely retry them without incurring additional charges. Always check the response body for specific error details.
Language Detection and Codes
Equal Nine supports 23 languages, from Arabic to Turkish. You can specify any of these using standard ISO codes in your API requests. This ensures your audio matches the linguistic requirements of your published content.
ISO Language Codes
Use standard two-letter ISO codes like 'en', 'fr', or 'de' to define the language. This list includes 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 other language is not supported.
- en (English)
- fr (French)
- de (German)
- es (Spanish)
- ja (Japanese)
- zh (Chinese)
Auto-Detection Logic
If you omit the language field, the system guesses the language based on the text script. Latin script text defaults to English if no specific language is provided. This works well for simple English text but may fail for other Latin-based languages.
Setting Language Explicitly
For non-English Latin-script text, always set the language explicitly to avoid mispronunciation. For example, French text without the 'fr' tag will sound like English. Explicit settings ensure accurate pronunciation for publishers creating accessible content for diverse readers.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This combination of language support and format flexibility makes it a reliable tool for creating accessible audiobooks and articles.
23 languages
Any voice speaks any of these languages.
