Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or an email and password. Your account is specific to this site. The dashboard displays your active key, balance, and usage statistics immediately after registration, allowing you to start making requests without delay.
What is the base URL?
The API base URL is https://api.bkk323.cc/v1. All requests, including speech synthesis and voice listing, use this domain. Ensure your client libraries point to this endpoint to correctly route your requests to VocalCart’s infrastructure.
Can I use the OpenAI SDK?
Yes, the official OpenAI SDKs work perfectly. Simply change the base_url to https://api.bkk323.cc/v1 and use your VocalCart API key. The request shape matches the OpenAI speech endpoint exactly, requiring minimal code changes for standard integrations.
What models are available?
Two models are available: tts-1 and tts-1-hd. Both use the same engine and pricing. Select tts-1-hd for higher quality audio or tts-1 for standard generation. Both models support all eight voice presets and multiple audio formats.
What are the rate limits?
You are limited to 60 requests per minute per key. New accounts without a top-up start with a lower limit of 10 requests per minute. Exceeding these limits will result in temporary throttling until the window resets.
How do I handle errors?
Failed requests are free, and the charge is returned in full if synthesis fails. Monitor your response status codes to detect issues. If a request fails, you can retry it without incurring additional costs from your balance.
What formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format using the response_format field in your JSON body. This allows you to choose the best balance between file size and quality for your workflow.
How do I select a voice?
Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice has a distinct tone, from warm narrators to energetic promos. Select the voice ID that best matches your product’s brand voice in the request.
Is the API synchronous?
The API is synchronous; you send a POST request and receive the audio file in the response. Requests are processed sequentially, so under load, a request may wait in a queue. Long texts take time proportional to their length.
Can I use multiple keys?
Yes, you can issue a new API key at any time. When you generate a new key, the old one stops working immediately. This allows you to rotate keys for security or distribute usage across different projects easily.
How do I check available voices?
Send a GET request to /v1/voices to retrieve a list of all available voices, languages, formats, and pricing details. This endpoint provides the metadata needed to configure your application correctly before generating speech.
What is the max input length?
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. If your product description exceeds this length, you must split the text into smaller chunks before sending them to the API.
Do I need to split long texts?
Yes, for texts longer than 4096 characters, you must split them into parts. Generate audio for each part individually, then join the resulting audio files. This ensures compatibility with the API’s input constraints and maintains audio quality.
How do I authenticate?
Include your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-... . One active key is issued per account. Ensure the key is valid and has sufficient balance before sending your synthesis requests.
First request
curl
curl https://api.bkk323.cc/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.bkk323.cc/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.bkk323.cc/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 bkk323.cc to access your API key. You can sign up using Google or an email and password combination. Each account is tied to this specific site and provides one active key at a time.
Sign up on the site
Navigate to the /get-api-key/ page and register with Google or your email. This creates your independent storefront account where you can manage your keys and view your usage details.
Copy your key
Once registered, your API key (starting with tts-...) is displayed on the dashboard. Copy this value immediately. It is the only credential needed to authenticate your requests to the API.
Keep it secure
Treat your API key like a password. If you generate a new key, the previous one stops working immediately. Do not share your key in public repositories or client-side code where it can be exposed.
First request with cURL
To start generating voice-overs for your product catalog, send a POST request to the API endpoint with your text and selected voice settings. This simple workflow turns your product copy into audio without needing complex integrations.
The API accepts standard JSON payloads, making it easy to automate bulk audio generation for e-commerce teams. You receive a direct audio file response, ready to be embedded in your store or ad creatives.
POST to the endpoint
Send your request to https://api.bkk323.cc/v1/audio/speech. Ensure you include your API key in the Authorization header as Bearer tts-....
JSON body structure
The request body requires the model, input (your product text), and voice parameters. You can optionally specify response_format, speed, and language to tailor the output.
- Model: "tts-1" or "tts-1-hd"
- Input: Text up to 4096 characters
- Voice: One of 8 presets (e.g., "aria", "nova")
- Response format: mp3, wav, opus, flac, or pcm
Receive audio file
The response returns the generated audio file directly. For longer texts, split your input into parts of up to 4096 characters and join the resulting audio files.
OpenAI SDK compatibility
Integrate VocalCart into your existing workflow by simply redirecting the OpenAI SDKs to our endpoint. This approach requires minimal code changes, allowing product teams to leverage familiar libraries for voice generation.
The API mirrors the standard request structure, meaning you can swap in VocalCart’s key and base URL to start generating catalog audio or ad creatives immediately. This compatibility allows teams accustomed to OpenAI’s audio endpoints to use our API.
Change base URL ['Update your SDK configuration to point base_url to https://api.bkk323.cc/v1. This single change directs all subsequent requests to VocalCart’s infrastructure while maintaining the standard JSON body format expected by the client library.', 'bullets']
Use official SDKs ['You can continue using the official OpenAI SDKs (Python, Node.js, etc.) without needing a proprietary client. This allows your team to benefit from the robustness and community support of established libraries while accessing our specific voice models.', 'bullets']
Same request shape ['The request body remains identical to the standard tts-1 endpoint. You provide model, input, voice, and response_format exactly as documented. This consistency reduces integration errors and simplifies testing across different voice presets for your e-commerce content.', 'bullets']
Available models
To generate voice-overs for your product catalog, you choose between two model variants: tts-1 for standard speed and tts-1-hd for high-definition quality. Both models accept the same input parameters and produce audio files identical in character count and pricing structure.
tts-1 standard
The tts-1 model is optimized for fast synthesis, making it ideal for bulk processing of large product descriptions or ad creatives. It delivers clear speech, ensuring your audio files are generated quickly even during high-volume catalog updates.
tts-1-hd high quality
Select tts-1-hd when audio fidelity is critical, such as for premium brand stories or detailed instructional content. This variant offers enhanced audio clarity without any change in cost or processing logic compared to the standard model.
Same engine and price
Both models run on the same underlying engine, meaning voice behavior and language support are consistent regardless of your choice. The price remains fixed at $10 per 1 million characters for both variants, so you can upgrade to HD quality for specific items without increasing your per-character costs.
Response formats
Choose the output format that fits your workflow. MP3 is the default choice for web players and mobile apps, offering small file sizes and universal compatibility. WAV provides uncompressed audio, ideal for post-production editing.
For specific use cases, OPUS offers efficient compression for low-bandwidth environments, while FLAC provides lossless compression for archival purposes. Select the format that balances quality and storage needs for your product catalog updates.
MP3 for web
MP3 is the standard for web delivery. It ensures broad compatibility with HTML5 audio players and mobile applications. The file size is optimized for fast loading, making it perfect for embedding in e-commerce product pages or ad creatives without slowing down page load times.
- Default format for most integrations
- Universal player support
- Optimized for web performance
WAV for editing
WAV provides uncompressed audio, preserving every detail of the generated speech. This format is ideal for marketing teams who need to edit the audio further in professional software. It ensures no quality loss during multiple editing cycles.
Use WAV when you need to add background music or adjust volume levels precisely. The larger file size is a trade-off for the highest fidelity available in our API.
- Uncompressed audio quality
- Ideal for post-production
- No quality loss during editing
OPUS and FLAC options
OPUS provides efficient compression, suitable for low-bandwidth environments or apps where storage is limited. FLAC offers lossless compression, preserving audio quality while reducing file size compared to WAV. These formats cater to specific technical requirements beyond standard web delivery.
Select OPUS for efficient compression or FLAC for archival quality. Both formats are available for any voice and language supported by the API.
Voice selection
Choosing the right voice ensures your product copy matches your brand’s personality. VocalCart offers eight distinct presets.
Select voices that align with your content type. Female voices like Aria offer a warm, clear narrator style, while Felix brings energetic energy to promotional spots.
8 preset voices
We provide eight curated voices: Aria, Nova, Luna, and Sage for female tones; Felix, Milo, Atlas, and Orion for male tones.
Each voice is based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings.
- 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
Gender and tone options
Select voices based on the emotional tone you need for your catalog updates or ad creatives.
All voices can speak all 23 supported languages, allowing you to maintain consistency across international markets.
Voice IDs in docs
Use the exact voice ID in your API requests to ensure consistent audio generation.
Check the /v1/voices endpoint for the complete list of available voices and their specific characteristics.
Rate limits
VocalCart enforces a rate limit of 60 requests per minute per API key to maintain consistent generation quality. This cap applies uniformly across all accounts, ensuring stable performance for catalog updates and ad creative production without sudden throttling during peak usage.
60 requests per minute
Once your account is active and funded, you can send up to 60 synthesis requests every minute. This limit is per key, so if you rotate keys, each key has its own allowance. For most e-commerce workflows, this capacity handles bulk catalog voice-overs efficiently.
10 requests before top-up
New accounts start with a lower limit of 10 requests per minute. This applies until you complete your first top-up. After adding USDT (minimum $5) via the TRON network, your limit increases to the standard 60 requests per minute automatically.
Queued processing
Requests are processed sequentially. If you exceed the per-minute limit or the queue is full, new requests wait in line rather than failing immediately. Short phrases take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second). Under load, processing time may extend as requests queue.
Common errors
API errors provide clear signals to help you troubleshoot integration issues quickly. Understanding these responses ensures your product team can maintain smooth voice-over generation workflows without unexpected downtime or billing surprises.
Each error code corresponds to a specific cause, from authentication failures to rate limits. The following section details the three most common scenarios and how to resolve them efficiently.
401 Unauthorized
This response indicates that the Authorization header is missing, malformed, or contains an invalid key. Ensure your key starts with tts- and is passed exactly as Bearer <key>. If you issued a new key, the old one stops immediately.
- Check for typos in the API key string.
- Ensure the header format is
Authorization: Bearer tts-... - Verify the key matches the account on bkk323.cc
429 Rate limit
You have exceeded the limit of 60 requests per minute for your key, or 10 requests if no top-up has been made. Requests are processed sequentially, so high volume may cause queuing delays. Reduce your request frequency or top up your USDT balance to restore the full 60 RPM limit.
- Limit concurrent requests to stay under 60/minute.
- Top up via TRC-20 to restore full limits.
- Implement exponential backoff for retry logic.
400 Bad request
The request body is missing required fields, contains invalid values, or exceeds the 4096 character limit for the input field. Ensure model, input, and voice are provided. Use valid voice IDs like aria or nova and ensure the text does not exceed the character limit.
- Verify
inputlength is under 4096 characters. - Check that
voiceis one of the 8 presets. - Ensure
modelis eithertts-1ortts-1-hd
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Your dashboard shows real-time usage, balance, and characters remaining.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- curl documentation
- ISO 639 language codes
- MDN: Web Speech API
- TRON developer hub: TRC-20
- openai-python on GitHub
- LibriVox public-domain audiobooks
- IETF RFC 7845: Ogg Opus
- LibriTTS-R paper (arXiv 2305.18802)
- W3C WAI: making audio and video accessible
- OpenAI API reference: create speech
- Creative Commons Attribution 4.0
