Frequently asked questions
How do I get an API key?
Visit /get-api-key/ to sign up using Google or an email and password. Your account page displays your active API key, balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one.
What is the base URL?
The API base URL is https://api.fly68.info/v1. You send POST requests to https://api.fly68.info/v1/audio/speech for synthesis and GET requests to /v1/voices or /v1/models for metadata. Use this base URL for all API interactions.
Can I use the OpenAI SDK?
Yes, the official OpenAI SDKs work seamlessly. Change the SDK’s base_url to https://api.fly68.info/v1 and provide your FlySpeech key. The request shape matches the OpenAI speech endpoint exactly, requiring no code changes beyond the configuration.
What formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify your preference in the response_format field of your JSON request body. This allows you to choose the best balance between file size and quality for your language learning app.
How many characters can I send?
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. If your text exceeds this length, you must split it into smaller chunks and send multiple requests to generate the full audio.
What are the rate limits?
You are limited to 60 requests per minute per API 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 introduce slight delays.
How do I handle errors?
If synthesis fails, you are not charged; the cost is returned in full. Check your response status codes and error messages to diagnose issues like invalid keys or malformed JSON. Failed requests are free, ensuring you only pay for successful generations.
Is streaming supported?
No, streaming is not supported. The API returns the complete audio file in the response body after processing. You cannot receive partial audio chunks or use WebSocket connections for real-time playback. You must wait for the full file to be generated.
Can I adjust the speed?
Yes, you can adjust the playback speed between 0.25 and 4.0 using the speed parameter. This allows you to slow down audio for beginners or speed it up for advanced listening practice. The default speed is 1.0, representing normal speech rate.
How do I split long texts?
Split your text into parts of up to 4096 characters each. Send each part as a separate POST request to the speech endpoint. Then, join the resulting audio files in your application to create a continuous audio track for the user.
What voices are available?
Eight presets are available: aria, nova, luna, and sage (female); felix, milo, atlas, and orion (male). Each voice has a distinct tone, from warm narrators to deep documentary styles. All voices support all 23 languages without needing separate voice models.
Which languages are supported?
We support 23 languages including English, Spanish, Chinese, Japanese, and Arabic. Any voice can speak any supported language. If the language is not specified, the system guesses it based on the script, defaulting to English for Latin text. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali and others are not supported.
Do I need to install extra libraries?
No extra libraries are required if you use standard HTTP requests. If you prefer the OpenAI SDK, you can install it via your package manager and configure the base URL. No proprietary SDK or specific client library is mandatory for integration.
Is the API RESTful?
Yes, the API is RESTful. You use standard HTTP methods like POST for speech generation and GET for retrieving voices and models. Requests use JSON bodies, and responses return audio data or JSON metadata, adhering to standard REST principles for easy integration.
First request
curl
curl https://api.fly68.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.fly68.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.fly68.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
To start using FlySpeech, visit the /get-api-key/ page on fly68.info. This is where you create your account and generate the credentials needed to access the API.
Sign up on the website
Navigate to the signup page and create an account. This step is required before you can access your unique API key or view your usage dashboard.
Choose Google or email login
You can register using your Google account for quick access, or use a standard email and password combination. Note that Google sign-ups include a $0.50 free trial credit, while email accounts start with zero balance.
Copy your key from dashboard
Once registered, your dashboard displays your active API key starting with tts-.... Copy this key to use in your Authorization: Bearer headers. You can issue a new key at any time, which immediately invalidates the old one.
Make your first request
To test the API quickly, send a POST request to the speech endpoint with your key. The service accepts plain text up to 4,096 characters and returns an audio file directly in the response body.
Use cURL for simple testing
Run this command to generate speech instantly. Replace YOUR_API_KEY with your credential from the dashboard.
- ```bash curl -X POST https://api.fly68.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}' \ -o speech.mp3 ```
Send text in JSON format
The request body must be valid JSON containing the model, input text, voice, and response_format. You may optionally specify speed (0.25–4.0) or language (ISO code).
Receive audio file in response
The API returns the audio file directly in the response body. Save this binary data to a file on your server or play it immediately in your language learning app.
Use the OpenAI SDK
Integrating FlySpeech into your language learning platform is straightforward if you already use the OpenAI SDK. Since our API mirrors the official speech endpoint structure, you can reuse your existing code with minimal changes. This approach simplifies maintenance and allows your team to switch providers easily if needed in the future.
You only need to adjust the base URL and provide your specific API key. The SDK handles the JSON serialization and audio response parsing automatically, ensuring that your application receives the audio file efficiently without needing custom HTTP client logic.
Install the official OpenAI SDK
Begin by installing the standard OpenAI library for your preferred programming language. This ensures compatibility with the request format we expect for audio generation.
- Run
pip install openaifor Python projects. - Use
npm install openaifor JavaScript/Node.js environments.
Change base_url to our endpoint
Update your client configuration to point to our specific API domain. This directs all requests to our infrastructure while keeping the standard SDK behavior.
Set the base_url variable to https://api.fly68.info/v1 in your initialization code. This ensures that all subsequent API calls route correctly to our speech synthesis engine.
Use same request structure
Pass your tts-... key in the authorization header and provide the text, voice, and model parameters exactly as you would for OpenAI. Our system processes these fields identically, returning the audio file in the chosen format.
Remember that failed requests are free, so you can safely retry synthesis attempts without worrying about unnecessary charges. The SDK will handle the response, giving you the audio data ready for playback or storage.
Supported audio formats
Choose the format that best fits your language learning workflow. MP3 is the standard for web playback, offering a good balance between file size and audio clarity. It is ideal for embedding directly into web apps or mobile interfaces where storage and bandwidth matter.
MP3 for web playback
MP3 is the default choice for most integrations. It provides compressed audio that loads quickly in browsers and players, making it perfect for students practicing listening on various devices without heavy data usage.
WAV for high quality
WAV provides uncompressed, lossless audio. Use this format when you need the highest fidelity for pronunciation analysis.
OPUS and FLAC options
For archival purposes or advanced processing, FLAC offers lossless compression with smaller file sizes than WAV. OPUS is suitable for efficient streaming scenarios where low latency is prioritized over absolute transparency.
- MP3: Best for general web playback
- WAV: Highest fidelity for analysis
- FLAC: Lossless, compact storage
- OPUS: Efficient streaming
Available voices and languages
Choose from eight distinct voice presets to match your app’s tone, from warm narrators to energetic promo voices. Each voice is synthesized from licensed recordings, ensuring consistent quality across your language learning materials.
All voices support 23 languages, allowing you to generate clear audio for students learning Arabic, Chinese, Spanish, or any supported language. The API automatically detects the language from the text script, though you can explicitly set it for non-English Latin text.
8 voice presets
Select voices like Aria for clear narration or Felix for upbeat promos. Options include Luna for storytelling, Sage for instruction, Milo for conversation, Atlas for neutral news, and Orion for deep documentary styles.
Every generated file includes an inaudible watermark identifying it as synthetic speech.
- Aria (female, warm)
- Nova (female, bright)
- Luna (female, soft)
- Sage (female, calm)
- Felix (male, energetic)
- Milo (male, friendly)
- Atlas (male, neutral)
- Orion (male, deep)
23 supported languages
Support covers Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
Voices can speak any of these languages. If the language field is omitted, the API guesses from the script; set it explicitly for non-English Latin text to ensure accuracy.
- Arabic
- Chinese
- Danish
- Dutch
- English
- Finnish
Adjustable speed settings
Set the speed parameter between 0.25 and 4.0 to control playback rate. This is useful for helping students practice listening comprehension at different difficulty levels.
Adjusting speed does not change the voice character or quality, only the duration of the generated audio.

Rate limits and quotas
FlySpeech enforces a steady rate limit of 60 requests per minute for most accounts. This ensures consistent audio generation for your language learning tools without sudden drops in service. If you exceed this limit, you will receive a 429 error until the window resets.
New accounts start with a stricter limit of 10 requests per minute until you complete your first top-up. This helps prevent accidental overuse during testing. Once you add credit via USDT, the limit automatically increases to the standard 60 requests per minute.
60 requests per minute
After your first top-up, you can send up to 60 audio synthesis requests every minute. This is sufficient for generating practice materials for most language learning apps, though requests are processed sequentially and may queue under load.
10 requests before first top-up
Until you add funds, your account is limited to 10 requests per minute. This allows you to test the API and generate initial content without immediate pressure. Once your USDT transfer is confirmed, the limit lifts automatically.
4096 characters per request
Each API call can process up to 4096 characters, including spaces and punctuation. For longer texts, split them into smaller chunks and concatenate the resulting audio files. This approach ensures high-quality synthesis and prevents request timeouts.
Handling errors
When integrating FlySpeech, anticipate standard API responses to handle failures gracefully. Understanding the specific error type allows your application to retry or alert users appropriately without unnecessary complexity.
Most errors are immediate and self-explanatory. This section covers the three most common issues: authentication, throttling, and input constraints.
Invalid API key errors
If your key is missing, incorrect, or revoked, the API returns a 401 Unauthorized error. Ensure you pass the key in the Authorization: Bearer <key> header. Remember that issuing a new key instantly invalidates the previous one.
Rate limit exceeded errors
You receive a 429 error if you exceed 60 requests per minute per key. New accounts start with a 10 requests per minute limit until the first top-up. Implement exponential backoff to handle these queues smoothly.
Text length errors
Each request accepts a maximum of 4096 characters. If your input exceeds this limit, the API rejects it. You must split long texts into smaller chunks in your code before sending them.
Best practices for integration
Optimizing your integration ensures smooth audio generation for language learning tools. By managing text length and audio caching, you reduce latency and keep costs predictable.
Split long texts into chunks
Each request supports up to 4096 characters. For longer passages, split the text into parts, generate each audio file, and join them sequentially.
Handle speed adjustments
Adjust the speed parameter (0.25–4.0) to match student proficiency levels. Slower speeds aid pronunciation practice, while faster speeds simulate natural conversation.
Cache audio files for reuse
Store generated audio files locally or in your cloud storage. Since the same text produces the same audio, caching eliminates redundant API calls and saves credits.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Each word is enunciated precisely, making it easier for learners to distinguish similar sounds.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- curl documentation
- Node.js documentation
- IETF RFC 7845: Ogg Opus
- LibriVox public-domain audiobooks
- Python documentation
- Creative Commons Attribution 4.0
- LibriTTS-R paper (arXiv 2305.18802)
- OpenAI API reference: create speech
- LibriTTS-R corpus (OpenSLR 141)
- W3C WAI: making audio and video accessible
- TRON developer hub: TRC-20
