Frequently asked questions
How do I generate an API key?
Navigate to /get-api-key/ and sign up using Google or an email/password combination. The dashboard displays your active API key, balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one.
What is the correct base URL for the OpenAI SDK?
Set your SDK base URL to https://api.neo79ok.com/v1. The request body shape matches the OpenAI speech endpoint exactly, allowing you to use the official OpenAI SDKs directly by simply changing the base URL and providing your NarrativeEngine API key.
Does the API support streaming audio chunks?
No. The API returns the complete audio file in the response body. There is no streaming, WebSocket, or real-time partial audio support. You receive the full file only after the synthesis process completes successfully.
How do I specify the language in the request?
Include the optional language field with an ISO code in your JSON body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting it ensures correct pronunciation for non-English languages.
What happens if I send text longer than 4096 characters?
The API accepts up to 4096 characters per request. For longer texts, you must split the content into parts of 4096 characters or fewer, generate audio for each part, and join the resulting audio files to create the final output.
Can I use the API with Python or Node.js?
Yes. Since the request shape matches the OpenAI speech endpoint, you can use the official OpenAI SDKs for Python or Node.js. Simply configure the client to point to https://api.neo79ok.com/v1 and use your NarrativeEngine API key for authentication.
What is the maximum speed value I can set?
The speed parameter accepts values between 0.25 and 4.0. This allows you to adjust the playback rate of the generated audio from very slow to four times normal speed, depending on your specific use case requirements.
Is the response format always MP3?
No. You can specify the response_format field in your request to receive audio in mp3, wav, opus, flac, or pcm formats. The API does not enforce a default format; you must explicitly choose the format that best fits your audiobook workflow or application requirements.
How do I handle rate limit errors?
The rate limit is 60 requests per minute per key. Requests are processed sequentially, so under load they may wait in a queue. Implement exponential backoff in your client code to retry requests after a short delay. This handles delays gracefully without assuming immediate rejection errors.
Does the API return a watermark in the audio file?
Yes. Every generated audio file carries an inaudible watermark that marks it as synthetic speech. We do not specify the exact technical implementation of this watermark, such as whether it is embedded within the audio data or absent from file metadata and response headers.
Can I use custom SSML tags?
No. The API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. You provide plain text input, and the engine synthesizes it using the selected voice preset without any additional markup or control tags.
How do I rotate my API key?
Issue a new key from your account dashboard at any time. When you generate a new key, the old one stops working immediately. This allows for instant rotation without downtime, ensuring secure access management for your applications.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and price. The distinction lies solely in the model identifier: tts-1 for standard synthesis and tts-1-hd for high-definition output. Pricing remains identical at $10 per million characters. Choose tts-1-hd when higher audio fidelity is required, knowing the cost and request structure remain unchanged.
Do I need to install any dependencies?
No specific NarrativeEngine SDK is required. You can use the official OpenAI SDKs for your preferred language or make plain HTTP requests. Just ensure your client library supports JSON payloads and can handle the specified base URL configuration.
First request
curl
curl https://api.neo79ok.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.neo79ok.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.neo79ok.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
Authentication relies on a single active Bearer token sent in the Authorization header. This key identifies your account and tracks usage against your balance. Keep the token secure, as it grants full access to your synthesis quota.
Bearer token format
Include the header Authorization: Bearer tts-... with every API request. The token string begins with the prefix tts- followed by unique alphanumeric characters assigned to your account.
Key rotation policy
Issue a new key via the dashboard at any time. The system immediately invalidates the previous token, ensuring only the latest key remains active. There is no manual revoke step required; the old key stops working the moment the new one is generated.
Single active key rule
Only one key is valid per account simultaneously. If you generate a new key, the old one ceases to work instantly. Manage your keys through the account dashboard to maintain secure access without needing complex rotation scripts.
Endpoints Overview
The API exposes three primary HTTP endpoints for integration. The speech generation endpoint handles synthesis requests, while the voices and models endpoints provide metadata for configuration. All endpoints use standard JSON bodies and Bearer token authentication.
These endpoints allow you to retrieve available voice presets, verify model identifiers, and generate audio files. The design mirrors the OpenAI speech endpoint, ensuring compatibility with existing SDKs by simply adjusting the base URL.
Speech generation endpoint
Use POST to /v1/audio/speech to convert text into audio. The request body accepts model, input, voice, response_format, and speed parameters. The API returns the audio file directly in the response.
Long texts must be split into chunks of 4096 characters. Each chunk generates a separate audio file that you must join client-side.
- Endpoint: POST /v1/audio/speech
- Body: JSON with model, input, voice, response_format, speed
Voices list endpoint
GET /v1/voices returns the list of 8 available voice presets, their associated languages, and supported audio formats. This endpoint helps you select the correct voice ID for your synthesis requests.
Each voice is associated with a specific gender and tone, such as 'aria' for narration or 'atlas' for news-style delivery.
- Endpoint: GET /v1/voices
- Returns: voice ID, name, gender, language support
Models list endpoint
GET /v1/models lists the available synthesis engines. Currently, only 'tts-1' and 'tts-1-hd' are supported. Both models use the same underlying engine and pricing structure.
Selecting either model results in the same audio output quality and cost. Use 'tts-1-hd' if your client application requires the specific model identifier for compatibility.
- Endpoint: GET /v1/models
- Models: tts-1, tts-1-hd

Request Parameters
Configure the synthesis engine and payload constraints to ensure efficient audiobook generation. The API accepts standard parameters to define the audio output quality, character limits, and voice characteristics for each request.
Model selection
Select between tts-1 for standard quality or tts-1-hd for high-definition audio. Both models use the same underlying engine and pricing structure, allowing you to switch based on production needs without changing your billing rate.
Input text limits
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer chapters, split the text into segments and concatenate the resulting audio files.
Voice and language settings
Choose from 8 presets (e.g., aria, atlas) to match your narrative tone. Specify the language ISO code to ensure correct pronunciation, as the API guesses Latin-script text as English by default.
- 8 voice presets available
- Supports 23 languages
- Automatic language detection for Latin script
Response Formats
The API returns the synthesized audio directly in the HTTP response body. This straightforward delivery method allows your integration to handle audio files without additional parsing steps.
Supported audio codecs
You can specify the output format using the response_format parameter. The API accepts mp3, wav, opus, flac, and pcm. Choose the codec that best fits your audiobook production pipeline or distribution requirements.
JSON response structure
The response includes metadata alongside the audio data. While the exact structure may vary, the response confirms the request status and character usage for billing purposes.
Audio file delivery
The generated audio is delivered as the response body. This eliminates the need for polling or separate download endpoints. You can directly save the binary stream to your local storage or upload it to your hosting provider.
Rate Limits and Throttling
The API enforces a hard limit of 60 requests per minute per active key. This cap applies to all synthesis calls regardless of text length, ensuring stable throughput for batch audiobook processing.
60 requests per minute
Each request consumes one unit of the minute window. If you send 61 requests within a 60-second window, the 61st request will be rejected. Ensure your client logic respects this limit to avoid unnecessary retries.
Initial limit before top-up
Accounts without a funded balance start with a reduced limit of 10 requests per minute. This applies immediately upon creation. Once you add USDT (TRC-20) and the balance is credited, the limit increases to the standard 60 requests per minute.
Queue behavior under load
Requests are processed sequentially. Under high load, a request may wait in a queue before synthesis begins. This can extend total generation time, especially for long texts split into multiple chunks. There is no guaranteed SLA for queue duration.

Error Handling
When synthesis fails, the request incurs no charge and any billed amount is returned in full. This applies to all failures, ensuring you only pay for successfully generated audio segments. The API does not store the failed audio, keeping your storage costs minimal during high-volume audiobook production runs.
Common HTTP status codes
The API returns standard HTTP status codes to indicate the result of your request. While specific codes for malformed JSON or missing fields are not explicitly defined, a 401 error indicates authentication issues, and a 500 error signals a server-side synthesis failure. These failures are free of charge.
Invalid voice ID
If you provide a voice ID not found in the /v1/voices list, the request will fail. Ensure you use one of the eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Using an invalid ID prevents audio generation but does not incur a charge.
Text length exceeded
Each request is limited to 4096 characters of input text. If your text exceeds this limit, the request will fail. To handle longer audiobook chapters, split your text into parts of up to 4096 characters and join the resulting audio files in your workflow.
OpenAI SDK Integration
The NarrativeEngine API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing client libraries with minimal configuration changes. By adjusting the base URL and providing your specific API key, you can leverage the familiar OpenAI SDK for Python or Node.js to handle TTS requests seamlessly.
Base URL configuration
Set your client’s base URL to https://api.neo79ok.com/v1. This ensures all requests route through our infrastructure while maintaining compatibility with OpenAI’s endpoint paths.
Client initialization
Initialize the OpenAI client using your NarrativeEngine key. Pass the custom base URL to ensure requests target the correct API instance without requiring a full library rewrite.
Parameter mapping
Map standard parameters like model ("tts-1" or "tts-1-hd"), voice, and input directly. The SDK handles JSON serialization, sending your text and voice settings to the synthesis engine efficiently.

Curl Example for Quick Start
The most direct way to verify your API key and generate your first audiobook segment is via the command line. This approach bypasses SDK dependencies and confirms that your authentication and network configuration are correct before integrating into your publishing pipeline.
You can test the synthesis engine with a short text sample to validate latency and audio quality. The following command sends a standard POST request to the speech endpoint, requiring only your bearer token and the desired parameters.
Command structure
Use the curl utility to send a JSON payload to the /v1/audio/speech endpoint. Ensure your request includes the correct base URL and applies the Bearer authorization header with your unique API key.
Headers and body
The request body must contain the model (e.g., tts-1), input text (under 4096 characters), and voice preset. Set the Authorization header to Bearer tts-your-key-here. Omitting the language tag allows automatic script detection, though specifying it ensures accuracy for non-English text.
Output redirection
Redirect the binary audio output to a file using the -o flag. This saves the generated MP3 or WAV file directly to your local directory for immediate review or batch processing.
curl -X POST "https://api.neo79ok.com/v1/audio/speech" \ -H "Authorization: Bearer tts-123abc" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Hello world.", "voice": "aria"}' \ -o output.mp3
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Master the art of self-publishing to launch your audiobooks and secure lasting freelance success.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- W3C WAI: making audio and video accessible
- FFmpeg documentation
- TRON developer hub: TRC-20
- LibriTTS-R corpus (OpenSLR 141)
- LibriVox public-domain audiobooks
- openai-node on GitHub
- OpenAI API reference: create speech
- IETF RFC 7845: Ogg Opus
- Tether (USDT)
- Python documentation
- Creative Commons Attribution 4.0
