Frequently asked questions
How do I get my API key?
Sign up on the /get-api-key/ page using Google or email and password. The dashboard displays your active key, balance, and usage statistics. Each account holds one active key; issuing a new one immediately invalidates the previous key.
Which SDK should I use for integration?
Use the official OpenAI SDKs by changing the base_url to https://api.playq36.com/v1. The request shape matches the OpenAI speech endpoint exactly. Alternatively, use any standard HTTP client library compatible with JSON payloads.
What is the base URL for the API?
The API base URL is https://api.playq36.com/v1. Send POST requests to https://api.playq36.com/v1/audio/speech for synthesis. Use GET /v1/voices for voice metadata and GET /v1/models for model information.
How do I set the language parameter?
Pass the optional ISO language code in the request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly set the language for non-English Latin-script text to ensure accuracy.
Can I use the API with Python?
Yes. Use the OpenAI Python SDK by configuring the base_url to https://api.playq36.com/v1. Pass your API key via the Authorization header. Send text input and receive the audio file directly in your Python application.
How do I handle rate limits?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Requests process sequentially, so under load, requests may queue. Implement exponential backoff in your client to handle temporary delays during high volume.
What happens if the text exceeds 4096 characters?
Split your input text into chunks of up to 4096 characters. Send each chunk as a separate request. Join the resulting audio files in your application to create the final continuous audio output.
Is the API RESTful or GraphQL?
The API is RESTful. It uses standard HTTP methods (POST for speech, GET for voices and models) and JSON request/response bodies. It does not use GraphQL.
How do I rotate my API key?
Issue a new key from your dashboard at any time. The new key becomes active immediately, and the old key stops working at once. No downtime occurs during rotation.
What is the response format for errors?
Failed requests return standard HTTP error codes with a JSON body describing the issue. If synthesis fails, the charge is returned in full. Check the response status code and message for details.
Can I use the API in a serverless function?
Yes. The API is stateless and accessible via standard HTTP. Configure your serverless function to send POST requests to the speech endpoint with the required JSON body and authentication header.
How do I test the API before production?
Use the free trial credit of $0.50 (about 50,000 characters) valid for 7 days upon Google sign-in. Accounts created with email and password start without trial credit. Test with the provided curl example on the /get-api-key/ page to verify integration before scaling.
Is there a sandbox environment?
There is no separate sandbox environment. Use your single production endpoint with your trial or paid balance. The same infrastructure handles test and production requests, with failed requests refunded automatically.
How do I calculate the character count?
Count all characters in the input text, including spaces and punctuation. The rate is $10 per 1 million characters ($0.01 per 1,000 characters). Ensure your text does not exceed 4096 characters per request.
First request
curl
curl https://api.playq36.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.playq36.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.playq36.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 the VoxBridge API using a single active Bearer token. Generate your key on the /get-api-key/ dashboard to begin sending requests. The token authenticates all calls to the API base URL.
Generate Bearer token from dashboard
Navigate to the /get-api-key/ page to create your account via Google or email. The dashboard displays your active key, current balance, and usage metrics. This key is the sole credential for API access.
Pass key in Authorization header
Include the token in every request header as Authorization: Bearer tts-.... This standard header validates your account against the rate limits and billing systems. Ensure the key matches the domain of the API endpoint.
Rotate keys for security
Issue a new key from the dashboard at any time. The previous key stops immediately upon generation of the new one. This allows instant revocation without service interruption if a key is compromised.
Endpoint Overview
The API exposes three primary endpoints for integration. The speech generation endpoint handles the core synthesis logic, accepting text input and returning audio files. The voices and models endpoints provide metadata on available presets and engine configurations, allowing teams to programmatically discover supported languages and formats before initiating synthesis jobs.
POST /v1/audio/speech for generation
Send a POST request to the speech endpoint with your text, voice selection, and desired output format. The system processes requests sequentially, supporting up to 4096 characters per input. Responses return the generated audio file directly in the specified format, enabling straightforward integration into existing localization pipelines.
- Accepts JSON bodies with model, input, voice, and response_format fields.
- Supports MP3, WAV, OPUS, FLAC, and PCM outputs.
- Processes requests sequentially; longer texts may require splitting.
GET /v1/voices for available presets
Retrieve a list of the eight available voice presets and their associated metadata. This endpoint confirms supported languages, formats, and current pricing structures, allowing your application to dynamically adjust voice selection based on target audience or budget constraints without hardcoding values.
- Returns metadata for eight distinct voice presets.
- Lists supported languages and audio formats.
- Provides real-time pricing information per character.
GET /v1/models for engine info
Query the models endpoint to verify the available synthesis engines (tts-1 and tts-1-hd). Both engines share identical pricing and capabilities, allowing you to standardize your request payload structure across different quality tiers without needing to adjust core parameters for each engine variant.
- Lists available TTS engine identifiers.
- Confirms shared pricing and capabilities across engines.
- Supports standard OpenAI request shapes.
Request Parameters
The API requires specific parameters to generate audio files. The request body is a JSON object containing the model, input text, voice selection, and optional settings like language and speed. Each request processes up to 4,096 characters of text, ensuring predictable processing times for localized content.
Model selection: tts-1 or tts-1-hd
Both models use the same underlying engine and pricing. Select "tts-1" for standard generation or "tts-1-hd" for higher fidelity. The choice does not affect the character count or cost, which remains $0.01 per 1,000 characters.
Input text up to 4096 characters
Pass your localized text in the input field. Spaces and punctuation count toward the character limit. For texts exceeding 4,096 characters, split the content into smaller segments and join the resulting audio files to maintain synchronization.
Voice selection from 8 presets
Choose from eight distinct voice presets tailored for different tones. Select a voice from the list, such as "aria" for narration or "atlas" for news-style delivery. Ensure the language parameter matches the text script if it is not obvious, such as with Latin-script languages other than English.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
Response Formats
The API accepts response_format to define the output container. Supported formats include mp3, wav, opus, flac, and pcm. The choice affects file size, compatibility, and downstream processing workflows.
MP3 for web compatibility
MP3 is the standard choice for web playback and general distribution. It offers broad compatibility with most audio players and streaming services. Use this format for final delivery to end-users or web-based applications.
WAV for high-quality audio
WAV provides uncompressed PCM audio. This format is ideal for archival purposes or when the audio will undergo further editing in professional suites.
Opus, FLAC, PCM for specialized use
Opus offers high-quality compression suitable for voice-centric applications with bandwidth constraints. FLAC provides lossless compression. PCM returns raw uncompressed audio data, useful for direct hardware integration or low-level processing.
OpenAI SDK Integration
Leverage the official OpenAI SDKs for seamless integration without learning a new client library. The API accepts the same request shape as the OpenAI Speech endpoint, requiring only a configuration adjustment to point to our infrastructure.
This approach allows localization agencies to maintain existing codebases while switching providers. You retain full control over request parameters, including model selection, voice presets, and output formats, ensuring compatibility with standard TTS workflows.
Use official OpenAI SDKs
The API mirrors the OpenAI Speech endpoint structure, allowing you to use established libraries directly. This eliminates the need for custom wrappers or additional dependency management in your localization pipeline.
Set base_url to api.playq36.com
Configure your SDK client by setting the base_url to https://api.playq36.com/v1. Ensure your authentication header uses the Bearer token issued from the PlayQ36 dashboard.
Standard JSON request shape
Send POST requests to /v1/audio/speech with a JSON body containing model, input, voice, and response_format. The API processes these standard fields to generate audio, returning the file in the specified format.

Rate Limits and Throttling
Rate limits ensure stable infrastructure for high-volume localization workflows. Each API key is capped at 60 requests per minute. This limit applies per key, allowing teams to distribute load across multiple keys if necessary. Understanding these constraints helps prevent unexpected delays during bulk audio generation.
New accounts start with a lower threshold of 10 requests per minute. This initial limit remains in effect until the first top-up is processed. Once a top-up is confirmed, the full 60 requests per minute capacity is unlocked, enabling immediate scaling for agency projects.
60 requests per minute per key
The standard limit allows for consistent throughput during active production cycles. Teams should monitor usage to stay within this boundary. Exceeding the limit results in HTTP 429 errors, which do not consume character credits.
- Limit is per API key, not per account.
- Exceeding limits returns HTTP 429.
- No character charge on rejected requests.
10 requests per minute initially
New keys begin with a 10 requests per minute cap. This limit persists until the first payment is credited. Top-ups via USTRC20 are processed automatically, usually within minutes, restoring full capacity.
- Initial cap applies to new keys.
- Top-up triggers immediate limit increase.
- No manual approval required.
Queue processing under load
Requests are processed sequentially during peak times. Long texts may take time to synthesize, roughly one second per 25 characters. Under heavy load, requests may wait in a queue before processing begins.
- Sequential processing during high demand.
- Generation speed is roughly real-time on long texts (about 25 characters per second).
- Queue delays are normal under load.
Error Handling
The API returns standard HTTP status codes to indicate request outcomes. A 200 OK response confirms successful audio generation, while 4xx errors indicate client-side issues such as invalid parameters or authentication failures. Server-side errors (5xx) suggest temporary infrastructure issues, though these are rare.
Failed synthesis requests are processed at no cost. If the engine encounters an error during audio generation, the character count is not deducted from your balance, and the charge is effectively refunded. This ensures you only pay for successfully delivered audio files.
HTTP status codes for failures
Use the HTTP status code in the response header to determine the nature of the failure. 400 errors typically result from malformed JSON or invalid voice IDs. 401 errors indicate an expired or incorrect Bearer token. 429 errors signify that you have exceeded the 60 requests per minute limit.
- 400: Bad Request (invalid parameters)
- 401: Unauthorized (invalid API key)
- 429: Too Many Requests (rate limit exceeded)
- 500: Internal Server Error
Refund on synthesis errors
Synthesis failures trigger an automatic credit return. If the audio generation fails due to engine issues, your balance remains unchanged. This applies to both trial credits and paid top-ups. No manual claim is required.
Debugging common issues
Ensure the input text does not exceed 4096 characters. If using non-English Latin script, explicitly set the language parameter to prevent incorrect voice selection. Verify that the Authorization header includes the Bearer prefix followed by your key.
- Check character count limits (max 4096)
- Set
languagefor non-English Latin text - Verify Bearer token format
cURL Example
Simple command line request
Execute a synthesis request by passing your Bearer token and input parameters. The following command sends a short English phrase to the API endpoint, requesting an MP3 file using the 'nova' voice preset.
JSON body structure
Construct the request body with the required fields. Ensure the input text does not exceed 4096 characters. Specify the model as 'tts-1' or 'tts-1-hd', and select a valid voice from the eight available presets.
- -
model: "tts-1" or "tts-1-hd" - -
input: Your text string - -
voice: e.g., "nova" - -
response_format: "mp3"
Response audio delivery
The API returns the generated audio file directly in the response body. For long texts, split your input into chunks under the character limit and join the resulting audio files sequentially. Failed requests incur no charge.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Our platform simplifies complex localization workflows for large teams managing global media assets.
23 languages
Any voice speaks any of these languages.
