Frequently asked questions
How do I get my API key?
Sign up on /get-api-key/ using Google or email. Your key starts with 'tts-'. One active key per account; issuing a new one immediately invalidates the old one. The dashboard displays your key, balance, and usage stats.
What is the base URL for the API?
Use https://api.dkk789casino.com/v1 as your base URL. Send POST requests to /audio/speech for synthesis. Other endpoints include /voices and /models. Ensure your Authorization header includes your Bearer token.
Can I use the OpenAI Python SDK?
Yes. The API uses the same request shape as OpenAI. Configure your SDK’s base_url to https://api.dkk789casino.com/v1 and provide your Clerid API key. Official OpenAI SDKs work seamlessly with this configuration.
How do I handle long texts exceeding 4096 characters?
Split your text into parts of up to 4096 characters. Generate audio for each part separately. Then join the resulting audio files. This ensures compliance with the character limit per request while preserving your full content.
What voices are available for legal documents?
Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. For legal contexts, atlas offers a neutral news style, while sage provides a calm, instructional tone suitable for precise documentation reading.
How do I set the language explicitly?
Pass the ISO language code in the 'language' field. If omitted, the system guesses from the script (Latin defaults to English). Explicitly setting it ensures accuracy for non-English Latin-script text like German or Dutch.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key. Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue. New accounts start with 10 requests per minute.
Are failed requests charged?
No. If synthesis fails, the charge is returned in full. You only pay for successful audio generations. Failed requests incur zero cost, ensuring you are billed only for usable output.
How do I top up my balance?
Send USDT on the TRON network (TRC-20). The minimum top-up is $5. Credits are automatically added within minutes. No cards or PayPal are accepted. Balance does not expire.
Is there a webhook for completion?
No. There is no streaming, WebSocket, or webhook support. Audio is returned in the response.
Do I need to install any libraries?
No proprietary library is required. You can use the official OpenAI SDK or plain HTTP requests. Simply configure the base URL to point to our API endpoint. No specific client-side installation is needed.
How is the audio delivered in the response?
Audio is returned directly in the POST response body. Supported formats include mp3, wav, opus, flac, and pcm. The file is generated and delivered immediately upon successful synthesis.
Can I change the speed of the audio?
Yes. Use the 'speed' parameter with values between 0.25 and 4.0. This allows you to adjust the playback rate to suit your specific documentation needs, from slow instructional reading to fast summaries.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and price. The only difference is the model identifier in your request. Both models use the same engine and price.
First request
curl
curl https://api.dkk789casino.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.dkk789casino.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.dkk789casino.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 |
Authentication and API Key
Secure access to Clerid’s TTS engine begins with a unique API key issued via the /get-api-key/ dashboard. Each account holds one active key, ensuring straightforward integration without managing multiple credentials across your product team’s workflows.
Generate Key via Dashboard
Navigate to the dashboard to view your current key, balance, and usage statistics. You can generate a new key at any time, which immediately invalidates the previous one, ensuring tight control over your integration points.
- Access via /get-api-key/ page
- One active key per account
- Immediate invalidation of old key
Authorization Header Format
Include your key in the HTTP header for every request. Use the standard Bearer token format to authenticate your API calls seamlessly.
- Header: Authorization: Bearer tts-...
Key Revocation Policy
Revoking a key is instant. Generating a new key stops the old one immediately, allowing you to react quickly to security needs or team changes without waiting for propagation delays.
Endpoint: POST /v1/audio/speech
Send a JSON payload to POST https://api.dkk789casino.com/v1/audio/speech to convert text into audio. The request follows the standard OpenAI speech endpoint shape, allowing you to use official SDKs by simply adjusting the base URL. You provide the text, select a voice, and specify the output format.
Request Body Structure
Submit your request as a JSON object containing the required parameters. The API processes the input text synchronously, returning the audio file directly in the response body. Ensure your text does not exceed 4,096 characters per request; longer documents should be split into chunks.
Required Fields: Model, Input, Voice
The model field accepts "tts-1" or "tts-1-hd", both using the same engine and pricing. The input field contains your text, up to 4,096 characters. The voice field must be one of the eight presets, such as "aria" for narration or "atlas" for news-style delivery.
- model: "tts-1" or "tts-1-hd"
- input: string, max 4,096 characters
- voice: e.g., "aria", "nova", "atlas"
Optional Fields: Speed, Language
Use speed to adjust playback between 0.25 and 4.0. The language parameter accepts an ISO code to force detection, which is crucial for non-English Latin-script text. If omitted, the system guesses the language, defaulting to English for Latin script.
- speed: 0.25 to 4.0
- language: optional ISO code
Models: tts-1 and tts-1-hd
Clerid’s text-to-speech API offers two model identifiers, tts-1 and tts-1-hd, which utilize the exact same underlying engine and processing infrastructure. There is no difference in voice quality or output characteristics between them. You can choose either identifier interchangeably without affecting the result.
Same Engine and Price
Both models are priced identically at $10 per 1 million characters. Whether you specify tts-1 or tts-1-hd in your request body, the charge per character remains constant. This simplicity allows legal teams to standardize their integration code without needing conditional pricing logic for different audio tiers.
Model Selection Impact
The choice of model identifier has no impact on audio fidelity or generation speed. Requests are processed one after another, so under load a request may wait in a queue. This consistency ensures predictable billing and uniform audio output across all document batches.
Default Model Behavior
If you omit the model field in your JSON payload, the API defaults to tts-1. Specifying tts-1-hd yields the identical result. This default behavior simplifies initial integration for product teams testing the API with legal text samples before committing to a specific model string in production code.
- Default model:
tts-1 - Price: $0.01 per 1,000 characters
- Engine: Identical for both identifiers
Response Formats and Audio
The API returns synthesized audio directly in the response body, eliminating the need for separate download steps. You specify the desired output format via the response_format parameter, allowing precise control over file size and compatibility for your legal documentation workflows.
Supported Formats: MP3, WAV, OPUS, FLAC, PCM
Choose between compressed MP3 and OPUS for efficient storage, or lossless WAV and FLAC for archival quality. PCM is available for raw audio processing. Each format is delivered as a complete audio file, suitable for integrating into compliance review systems or user-facing applications.
Audio File Delivery
Audio files are returned immediately upon successful synthesis. Longer texts are split into parts of up to 4096 characters and the audio files are joined. This ensures seamless playback of long legal contracts without manual stitching.
Content-Type Headers
The response includes appropriate Content-Type headers (e.g., audio/mpeg, audio/wav) matching your selected format. This allows standard HTTP clients and libraries to automatically handle the binary data correctly without additional configuration.
Integrating with OpenAI SDK
Clerid’s API mirrors the OpenAI speech endpoint structure, allowing you to use official OpenAI SDKs with a simple configuration change. By pointing your client’s base URL to https://api.dkk789casino.com/v1, you can send standard TTS requests without rewriting your integration logic. This compatibility ensures a smooth transition for teams already familiar with the OpenAI request shape.
Change Base URL
Update your SDK client configuration to use https://api.dkk789casino.com/v1 as the base URL. This directs all API calls to our infrastructure while maintaining the same JSON body structure expected by OpenAI-compatible clients. Your existing Authorization: Bearer header with your Clerid key remains valid.
Use Official SDKs
The official OpenAI SDKs work by changing base_url to https://api.dkk789casino.com/v1. The request fields model, input, voice, response_format, and speed map directly to our endpoint parameters. This approach reduces development overhead for product teams managing legal documentation workflows.
Code Example in Python/Node
Initialize your client with the new base URL and your API key. Pass text up to 4096 characters and select a voice like 'sage' for instructional content. The SDK handles the JSON serialization and HTTP POST to /v1/audio/speech, returning the audio file directly for playback or storage.
- Set
base_urltohttps://api.dkk789casino.com/v1 - Use standard
modelvalues liketts-1 - Pass
inputtext as a string - Specify
voicefrom the 8 available presets

Rate Limits and Quotas
Each API key is limited to 60 requests per minute. This limit applies to the POST /v1/audio/speech endpoint and ensures fair usage across all accounts. You can monitor your current usage and remaining quota directly in the dashboard.
60 Requests Per Minute
The standard rate limit is 60 requests per minute per active key. If you exceed this limit, you will receive a 429 Too Many Requests response.
10 Requests Before Top-Up
New accounts start with a restricted quota of 10 requests per minute. This allows you to test the integration before funding your account. Once you top up via USDT (TRC-20), your limit increases to the standard 60 requests per minute.
- New accounts: 10 requests/minute
- Top-up accounts: 60 requests/minute
- Limit resets every 60 seconds
Handling 429 Errors
When you hit the rate limit, the API returns a 429 status code. Implement exponential backoff in your integration to retry requests after a short delay.
Error Handling and Status Codes
When the API returns an error, the response body includes a clear code and message to help you identify the issue quickly. Common status codes include 400 for bad requests, 401 for authentication failures, and 429 for rate limit exceeded errors.
Common HTTP Errors
Ensure your request body strictly follows the specified schema. A 429 error means you have exceeded the rate limit of 60 requests per minute. Implement exponential backoff in your integration to handle these temporary blocks gracefully.
Failed Request Refunds
If synthesis fails due to a server-side issue, the charge is returned in full. You do not need to submit a claim; the system automatically adjusts your balance. This ensures you only pay for successfully generated audio files, protecting your budget during unexpected service disruptions.
Debugging Input Issues
Ensure your input text does not exceed 4096 characters per request. If you encounter unexpected audio quality, verify that the language parameter matches the script of your text, especially for Latin-script languages other than English. Check that the voice parameter corresponds to one of the eight available presets listed in the /v1/voices endpoint.
Voices and Language Parameters
Clerid provides eight distinct voice presets, each designed for specific tonal needs in legal and compliance contexts. Female voices include Aria (warm narrator), Nova (bright), Luna (soft storytelling), and Sage (calm instructional). Male options offer Felix (energetic promo), Milo (friendly conversation), Atlas (neutral news), and Orion (deep documentary). Voices are based on licensed recordings: LibriTTS-R (CC BY 4.0), from LibriVox public-domain audiobook readings.
List of 8 Preset Voices
Each voice offers a distinct character suitable for different document types. For instance, use Atlas for neutral regulatory updates or Orion for deep-dive documentary-style explanations. All generated audio files contain an inaudible watermark marking them as synthetic speech.
- 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
Setting ISO Language Code
The API supports 23 languages. If the language field is 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 parameter to ensure accuracy.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Voice Compatibility Across Languages
Every voice can speak any of the 23 supported languages. This flexibility allows product teams to maintain consistent branding across different regions without managing multiple voice models. Unsupported languages include Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Product teams must carefully review the legal documents before launching new features to ensure compliance with all relevant regulations.
23 languages
Any voice speaks any of these languages.
