Frequently asked questions
How do I generate an API key?
Navigate to /get-api-key/ and sign in using Google or create an account with an email and password. The dashboard displays your single active API key, which you use for authentication. You can issue a new key at any time, which immediately invalidates the previous one.
What is the maximum text length per request?
The input field accepts up to 4096 characters per request. If your text exceeds this limit, you must split it into parts of 4096 characters or fewer and join the resulting audio files. Spaces and punctuation count toward the character total.
Can I stream audio as it is generated?
No. The API does not support streaming, WebSockets, or real-time partial audio. The entire audio file is returned in the response body after synthesis completes. You must wait for the full file before processing or playback.
Does the API support SSML markup?
No. The API does not support SSML markup, phoneme dictionaries, or custom pronunciation lexicons. You provide plain text input, and the system generates audio based on standard language rules without additional structural tags for pacing or emphasis.
How do I handle rate limit errors in my code?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Implement exponential backoff or queue your requests to stay within this threshold. Requests are processed sequentially, so under load, additional requests may wait in a queue.
Is the OpenAI SDK compatible with this API?
Yes. The request shape matches the OpenAI speech endpoint. Configure your OpenAI SDK by changing the base_url to https://api.qq33apk.com/v1 and providing your site-specific API key. This allows you to use the official SDK for integration.
What happens if the text exceeds 4096 characters?
You must split the text into chunks of up to 4096 characters. Send each chunk as a separate request and then join the resulting audio files. The API does not automatically handle splitting or joining for you.
Are there any limits on the number of voices I can use?
There are no limits on the number of voices you can use. You may select any of the eight available presets for each request. Each voice can speak any of the supported languages, allowing flexible combinations across your projects.
How do I specify the language in the request?
Include the optional language field with an ISO code in your JSON body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, always set the language explicitly.
Is the response format always MP3 by default?
No. You can specify the response_format field in the request body. Options include mp3, wav, opus, flac, and pcm.
Can I rotate my API key without downtime?
Yes. You can issue a new API key at any time from the dashboard. The new key becomes active immediately, and the old key stops working at once. Update your application configuration to use the new key to avoid authentication errors.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and have the same price. The model field accepts either "tts-1" or "tts-1-hd". There is no functional or pricing difference between them for the purpose of this API integration; choose either as needed.
How do I debug a failed request?
Check the response status code and body for error details. Failed requests are free, and the charge is returned in full if synthesis fails. Ensure your input text is within the 4096-character limit and that your API key is valid.
Does the API return audio chunks or a full file?
The API returns a full audio file in the response. It does not stream audio chunks or provide partial data. The entire synthesized audio file is delivered once the request is processed, regardless of the text length or duration.
First request
curl
curl https://api.qq33apk.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.qq33apk.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.qq33apk.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 Keys
Access to the VocalSpot API requires a valid Bearer token included in the Authorization header of every request. This key authenticates your account and tracks usage against your billing balance.
Manage your API key directly from the /get-api-key/ dashboard, where you can view your current status and generate a new token if needed.
Bearer Token Authorization
Include your key in the HTTP header as Authorization: Bearer tts-... for all API calls. This standard format ensures compatibility with the OpenAI SDK and other HTTP clients.
Key Rotation Process
Issue a new key from your dashboard at any time. The transition is immediate; the old key stops working the moment the new one is activated.
Rotate keys periodically to maintain security without disrupting active integrations, as only one key remains active per account.
One Active Key Per Account
Each account maintains a single active API key. Generating a new key automatically invalidates the previous one, ensuring clear audit trails for billing and usage.
This simplifies key management for advertising agencies managing multiple production environments without needing complex permission structures.
Endpoint Overview
The API exposes three primary endpoints for integration. The speech generation endpoint accepts text and returns audio files, while the voices and models endpoints provide metadata for configuration and pricing.
Speech Generation Endpoint
Send a POST request to /v1/audio/speech with a JSON body containing model, input, voice, response_format, and optional speed or language. The endpoint returns the generated audio file directly in the response.
- Endpoint:
POST https://api.qq33apk.com/v1/audio/speech
Voices Listing Endpoint
Use GET /v1/voices to retrieve available voice presets, supported languages, and available audio formats. This allows dynamic selection of voices like aria or atlas based on campaign requirements.
- Endpoint:
GET https://api.qq33apk.com/v1/voices
Models Listing Endpoint
Call GET /v1/models to list available models. The API currently supports tts-1 and tts-1-hd, which share the same engine and pricing structure for consistent output quality.
- Endpoint:
GET https://api.qq33apk.com/v1/models
Request Parameters
The API accepts plain text input up to 4,096 characters per request. All spaces and punctuation count toward this limit. For longer radio scripts, split the text into chunks and join the resulting audio files to maintain broadcast quality.
Input Text Field
Pass your script content in the input field as a string. Ensure the text does not exceed 4,096 characters. If your spot exceeds this length, send multiple requests and concatenate the output files.
Voice Selection
Select one of the eight presets via the voice parameter. Options include female voices like aria and nova, or male options like atlas and orion. Each voice supports all 23 languages, but you must explicitly set the language code for non-English Latin scripts to avoid incorrect English defaults.
- aria: warm, clear narrator
- nova: bright, upbeat
- atlas: neutral, news
- orion: deep, documentary
Speed Control
Adjust playback speed using the speed parameter, ranging from 0.25 to 4.0. The default speed is 1.0. This allows fine-tuning for tight radio spots or slower, instructional voiceovers without re-synthesizing the audio.
Response Formats
The API returns audio files in the format specified by the response_format parameter. You can choose between standard compressed formats for web delivery or lossless options for broadcast-grade production.
MP3 Output
MP3 is a supported format. It provides efficient file sizes suitable for rapid deployment in digital advertising campaigns and radio spot streaming.
WAV and FLAC Options
WAV and FLAC offer lossless quality for archival or direct integration into professional editing suites. FLAC is a supported lossless format.
Opus and PCM Support
Opus is a supported audio format. PCM raw audio is also available.
Error Handling
VocalSpot returns standard HTTP status codes to indicate request outcomes. Understanding these responses allows advertising agencies to implement robust retry logic for radio spot generation without manual intervention.
Rate Limit Errors
Exceeding the 60 requests per minute limit returns a 429 status code. New keys start with a 10 requests per minute limit until the first top-up is processed.
- HTTP 429 Too Many Requests
- Retry-After header indicates seconds to wait
Invalid Input Errors
Requests with text exceeding 4096 characters return HTTP 400. Missing or invalid voice names also trigger this error, ensuring only broadcast-ready parameters are processed.
- HTTP 400 Bad Request
- Input text > 4096 characters
Server Error Responses
Internal failures return HTTP 500. Failed synthesis requests are free, with the charge returned in full if the error occurs during processing.
- HTTP 500 Internal Server Error
- Failed requests are free

SDK Integration
The API is compatible with the official OpenAI SDKs, requiring only a base URL adjustment. This allows advertising agencies to integrate VocalSpot into existing TTS pipelines without rewriting client logic. The request structure mirrors standard speech endpoints, ensuring predictable behavior for developers familiar with industry norms.
OpenAI Python SDK
Use the standard openai Python package to generate audio. Initialize the client with your API key and the VocalSpot base URL. This approach leverages existing code structures for rapid deployment in radio production workflows.
Base URL Configuration
Set the base_url parameter to https://api.qq33apk.com/v1. This directs requests to the correct endpoint while maintaining compatibility with the OpenAI SDK protocol. Ensure your authentication header includes the Bearer token.
Standard Request Shape
Pass text via the input field and select a voice from the eight presets. The SDK handles JSON serialization for parameters like model, voice, and response_format. This standard shape simplifies integration for high-volume voice generation tasks.
Rate Limits
The API enforces a standard rate limit of 60 requests per minute per active key. This capacity supports high-volume advertising workflows, allowing agencies to generate multiple radio spots or locutor lines efficiently without exceeding infrastructure thresholds.
New keys begin with a lower limit of 10 requests per minute until the first top-up is processed. This ensures system stability during initial usage phases before the account transitions to standard operational parameters.
60 Requests Per Minute
Each API key is allocated a quota of 60 requests within any given minute. This limit applies uniformly across all endpoint calls and ensures consistent performance for production environments.
Users can monitor their usage via the account dashboard to anticipate volume spikes during campaign launches or batch processing of voiceover scripts.
- Limit resets on a sliding window basis
- Applies per key, not per IP address
- Applies to all request types
Initial Limit for New Keys
Upon creation, a new key operates under a restricted limit of 10 requests per minute. This applies immediately upon key generation.
The limit increases to the standard 60 requests per minute automatically within minutes of a successful USDT top-up. No manual support ticket is required for this upgrade.
Accounts created with email and password do not receive trial credit and start directly at this initial limit until funded.
- Starts at 10 req/min
- Increases to 60 req/min after top-up
- Automatic update, no manual intervention
Queue Behavior Under Load
Requests are processed sequentially. If the system is under load, additional requests may wait in a queue before synthesis begins.
Short phrases typically take a few seconds to generate. Long texts are split into parts, which may introduce slight delays between segments.
Users should implement retry logic with exponential backoff to handle temporary queueing or rate limit headers effectively.
- Sequential processing order
- Queuing during high demand
- Retry logic recommended
Curl Example
The following example demonstrates a standard request to generate audio for a radio spot using the VocalSpot API. This structure ensures compatibility with standard HTTP clients and integrates seamlessly into existing advertising production pipelines.
The command sends a POST request with JSON payload containing the model, input text, and voice parameters. Replace the placeholder key with your active API token before execution.
Basic Request Structure
Use the following curl command to send a synthesis request. The endpoint accepts JSON bodies with text up to 4,096 characters. Ensure the input text is properly escaped if it contains special characters.
```bash curl -X POST https://api.qq33apk.com/v1/audio/speech \ -H "Authorization: Bearer tts-your-key-here" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "This is a test audio file for advertising purposes.", "voice": "aria", "response_format": "mp3"}' \ --output output.mp3 ```
Headers Configuration
The Authorization header must contain your Bearer token in the format Bearer tts-.... The Content-Type header is set to application/json to specify the body format. Other headers are not required for basic synthesis.
Response Parsing
On success, the API returns the audio file directly in the response body. The file format matches the response_format parameter (e.g., mp3). Save the output to a local file for immediate use in your radio production workflow.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Your next breakthrough product deserves a voice that resonates with ambitious founders ready to disrupt the market.
23 languages
Any voice speaks any of these languages.
