Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email. Accounts created with email start without trial credit, while Google sign-ins receive $0.50 valid for 7 days. Your key appears on the dashboard, ready for immediate use in your Python requests.
Can I use the OpenAI Python SDK?
Yes. The API accepts the same request shape as OpenAI. Simply change the base_url to https://api.288q.info/v1 and provide your EchoLingo key. This allows you to use the official OpenAI SDKs directly without writing custom HTTP clients for basic synthesis.
What is the base URL for the API?
The base URL is https://api.288q.info/v1. You send POST requests to https://api.288q.info/v1/audio/speech for synthesis. Use GET /v1/voices to list available voices and formats, and GET /v1/models to check model details.
How do I handle rate limits?
You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so under load, your synthesis may wait in a queue. Implement retry logic with exponential backoff to handle delays gracefully.
What formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format using the response_format field in your JSON body. These options cover most language learning applications, from web playback to high-quality archival storage.
How do I specify a language?
Pass the ISO code in the language field. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language to ensure accurate synthesis across our 23 supported languages.
What happens if the request times out?
The API does not guarantee a specific timeout duration. Requests are processed sequentially, so under load a request may wait in a queue. If synthesis takes longer than your client expects, you may need to adjust your timeout settings. Failed requests are free. Successful requests are charged.
Can I rotate my API key?
Yes, you can issue a new key at any time from your dashboard. The old key stops working immediately when the new one is active. This allows you to rotate keys securely without downtime, ensuring your language learning application maintains continuous access.
First request
curl
curl https://api.288q.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.288q.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.288q.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 |
Get Your API Key
Start by signing in via Google for an instant $0.50 trial credit, valid for 7 days. Alternatively, create a standard account with an email and password, which begins without trial credit. This step creates your unique API key, the only credential needed to access the TTS engine.
Google Sign-In
Click the Google sign-in button on the /get-api-key/ page. Upon successful authentication, you receive a $0.50 trial credit automatically. This allows you to test the API immediately without adding funds.
- Instant access to the dashboard
- $0.50 trial credit included
- Valid for 7 days
Email Registration
Select the email registration option to create a standard account. This method does not include the trial credit. You must top up with USDT to begin generating audio files.
- Standard account creation
- No trial credit included
- Requires manual top-up
Key Management
Your API key is displayed immediately after registration. You can issue a new key at any time from the dashboard. The previous key stops working instantly, ensuring secure access for your language learning startup.
- One active key per account
- Instant revocation on new key issuance
- Bearer token format: tts-...
First Request with cURL
Start by verifying your API key works with a simple cURL command. This confirms connectivity before integrating Python libraries. Ensure your key starts with tts- and is valid for the 288q.info domain.
The command sends a short text payload to the speech endpoint. It returns an audio file directly, allowing you to test voice quality and format options immediately without writing complex code.
Basic Command
Send a POST request to the speech endpoint with your Bearer token. Replace YOUR_API_KEY with your actual key from the dashboard.
```bash curl -X POST https://api.288q.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello world", "voice": "nova"}' \ --output output.mp3 ```
Required Fields
The JSON body requires three mandatory fields: model, input, and voice. The model accepts tts-1 or tts-1-hd. The input text must not exceed 4096 characters.
The voice parameter selects one of the eight presets, such as nova for bright audio or atlas for neutral news. Optional fields like speed (0.25–4.0) and language allow fine-tuning.
Response Format
A successful request returns the audio file in the specified response_format (defaulting to mp3). Failed requests return a JSON error object and do not charge your balance.
You can save the output directly to a file using the --output flag. Verify the file plays correctly to ensure the voice matches your course's tone before bulk generation.
Using the OpenAI SDK
To use our API with the OpenAI Python SDK, you only need to change the base_url to https://api.288q.info/v1 and inject your EchoLingo key. This works because our endpoint structure mirrors the official OpenAI speech API.
By pointing the SDK to our base URL, you can use standard methods like Audio.speech.create() without rewriting your logic. This allows language learning startups to swap providers easily while keeping their existing Python code intact.
Base URL Configuration
Set the base_url parameter in your OpenAI client initialization to https://api.288q.info/v1. This directs all requests to our infrastructure while maintaining the standard request shape.
Ensure your Authorization header uses your unique tts-... key. The SDK handles the rest, forwarding your text and voice parameters to our engine.
- Base URL: https://api.288q.info/v1
- Auth Header: Bearer tts-<your-key>
- Standard OpenAI request shape
Python Code Example
Here is a minimal script to generate audio. Replace <your-key> with your API key from the dashboard.
The code sends the text to the tts-1 model and saves the resulting MP3 file locally for use in your course materials.
- import OpenAI
- client = OpenAI(base_url="https://api.288q.info/v1", api_key="tts-...")
- response = client.audio.speech.create(...)
SDK Compatibility
The official OpenAI Python SDK works out of the box because we follow the same JSON body structure.
You do not need a custom client or wrapper. Simply initialize the standard client with our base URL and use the audio.speech endpoint.
Audio Formats
Choose your output format based on your language learning app’s needs. MP3 offers the best balance of file size and compatibility for web playback, while WAV provides uncompressed quality for offline course materials.
MP3 for Web
MP3 is the default and most efficient format for web playback in browsers. It keeps file sizes small, ensuring fast load times for students listening to pronunciation guides or lesson dialogues on mobile devices.
- Universal browser support
- Smallest file size for fast streaming
- Ideal for web-based language apps
WAV for Quality
WAV provides uncompressed, high-fidelity audio. Use this format when you need the cleanest possible sound for educational materials, such as detailed phoneme drills or professional-grade course recordings where bitrate artifacts matter.
- Lossless audio quality
- No compression artifacts
- Best for offline or archival use
Opus and FLAC Options
Opus delivers excellent compression with high quality, suitable for modern web apps. FLAC offers lossless compression, reducing file size without sacrificing any audio data, making it an efficient alternative to WAV for storage-heavy projects.
- Opus: High quality, low bitrate
- FLAC: Lossless compression
- Efficient storage for large libraries
Rate Limits
Rate limits ensure fair usage of our cloud inference engine. You get 60 requests per minute with a standard key, but new accounts start with just 10 requests per minute until you top up.
60 Requests Per Minute
Once you add funds via USDT (TRC-20), your limit increases to 60 requests per minute. This allows for rapid generation of audio assets during development or small-scale production runs without hitting a wall.
Initial 10 Requests
Before your first top-up, you are limited to 10 requests per minute. This is sufficient for testing your integration and verifying voice quality before committing to larger volume usage for your language courses.
Burst Handling
If you exceed your limit, requests are processed in a queue. Under load, generation may take longer than usual. For batch processing, consider spacing out requests slightly to avoid temporary 429 errors.
- Requests are processed sequentially under heavy load.
- Exceeding limits results in a 429 error.

Handling Errors
Synthesizing audio involves network latency and server load, so understanding how to handle failures ensures your language learning pipeline remains robust. This section covers the specific error codes you might encounter, how to implement safe retry logic, and what happens when a request fails financially.
Since requests are processed sequentially, high load can cause temporary delays. Knowing how to distinguish between a transient network issue and a permanent configuration error helps you maintain steady audio generation for your educational content without wasting characters.
Common Error Codes
The API returns standard HTTP status codes to indicate the nature of the failure. A 400 Bad Request usually means your input text exceeds the 4096 character limit, contains an invalid voice, or has invalid JSON structure. A 401 Unauthorized indicates your Bearer token is missing or expired. A 429 Too Many Requests triggers when you exceed the rate limit (10 or 60 requests per minute).
Other codes like 500 indicate internal server issues, which are rare but possible during peak usage. Always check the response body for a specific error message that details exactly what went wrong, such as an invalid voice ID or an unsupported language code.
- 400: Invalid request body or parameters
- 401: Missing or invalid API key
- 429: Rate limit exceeded (60 req/min)
- 500: Internal server error
Retry Logic
Implement exponential backoff for 429 and 500 errors to avoid hammering the server. Start with a short delay (e.g., 1 second) and double it for each subsequent retry up to three attempts. This approach respects the sequential processing queue and prevents your application from being temporarily blocked.
For 400 errors, do not retry because the input is fundamentally wrong. Instead, log the error and alert your development team to fix the data source, such as ensuring your text strings are properly encoded and within the character limit.
Failed Request Refunds
If synthesis fails due to server-side issues, the charge is returned in full to your balance. This ensures you only pay for successfully generated audio files. You do not need to manually request a refund; the system automatically credits your account.
Failed requests are identified by a non-200 HTTP status code. Check your account dashboard under the usage tab to see the adjusted character count and balance after any refunded failures. This transparency helps you track your actual spending accurately.
Voice and Language Parameters
Choose from eight distinct voices like Aria for warm narration or Felix for energetic promos. Each voice delivers clear, natural-sounding speech suitable for language learning courses, with consistent quality across all supported languages.
Control the playback speed between 0.25 and 4.0 to match your students' proficiency levels. Adjusting speed helps learners grasp pronunciation without altering the voice character, ensuring the audio remains clear and engaging.
Voice Selection
Select from eight presets including female voices Aria, Nova, Luna, and Sage, or male voices Felix, Milo, Atlas, and Orion. These voices are based on licensed recordings and work across all 23 supported languages. No custom voice cloning or emotion tags are available.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Felix: Energetic, promo
Language Codes
Specify the language using an ISO code in the request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures accuracy for non-English Latin-script texts like German or Dutch.
Supported languages include 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 voice can speak any of these languages.
Speed Control
Adjust the speed parameter from 0.25 to 4.0 to modify playback rate. Slower speeds aid comprehension for beginners, while faster speeds suit advanced learners. The voice character remains consistent regardless of the speed setting.
Speed adjustments do not affect the character count or pricing. You can dynamically change speed per request to tailor the audio experience for different course segments.
- Min speed: 0.25x
- Max speed: 4.0x
- Default: 1.0x
Long Text Handling
For language learning courses, you often need to generate audio for entire lessons rather than short phrases. Our API handles this by processing text in chunks of up to 4096 characters per request, ensuring consistent audio quality without overwhelming the system.
4096 Character Limit
Each API call accepts a maximum of 4096 characters, including spaces and punctuation. This limit applies to the input field in your JSON payload. If your lesson text exceeds this, you must split it before sending.
Splitting Text
Split your long text into segments of 4096 characters or fewer. Send each segment as a separate POST request to the speech endpoint. Maintain the order of segments to reconstruct the lesson later.
Joining Audio Files
Receive each audio file sequentially and concatenate them in your application. Since requests are processed one after another, the order of responses matches the order of your sent chunks. Use standard audio libraries to merge the files into a single course audio track.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This prevents corrupt audio files from being delivered to students during a lesson.
23 languages
Any voice speaks any of these languages.
