Frequently asked questions
What is the endpoint URL?
Use POST https://api.sex6bet.com/v1/audio/speech. The request body is JSON, matching the standard OpenAI speech endpoint structure. This allows you to use existing OpenAI SDKs by simply changing the base URL to https://api.sex6bet.com/v1. It is a simple, reliable HTTP endpoint designed for generating audio files from text inputs efficiently.
How do I authenticate my requests?
Include your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-... You get one active key per account. If you issue a new key, the old one stops immediately. Ensure your key is valid before sending requests to avoid authentication errors during generation.
Can I use the Python SDK?
Yes, the official OpenAI Python SDK works perfectly. You just need to change the base_url to https://api.sex6bet.com/v1. This lets you use familiar code structures without learning a new library. It is not our official SDK, but it is fully compatible with our request shape and endpoints.
What is the maximum text length?
Each request supports up to 4096 characters. Spaces and punctuation count toward this limit. For longer scripts, split your text into parts of 4096 characters or less. Generate audio for each part separately, then join the resulting audio files to create the complete voiceover for your video content.
How do I change the voice speed?
Include the speed parameter in your request body, ranging from 0.25 to 4.0. The default speed is 1.0. Adjusting this allows you to speed up or slow down the narration. This is useful for fitting voiceovers into specific video durations without needing external audio editing software.
Does the API support SSML?
No, the API does not support SSML. It accepts plain text input only. You cannot use SSML tags for pronunciation or pauses. If you need precise control, you must split your text manually into smaller chunks or adjust the speed parameter to achieve the desired pacing.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key. If you exceed this, requests may queue or fail. New accounts start with a 10 requests per minute limit until the first top-up. Failed requests are free, so you will not be charged if the API returns an error.
Is streaming supported?
No, streaming is not supported. The API returns the complete audio file in the response after synthesis is finished. You cannot receive partial audio chunks. This means you must wait for the generation to complete before downloading or playing the audio file in your application workflow.
How do I get a list of available voices?
Send a GET request to /v1/voices. This endpoint returns details about all available voices, including their names, languages, and formats. You can use this information to select the best voice for your content, such as Aria for warm narration or Felix for energetic promos.
Can I specify the language explicitly?
Yes, include the language parameter with an ISO code. If omitted, the system guesses the language, defaulting to English for Latin script. Explicitly setting the language ensures accurate pronunciation, especially for non-English texts using Latin characters, preventing the system from misinterpreting the intended language of your script.
What is the response format?
You can choose from mp3, wav, opus, flac, or pcm. Specify the response_format field in your request. MP3 is recommended for general use due to its small size. WAV offers high quality, while Opus provides efficient compression. The audio file is returned directly in the HTTP response.
Do I need to install any libraries?
No, you can use plain HTTP requests or any standard HTTP library. The official OpenAI SDKs also work with a base_url change. There is no need for a dedicated library specific to this API. This flexibility allows you to integrate the API into any programming environment easily.
How do I handle errors in my code?
The API returns standard HTTP status codes for errors. Check the response status to determine if the request succeeded or failed. Failed requests are free, so you do not lose credit if synthesis fails. Implement retry logic for transient errors, but be mindful of the rate limits to avoid queuing.
Is the API RESTful?
Yes, it is a standard RESTful API. You use POST for speech generation and GET for retrieving voices and models. It follows standard HTTP methods and JSON data formats. This makes it easy to integrate with existing tools and workflows that expect RESTful endpoints for API interactions.
Can I use multiple API keys?
Each account has one active key at a time. You can issue a new key anytime, but the old one stops immediately. This means you cannot use multiple keys simultaneously for the same account.
How do I generate audio for long scripts?
Split your script into chunks of up to 4096 characters. Send each chunk as a separate request to the speech endpoint. Receive the audio file for each chunk, then join them using an audio library or tool. This ensures each part is generated correctly within the character limit.
First request
curl
curl https://api.sex6bet.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.sex6bet.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.sex6bet.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 your account on sex6bet.com to access the ClipCast TTS API. Sign up using your Google account or an email address. This step generates your unique credentials for making API calls.
Sign Up on the Site
Navigate to the /get-api-key/ page and select either Google Sign-In or Email registration. Google accounts receive a $0.50 free trial valid for 7 days, while email accounts start with zero balance.
- Google Sign-In provides instant trial credit
- Email registration requires manual top-up
- Accounts are specific to this domain
Copy Your Key
Once logged in, your API key is displayed on the dashboard. Copy this string starting with tts-.... This key authenticates all your requests to the speech endpoint.
- One active key per account
- New keys invalidate the old one immediately
- Keep this key secure in your scripts
Use Authorization Header
Include your key in every request header. Use the format Authorization: Bearer tts-.... This ensures the API recognizes your account and deducts credits correctly from your balance.
- Format:
Authorization: Bearer tts-<your_key> - Include with every POST request
- No additional authentication parameters needed
Make Your First Request
To generate your first voiceover, send a POST request to https://api.sex6bet.com/v1/audio/speech with a JSON body. You can test this immediately using the curl example provided on your dashboard, which requires your API key and a short script.
Use the Curl Example
Copy the ready-made curl command from the /get-api-key/ dashboard. Replace the placeholder key with your active tts-... token. Set the input field to your script text (max 4096 characters) and select a voice like nova for upbeat shorts.
Send JSON Payload
Structure your request with model (
Receive Audio File
The API returns the audio file directly in the response body. Save this output as an .mp3 or .wav file. You can now import this audio track into your video editor for TikTok, Reels, or Shorts.
Use with OpenAI SDK
Integrating ClipCast with the official OpenAI Python or Node.js SDK is straightforward because the API follows the same request structure. You do not need a custom client library or complex middleware to generate audio files for your short-form videos.
Simply configure the SDK client to point to the ClipCast base URL. This allows you to use standard methods like client.audio.speech.create() while leveraging the infrastructure.
Change Base URL
Update your client initialization to use the ClipCast endpoint instead of the default OpenAI URL. Set the base_url parameter to https://api.sex6bet.com/v1. This ensures all subsequent calls route through our infrastructure.
You can keep your existing code structure intact. Only the endpoint changes; the rest of the request logic remains identical to standard OpenAI integrations.
- Base URL: https://api.sex6bet.com/v1
- Standard JSON payload compatibility
Use Official SDK
Leverage the widely used OpenAI SDKs for Python or JavaScript. The audio.speech method works directly with our API, accepting the same model, voice, input, and response_format parameters.
This approach is ideal for no-code users who want a reliable, documented solution without maintaining custom HTTP request wrappers. The SDK handles serialization and response parsing automatically.
No Custom Client Needed
There is no need to build a separate client or manage custom headers beyond the standard Authorization key. The official SDKs handle the request shape correctly.
This reduces integration time significantly. You can generate voiceovers for your scripts in minutes by simply swapping the base URL in your existing configuration.
Supported Formats
Choose your audio format based on where the file will live. MP3 is the standard for social platforms, offering small file sizes that load quickly on TikTok, Reels, and Shorts without sacrificing clarity.
MP3 for Web
MP3 is the default choice for most short-form video workflows. It balances compression with quality, ensuring your voiceover syncs smoothly with video edits. Since social media platforms re-encode uploaded videos, starting with MP3 saves storage and bandwidth while keeping your script’s timing intact.
- Compatible with all major video editors
- Smallest file size for fast uploads
- Ideal for background narration or dialogue
WAV for High Quality
Select WAV when you need lossless audio for professional editing. This format preserves every detail of the synthesized voice, making it perfect for final exports before compression. Use WAV if your editing software handles large files efficiently or if you plan to apply heavy audio effects.
- Lossless quality for pristine audio
- Best for post-production editing
- Larger file size than MP3
Opus and FLAC Options
Opus offers excellent compression for web streaming, while FLAC provides lossless quality with smaller files than WAV. These formats are less common for social videos but useful if your workflow requires specific codec compatibility or archival storage. PCM is also available for raw data processing.
- Opus: efficient compression
- FLAC: lossless
- PCM: raw uncompressed audio
Voice Selection
Select from eight distinct voice presets designed for short-form video content. Each voice offers a specific tone, allowing you to match your script’s energy precisely. Voices are based on licensed recordings and include both male and female options.
You can choose based on gender, style, and niche. Whether you need a warm narrator or an energetic promo voice, our API supports 23 languages with any voice. This flexibility ensures your voiceovers sound natural and engaging for your audience.
List Available Voices
Our library includes eight presets: Aria, Nova, Luna, and Sage (female); Felix, Milo, Atlas, and Orion (male). Each voice is a preset with a specific tone.
Voices are based on licensed recordings from LibriTTS-R and LibriVox. Every generated file carries an inaudible watermark marking it 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
Choose by Gender and Style
Pick a voice that aligns with your video’s mood. Use Felix for high-energy product demos or Orion for deep, documentary-style content.
All voices support 23 languages, including English, Spanish, and Japanese. If your text uses Latin script but isn’t English, set the language parameter explicitly.
Match Voice to Niche
Match your voice to your content type. Use Sage for instructional reels, Luna for storytelling, or Milo for conversational vlogs.
Each voice can speak any of the supported languages.

Rate Limits
Your API key allows 60 requests per minute. This limit applies to all voices and formats combined. If you exceed this, requests queue until capacity frees up.
Before your first top-up, the limit is lower: 10 requests per minute. This ensures fair usage during the trial phase. Once you add USDT, the full 60 req/min limit activates immediately.
60 Requests Per Minute
After topping up, you get 60 requests per minute. This is enough for most short-form video workflows. Generate multiple takes or variations without waiting long.
- Applies to all voices and formats
- Resets every minute
- Includes retry attempts
10 Requests Before Top-Up
New accounts start with a 10 requests per minute limit. This allows you to test the API before spending. Upgrade to TRC-20 USDT to unlock the full 60 req/min.
- Trial accounts only
- Limits burst generation
- Unlocks after first top-up
Queue Processing
Requests are processed sequentially. If you send many requests at once, they queue. Longer texts take more time. Short phrases generate quickly. Patience ensures consistent quality.
- Sequential processing
- Queues under load
- No priority tiers
Handling Errors
Errors are common when generating voiceovers under load or with malformed input. Understanding the response structure helps you debug quickly without losing credits or wasting time on failed synthesis jobs.
Check HTTP Status Codes
Always inspect the HTTP status code returned by the API. A 200 OK means your audio file is in the response body. Codes like 400 (Bad Request) indicate issues with your JSON payload, such as missing fields or invalid character limits. Use 429 (Too Many Requests) to identify when you have hit the 60 requests per minute limit.
Retry on Failure
If you encounter a 429 or 500 error, implement an exponential backoff strategy. Since requests are processed sequentially, a temporary queue delay might resolve itself in seconds. Avoid rapid-fire retries which can exacerbate the bottleneck. For 400 errors, fix the input text or format before retrying, as these will not succeed on immediate repetition.
No Charge on Error
If synthesis fails, the API returns the charge in full. You are not billed for characters that were not successfully converted into audio. This applies to both network errors and internal processing failures, ensuring you only pay for usable voiceover files.
Long Text Handling
The API accepts up to 4096 characters per request. Longer scripts must be split into chunks of this size before sending.
Split into 4096 Characters
Divide your script into segments of 4096 characters or fewer. Spaces and punctuation count toward this limit. Send each segment as a separate POST request to the speech endpoint.
Join Audio Files
Receive an audio file for each chunk. Concatenate these files in order to create your final voiceover. This ensures no text is truncated or lost during generation.
Manage Script Length
Keep individual requests concise to minimize queue wait times. For very long videos, splitting text ensures consistent processing speed. Use the speed parameter to adjust final duration if needed.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. WAV and FLAC are ideal if your editing software requires uncompressed audio for precise trimming.
23 languages
Any voice speaks any of these languages.
