Frequently asked questions
How does this API compare to AWS Polly?
We offer a simpler integration using the OpenAI SDK by changing the base URL. Unlike AWS Polly, we support 23 languages with 8 distinct voice presets and provide transparent pricing at $0.01 per 1,000 characters. Our API endpoint structure mirrors OpenAI’s speech endpoint, making it easy for developers to switch without rewriting their core logic.
Is this API suitable for educational institutions?
Yes, our editorial reviews focus on practical use cases for teachers and indie developers. The API supports 23 languages and offers 8 voice presets suitable for diverse educational content. With simple pricing and no monthly plans, schools can generate audio for lessons or materials without complex contracts or minimum spend requirements.
What languages are supported besides English?
We support 23 languages total: Arabic, Chinese, Danish, Dutch, 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. If the language is not specified, it is guessed from the script, defaulting to English for Latin text.
Can I use this API with Python or PHP?
Yes. The API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.ufau4thai.com/v1 and providing your API key. Alternatively, you can make standard HTTP POST requests with JSON bodies, which works seamlessly with Python, PHP, or any language that supports HTTP.
How is the pricing calculated?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with charges returned in full. There are no monthly plans, seats, or minimum spends. You can top up your balance using USDT on the TRON network, with no expiration on your funds.
Do I need to pay for failed requests?
No. If synthesis fails, the charge is returned in full. You only pay for successful audio generation. This ensures you are not billed for errors or issues during the processing of your text-to-speech requests, making the API cost-effective for testing and production environments alike.
What happens if I exceed the character limit?
Each request supports up to 4096 characters. For longer texts, you should split the input into parts of this size and join the resulting audio files. This allows you to generate audio for books, long articles, or extensive educational materials without hitting a hard limit on a single API call.
Are the voices realistic and natural?
The voices are based on licensed recordings from LibriTTS-R and LibriVox public-domain audiobook readings. Each generated file carries an inaudible watermark marking it as synthetic speech. Our 8 presets offer distinct tones, from warm narrators to deep documentary styles, suitable for various applications.
Is there a free trial available?
Yes. Signing in with Google provides $0.50 of credit, valid for 7 days, allowing about 50,000 characters of generation. Accounts created with email and password start without trial credit. This allows you to test the API’s quality and integration before committing to a top-up via USDT on the TRON network.
How long does the free trial last?
The free trial credit of $0.50 is valid for 7 days from the time you sign in with Google. After 7 days, the credit expires if not used. Accounts created with email and password do not receive this trial credit, so you will need to top up your balance to start generating audio.
Can I use the audio for commercial projects?
The product facts do not specify licensing restrictions for the generated audio. The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain readings. You can use the generated audio files for your projects, but you should verify specific licensing requirements for the source recordings if needed for commercial distribution.
Do you store the text I send?
Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. However, request metadata, including time, characters, and status, is kept for billing purposes. This ensures accurate charge calculation without retaining the actual content of your generated speeches.
What audio formats are available?
You can choose from mp3, wav, opus, flac, and pcm formats. These options allow you to balance file size and quality based on your specific needs. The API returns the audio file directly in the response, ensuring you receive the content in your preferred format without additional conversion steps.
How fast is the text-to-speech generation?
Typical speed is roughly real time, generating about 25 characters of text per second of audio. Short phrases may take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue. This ensures consistent processing but means higher concurrency may increase wait times.
First request
curl
curl https://api.ufau4thai.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.mp3Why Switch from AWS Polly?
AWS Polly often requires navigating complex tiered pricing structures that can obscure actual costs for classroom projects. Our API offers a straightforward model: $10 per million characters, with failed requests costing nothing. This transparency helps teachers and indie developers budget accurately without hidden surprises.
Simpler Pricing Model
We charge strictly per character processed, including spaces and punctuation. You pay only for successful synthesis, ensuring every cent contributes to usable audio files.
Transparent Character Count
The character count is explicit in your dashboard and billing logs. Unlike black-box systems, you know exactly how much each lesson or story costs before generation begins.
No Complex Tiering
There are no volume discounts or subscription tiers to manage. Whether you generate 1,000 characters or 1 million, the rate remains consistent. This simplicity reduces administrative overhead for small teams.
Voice Selection for Education
Cloud TTS Review evaluates voice presets tailored for educational content, ensuring lessons are engaging without distraction. Our API offers eight distinct voices, including warm narrators like Aria and calm instructors like Sage, perfect for reading textbooks or explaining concepts.
Narrator Voices for Lessons
Voices like Aria and Luna provide a warm, clear narration style ideal for storytime or historical accounts. Sage offers a calm, instructional tone suitable for step-by-step tutorials, helping students focus on the material rather than the speaker's personality.
Clear Pronunciation for Students
Every generated file carries an inaudible watermark that marks it as synthetic speech. This clarity supports language learners and students with reading difficulties, providing a reliable audio reference that matches the text exactly without unexpected emotional shifts or background noise.
8 Distinct Voice Presets
Choose from four female voices (Aria, Nova, Luna, Sage) and four male voices (Felix, Milo, Atlas, Orion). This variety allows teachers to assign different characters to dialogues or select a neutral voice like Atlas for news-style readings.
- Female: Aria (warm), Nova (bright), Luna (soft), Sage (calm)
- Male: Felix (energetic), Milo (friendly), Atlas (neutral), Orion (deep)
Language Support for Global Classrooms
Cloud TTS supports 23 languages, including English, Spanish, German, French, Japanese, Korean, Arabic, Chinese, and Hindi. Any voice can speak any of these languages, allowing teachers to create diverse audio content for global classrooms without needing multiple voice models.
23 Supported Languages
The API covers major world languages such as Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. This range allows educators to produce lesson audio in the native language of their students.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Automatic Language Detection
If you do not specify a language, the system guesses it from the script. Latin-script text defaults to English, but for non-English Latin-script text, you should set the language field explicitly to ensure accurate pronunciation.
Multi-Language Lesson Plans
Developers can mix languages in a single lesson plan by sending separate requests for each language segment. This approach ensures that each voice segment is processed correctly, maintaining clarity for students learning different languages.
Developer-Friendly Integration
The API mirrors the standard OpenAI speech endpoint structure, allowing developers to leverage existing libraries without learning a new interface. By simply adjusting the base URL, the official OpenAI SDKs integrate seamlessly, reducing boilerplate code and accelerating deployment for indie developers and educational tools alike.
You can use familiar request shapes to generate audio, making the transition from other providers or the integration of new features straightforward and reliable.
OpenAI SDK Compatibility
The API follows the same request shape as the OpenAI speech endpoint. This means you can use the official OpenAI SDKs by merely changing the base URL. Your existing code for handling JSON requests and responses works immediately, minimizing the learning curve for teams already familiar with standard TTS patterns.
- Uses standard
POSTrequests with JSON bodies - Compatible with official OpenAI SDKs
- Familiar error handling and response structures
Standard REST Endpoint
Interaction occurs via a simple POST to /v1/audio/speech. The endpoint accepts model, input, voice, response_format, and speed parameters. This predictable structure ensures that developers can quickly prototype and scale their applications without dealing with complex query strings or proprietary serialization formats.
- Single endpoint for all synthesis requests
- Supports MP3, WAV, Opus, FLAC, and PCM
- Accepts text input up to 4096 characters
Easy Base URL Configuration
To switch the provider, update your base URL to https://api.ufau4thai.com/v1. This single change directs all SDK calls to our infrastructure. Authentication is handled via the Authorization: Bearer header using your unique API key, which is generated instantly upon account creation.
- Base URL:
https://api.ufau4thai.com/v1 - Authentication via Bearer token
- Instant key generation via
/get-api-key/
Audio Formats for Learning
Choosing the right audio format ensures your lesson files play smoothly across devices. MP3 offers the best balance of quality and file size for web playback, while WAV provides uncompressed clarity for high-fidelity needs.
MP3 for Web Playback
MP3 is a standard format for web delivery, offering small file sizes. This makes it ideal for embedding audio directly into lesson plans or learning management systems without slowing down page loads.
- Small file sizes for fast loading
- Universal compatibility with web browsers
- Ideal for embedded lesson audio
WAV for High Quality
WAV files provide uncompressed audio. Use this format when preserving the exact voice nuances is critical for language learning or detailed narration.
- Uncompressed audio quality
- Best for offline listening
- Preserves voice nuances
FLAC and Opus Options
For advanced use cases, FLAC offers lossless compression for perfect quality with smaller files than WAV. Opus provides efficient compression for low-bandwidth environments.
- Lossless compression with FLAC
- Efficient for low-bandwidth with Opus
- Flexible options for diverse needs

Reliability and Limits
Understanding the operational boundaries ensures your lesson plans and student audio requests run smoothly without unexpected interruptions. The API enforces specific limits on request volume and text length to maintain consistent synthesis quality for educational workflows.
60 Requests Per Minute
Each API key supports a maximum of 60 requests per minute. This rate limit applies to all synthesis attempts, ensuring fair usage across accounts. New accounts start with a lower threshold of 10 requests per minute until the first top-up is processed.
4096 Character Limit
Each individual API call accepts a maximum of 4096 characters for the input text. This limit includes spaces and punctuation. For longer lessons or stories, you must split the content into smaller chunks and join the resulting audio files manually.
Queue Processing Under Load
Requests are processed sequentially rather than in parallel. During peak usage times, your synthesis job may wait in a queue before processing begins. This means generation times can vary, but the system ensures every request is handled without loss.
Cost Efficiency for Schools
Cloud TTS Review offers straightforward pricing tailored for educational budgets. At $10 per million characters, the cost remains consistent regardless of volume, making it easy for schools and indie developers to forecast expenses without complex tiering structures.
$10 Per Million Characters
The rate is $0.01 per 1,000 characters, including spaces and punctuation. This transparency allows teachers to calculate exact costs for lesson plans or audiobooks based on character count.
- Fixed rate: $10 per 1 million characters.
- Clear calculation: $0.01 per 1,000 characters.
- Includes all characters: spaces and punctuation count.
No Monthly Fees
There are no subscriptions, seats, or minimum spend requirements. You only pay for what you use, which is ideal for classrooms with variable usage patterns throughout the academic year.
Pay Only For Success
If a synthesis request fails, the charge is returned in full. You are not billed for unsuccessful attempts, ensuring you only pay for delivered audio files.
Data Privacy for Students
Student audio files are generated on demand and returned directly in the response, ensuring they are not stored on our servers after delivery. This transient handling keeps student voices private and secure during the learning process.
Text Used Only for Synthesis
Input text is utilized exclusively to produce the audio output for your request. We do not repurpose student readings or lesson content for other purposes, ensuring that educational material remains isolated to its intended use.
No Training on Input Data
Unlike some platforms, we do not use your input text or generated audio to train our underlying models. Your curriculum data remains yours, preserving intellectual property and preventing student voices from being absorbed into the base engine.
Minimal Metadata Retention
We retain only request metadata—such as timestamp, character count, and status—for billing accuracy. This limited data supports transparent invoicing without hoarding unnecessary information, keeping your student usage records lean and precise.
Getting Started Quickly
Getting started is straightforward. Sign up with Google to receive $0.50 in trial credit, enough for roughly 50,000 characters valid for 7 days. Email sign-ups start with no credit.
Your API key appears immediately. You can generate a new key at any time, revoking the old one instantly. No complex verification waits block your first synthesis.
Free Trial Credit
Receive $0.50 automatically upon Google sign-in. This covers approximately 50,000 characters, allowing you to test voices and formats without payment.
Email-based accounts do not include trial credit. Top-ups via USDT on the TRON network (TRC-20) start at $5 and credit automatically within minutes.
- $0.50 credit for Google sign-ups
- Valid for 7 days
- Covers ~50,000 characters
Instant API Key Generation
Keys are displayed immediately after registration. One active key per account ensures clear usage tracking.
Issue a new key anytime; the previous one stops immediately. Use it with standard HTTP requests or the OpenAI SDK by changing the base URL.
Simple Documentation
Full API specs are available at /docs/. The endpoint mimics the OpenAI speech format, ensuring easy migration for existing developers.
Curl examples and language codes are provided to help you integrate quickly into your classroom or app workflows.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Text is processed solely to generate the audio file and is never retained for model training or improvement.
23 languages
Any voice speaks any of these languages.
