Frequently asked questions
What is the API endpoint for generating speech?
Send a POST request to https://api.aa99casino.com/v1/audio/speech. Use a JSON body with fields like model, input, voice, and response_format. The endpoint accepts standard TTS parameters, allowing you to generate audio files directly via HTTP or compatible OpenAI SDKs by adjusting the base URL.
How does the tts-1 model differ from tts-1-hd?
There is no difference in engine or price between tts-1 and tts-1-hd. Both models use the same underlying technology and incur identical costs. You can choose either model ID in your requests without affecting the output quality or the amount charged to your account balance.
What are the rate limits for the API key?
Your key allows 60 requests per minute. Before your first top-up, the limit is lower at 10 requests per minute. These limits apply per key, so if you generate audio for short-form videos rapidly, you may need to batch requests or wait for the queue to clear.
Which languages are supported by the API?
The API supports 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not supported. Set the language code explicitly for non-English Latin text.
Can I use any voice to speak any of the supported languages?
Yes, every voice can speak any of the supported languages. You have eight presets to choose from, such as Aria, Nova, or Felix. The system guesses the language from the script if none is set, but you should specify it for non-English Latin-script text to ensure accuracy.
How much does the API cost per character?
The cost is $10 per 1 million characters, which equals $0.01 per 1,000 characters. Failed requests are free, with the charge returned in full. You can start with a $0.50 free trial credit valid for 7 days, or top up via USDT on the TRON network (TRC-20) for ongoing usage.
What happens to my balance if a request fails?
If synthesis fails, the charge is returned to your balance in full. You are only billed for successful audio generations. This ensures you do not lose credits for errors, allowing you to retry or adjust parameters without financial penalty for the failed attempt.
Are spaces and punctuation counted as characters in the pricing?
Yes, spaces and punctuation count as characters in the pricing. Each character in your input text contributes to the total count. For example, 1,000 characters including spaces and punctuation cost $0.01. Plan your script length accordingly, as the limit is 4,096 characters per request.
First request
curl
curl https://api.aa99casino.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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.aa99casino.com/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.aa99casino.com/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
Create an account on the /get-api-key/ page using Google or an email password. Each site maintains its own account, so you will need a separate registration for aa99casino.com.
Sign Up via Google or Email
Sign up via Google to get a free $0.50 trial (50,000 characters) valid for 7 days. Email-only accounts start without this trial credit.
Locate Key in Dashboard
After logging in, visit the dashboard to find your active API key. The page displays your key, balance, and a ready-to-use cURL example. This key authenticates all your requests to the API.
Generate New Key if Needed
You can generate a new key at any time from the dashboard. When you issue a new key, the old one stops working immediately. This is useful if you suspect a key has been compromised or if you want to rotate credentials for different projects.
Make Your First Request
Send a POST request to the API endpoint with your script. The system processes the text and returns the generated audio file directly in the response, ready for immediate use in your video editor or content pipeline.
You can test the connection instantly using cURL or integrate it into your preferred language library. The endpoint accepts standard JSON payloads, making it easy to automate voiceover generation.
cURL Example for Quick Test
Run this command in your terminal to verify your key and receive audio immediately. Replace YOUR_API_KEY with the secret key found in your dashboard.
```bash curl -X POST https://api.aa99casino.com/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello, this is a test.", "voice": "nova", "response_format": "mp3"}' \ --output hello.mp3 ```
- Replace
YOUR_API_KEYwith your actual token. - The output file
hello.mp3contains the synthesized speech. - Check the response status code for success or errors.
JSON Body Structure
The request body is a standard JSON object. It includes the model identifier, the text to be spoken, the voice preset, and the desired audio format. You can also optionally specify a language code or adjust the playback speed.
All fields are sent in a single payload.
model: "tts-1" or "tts-1-hd"input: Your script text (up to 4096 chars)voice: One of the 8 available presetsresponse_format: mp3, wav, opus, flac, or pcm
Required Fields Explanation
Three fields are mandatory: model, input, and voice. The model selects the engine quality, input contains your actual script, and voice determines the speaker's tone. Without these, the API cannot generate audio.
The response_format is also required to define the output file type. Optional fields like language and speed allow you to fine-tune the output without altering the core synthesis process.
model: Defines engine (tts-1 or tts-1-hd)input: The text string to convertvoice: Preset name (e.g., 'nova', 'atlas')response_format: Output type (e.g., 'mp3')
Supported Models
Both models utilize the identical underlying synthesis engine, ensuring consistent voice quality and emotional nuance across your content. The primary difference lies in the audio processing pipeline, allowing you to choose between optimized speed or enhanced fidelity depending on your project’s needs.
tts-1 Standard Model
The tts-1 model is optimized for rapid generation, making it ideal for high-volume short-form video workflows. It delivers clear, natural-sounding voiceovers quickly, which is perfect for batch-generating hundreds of clips for TikTok or Reels without waiting for processing delays.
- Fastest generation speed
- Ideal for bulk content
- Natural, clear voice
tts-1-hd High Quality Model
Use tts-1-hd when you need slightly richer audio texture and nuance for premium content. While the engine is the same, this mode processes the audio with higher fidelity settings, reducing digital artifacts for a more polished listening experience.
- Higher audio fidelity
- Reduced digital artifacts
- Premium sound quality
Same Price for Both
Whether you choose tts-1 or tts-1-hd, you pay the same rate: $10 per 1 million characters. You can switch between models in your request without any cost penalty, allowing you to experiment with quality levels freely.
Audio Formats
Choose your output format based on your delivery needs. MP3 is the standard for social media clips, offering small file sizes that load quickly on TikTok, Reels, and Shorts.
WAV files provide uncompressed audio.
MP3 for Social Media
MP3 is the recommended format for most short-form video content. Its compressed nature ensures fast upload speeds and broad compatibility across all major platforms, keeping your file size minimal while maintaining clear speech.
WAV for High Quality
Select WAV when you need lossless audio for post-production. This format preserves every detail of the generated voice, making it suitable for final mixes or further processing in audio software without generational loss.
Opus and FLAC Options
Opus and FLAC are also supported formats. Both are supported if your specific use case requires these specialized formats over standard MP3 or WAV.
Voice Parameters
Choose from eight distinct voice presets to match your video’s tone, from the warm narrator 'aria' to the energetic promo voice 'felix'. Each voice is designed for specific content styles, ensuring your short-form videos have the right audio character.
You can fine-tune the playback speed between 0.25x and 4.0x to fit your editing rhythm. For precise language control, explicitly set the ISO code, especially for non-English Latin text, to avoid default English detection.
Selecting a Voice Preset
Pick a voice that aligns with your script’s mood. Options include female voices like 'nova' for upbeat content or 'luna' for storytelling, and male voices like 'atlas' for neutral news or 'orion' for deep documentary styles.
Every generated file carries an inaudible watermark marking it as synthetic speech, which is standard for this API.
- 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
Adjusting Speed (0.25–4.0)
Adjust the speed parameter to accelerate or slow down the audio. This helps sync voiceovers with fast-paced video cuts or allows for clearer, slower delivery in instructional shorts.
Note that generation speed is roughly real-time for long texts, but short phrases may take a few seconds due to queue processing.
Setting Specific Languages
While the API guesses languages from scripts, it is recommended to explicitly set the language parameter for non-English Latin text to ensure accurate pronunciation.
Supported languages include Arabic, Chinese, English, French, German, Hindi, Japanese, Korean, Spanish, and others listed in the docs. Voices are not restricted by language; any voice can speak any supported language.
Limits and Performance
ClipVoice is optimized for batch generation, allowing you to produce voiceovers at scale without code. Understanding your limits ensures smooth integration with your content workflow, whether you are creating daily Shorts or Reels.
60 Requests Per Minute
Your API key supports 60 requests per minute. If you start with a free trial account, the limit is 10 requests per minute until you add funds. This ensures fair usage across all no-code creators using the platform.
4096 Character Limit per Request
Each request can process up to 4,096 characters, including spaces and punctuation. For scripts longer than this, split your text into parts, generate each audio file, and join them. This approach keeps generation times manageable and predictable.
Queue Handling Under Load
Requests are processed sequentially. While typical speed is roughly real-time (25 characters per second), short phrases may take a few seconds to generate. Under heavy load, your request may wait in a queue before synthesis begins.
Error Handling
Errors return standard HTTP status codes with a JSON body explaining the issue. Check the error field for details like code and message. Failed synthesis requests are free, so you won’t be charged for invalid inputs or timeouts.
Always handle 4xx and 5xx responses in your code. Since requests are processed sequentially, high concurrency may lead to queuing delays, but these are not errors.
Authentication Errors
A 401 Unauthorized error occurs if your API key is missing, invalid, or revoked. Ensure you send the correct Authorization: Bearer tts-... header.
If you issued a new key, the old one stops immediately. Update your configuration to avoid service interruption.
- Check for typos in the
tts-prefix. - Verify the key hasn’t been revoked in your dashboard.
Rate Limit Exceeded
You receive a 429 Too Many Requests if you exceed 60 requests per minute per key. New accounts start with a limit of 10 requests per minute.
Wait for the cooldown period or upgrade your balance to ensure consistent throughput.
- Implement exponential backoff in your retry logic.
- Monitor your usage via the dashboard.
Invalid Input Data
A 400 Bad Request is returned if the text exceeds 4096 characters, the voice is unknown, or the JSON structure is malformed.
Ensure you provide a valid model string and a supported response_format.
- Validate text length before sending.
- Check voice IDs against the /v1/voices endpoint.

Using OpenAI SDKs
You can use the official OpenAI SDKs by simply pointing them to our API base URL. This allows you to leverage familiar libraries without learning a new client, making integration quick for existing projects.
Change Base URL
Update your SDK configuration to use https://api.aa99casino.com/v1 as the base URL. This directs all requests to our infrastructure while maintaining standard endpoint paths.
Keep Same Request Shape
The JSON body structure matches the OpenAI speech endpoint exactly. You send model, input, voice, and response_format fields in the same format you are already used to.
Use Official SDKs
Any official OpenAI SDK works out of the box. Just ensure your authentication header uses the tts-... key format provided in your dashboard.
- Official OpenAI SDKs are compatible.
- No custom wrapper code is required for basic usage.
- Standard retry and error handling logic applies directly.
Voice List Endpoint
The /v1/voices endpoint provides a complete list of available voice presets along with their supported languages and formats. This is the definitive source for discovering which voices are active and which languages they can handle.
You can use this endpoint to dynamically populate your UI dropdowns or validate voice selections before generating audio. It returns structured data about each preset, ensuring you always use valid parameters.
GET /v1/voices
Send a GET request to https://api.aa99casino.com/v1/voices with your Bearer token. The response lists all eight voice presets, their IDs, and associated metadata.
This endpoint is read-only and does not consume API credits. It is safe to call frequently to keep your voice selection options up to date.
- Response includes voice ID, name, gender, and supported languages.
- Returns standard HTTP 200 on success.
- No authentication required for basic voice list, but key ensures accurate pricing data.
Get Available Voices
The endpoint returns details for all eight presets: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, and Orion. Each voice has a unique ID used in the voice parameter of the speech endpoint.
Use this list to match your content style to the right voice. For example, use Atlas for news-style shorts or Luna for storytelling reels.
Check Supported Languages
Each voice supports 23 languages, including English, Spanish, German, and Japanese. The API can guess the language from the text script, but you can also specify it explicitly using the language ISO code.
Checking this endpoint ensures you know which voices support your target language, avoiding unexpected defaults like English for non-English Latin text.
Models Endpoint
The /v1/models endpoint returns a list of available text-to-speech models configured for your account. This allows developers to dynamically discover supported engines without hardcoding values, ensuring compatibility as the platform evolves.
GET /v1/models
Send a GET request to https://api.aa99casino.com/v1/models with your Bearer token. The response returns a JSON array of model objects, each containing the model ID and metadata.
- Requires valid
Authorization: Bearer <key>header. - Returns standard JSON structure compatible with OpenAI SDKs.
List Available Models
The endpoint lists all currently active models. Currently, this includes tts-1 and tts-1-hd. You can parse this list to build dynamic voice selection interfaces in your no-code apps.
Verify Model IDs
Use this endpoint to verify that tts-1 and tts-1-hd are available before generating audio. Both models use the same engine and pricing, so the choice depends only on your quality preference.
- Model IDs are stable:
tts-1andtts-1-hd. - Useful for validating configurations in automated pipelines.
Authentication
Secure your API key by including it in the Authorization header of every request. The format must be Bearer tts-<your-key>, ensuring the prefix is exact.
Bearer Token Format
Pass the key as a Bearer token in the Authorization header. The string must start with tts- followed by your unique alphanumeric identifier.
Key Security Tips
Keep your key private in client-side code or environment variables. Since you have only one active key per account, treat it like a password.
- Store keys in environment variables, not hard-coded in source files.
- Avoid sharing keys in public GitHub repositories or client-side JS.
Revoking Old Keys
Issue a new key anytime via the dashboard. The old key stops working immediately, ensuring no unauthorized access continues if a key is compromised.
Frequently Asked Questions
Common questions about integrating ClipVoice into your content workflow. We clarify how the API behaves so you can generate voiceovers efficiently without unexpected surprises.
Do I need an OpenAI account?
No. You only need a ClipVoice account. The API mimics the OpenAI request shape, so you can use official OpenAI SDKs by simply pointing them to our base URL.
Can I stream the audio response?
No. The API returns a complete audio file upon request completion. There is no WebSocket or streaming endpoint for partial audio chunks.
How do I handle long texts?
Split your text into parts of up to 4096 characters. Generate audio for each part individually, then join the resulting files in your pipeline.
What is the default language?
If the language field is omitted, the system guesses from the script. Latin text defaults to English. For other Latin-script languages, always set the language field explicitly.
Can I pass custom pronunciation?
No. The API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. You must use standard spelling for the desired output.
Is the API HTTPS only?
Yes. All requests are made over HTTPS to https://api.aa99casino.com/v1.
Do I need to handle JSON parsing?
Only for the request body. The response returns binary audio data directly, not a JSON object containing an audio URL.
How do I retry a failed request?
Failed requests are free. If synthesis fails, the charge is returned in full. You can retry the request with the same payload.
What headers are required?
You must include Authorization: Bearer tts-... with your API key. The body must be valid JSON.
Can I use this in a mobile app?
Yes. While there is no dedicated mobile SDK, you can call the HTTP API directly from your app using any HTTP client library.
Is there a webhook for completion?
No. The API is synchronous. You receive the audio file in the response once generation is complete.
Do I get the audio URL or file?
You receive the audio file directly in the response body. No intermediate URL is provided.
Can I use the same key for multiple projects?
Yes. One active key per account works across all your projects. You can generate a new key anytime if needed.
How do I know which voice supports which language?
Every voice can speak all 23 supported languages. Use the GET /v1/voices endpoint to list available voices and their details.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Create engaging short videos for every platform without writing a single line of code.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- TRON developer hub: TRC-20
- LibriTTS-R paper (arXiv 2305.18802)
- openai-python on GitHub
- LibriTTS-R corpus (OpenSLR 141)
- Creative Commons Attribution 4.0
- curl documentation
- Tether (USDT)
- W3C WAI: making audio and video accessible
- LibriVox public-domain audiobooks
- Node.js documentation
- MDN: Web Speech API
