Frequently asked questions
How do I split long text for the API?
The API accepts up to 4096 characters per request. You must split longer texts into chunks of this size, send each chunk individually, and then join the resulting audio files. This ensures all text is processed within the single-request limit.
What is the best voice for narration?
Aria is described as a warm, clear narrator, making it a suitable choice for general narration. Luna is also suitable for storytelling. The voice depends on your specific tone needs, as all eight voices support all 23 languages.
How do I handle rate limits in code?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so under load, they may queue. Implement exponential backoff or a simple queue in your code to manage bursts effectively.
Can I use the API in a mobile app?
Yes, you can use the API in a mobile app. It is a standard HTTP REST API compatible with any platform that can send JSON POST requests. However, be mindful of exposing your API key in client-side code.
How do I calculate costs accurately?
Cost is $0.01 per 1,000 characters, including spaces and punctuation. Failed requests are free. Calculate costs by counting characters in your input text and multiplying by 0.00001. Your dashboard shows exact usage and remaining balance for precise tracking.
What format should I use for web apps?
MP3 is a compatible format for web apps, supporting broad browser playback. OPUS is also efficient for web delivery. You can choose from mp3, wav, opus, flac, or pcm based on your specific playback requirements and codec support.
Do I need to store the audio files?
No, you do not need to store them. Generated audio is returned in the response and not stored by the API. Input text is used only for synthesis and not for training. You are responsible for storing or caching the audio if needed.
How do I reset my API key?
You can issue a new key at any time from your account dashboard. When a new key is issued, the old one stops working immediately. This allows you to revoke access to compromised keys instantly without waiting for a manual review.
Can I use multiple voices in one project?
Yes, you can use any of the 8 voices in any combination. Each voice supports all 23 languages. You simply specify the desired voice in each request. There is no limit to how many different voices you can use across your project.
How do I test language detection?
If you omit the language parameter, the API guesses the language from the script. Latin text defaults to English. To test, send text in a non-English Latin-script language without setting the language field and verify the output matches your expectation.
Is the API suitable for real-time use?
It is not designed for true real-time streaming. Requests are processed sequentially and may queue under load. Typical speed is roughly real-time for long texts, but short phrases take a few seconds. There is no WebSocket or partial audio support.
How do I manage multiple projects?
Each account has one active API key. To manage multiple projects, you can issue a new key for each project, as the old key stops immediately. This allows you to isolate usage and billing per project using separate keys.
What is the maximum speed setting?
The maximum speed setting is 4.0. The minimum is 0.25. You can adjust the speed in each request to control the generation rate. This applies to all voices and languages supported by the API.
Can I downgrade my usage?
Yes, there are no monthly plans or minimum spend. You only pay for what you use. If you stop sending requests, you pay nothing. Your balance does not expire, so you can use it whenever you need to generate audio.
Preparation
To begin, create an account at /get-api-key/ using Google or an email/password pair. This step initializes your workspace on play7u.com, allowing you to manage your API access specifically for this storefront.
Create an account
Sign up via the dedicated page. Google sign-ins receive $0.50 trial credit valid for 7 days, providing about 50,000 characters. Email-based accounts start without trial credit but remain fully functional for immediate top-ups.
Generate API key
Once registered, navigate to your dashboard to generate a unique API key. This key authenticates your requests to https://api.play7u.com/v1. You can issue a new key at any time; the previous one stops immediately.
Check balance
Your dashboard displays your current balance, character usage, and remaining trial credits. Monitor these metrics to ensure uninterrupted service. USDT (TRC-20) top-ups of $5 minimum update your balance automatically within minutes.
Basic Integration
Configure your SDK or HTTP client by setting the base URL to https://api.play7u.com/v1. This single change allows standard OpenAI SDKs to route requests correctly to our infrastructure without requiring custom wrappers or additional dependencies.
Set base_url
Point your client library’s base URL to https://api.play7u.com/v1. This ensures all subsequent calls, such as /v1/audio/speech, hit the correct endpoint without manual path manipulation.
- Base URL: https://api.play7u.com/v1
- Works with official OpenAI SDKs
- No custom client required
Add authorization header
Include your API key in every request using the Authorization: Bearer tts-... header. Retrieve this key from your dashboard at /get-api-key/. Ensure you use the active key, as issuing a new one immediately invalidates the previous one.
Send first request
Send a POST request to /v1/audio/speech with a JSON body containing model, input, and voice. You will receive the audio file directly in the response. Start with a short test string to verify connectivity and billing.
Handling Text
Text exceeding 4096 characters must be split into smaller chunks before sending requests. Each chunk is processed independently, ensuring reliable synthesis without truncation or errors. This approach keeps each request within the strict character limit defined by the API specifications.
After receiving multiple audio files from the split chunks, you need to join them into a single continuous track. The audio files are generated sequentially, so maintaining the original order is crucial for coherent playback.
Split text into chunks
Divide your input text into segments of up to 4096 characters. Ensure that sentence boundaries are preserved where possible to avoid unnatural pauses during audio joining. This method handles long articles, books, or detailed documentation effectively.
Use your preferred programming language to slice the string. The API treats each segment as a separate synthesis job, so efficient batching can help manage the 60 requests per minute rate limit more smoothly.
- Maximum 4096 characters per request
- Preserve natural sentence breaks
- Handle long documents efficiently
Respect character limits
The limit includes spaces and punctuation. Exceeding it will cause the request to fail, though no charge is applied. Always validate your text length before sending the POST request to the /v1/audio/speech endpoint.
Short phrases may still take a few seconds to generate, while longer texts approach real-time speed. Keep your chunks optimized to minimize queue wait times under load.
- Count spaces and punctuation
- Failures are free
- Optimize for queue speed
Join audio files
Concatenate the returned audio files in the order of the original text chunks. Use a library like FFmpeg or your language’s audio toolkit to merge them seamlessly. This creates a single, continuous audio file for your end user.
Ensure the output format matches your requirements. Whether using mp3, wav, or opus, the joined file should play without gaps if the chunks were properly aligned.
- Maintain original chunk order
- Use FFmpeg or similar tools
- Ensure seamless playback
Choosing Voices
Selecting the right voice preset is critical for maintaining consistency in your application. We provide eight distinct presets, ranging from warm narrators to energetic promo styles, all capable of speaking any of the 23 supported languages. You must ensure the chosen voice aligns with your content’s intent, as each preset carries a specific tonal character.
For instance, use Aria or Luna for storytelling, while Felix suits promotional content. Note that any voice can speak any language; you do not need to match the voice’s origin language to the content language. However, you should explicitly set the language parameter for non-English Latin-script text to prevent incorrect language guessing.
Select appropriate preset
Choose a voice that matches your project’s tone. Our eight presets cover narrators, conversational, news, and documentary styles. Each voice is based on licensed recordings, ensuring high quality without licensing complexity. Remember, voices are language-agnostic, so you can use the same voice for English, Spanish, or Japanese content.
- Aria: warm, clear narrator
- Nova: bright, upbeat
- Luna: soft, storytelling
- Sage: calm, instructional
- Felix: energetic, promo
- Milo: friendly, conversational
Match tone to content
Align the voice character with your narrative needs. Atlas provides a neutral news tone, while Orion offers a deep documentary style. Felix adds energy to promotions. Mixing voices within a single project can work, but consistency usually yields a better user experience. Always verify the tone by listening to samples before committing to a long-form project.
Test different voices
Use your free trial credit to test multiple voices with your actual content. Generate short clips with different voices and compare them. Check how each voice handles punctuation and speed adjustments. This helps you identify which preset delivers the clearest audio for your specific text structure before scaling up to production usage.
Optimizing Costs
Cost efficiency is critical for indie projects. Since pricing is $0.01 per 1,000 characters, understanding your input size directly impacts your budget. Every space and punctuation mark counts toward this limit.
By monitoring usage and choosing the right technical approach, you can keep expenses predictable. This section covers how to manage character counts, select optimal audio formats, and reduce redundant processing.
Monitor character count
The API charges per 1,000 characters, including spaces. Long texts must be split into chunks of 4096 characters before sending. Accurate counting prevents unexpected charges from oversized requests.
You can estimate costs by multiplying your character volume by $0.00001. Failed requests are free, so retrying failed chunks does not incur additional fees.
- Count spaces and punctuation; they are billable characters.
- Limit each request to 4096 characters.
- Split long texts into multiple requests.
Use efficient formats
Choose mp3 or opus for smaller file sizes and faster transfers. These formats are ideal for web delivery and mobile apps where bandwidth matters. Use wav or flac only if you need uncompressed audio for editing.
Selecting the right format reduces data transfer costs and storage requirements without sacrificing necessary quality for your specific use case.
- Use mp3 or opus for efficient compression.
- Reserve wav or flac for high-quality editing needs.
- PCM is uncompressed and results in larger files.
Cache repeated audio
If you generate the same text frequently, store the resulting audio file locally. This avoids re-sending the same request, saving both characters and processing time. Caching is especially useful for UI prompts or static notifications.
Implement a simple key-value store using the input text as the key. This ensures you only pay for unique synthesis operations.
- Store generated audio files locally or in object storage.
- Use the input text as a cache key.
- Skip API calls for known, repeated phrases.
Error Handling
Robust error handling ensures your application remains responsive when the API experiences load or transient network issues. Understanding rate limits and retry logic prevents wasted requests and keeps your user experience smooth during peak usage periods.
Check rate limits
The API enforces a limit of 60 requests per minute per key. Before the first top-up, this limit drops to 10 requests per minute. Exceeding these limits will result in a 429 status code, so monitor your usage closely.
- 60 requests/minute after top-up
- 10 requests/minute for new accounts
- 429 error on exceedance
Handle network errors
Network instability can cause timeouts or connection drops. Always check the HTTP status code. A 5xx error indicates a server-side issue, while 4xx errors usually point to incorrect keys or invalid parameters. Failed synthesis returns a full refund.
Retry failed requests
Implement exponential backoff for transient errors. Since requests are processed sequentially, a busy queue may delay your request. Retry with a short delay if you receive a 503 Service Unavailable error. Do not retry immediately to avoid hammering the endpoint.
Advanced Features
Beyond basic synthesis, the API allows fine-tuning of audio characteristics through specific parameters. These features help you tailor the output to your project’s exact needs without requiring external processing.
By adjusting speed, language, and format, you ensure the generated audio integrates seamlessly into your application’s workflow, maintaining consistency across different content types.
Adjust speed parameter
The speed parameter accepts values between 0.25 and 4.0, allowing you to slow down narration for clarity or speed up promotional content. This adjustment is applied directly during synthesis, so the character count remains unchanged regardless of duration.
Be aware that significantly altering speed may affect the naturalness of the voice, especially at the extremes of the range.
- Minimum speed: 0.25x
- Maximum speed: 4.0x
- Default speed: 1.0x
Set explicit language
While the API guesses language from the script (defaulting to English for Latin text), explicitly setting the language field ensures accuracy for non-English Latin-script text or mixed-language inputs. This prevents mispronunciation by specifying the ISO code.
This is crucial for languages like Dutch or Norwegian, where context alone might not suffice for correct synthesis.
- Use ISO 639-1 codes
- Overrides automatic detection
- Prevents language guess errors
Choose output format
You can select the response_format from mp3, wav, opus, flac, or pcm. Choose based on your application’s requirements: MP3 for small file sizes, WAV for high quality, or OPUS for efficient compression.
Note that format choice does not affect pricing; all formats are charged at the same rate per character.
- mp3: Standard compression
- wav: Lossless quality
- opus: Efficient size
- flac: Lossless compression
- pcm: Raw audio data

Testing Strategy
Testing ensures your integration works before committing funds. Start by using the $0.50 free trial credit available to Google sign-ins to verify basic connectivity and audio generation without risking your main balance.
Use free trial credit
The trial provides approximately 50,000 characters valid for seven days. This allows you to validate the endpoint, verify the API key format, and confirm that audio files are returned correctly in your preferred format before purchasing top-up credits.
Test edge cases
Verify how the API handles inputs near the 4096-character limit and ensure your client code correctly splits longer texts into chunks. Test different response formats (mp3, wav, opus, flac) and speed variations (0.25–4.0) to confirm they produce the expected audio output.
- Check boundary conditions for text length
- Validate all supported response formats
- Test speed adjustments across voices
Verify audio quality
Listen to generated audio to ensure the voice preset matches your content’s tone. Confirm that language detection works correctly for non-English Latin text by explicitly setting the language parameter, and check that the synthetic watermark is present in the final file.
Deployment
Once you have validated your integration with the trial credit, switch to your primary production key. Ensure your application uses the correct base URL and handles authentication securely. This step moves you from testing to live usage with your funded account.
Switch to production key
Replace your test credentials with the key generated from your account dashboard. Verify that your code points to the production API endpoint. This ensures all generated audio files are billed correctly against your main balance.
Monitor usage
Keep an eye on your character count and request rate. The API allows 60 requests per minute per key. Exceeding this limit will pause your requests until the window resets. Regular monitoring helps prevent unexpected interruptions in your audio generation pipeline.
Top up as needed
Your balance does not expire, so you can add funds whenever convenient. Use USDT on the TRON network for automatic crediting within minutes. There are no monthly subscriptions, so you only pay for what you generate.
Troubleshooting
When integration stalls, start by checking the response status codes. Rate limits (60 requests/minute) and network timeouts are the most common culprits. Failed synthesis requests are free, so verify your balance reflects this correctly if charges seem unexpected.
Common API errors
HTTP 429 indicates you have hit the 60 requests per minute limit. If you are testing heavily, consider adding small delays between requests. Ensure your API key is active and correctly formatted in the Authorization header.
- Check for 429 status codes immediately.
- Verify key format: Bearer tts-...
Audio playback issues
If the audio file appears corrupted, check the response format. Ensure you are handling binary data correctly in your SDK. Remember that generated files contain inaudible watermarks; this is normal and does not affect playback quality.
Language detection fixes
If the voice sounds unnatural, the language might be guessed incorrectly. For Latin-script text that isn't English, explicitly set the language parameter. This ensures the correct voice model is applied for languages like Dutch or German.
- Explicitly set language for non-English Latin text.
- Default language is English for Latin script.
Best Practices
A well-structured integration ensures reliable audio generation without unexpected failures. By following established conventions, you minimize debugging time and maintain consistent output quality across your indie projects.
Keep text concise
Limit each request to 4096 characters to avoid processing delays. If your content exceeds this, split the text into logical segments and join the resulting audio files. This approach keeps latency predictable and prevents timeouts.
Use consistent voices
Stick to one voice preset for a single narrative to maintain auditory continuity. Switching voices mid-sentence can disrupt the listener’s experience. Test your chosen voice with sample text before integrating it into your main workflow.
Document your integration
Record your base_url, selected model, and voice presets in your project’s README. Note any specific speed or language settings used. This helps other developers understand your configuration and simplifies future maintenance or scaling.
Resources
Complete technical details, endpoint definitions, and parameter descriptions are available in the full API documentation. This resource serves as the primary reference for understanding request structures, response formats, and error codes specific to the VocalForge engine.
For quick local testing, you can use the provided curl examples to verify connectivity and authentication without writing full application code. These snippets demonstrate the standard POST request to the speech endpoint with minimal configuration.
While we do not maintain an official SDK, the OpenAI Python and Node.js libraries work seamlessly by simply adjusting the base URL. The GitHub repository for the OpenAI SDK contains the necessary code structures for integration.
API documentation link
The complete reference guide covers all endpoints, including voice listing and model details. It provides exhaustive lists of supported languages, formats, and pricing tiers for accurate integration planning.
Curl examples
Copy-paste ready commands for generating speech with different voices and formats. These examples illustrate the exact JSON body structure required for successful synthesis requests.
SDK GitHub repo
The OpenAI SDK repository supports our API with minor configuration changes. Use the standard libraries for reliable HTTP handling and JSON parsing in your preferred language.
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.
