Frequently asked questions
How do I authenticate my API requests?
Include your API key in the Authorization header using the Bearer scheme. Pass the header as Authorization: Bearer tts-... with your unique key. Each account holds one active key; generating a new key immediately invalidates the previous one.
What is the maximum length for a single input text?
The input field supports up to 4096 characters per request. For longer scripts, split your text into chunks of this size and join the resulting audio files. This limit applies to each individual API call, so plan your batching strategy accordingly for large anime episodes or game dialogues.
Can I use the OpenAI Python SDK with this API?
Yes, the request shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.cly88.info/v1 and providing your site-specific key. This allows seamless integration into existing Python workflows without rewriting your HTTP client logic.
What are the supported audio formats?
You can specify the response_format as mp3, wav, opus, flac, or pcm. These formats cover most production needs, from lightweight web delivery to high-fidelity archival. Select the format that best fits your pipeline’s requirements for file size and quality when making your POST request.
How do I set the language for non-English text?
Pass the optional language parameter with the ISO code. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, explicitly set this field to ensure accurate pronunciation.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so exceeding the limit may cause your requests to queue. You will receive a response once the queue clears, but generation time will increase due to the wait.
Is the HD model more expensive than the standard model?
No. Both tts-1 and tts-1-hd use the same engine and price. The cost is $10 per 1 million characters regardless of which model you select. You can switch between standard and HD quality without affecting your billing or character count calculations.
How do I rotate my API key?
Issue a new key from your account dashboard. The new key becomes active immediately, and the old one stops working at once. This ensures continuous access without downtime. You can generate a new key at any time directly from the /get-api-key/ page on cly88.info.
Can I stream audio directly from the API?
No, the API does not support streaming, WebSocket, or real-time partial audio. It returns the complete audio file in the response body after synthesis is finished. For real-time needs, you would need to implement client-side buffering or pre-generate the audio files.
Does the API return the audio file in the response body?
Yes, the generated audio is returned directly in the response body. Generated audio is returned in the response and not stored. You receive the file immediately upon successful synthesis, allowing you to save it directly to your local storage or upload it to your CDN.
How do I handle errors during synthesis?
If synthesis fails, the request is free, and the charge is returned in full. Check the HTTP status code and response body for error details. Failed requests do not consume your character balance, so you can retry with adjusted parameters without worrying about unnecessary costs.
What is the base URL for the API?
The base URL is https://api.cly88.info/v1. Use POST https://api.cly88.info/v1/audio/speech for generating audio. You can also query GET /v1/voices for available options and GET /v1/models for model details. Ensure your SDK or HTTP client points to this exact domain.
Can I use the same voice for different characters?
Yes, you can assign any of the 8 preset voices to any character. Voices are consistent presets. This allows you to maintain consistent character voices across episodes or game levels by simply passing the same voice ID in each request.
How do I check my remaining balance via API?
The API does not provide a dedicated endpoint for balance checks. You must view your balance, trial status, and characters left on the /get-api-key/ dashboard page. The API endpoints return audio data, not account metadata, so use the web interface for billing information.
First request
curl
curl https://api.cly88.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.cly88.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.cly88.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
To secure your API key, sign up via Google or email on our get-api-key page. Accounts created with email do not include trial credit, while Google sign-ins provide $0.50 valid for 7 days. Your active key appears immediately for integration into your animation pipeline.
Use the key as a Bearer token in your Authorization header. Each account holds one active key; issuing a new one invalidates the old one instantly. This ensures clean security without managing multiple credentials simultaneously during development.
Generating Your API Key
Access the /get-api-key/ page to create your account. You can authenticate using your Google account or a standard email and password combination. Once registered, your unique API key is displayed for immediate use in requests.
Bearer Token Usage
Include your key in the HTTP header as Authorization: Bearer tts-.... This standard format works seamlessly with the OpenAI SDK by adjusting the base URL to https://api.cly88.info/v1. Ensure the key remains secure in your production environment.
- Format: Authorization: Bearer tts-<your_key>
- Compatible with standard HTTP clients and OpenAI SDKs
Key Rotation Policy
You can issue a new API key at any time via your dashboard. When a new key is generated, the previous one stops working immediately. This allows for quick revocation if a key is compromised without affecting ongoing service if you switch promptly.
Speech Synthesis Endpoint
Generate high-quality anime voice lines by sending text to the synthesis endpoint. The API processes your input and returns audio files directly into your production pipeline, supporting both standard and high-definition models for consistent character voices.
POST /v1/audio/speech
Send a POST request to the endpoint to initiate speech synthesis. The service accepts text up to 4096 characters per request, allowing you to generate individual lines efficiently. For longer scripts, split the text into parts and join the resulting audio files.
- Endpoint: POST /v1/audio/speech
- Accepts JSON body with text, voice, and format parameters
- Returns audio file directly in the response
JSON Request Body
Structure your request with the required fields: model ("tts-1" or "tts-1-hd"), input (your text), and voice (one of the 8 presets). You can also specify response_format, speed, and an optional language code to ensure accurate pronunciation for international voice lines.
model: "tts-1" or "tts-1-hd"input: String up to 4096 charactersvoice: e.g., "aria", "nova", "felix" or "atlas"response_format: mp3, wav, opus, flac, or pcmspeed: Float between 0.25 and 4.0language: Optional ISO code (e.g., "ja", "en")
Audio Response Format
The API returns the synthesized audio file in the requested format. Each generated file includes an inaudible watermark to identify it as synthetic speech. Failed requests are free: if synthesis fails, the charge is returned in full.
- Formats: MP3, WAV, OPUS, FLAC, PCM
- Inaudible watermark embedded in synthetic audio
- Failed requests incur no charge
Available Voices and Models
The /v1/voices endpoint lists all available presets and their metadata. Use this to programmatically select consistent character voices for your animation pipeline without hardcoding names.
The /v1/models endpoint returns the current model versions available for synthesis, ensuring your integration stays compatible with the latest engine updates.
GET /v1/voices
Returns a JSON array of all 8 voice presets with their IDs, genders, and sample audio URLs.
Each voice is based on licensed recordings from LibriTTS-R and LibriVox. Every generated file carries an inaudible watermark identifying it as synthetic speech.
- Female presets: aria, nova, luna, sage
- Male presets: felix, milo, atlas, orion
GET /v1/models
Returns the current model identifiers supported by the API. Currently, only tts-1 and tts-1-hd are available.
These models share the same engine and price.
Model TTS-1 and TTS-1-HD
Both models use the same underlying engine. The 'hd' suffix denotes high-definition output, but the price remains $10 per million characters for both.
Select 'tts-1' for standard production speed or 'tts-1-hd' if you require the highest fidelity for close-up dialogue.
Request Parameters Explained
Efficient pipeline integration requires understanding how text volume and playback speed affect your generation queue. The API enforces strict character boundaries to ensure consistent audio chunking, while speed adjustments allow you to match the timing of your animation scenes without post-processing delays.
Input Text Length Limit
Each request supports up to 4,096 characters, including spaces and punctuation. For longer dialogue scripts, split the text into chunks and join the resulting audio files programmatically to maintain seamless character voice continuity.
Speed Control Range
Adjust the playback speed between 0.25 and 4.0 to fit precise scene timings. Faster speeds reduce generation time for short phrases, while slower rates help synchronize with deliberate, emotional acting cues.
- Minimum speed: 0.25x
- Maximum speed: 4.0x
- Default speed: 1.0x
Language Code Specification
While the API guesses language from the script (defaulting to English for Latin text), explicitly setting the ISO code ensures accurate pronunciation for Japanese, Korean, or other supported languages. This prevents misinterpretation of mixed-script dialogue common in anime dubbing.
Supported Audio Formats
Select the output format that best fits your animation pipeline’s storage and playback requirements. Each format balances file size and audio fidelity differently, allowing you to optimize for either rapid network transmission or archival quality without leaving the API.
MP3 Compression
MP3 is the standard for web playback and most game engines due to its small file size and universal compatibility. It provides sufficient quality for dialogue while minimizing bandwidth usage during character voice line generation.
WAV Lossless Quality
WAV delivers uncompressed, studio-grade audio ideal for post-production workflows. Use this format when you need pristine audio for mixing or when your animation software requires lossless input for further effects processing.
OPUS and FLAC Options
OPUS offers excellent compression for streaming applications, while FLAC provides lossless compression for efficient storage. These formats give you flexibility for specialized pipelines, ensuring high fidelity without excessive file bloat.
- MP3: Standard for web playback and most game engines
- WAV: Lossless, ideal for professional editing
- OPUS: High efficiency for streaming
- FLAC: Lossless compression for storage
- PCM: Raw data for custom processing

Rate Limits and Queues
ToonVox processes synthesis requests sequentially, meaning your generation pipeline relies on strict rate adherence. Understanding these limits ensures your animation studio’s audio batch jobs complete without unexpected stalls or dropped characters.
The system enforces a standard limit of 60 requests per minute per active key. However, new accounts without a top-up start with a more conservative initial limit, which lifts immediately upon funding your account.
60 Requests Per Minute
Once your account is funded, you can send up to 60 synthesis requests each minute. This throughput supports steady production pipelines for game assets or animated sequences, allowing you to generate multiple voice lines in quick succession.
Initial 10 RPM Limit
New accounts begin with a rate limit of 10 requests per minute. This constraint applies until you complete your first top-up. Once a payment is confirmed via USDT on the TRON network (TRC-20), your limit automatically increases to the standard 60 RPM.
Queue Processing Behavior
Requests are processed one after another. If you exceed the rate limit or submit many jobs simultaneously, subsequent requests may wait in a queue before processing begins. This ensures audio integrity but means generation time scales with load.
- Requests are processed sequentially, not in parallel batches.
- Queuing occurs when load exceeds the per-minute limit.
- Short phrases take a few seconds; long texts take longer.
Error Handling and Status Codes
The API returns standard HTTP status codes to indicate the outcome of your synthesis requests. Understanding these responses helps you debug issues quickly and maintain smooth integration with your animation pipeline.
Common API Errors
Returns 400 Bad Request if input exceeds 4096 characters or if required fields like voice are missing. Use 401 Unauthorized when the Bearer token is invalid or expired. 500 errors indicate server-side synthesis failures.
- *
400: Invalid JSON or missinginputfield. - *
401: Invalid or revoked API key. - *
429: Too many requests (see Rate Limits).
Handling Rate Limits
New accounts start with a limit of 10 requests per minute. Once you top up, this increases to 60 requests per minute. Exceeding the limit returns a 429 Too Many Requests status code.
- * Check the
Retry-Afterheader for wait time. - * Implement exponential backoff in your queue logic.
- * Limits apply per API key, not per account.
Refund on Failure
If synthesis fails, the charge is returned in full. Failed requests do not consume your balance, ensuring you only pay for successfully generated audio files.
- * Refunds are automatic and immediate.
- * Check response status to confirm failure.
- * No manual claim process required.
Code Examples: Python and cURL
Generate audio files directly from your terminal or integrate voice synthesis into your Python pipeline. Both methods use standard HTTP requests compatible with the OpenAI SDK structure, requiring only a simple base URL adjustment.
Start with a quick cURL test to verify your API key and voice selection. For production, use the Python SDK to handle JSON payloads, speed adjustments, and format selection programmatically.
cURL Command Line Example
Use this command to generate a short audio clip. Replace YOUR_API_KEY with your key from /get-api-key/ and adjust the voice and input fields as needed. The response will save the audio file locally.
curl -X POST https://api.cly88.info/v1/audio/speech \-H "Authorization: Bearer YOUR_API_KEY" \-H "Content-Type: application/json" \- `-d '{"model": "tts-1", "input": "Hello, world!", "voice": "aria", "response_format": "mp3"}' \`
-o output.mp3
Python OpenAI SDK Setup
Install the official OpenAI SDK and configure it to point to our API endpoint. This allows you to use familiar methods like Audio.speech.create while paying our per-character rates.
pip install openaifrom openai import OpenAIclient = OpenAI(api_key='YOUR_API_KEY', base_url='https://api.cly88.info/v1')
Base URL Configuration
Set the base_url to https://api.cly88.info/v1 in your client configuration. This ensures all requests, including voice listing and model checks, route to our infrastructure correctly without modifying your core SDK logic.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Voice casting in animation and game development demands consistency, but synthetic speech introduces unique challenges.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- OpenAI API reference: create speech
- LibriVox public-domain audiobooks
- ISO 639 language codes
- W3C WAI: making audio and video accessible
- openai-node on GitHub
- LibriTTS-R corpus (OpenSLR 141)
- MDN: Web Speech API
- openai-python on GitHub
- Tether (USDT)
- TRON developer hub: TRC-20
- LibriTTS-R paper (arXiv 2305.18802)
