Frequently asked questions
How do I authenticate my requests?
Include an Authorization: Bearer tts-... header with your unique API key. You can find your key on the /get-api-key/ dashboard page. Each account has one active key; issuing a new one immediately invalidates the old one. Ensure the key is sent with every request to the API endpoint.
Can I use the OpenAI Python 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.play7u.com/v1 and providing your site-specific key. This allows you to use familiar code structures without learning a new library interface.
What is the base_url for the API?
The base URL is https://api.play7u.com/v1. The speech endpoint is POST https://api.play7u.com/v1/audio/speech. Other endpoints like /v1/voices and /v1/models are also available under this base path. Use this URL for all HTTP requests and SDK configurations.
How do I split long texts?
Split your input text into parts of up to 4096 characters each. Send each part as a separate request to the speech endpoint. Then, join the returned audio files in your application code. This ensures each request stays within the character limit and processes efficiently.
What is the character limit per request?
The maximum input length is 4096 characters per request. This includes spaces and punctuation. If your text exceeds this limit, you must split it into multiple chunks. Each chunk is processed independently, and the resulting audio segments are concatenated by the client.
How do I set the language?
Pass the optional language field with an ISO code in the JSON body. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, explicitly set the language to ensure accurate synthesis. Supported languages include Arabic, Chinese, English, and others listed in the docs.
What happens if I hit the rate limit?
You are limited to 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue. Failed requests are free, but successful ones consume your balance.
Is SSML supported?
No. The API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. You cannot use SSML tags to control pacing or emphasis. You must rely on the text content and the speed parameter to adjust the output audio characteristics.
Can I stream audio?
No. The API returns the complete audio file in the response body. There is no WebSocket or real-time partial audio streaming. You receive the full file after synthesis completes. For long texts, you must split the input and join the resulting files yourself.
How do I get the list of voices?
Send a GET request to /v1/voices. This endpoint returns available voices, languages, formats, and pricing information. You can use this data to select the appropriate voice preset like aria, nova, or atlas for your specific text-to-speech generation needs.
What is the /v1/models endpoint for?
The GET /v1/models endpoint provides information about available models. Currently, you can choose between tts-1 and tts-1-hd, which use the same engine and price. This endpoint helps you verify model availability and details before sending your synthesis requests.
Do I need a specific model for HD audio?
Yes, select tts-1-hd for high-definition audio. The tts-1 model uses the same engine but offers standard quality. Both models have identical pricing and character limits. Choose tts-1-hd when you require higher fidelity audio output for your application.
How do I handle errors in my code?
Check the HTTP status code and response body for error details. Failed requests are free, and the charge is returned in full if synthesis fails. Implement retry logic for transient errors, but be mindful of the rate limit of 60 requests per minute.
Is the API synchronous?
Yes, the API is synchronous. You send a request and wait for the audio file to be generated and returned. Requests are processed one after another, so under load, your request may wait in a queue. Typical speed is roughly real-time for long texts.
First request
curl
curl https://api.play7u.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.play7u.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.play7u.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 is handled via a Bearer token passed in the request header. You receive a single key per account, starting with a $0.50 free trial credit when signing in with Google. This key authorizes all API requests and is displayed on your dashboard alongside your usage stats.
Each account maintains one active API key at a time. The format is tts-.... You must include this token in every request to verify your identity and deduct credits correctly from your balance.
Bearer token authorization
Include your API key in the Authorization header of every request. The format is Bearer tts-<your-key>. This token acts as your sole credential for accessing the speech endpoint and checking your account balance.
- Format:
Authorization: Bearer tts-<key> - Required for all API calls
- Visible on your dashboard
Single active key per account
Your account is tied to exactly one active API key. If you generate a new key, the previous one becomes invalid immediately. This ensures that if a key is compromised, you can revoke it by issuing a replacement without waiting for a batch process.
- One key per account
- No simultaneous active keys
Revoke keys instantly
Generating a new key from the dashboard instantly invalidates the old one. Use this feature if you suspect your key has been exposed. There is no downtime; the new key is active immediately after creation.
- Instant invalidation
- No waiting period
- Simple replacement process
Speech Endpoint
The synthesis endpoint processes text input and returns generated audio files. It accepts standard JSON payloads and returns audio data directly in the response body, following the same request shape as the OpenAI speech endpoint for easy integration.
POST /v1/audio/speech
Send a POST request to this endpoint to convert text into speech. The API processes requests sequentially, so under heavy load, synthesis may queue briefly. Long texts should be split into chunks of up to 4096 characters and joined later.
JSON request body
The request body must include the model ("tts-1" or "tts-1-hd"), input text, voice preset, and response_format. Optional fields include speed (0.25–4.0) and language (ISO code). If language is omitted, the system guesses from the script, defaulting to English for Latin text.
- Required:
model,input,voice,response_format - Optional:
speed,language - Max
inputlength: 4096 characters
Audio response format
The response contains the raw audio bytes corresponding to the requested format. Generated files include an inaudible watermark identifying them as synthetic speech. Failed requests return an error object without consuming credits.
- Supported formats: mp3, wav, opus, flac, pcm
- Audio is returned directly in the response body
- No storage of generated audio files
Request Parameters
Configure the synthesis engine and output voice for each request. The model field accepts "tts-1" or "tts-1-hd", which share the same engine and pricing but allow you to choose between standard and high-definition audio quality. The voice parameter selects one of eight presets, such as "aria" for narration or "atlas" for news-style delivery.
Model selection (tts-1, tts-1-hd)
Both model options use the identical underlying synthesis engine and incur the same cost of $0.01 per 1,000 characters. Use "tts-1" for efficient processing and "tts-1-hd" when higher fidelity is required. The API returns the generated audio file directly in the response body regardless of the model chosen.
- tts-1: Standard quality, optimized for speed
- tts-1-hd: High-definition audio quality
- Identical pricing and engine for both models
Voice preset selection
Select from eight distinct voice presets that cover various tones and use cases. Female voices include "aria" (warm narrator), "nova" (upbeat), "luna" (soft storytelling), and "sage" (calm instruction). Male options feature "felix" (energetic promo), "milo" (conversational), "atlas" (neutral news), and "orion" (deep documentary).
- 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 codes
Adjust the playback speed using the speed parameter, which accepts values between 0.25 and 4.0. The language field takes an optional ISO code to specify the target language; if omitted, the system guesses the language from the input script, defaulting to English for Latin text. All eight voices can speak any of the 23 supported languages.
- Speed range: 0.25 to 4.0
- Language: Optional ISO code
- Default guess: English for Latin script
Response Formats
The API returns audio files in the format you specify via the response_format field. You can choose between compressed and uncompressed variants depending on your storage and bandwidth constraints.
MP3 support
MP3 is the default and most widely supported format. It offers a good balance between file size and quality, making it ideal for web delivery and mobile apps.
WAV and FLAC options
WAV provides uncompressed, lossless audio for maximum quality. FLAC offers lossless compression, reducing file size without sacrificing audio fidelity. Both are suitable for archival or high-fidelity playback needs.
Opus and PCM formats
Opus is a highly efficient codec. PCM provides raw, uncompressed audio data, useful for direct processing or integration with systems that handle raw byte streams.
OpenAI SDK Integration
The API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing OpenAI SDK clients with minimal configuration. You only need to adjust the base URL and supply your VocalForge API key.
This approach eliminates the need for a custom client library. Your existing integration code remains largely intact, requiring only a single line change to point to the new endpoint.
Change base_url
Update your SDK client configuration to use https://api.play7u.com/v1 as the base URL. This redirects all requests to VocalForge’s infrastructure while maintaining the standard request shape.
- Point client to
https://api.play7u.com/v1
Use official SDKs
Leverage the official OpenAI SDKs for your preferred language. The request body structure is identical, ensuring compatibility without additional wrappers or adapters.
Compatible with existing code
Your current code logic for handling responses and errors remains valid. Since the response format matches the OpenAI standard, no changes are needed to process the audio file.

Curl Example
The API accepts standard JSON payloads via HTTP POST. You send your text and configuration parameters, and the server returns the synthesized audio file directly in the response body. This straightforward structure allows you to integrate TTS into any backend service or script without complex middleware.
Use the provided curl command as a starting point. Replace the placeholder key with your actual token from the dashboard. The example demonstrates a minimal request for English text using the default voice preset.
Basic request structure
Send a POST request to https://api.play7u.com/v1/audio/speech. The body must contain model, input, and voice fields. The response returns the audio file directly, ready to be saved or played.
Headers required
Include the Authorization header with your Bearer token. The Content-Type must be set to application/json to ensure the server parses your request correctly.
- Authorization: Bearer tts-your-api-key-here
- Content-Type: application/json
Example payload
This example sends a short phrase to the nova voice. Adjust the input text and voice preset as needed. Ensure your key is active and has sufficient balance.
- curl -X POST https://api.play7u.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"}'
Rate Limits
The API enforces a standard rate limit of 60 requests per minute for active accounts. Each request counts toward this cap, regardless of audio duration. If your application sends rapid bursts, requests may queue behind one another, slightly increasing total generation time for long texts.
60 requests per minute
Standard accounts can process up to 60 synthesis jobs every 60 seconds. This limit applies per API key. Exceeding this threshold will result in a 429 Too Many Requests error. Plan your batch jobs accordingly to avoid delays.
10 req/min for new accounts
New accounts start with a conservative limit of 10 requests per minute. This prevents abuse and ensures stable infrastructure during initial usage. You can upgrade this limit immediately by topping up your balance.
Limit increase after top-up
Once you add funds via USDT (TRC-20), your rate limit increases automatically to the standard 60 requests per minute. The change is immediate. No waiting period or manual verification is required.
- Top-up via TRON network (TRC-20)
- Minimum top-up amount: $5
- Credit appears within minutes
Error Handling
Handling errors correctly ensures your integration remains robust during synthesis failures or quota issues. The API returns standard HTTP status codes to indicate the nature of the problem, allowing your application to react appropriately without unnecessary retries.
Common error codes
A 400 Bad Request indicates invalid parameters, such as an unknown voice or unsupported format. A 401 Unauthorized means your Bearer token is missing or invalid. A 429 Too Many Requests signals that you have exceeded the 60 requests per minute limit.
- 400: Invalid input or parameters
- 401: Invalid or expired API key
- 429: Rate limit exceeded
Retry logic
Implement exponential backoff for transient errors like 500 Internal Server Error or 503 Service Unavailable. Avoid rapid retries, as requests are processed sequentially and may wait in a queue. Failed synthesis charges are refunded automatically, so idempotency is less critical than avoiding spam.
Character limit errors
Each request is limited to 4,096 characters. If your input exceeds this, split the text into smaller chunks before sending. The API does not accept longer inputs, so ensure your client-side logic handles chunking and audio joining.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. You can issue a new key at any time; the previous one stops immediately.
23 languages
Any voice speaks any of these languages.
