Frequently asked questions
What is the API endpoint?
Send a POST request to https://api.vip300casino.com/v1/audio/speech with a JSON body containing your text and parameters.
How do I authenticate?
Include an Authorization header with your Bearer token: Authorization: Bearer tts-... You receive one active key per account.
Can I use the OpenAI SDK?
Yes. Change the SDK’s base_url to https://api.vip300casino.com/v1 and use your site’s key. The request shape matches the OpenAI speech endpoint.
What is the rate limit?
You are limited to 60 requests per minute per key. New accounts start with 10 requests per minute until the first top-up.
How do I handle long texts?
Split your text into parts of up to 4096 characters. Send each part separately and join the resulting audio files.
What formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats by setting the response_format field in your request.
Is there a WebSocket option?
No. We do not offer streaming, WebSocket, or real-time partial audio. Audio is returned fully generated in the response.
Does the API support SSML?
No. The API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. You send plain text input.
How do I get my API key?
Sign up on /get-api-key/ using Google or email. Your key appears on the dashboard alongside your balance and usage stats.
What happens if I exceed limits?
Requests are processed one after another, so under load a request may wait in a queue. Failed requests are free and charges are returned in full.
Can I revoke my key?
Yes. You can issue a new key at any time. The old key stops working immediately when the new one is active.
Is the API documented?
Yes. You can find details on /docs/ or use the ready curl example provided on your dashboard after signing in.
How do I handle errors?
Check the response status code. If synthesis fails, you receive a full refund of the character cost for that request.
What is the response format?
The response contains the generated audio file in your requested format (mp3, wav, opus, flac, or pcm).
First request
curl
curl https://api.vip300casino.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.vip300casino.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.vip300casino.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
Authentication relies on a single Bearer token passed in the Authorization header of every request. This key is tied to your account and grants access to the API endpoints.
Bearer token in Authorization header
Include the header Authorization: Bearer tts-... with each HTTP request. The token validates your identity and links charges to your balance.
One key per account
Each account holds exactly one active key. This simplifies integration for product teams managing digital catalogs, eliminating the need to manage multiple credentials for different environments.
Revoke key on demand
Issuing a new key immediately invalidates the old one. This allows instant rotation if a key is exposed, ensuring secure access without downtime.
Endpoints
The API exposes three primary endpoints for integration. The speech endpoint generates audio from text, while the voices and models endpoints provide metadata on available options without generating data.
POST /v1/audio/speech
This is the core endpoint. Send a JSON payload with text, voice, and format to receive an audio file in the response body. It supports up to 4096 characters per request.
GET /v1/voices
Returns a list of the 8 available voice presets, their supported languages, and available audio formats. Use this to dynamically populate your integration’s voice selection UI.
GET /v1/models
Returns available model identifiers (tts-1 and tts-1-hd). Both use the same engine and pricing, allowing you to switch quality levels without changing your integration logic.
Request parameters
The API accepts JSON bodies containing the text to synthesize and configuration options. Each request processes up to 4,096 characters of input. Longer texts should be split into chunks and joined post-synthesis. The model parameter determines audio quality, with both "tts-1" and "tts-1-hd" using the same engine and pricing.
Model: tts-1 or tts-1-hd
Select "tts-1" or "tts-1-hd"; both use the same engine and pricing. Both options utilize the identical underlying engine and incur the same rate of $0.01 per 1,000 characters. Choose based on your catalog's audio quality requirements without affecting your billing structure.
Input text up to 4096 characters
The input field accepts plain text strings, including spaces and punctuation, which count toward the character limit. For product descriptions exceeding 4,096 characters, split the text into smaller segments and concatenate the resulting audio files. This ensures consistent generation speed; short phrases take a few seconds, while longer texts generate at roughly real time.
- Maximum 4,096 characters per request
- Spaces and punctuation count as characters
- Split long texts and join audio files
Voice selection from 8 presets
Assign one of eight voice presets to match your brand tone. Female voices include Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (instructional). Male options include Felix (energetic), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).
Each voice can speak any of the 23 supported languages. If the language field is omitted, the system guesses the language, defaulting to English for Latin script. Explicitly set the language code for non-English Latin text to ensure accuracy.
- Aria, Nova, Luna, Sage (Female)
- Felix, Milo, Atlas, Orion (Male)
- Supports 23 languages
Response format
Upon successful synthesis, the API returns the generated audio file directly in the response body. This design allows product teams to handle the file immediately, whether saving it to a digital catalog or playing it inline for preview.
The response includes standard HTTP headers indicating the content type and length. This ensures seamless integration with existing audio players and storage systems used in online store environments.
Audio file in response body
The response body contains the raw audio data, ready for immediate use. There is no need to parse a JSON wrapper for the audio bytes, simplifying the integration logic for backend services.
Supported formats: MP3, WAV, OPUS, FLAC, PCM
You can specify the desired output format using the response_format parameter. Supported formats include MP3, WAV, OPUS, FLAC, and PCM, allowing flexibility for different web players and storage requirements.
- MP3: Compressed, widely supported
- WAV: Uncompressed, high quality
- OPUS: Efficient compression
- FLAC: Lossless compression
- PCM: Raw uncompressed audio
Error responses with status codes
If a request fails, the response includes an HTTP error status code (e.g., 400, 429, 500) and a JSON object detailing the error. Failed requests are free, so you are not charged for invalid attempts.
Rate limits
Rate limits are enforced per API key to ensure stable service for all product teams. Under normal conditions, you can make up to 60 requests per minute. This limit applies to your active key and resets continuously.
Before your first top-up, the limit is stricter at 10 requests per minute. This allows you to test the integration without immediate overage concerns. Once you add USDT (TRC-20) to your account, the higher limit activates automatically.
60 requests per minute per key
Standard accounts can handle 60 synthesis requests every minute.
The limit resets on a sliding window, so you do not need to wait for a full minute cycle to resume sending requests.
- Applies to your active Bearer token
- Resets on a sliding window basis
10 requests per minute before first top-up
New accounts without a balance are limited to 10 requests per minute. This ensures fair usage during the trial phase.
Top up via USDT (TRC-20) to instantly unlock the full 60 requests per minute capacity.
Queue processing for high load
Requests are processed sequentially. During high load, your request may wait in a queue before synthesis begins.
Long texts take roughly real-time to generate, so plan your batch sizes accordingly to avoid delays.
SDK compatibility
VoiceSelect’s API is fully compatible with official OpenAI SDKs. Since we use the same request shape and endpoint structure, you can integrate our text-to-speech service into your existing Python, Node.js, or JavaScript projects without rewriting your core logic.
Official OpenAI SDKs work
Because our endpoint mirrors the OpenAI speech API, you can use the standard OpenAI client libraries directly. This means your current codebase requires minimal adjustments, allowing product teams to deploy voice features rapidly without adopting a new, proprietary library.
Change base_url to our API
To switch providers, simply update the base_url configuration in your SDK client to https://api.vip300casino.com/v1. This single change redirects all API calls to our infrastructure while maintaining all standard authentication and request behaviors.
Use same request shape
Our API accepts the exact same JSON parameters as the OpenAI speech endpoint. You pass model, input, voice, and response_format in the same structure, ensuring that your existing integration patterns work seamlessly with our text-to-speech engine.

Curl example
Use cURL to test the API directly. The following examples demonstrate basic requests, voice selection, and response handling for the speech endpoint.
All requests require a Bearer token in the Authorization header. Replace YOUR_API_KEY with your actual key.
Basic speech request
Send a simple text-to-speech request to generate audio. The API returns an audio file in the specified format.
- curl -X POST "https://api.vip300casino.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}'
Specifying voice and format
Choose from 8 voice presets and 4 audio formats. The voice parameter accepts values like aria, nova, luna, sage, felix, milo, atlas, or orion.
- curl -X POST "https://api.vip300casino.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1-hd", "input": "Product description", "voice": "atlas", "response_format": "wav"}'
Handling response
The API returns the audio file directly in the response body. Save the output to a local file for immediate use.
- curl -X POST "https://api.vip300casino.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Test", "voice": "sage", "response_format": "mp3"}' \ -o output.mp3
Common errors
Even robust integrations encounter occasional hiccups. Understanding the specific error responses returned by the API allows product teams to implement graceful fallbacks, ensuring their digital catalogs remain accessible without confusing end-users during synthesis failures.
Invalid API key
The API returns a 401 status when the Bearer token is missing, malformed, or revoked. Since each account holds only one active key, issuing a new key immediately invalidates the previous one. Ensure your integration passes the correct key in the Authorization header.
Rate limit exceeded
Standard accounts allow 60 requests per minute. New accounts without a top-up are limited to 10 requests per minute. If you exceed this, the API returns a 429 error. Requests are processed sequentially, so high load may also cause queuing delays before errors occur.
- Monitor your key’s usage via the dashboard to anticipate limits.
- Implement exponential backoff in your retry logic for 429 responses.
Input text too long
Each request supports a maximum of 4096 characters, including spaces and punctuation. Sending text beyond this limit triggers a 400 error. Your application should split longer catalog descriptions into chunks, synthesize them individually, and join the resulting audio files.
Pricing & Payment
VoiceSelect charges $0.01 per 1,000 characters, with spaces and punctuation counting toward the total. Failed requests are free: if synthesis fails, the charge is returned in full. This transparent model ensures you only pay for successful audio outputs, making it easy to budget for catalog updates or promotional content.
$0.01 per 1,000 characters
Usage is calculated by character count, including spaces and punctuation. Longer texts can be split into 4,096-character chunks and joined seamlessly. This structure allows for precise cost estimation, whether you are generating short product alerts or extensive catalog descriptions.
USDT (TRC-20) top-ups only
We accept USDT on the TRON network (TRC-20) for top-ups, with a minimum of $5. Credits are automatically added within minutes of transfer confirmation. There are no monthly plans, no subscriptions, and no invoices with VAT. Balance does not expire, and no cards or PayPal are supported.
- Minimum top-up: $5
- Network: TRON (TRC-20)
- Auto-credit within minutes
Free trial credit for Google sign-ins
Accounts created via Google sign-in receive $0.50 in trial credit, valid for 7 days. This provides approximately 50,000 characters for testing. Accounts created with email and password start without trial credit. No minimum spend or seats are required to begin using the API.
Voices & Languages
Product teams can select from eight distinct voice presets, ranging from warm narrators to energetic promo voices, ensuring consistent brand audio across digital catalogs. Each voice is based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings.
Any voice can speak any of the 23 supported languages. This simplifies integration for international online stores requiring consistent audio quality across Arabic, Chinese, English, Japanese, and other markets.
8 voice presets available
Select from female voices like Aria, Nova, Luna, and Sage, or male options including Felix, Milo, Atlas, and Orion. These presets cover various tones from calm instructional to deep documentary styles, allowing product teams to match specific catalog segments or promotional campaigns.
- Female: Aria, Nova, Luna, Sage
- Male: Felix, Milo, Atlas, Orion
23 supported languages
The API supports Arabic, Chinese, Danish, Dutch, English, 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 parameter is omitted, the system guesses the language from the script, defaulting to English for Latin text.
Note: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not currently supported.
- Arabic, Chinese, Danish, Dutch, English
- Finnish, French, German, Greek, Hebrew, Hindi
- Italian, Japanese, Korean, Malay, Norwegian
- Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Inaudible watermark on audio
Every generated audio file carries an inaudible watermark that marks it as synthetic speech. This helps identify AI-generated content in digital catalogs without affecting the listener's experience.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. These eight presets allow product teams to maintain consistent audio identity across catalogs, checkout flows, and marketing channels.
23 languages
Any voice speaks any of these languages.
