Frequently asked questions
What is the base URL for the API?
The API base URL is https://api.play84g.com/v1. You send POST requests to /v1/audio/speech for speech synthesis. Other endpoints like /v1/voices and /v1/models are also available at this base path for retrieving voice details and model information.
How do I authenticate with the API?
Include your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-... . Each account has one active key. You can issue a new key at any time, which immediately invalidates the previous one.
What is the maximum character limit per request?
Each request supports up to 4096 characters in the input field. Spaces and punctuation count toward this limit. For texts longer than 4096 characters, you must split the text into chunks, generate audio for each, and join the files.
Can I use the official OpenAI SDK?
Yes. The request shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.play84g.com/v1 and providing your site-specific API key in the configuration.
How do I handle rate limit errors?
The limit is 60 requests per minute per key (10 per minute before the first top-up). If you exceed this, requests may queue or fail. Implement retry logic with exponential backoff to handle temporary rate limit errors gracefully.
What happens if the API returns an error?
If synthesis fails, the charge is returned in full. Failed requests are free. You can check the response status code to determine if the request failed and retry if appropriate, knowing your balance remains unaffected by the error.
Is SSML supported in the request body?
No, SSML is not supported. The API accepts plain text in the input field. You cannot use SSML tags for pronunciation or pauses. If you need specific control, you must manage timing and breaks in your application logic.
How do I specify the audio format?
Set the response_format field in the JSON body to one of: mp3, wav, opus, flac, or pcm. This determines the encoding of the returned audio file. The default format is not specified in the facts, so always explicitly set this field.
What is the default voice if none is selected?
The API does not specify a default voice. You must explicitly provide a voice parameter from the eight available presets (e.g., aria, nova, luna, sage, felix, milo, atlas, orion) in your request body to generate audio.
Can I adjust the playback speed?
Yes. Use the speed parameter in the request body, with a range from 0.25 to 4.0. This allows you to slow down or speed up the generated speech relative to the normal rate without affecting the voice characteristics.
How are long texts processed?
Split your text into parts of up to 4096 characters each. Send each part as a separate request to the /v1/audio/speech endpoint. Then, join the resulting audio files in your application to create the final continuous audio output.
Is there a webhook for async processing?
No, there is no webhook for async processing. Requests are processed synchronously, though under load they may queue. You receive the audio file directly in the response body or as a file attachment, depending on your client implementation.
What is the character limit for free trial?
The free trial provides $0.50 of credit, which equals approximately 50,000 characters. This credit is valid for 7 days when you sign in with Google. Email/password accounts start without this trial credit.
Do I need to install a specific library?
No specific library is required. You can use the official OpenAI SDK by adjusting the base URL, or use plain HTTP requests. There is no official SDK from AudioLogic Labs, so standard HTTP clients work perfectly for integration.
First request
curl
curl https://api.play84g.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.play84g.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.play84g.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 & Keys
Access to the AudioLogic TTS API requires a valid API key, which is issued upon account creation. You can generate and view your key on the /get-api-key/ dashboard, where it appears alongside your current balance and usage statistics. This key authorizes all requests to the API endpoints.
The key follows a specific format to ensure secure transmission. It is used as a Bearer token in the HTTP Authorization header, allowing your application to authenticate with the service without additional login steps for each request.
Generating your API key
Keys are created when you sign up via Google or email on the /get-api-key/ page. Each account is associated with one active key at a time. If you need a fresh key, you can issue a new one at any time, which immediately invalidates the previous key.
- Supported sign-up methods: Google or email + password
- One active key per account
- New keys invalidate old keys immediately
Bearer token format
Include your key in the header as Authorization: Bearer tts-.... Ensure no extra spaces or characters are added, as the API validates the token strictly. This format is compatible with standard HTTP clients and SDKs used by indie developers.
- Header:
Authorization: Bearer tts-... - Format: String starting with 'tts-'
Key rotation policy
Rotate your key anytime from the dashboard. The old key stops working instantly, ensuring that if a key is compromised, access is revoked immediately. No downtime occurs during rotation as long as you update your application configuration promptly.
- Immediate invalidation of old keys
- No downtime if configured correctly
- Unlimited rotations
Base URL Configuration
The API base URL is https://api.play84g.com/v1. All requests use the /v1/audio/speech endpoint for synthesis, while /v1/voices and /v1/models provide metadata. This structure mirrors standard REST conventions, ensuring predictable routing for indie developers integrating voice features.
Endpoint structure
Use POST for speech generation and GET for metadata retrieval. The endpoint accepts JSON payloads with model, input, voice, and format parameters. Ensure your client handles binary audio responses correctly, as the primary output is the audio file itself.
SDK base_url adjustment
To use official OpenAI SDKs, set the base_url to https://api.play84g.com/v1. Pass your Bearer token in the Authorization header. This allows seamless integration without rewriting client logic, leveraging existing SDK compatibility for TTS workflows.
Versioning info
The API version is v1. The base URL includes this version explicitly. Future updates will likely introduce new version prefixes rather than breaking changes to this endpoint, maintaining stability for long-term product integrations.
Request Parameters
The TTS API accepts text input up to 4096 characters per request. Spaces and punctuation are counted toward this limit. For longer texts, split the input into multiple requests and join the resulting audio files sequentially.
Input text limits
Each request processes a maximum of 4096 characters. To handle longer content, divide the text into chunks that fit this constraint and concatenate the returned audio files.
Voice selection options
Select one of eight preset voices using the voice parameter. Options include female voices like aria (warm, clear narrator) and nova (bright, upbeat), or male voices like atlas (neutral, news) and orion (deep, documentary).
All voices support all 23 listed languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text.
- 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
Speed and language settings
Adjust playback speed between 0.25 and 4.0 using the speed parameter. This allows fine-tuning of the output duration without altering the voice characteristics.
Specify the language using an ISO code if needed. While the system auto-detects language from the script, explicit setting ensures accuracy for non-English Latin-script text or ambiguous inputs.
Response Formats
The TTS API returns raw audio data directly in the response body, allowing you to save files immediately. Supported codecs include mp3, wav, opus, flac, and pcm, giving you flexibility for different deployment environments. Each generated file contains an inaudible watermark identifying it as synthetic speech.
Supported audio codecs
Choose from five formats based on your needs: mp3 and opus for efficient storage, wav and flac for high-fidelity processing, or pcm for raw data handling. All outputs are valid standard audio files compatible with most media players and libraries.
- mp3
- wav
- opus
- flac
- pcm
Binary audio response
The response body contains the binary audio data directly. No intermediate JSON wrapper is used for the audio payload itself, ensuring minimal overhead and fast transfer speeds. You can write this binary stream directly to disk or pipe it into an audio player.
JSON metadata inclusion
While the primary payload is binary, you can access request metadata such as character count and model used via standard HTTP headers or by checking the request context. Failed requests return a JSON error object with details, ensuring you can handle edge cases programmatically without parsing audio data.
Rate Limits & Quotas
The API enforces a global rate limit of 60 requests per minute per API key. Requests are processed sequentially, meaning that under heavy load, synthesis may queue, extending generation times. This limit applies uniformly regardless of text length, provided each request stays within the 4096-character input constraint.
Requests per minute limit
Each active key is capped at 60 requests per minute. If you exceed this threshold, the API returns a 429 Too Many Requests error. Since synthesis is sequential, concurrent requests may experience delays as they wait in the processing queue. Plan your batch jobs accordingly to avoid unnecessary latency.
- Limit: 60 requests/minute per key
- Processing: Sequential (queue-based under load)
- Input max: 4096 characters per request
Pre-top-up restrictions
New accounts start with a reduced limit of 10 requests per minute. This restriction applies until you add your first top-up to the account. Once a top-up is processed, the limit increases to the standard 60 requests per minute. This ensures basic stability before scaling usage.
Handling 429 errors
When you hit the rate limit, the API returns an HTTP 429 status code. Implement exponential backoff in your integration to retry requests after a short delay. Failed synthesis requests do not consume your character quota or balance, so retrying is safe if the input remains valid.
- Status: 429 Too Many Requests
- Action: Retry with exponential backoff
- Cost: Free retry if input is valid

Error Handling
The API returns standard HTTP status codes to indicate request success or failure. A 200 OK response confirms that audio synthesis is complete and the binary file is included in the response body. Developers should monitor these codes to ensure their integration handles network and service states correctly.
Unlike many services, failed synthesis requests are free. If the API returns an error code (such as 4xx or 5xx), the character charge is returned in full. This ensures you only pay for successfully generated audio, reducing risk during integration testing.
Common HTTP status codes
Use 200 OK for successful generation. 400 Bad Request indicates invalid parameters like an unknown voice or exceeded character limit. 429 Too Many Requests signals you have hit the rate limit of 60 requests per minute. 500 Internal Server Error suggests a temporary backend issue; retry with exponential backoff.
- 200: Success, audio file returned
- 400: Invalid request parameters
- 401: Unauthorized, check Bearer token
- 429: Rate limit exceeded
- 500: Internal server error
Refund on failure
Character credits are deducted only upon successful synthesis. If a request fails, the charge is returned in full. This applies to both free trial credits and purchased USDT balance.
Input validation errors
The input field input must not exceed 4096 characters. If you send text longer than this limit, the API returns a 400 error. Ensure your client-side logic splits longer texts into chunks before sending. Also, verify that the voice and model fields match the allowed presets listed in the /v1/voices endpoint.
- Max 4096 characters per request
- Valid voices: aria, nova, luna, sage, felix, milo, atlas, orion
- Valid models: tts-1, tts-1-hd
cURL Quickstart Example
This section provides a concrete cURL example to demonstrate the basic synthesis request, required headers, and binary output parsing for the AudioLogic TTS API. It is designed for developers who prefer direct HTTP requests over SDK abstractions.
The example assumes a valid API key and demonstrates sending a short text payload to generate MP3 audio, illustrating the direct mapping between JSON input and binary output.
Basic synthesis request
Send a POST request to the speech endpoint with a JSON body containing the text, model, and voice parameters. The request body must not exceed 4096 characters.
```bash curl -X POST "https://api.play84g.com/v1/audio/speech" \ -H "Authorization: Bearer tts-your-api-key" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}' \ -o output.mp3 ```
bullets
Required headers
The Authorization header must contain your Bearer token in the format "Bearer tts-...". The Content-Type header should be set to application/json.
bullets
Parsing binary output
The API returns raw binary audio data. Use the -o flag in cURL to save the output directly to a file. The file format corresponds to the response_format parameter.
bullets
OpenAI SDK Integration
The AudioLogic TTS API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing client code with minimal configuration. By adjusting the base_url to https://api.play84g.com/v1, you can leverage the official OpenAI SDKs directly without writing custom HTTP handlers.
This compatibility extends to parameter naming and response shapes, ensuring a smooth transition for teams already familiar with the OpenAI ecosystem. You simply provide your tts-... API key in the standard Authorization header.
Changing base_url
Update your SDK client configuration to point base_url at https://api.play84g.com/v1. This single change redirects all requests to our infrastructure while maintaining the expected request body structure.
Ensure your API key is prefixed correctly in the Authorization: Bearer header. The SDK handles authentication automatically once configured.
- Base URL: https://api.play84g.com/v1
- Auth Header: Authorization: Bearer tts-<your-key>
Using official SDKs
Use the official OpenAI SDK (e.g., openai Python or Node.js package). Initialize the client with your API key and the modified base URL.
All standard methods like Audio.speech.create() work identically, accepting the same parameters for model, voice, input text, and response format.
Parameter mapping
Map your input text to the input field, limited to 4096 characters per request. Supported models are tts-1 and tts-1-hd.
Specify a voice from our eight presets (e.g., aria, nova, felix) and set the response_format to mp3, wav, opus, flac, or pcm. Speed ranges from 0.25 to 4.0.
- Model: tts-1 or tts-1-hd
- Input: string, max 4096 chars
- Format: mp3, wav, opus, flac, pcm
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Cost scales linearly with character count, making budgeting predictable for indie developers.
23 languages
Any voice speaks any of these languages.
