Frequently asked questions
What is the API endpoint URL?
The API endpoint is POST https://api.playnn4.com/v1/audio/speech. You send a JSON body containing the text, voice, model, and other parameters to this URL to receive the generated audio file.
Which SDKs are compatible?
The request shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.playnn4.com/v1 and using your site-specific API key.
How do I set the language explicitly?
Pass the optional 'language' field with an ISO code in your request. If omitted, the system guesses the language from the script, defaulting to English for Latin text.
What happens if I exceed the rate limit?
You are limited to 60 requests per minute per key. Requests are processed sequentially, so exceeding the limit or high load may cause your request to wait in a queue.
Is there an SDK for mobile devices?
No. There is no official mobile SDK. You can use the OpenAI SDK or plain HTTP requests, which work on any platform that supports standard network calls.
Can I use the API with Python?
Yes. Since the API follows the OpenAI request shape, you can use the official OpenAI Python SDK by configuring the base_url to https://api.playnn4.com/v1.
How do I handle long texts?
Split your text into parts of up to 4096 characters. Generate audio for each part separately, then join the resulting audio files to create the final output.
What is the maximum text length?
The maximum text length is 4096 characters per request. This limit applies to each individual API call you make to the speech endpoint.
Do I need to install a special library?
No special library is required. You can use standard HTTP requests or the official OpenAI SDK, which is widely available for most programming languages.
Is the API documentation public?
Yes, the documentation is public. You can find details on endpoints, parameters, and examples at https://playnn4.com/docs/ to help you integrate the service quickly.
Can I use the same key for multiple projects?
Yes. Each account has one active key that can be used across multiple projects. You can issue a new key at any time, which invalidates the old one immediately.
What format is the audio returned in?
The API returns audio in mp3, wav, opus, flac, or pcm formats. You specify the desired format using the 'response_format' field in your request body.
Does the API support SSML?
No. The API does not support SSML. It accepts plain text input and does not offer phoneme dictionaries or custom pronunciation lexicons.
How do I authenticate requests?
Include your API key in the Authorization header as 'Bearer tts-...'. This key is generated when you sign up and is required for all requests.
First request
curl
curl https://api.playnn4.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.playnn4.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.playnn4.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 |
Get Your API Key
Create your account at https://playnn4.com/get-api-key/ using Google Sign-In or an email and password combination. This process is specific to the playnn4.com storefront. Once registered, you receive immediate access to your dashboard.
After signing up, locate your unique Bearer token in the account panel. This key authenticates all requests sent to https://api.playnn4.com/v1. Keep this token secure, as it is the only credential required for API access.
Copy Your Bearer Token
Your API key appears as a string starting with 'tts-'. Copy this value and paste it into the Authorization: Bearer <key> header of your HTTP requests. Each account holds one active key at a time.
Key Management
Generate a new key at any time via the dashboard. The previous key becomes invalid immediately upon issuance, ensuring tight control over access. There is no limit to how often you can rotate keys.
Keys are tied to your usage balance and rate limits. You can view current usage and character counts directly on the key management page.
- Rotate keys instantly if compromised.
- One active key per account.
- Old keys stop immediately upon new issuance.
Sign Up on /get-api-key/
Visit the registration page to begin. Accounts created with Google receive a $0.50 trial credit valid for 7 days. Email-based accounts start with zero balance.
Top-ups are processed via USDT (TRC-20) on the TRON network. Minimum deposit is $5, and credits appear within minutes.
- Google sign-up includes trial credit.
- Email sign-up requires manual top-up.
- USDT TRC-20 payments only.
Quickstart: First Request
Generate your first audio file by sending a POST request to the speech endpoint. You need a valid Bearer token from your account dashboard and a text string under 4,096 characters. The API returns the audio file directly in the response body, allowing immediate playback or saving to your server.
This quickstart demonstrates a standard request using the tts-1 model. Ensure your voice parameter matches one of the eight available presets, such as nova or atlas, to define the speech style. The system handles synthesis asynchronously, so you may experience slight delays during high load.
cURL Example
Use this command to generate speech. Replace YOUR_API_KEY with your actual key from the /get-api-key/ dashboard.
```bash curl -X POST "https://api.playnn4.com/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello from Narrify", "voice": "nova", "response_format": "mp3"}' \ --output speech.mp3 ```
JSON Body Structure
The request body is a JSON object containing the essential parameters for synthesis.
```json { "model": "tts-1", "input": "Your text here", "voice": "nova", "response_format": "mp3", "speed": 1.0 } ```
- model: "tts-1" or "tts-1-hd" (same price)
- input: string, max 4,096 characters
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, or pcm
- speed: float between 0.25 and 4.0
- language: optional ISO code
Response Format
On success, the API returns the audio file directly in the response body with the appropriate content type (e.g., audio/mpeg). Failed requests return an error JSON object and do not consume your character balance.
If the synthesis completes, you can save the binary output to a file or stream it directly to your audio player. The file size depends on the format and duration, with MP3 providing the smallest footprint for high-volume YouTube uploads.
OpenAI SDK Integration
Narrify’s API mirrors the OpenAI speech endpoint structure, allowing you to leverage existing OpenAI SDKs with minimal configuration changes. By simply updating the base_url to https://api.playnn4.com/v1, your integration remains compatible while utilizing our TTS engine.
This approach lets agencies maintain their current codebases without rewriting HTTP clients. You can continue using familiar libraries while accessing our voice presets and pricing directly through standard OpenAI-compatible requests.
Change base_url
Point your SDK client to https://api.playnn4.com/v1 instead of the default OpenAI endpoint. This single change redirects all synthesis requests to our infrastructure while preserving the request payload format.
Use Official SDKs
You can use the official OpenAI Python, Node.js, or other language SDKs. Pass your Narrify API key in the Authorization header, and the SDK will handle authentication and JSON serialization automatically.
Compatibility Notes
The request shape matches the OpenAI audio/speech endpoint exactly. Ensure you use tts-1 or tts-1-hd as the model value. Note that custom parameters specific to other TTS providers may not apply here.
- Supports standard OpenAI SDK versions
- No additional client libraries required
Supported Models
Narrify offers two model variants, tts-1 and tts-1-hd, which utilize the same underlying synthesis engine. You can select either model in your API requests without any difference in processing performance, but the output quality differs. Both models handle the full range of supported voices and languages effectively.
tts-1 Standard
The tts-1 model is the default option for standard text-to-speech generation. It provides clear, natural-sounding audio suitable for most YouTube content, from narrations to voiceovers. Use this model for general-purpose audio production where consistent quality is required.
tts-1-hd High Quality
The tts-1-hd model delivers high-definition audio output. Despite the "HD" designation, the generation speed and engine behavior remain identical to the standard model.
Same Price for Both
Both models are priced identically at $10 per 1 million characters. There is no cost premium for choosing tts-1-hd. You can switch between models in your requests freely to test which best fits your specific video style without affecting your billing.
Voice and Language Parameters
Select from eight distinct voice presets optimized for consistent narration styles. Female voices include Aria, Nova, Luna, and Sage, while male options feature Felix, Milo, Atlas, and Orion. Each voice maintains a specific tonal character, from warm narration to deep documentary styles, suitable for long-form YouTube content without requiring custom cloning.
Selecting a Voice
Pass your chosen voice identifier (e.g., 'aria', 'nova') in the voice parameter. All eight voices support the full range of 23 languages, allowing you to maintain brand consistency across different language versions of your videos.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
Setting Language Code
While the API guesses language from script (defaulting to English for Latin text), explicitly setting the language ISO code ensures accuracy for non-English Latin scripts like Dutch or Portuguese. Supported languages include Arabic, Chinese, French, German, Japanese, Korean, Spanish, and others listed in the API docs.
Speed Adjustment
Adjust playback speed between 0.25 and 4.0 to fit precise video timelines. Slower speeds enhance clarity for instructional content, while faster speeds suit rapid-fire commentary. This parameter applies uniformly across all voices and formats without affecting audio quality.

Response Formats
To generate audio, send response_format as mp3, wav, opus, flac, or pcm in your JSON body. The API returns the binary audio file directly in the response, ready for immediate use or storage.
Choose mp3 for balanced file size and compatibility, or wav for uncompressed, lossless quality. Other formats like opus and flac offer specific compression trade-offs, while pcm provides raw audio data for custom processing pipelines.
MP3 Compression
MP3 is the default choice for most YouTube content workflows due to its small file size and universal compatibility. It provides sufficient audio quality for voiceovers while minimizing bandwidth costs during transfer and storage.
WAV Lossless
WAV delivers uncompressed audio, preserving every detail of the generated speech. This format is ideal for professional post-production where you need to apply further effects or ensure no generative artifacts are lost during editing.
OPUS, FLAC, PCM Options
OPUS offers efficient compression for web delivery, while FLAC provides lossless compression for archival purposes. PCM returns raw uncompressed samples, useful for direct audio processing without decoding overhead.
Rate Limits and Errors
Rate limits ensure consistent synthesis quality for high-volume YouTube workflows. Your API key allows 60 requests per minute once funded, with a lower initial threshold for new keys before the first top-up. Requests are processed sequentially, so long texts may queue briefly.
60 Requests Per Minute
After your first top-up, you can send up to 60 requests per minute. This limit applies per API key, allowing agencies to batch process multiple video scripts efficiently without waiting for manual approval.
10 Requests Per Minute (Initial)
New keys start with a limit of 10 requests per minute. This applies until you complete your first top-up of at least $5 USDT on the TRON network. The limit lifts automatically within minutes of confirmation.
Handling 429 Errors
If you exceed the limit, the API returns a 429 status code. Implement exponential backoff in your integration to retry automatically. Failed synthesis requests do not count against your character allowance.
Since requests are processed one after another, high load may cause slight delays even within limits. Monitor your dashboard for real-time usage stats.
Troubleshooting
Common issues usually stem from input limits or authentication. This guide covers the three most frequent errors encountered during high-volume YouTube voiceover generation.
Invalid API Key
Ensure your key starts with tts- and is sent in the Authorization: Bearer header. If you issued a new key, the previous one stops immediately.
Text Too Long
The API accepts up to 4096 characters per request. Split longer scripts into parts and join the resulting audio files to maintain continuity.
Unsupported Language
If your text uses a script outside the 23 supported languages (e.g., Vietnamese or Ukrainian), the engine may fail. Explicitly set the language parameter for Latin-script texts to avoid defaulting to English.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Longer texts are split into parts and joined, which adds minimal overhead.
23 languages
Any voice speaks any of these languages.
