Frequently asked questions
What is the base URL?
The API base URL is https://api.n9999.info/v1. You send POST requests to https://api.n9999.info/v1/audio/speech to generate audio. Other endpoints include GET /v1/voices for details and GET /v1/models for model information. Use this base URL for all API interactions.
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email. Your account page displays your active API key, balance, and usage stats. You can issue a new key at any time, which immediately invalidates the previous one. One active key is allowed per account.
Does it work with OpenAI SDK?
Yes, the request shape matches the OpenAI speech endpoint. Change the OpenAI SDK's base_url to https://api.n9999.info/v1 and use your site key. This allows you to use official OpenAI SDKs directly without needing a custom library or wrapper for integration.
What languages can I use?
We support 23 languages including Arabic, Chinese, English, French, German, Japanese, and Spanish. Any voice can speak any supported language. If you do not set the language, it is guessed from the script, defaulting to English for Latin text.
How do I handle errors?
Failed requests are free; the charge is returned in full if synthesis fails. Check the response status code to determine if the request succeeded or failed. You can retry failed requests without incurring additional costs, ensuring you only pay for successful audio generation.
What are the rate limits?
The limit is 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so under load, your request may wait in a queue. Monitor your usage to avoid hitting these limits.
Can I use SSML?
No, SSML is not supported. The API accepts plain text input up to 4096 characters. You cannot use phoneme dictionaries or custom pronunciation lexicons either. Control pacing and emphasis by adjusting the speed parameter or splitting text manually if needed.
Is streaming supported?
No, streaming or WebSocket support is not available. The API returns the complete audio file in the response after processing. You receive the full audio file once synthesis is complete, rather than receiving partial audio chunks in real-time during generation.
How do I change my key?
You can issue a new API key from your account page at any time. When you generate a new key, the old one stops working immediately. This allows you to rotate keys securely without downtime, ensuring your previous key is invalidated right away.
What formats are supported?
You can choose from mp3, wav, opus, flac, and pcm formats. Specify the desired format in the response_format field of your request. This allows you to select the best audio quality or file size for your specific blog or WordPress workflow needs.
How long is the input text?
The maximum input length is 4096 characters per request. For longer texts, split them into parts of this size and join the resulting audio files. Spaces and punctuation count toward the character limit, so plan your text segmentation accordingly for optimal results.
Do I need a specific SDK?
No specific SDK is required. You can use the official OpenAI SDK by changing the base URL, or use plain HTTP requests. We do not provide a proprietary SDK, so you are free to use any standard HTTP client compatible with JSON.
Can I use custom voices?
No, custom voice cloning is not offered. You must choose from eight preset voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. These voices are based on licensed recordings.
How do I top up?
Top up using USDT on the TRON network (TRC-20). The minimum top-up amount is $5. Credits are added automatically within minutes after the transfer. We do not accept cards, PayPal, or subscriptions, and your balance does not expire after topping up.
First request
curl
curl https://api.n9999.info/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.n9999.info/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.n9999.info/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 |
Getting Your API Key
To start using the ScriptEcho API, you must first create an account on our /get-api-key/ page. This is the only place where your API key and billing details are managed for this specific storefront.
You can choose between a quick Google sign-up or a standard email and password registration. The method you select determines whether you receive the initial free trial credit.
Google sign-up process
Selecting Google sign-up provides an immediate $0.50 credit (approx. 50,000 characters) valid for 7 days. This trial is automatic upon account creation and allows you to test the API without immediate payment.
- Instant access to $0.50 trial credit
- Valid for 7 days from sign-up
- No payment method required upfront
Email and password setup
Creating an account with email and password does not include the free trial credit. You will need to top up your balance via USDT (TRC-20) to begin making requests, starting at a minimum of $5.
- No automatic trial credit
- Requires USDT top-up to start
- Standard credential-based access
Key regeneration policy
Each account holds one active API key at a time. You can regenerate your key at any time via the dashboard. The old key becomes invalid immediately upon issuing a new one, ensuring secure access control.
Base URL and Endpoints
The API base URL for all endpoints is https://api.n9999.info/v1. This structure ensures compatibility with standard HTTP clients and allows developers to switch between environments or SDKs by simply changing the base URL.
All requests must include the Authorization header with your unique API key. The base URL serves as the root for both the speech generation endpoint and the metadata endpoints that list available voices and models.
Speech endpoint URL
Send POST requests to /v1/audio/speech with your text payload. The endpoint accepts JSON bodies containing the model, input text, voice selection, and optional parameters like speed or language. Audio files are returned directly in the response body.
- Endpoint: POST https://api.n9999.info/v1/audio/speech
- Accepts JSON body with model, input, voice, and format
Voices list endpoint
Retrieve the full list of available voices, languages, and formats by sending a GET request to /v1/voices. This endpoint provides essential metadata for building your audio generation workflows, including voice descriptions and supported languages.
- Endpoint: GET https://api.n9999.info/v1/voices
- Returns voice presets, languages, and format options
Models endpoint
Check available models by sending a GET request to /v1/models. The API currently supports two models: tts-1 and tts-1-hd, both using the same engine and pricing structure. This endpoint helps verify model availability before generating speech.
- Endpoint: GET https://api.n9999.info/v1/models
- Returns model details and pricing information
Request Parameters
The API accepts two model variants, tts-1 and tts-1-hd, which share the same engine and pricing structure. You specify the desired model in the JSON body to control the synthesis quality, with no additional cost difference between the standard and high-definition options.
Model selection
Both tts-1 and tts-1-hd use identical underlying processing. Select the model that best fits your quality needs without worrying about variable pricing tiers, as both are billed at the standard character rate.
Input text length
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer content, split your text into chunks and join the resulting audio files to maintain coherence.
- Maximum limit: 4096 characters per request.
- Includes spaces and punctuation in the count.
- Split and join for longer blog posts or articles.
Voice preset selection
Choose from eight distinct voice presets, such as aria for warm narration or atlas for neutral news delivery. You can also optionally specify a language ISO code to ensure correct pronunciation for non-English Latin script text.
- 8 presets: aria, nova, luna, sage, felix, milo, atlas, orion.
- Supports optional
languageparameter for precise control. - Default language detection applies if not specified.
Response Formats
Select your preferred audio format via the response_format parameter. Options include mp3, wav, opus, and flac. Each format serves different integration needs, from web playback to archival storage.
MP3 output
MP3 is the default and most widely supported format. It offers a good balance between file size and audio quality, making it ideal for web-based audio players and general consumption.
WAV output
WAV provides uncompressed, high-fidelity audio. Use this format when you need raw audio data for editing or when your downstream processing pipeline requires lossless input without decoding overhead.
Opus and FLAC support
Opus delivers excellent compression, while FLAC offers lossless compression for archival purposes. Both formats are fully supported, allowing you to optimize for bandwidth or quality based on your specific workflow requirements.
Error Handling
The API returns standard HTTP status codes to indicate the result of your synthesis request. Understanding these responses allows your application to handle failures gracefully without interrupting the user experience. Most errors are immediate, though rate limits may require brief waiting periods before retrying.
This guide details the three primary error categories you will encounter: authentication issues, invalid input parameters, and rate limit exceedances. Each response includes a clear error message to help you debug quickly.
Rate limit errors
Requests return a 429 status when you exceed 60 requests per minute (or 10 before the first top-up). New accounts starting without top-up are limited to 10 requests per minute. Under load, requests may queue, but failed attempts due to limits do not incur charges.
Retry after the specified Retry-After header duration. Since requests process sequentially, high volume may increase latency.
- HTTP 429 Too Many Requests
- Limit: 60 req/min (standard), 10 req/min (new accounts)
- No charge for failed requests
Invalid input errors
A 400 status indicates missing or malformed parameters. The input text must not exceed 4096 characters per request. Ensure the voice matches one of the 8 presets and the model is either tts-1 or tts-1-hd.
Invalid languages or unsupported formats also trigger this error. Check the request body for syntax errors or unsupported character encodings before retrying.
- HTTP 400 Bad Request
- Max input: 4096 characters
- Invalid voice or model ID
Authentication errors
A 401 status occurs if the Authorization header is missing or contains an invalid key. Keys must be formatted as Bearer tts-.... Regenerating a key immediately invalidates the previous one.
Ensure you are using the correct base URL and that your key has not been revoked. Failed authentication attempts do not consume your character balance.
- HTTP 401 Unauthorized
- Missing or invalid Bearer token
- Key invalidated upon regeneration

OpenAI SDK Integration
Integrate ScriptEcho’s TTS API using the official OpenAI SDKs with a simple base URL change. Point your client to https://api.n9999.info/v1 and use your Bearer token. The request shape matches the standard speech endpoint, allowing immediate adoption without rewriting core logic.
Base URL configuration
Set the base_url parameter to https://api.n9999.info/v1 in your OpenAI SDK client initialization. This redirects all standard API calls to our infrastructure while maintaining the familiar request structure. Ensure your API key starts with tts-.
SDK compatibility
The official OpenAI SDKs work out of the box because we mirror the exact JSON schema for the speech endpoint. You can use any language supported by the OpenAI SDK, such as Python, JavaScript, or Go, without needing a custom wrapper or proprietary client library.
- Uses standard OpenAI JSON request shapes
- Compatible with Python, Node.js, Go, and other OpenAI SDK languages
- No custom client library required
Code examples
Initialize the client with your API key and the custom base URL. Then call the speech endpoint with your desired voice, model, and input text. The response returns the audio binary directly, which you can save as an MP3, WAV, or other supported format.
- Initialize client with
base_url=https://api.n9999.info/v1 - Pass
model,input, andvoiceparameters - Receive binary audio data in response
Rate Limits
Understanding request throughput is essential for managing character volume efficiently. Our API enforces a standard limit of 60 requests per minute per active key, ensuring stable performance for most integration patterns. This cap applies uniformly regardless of text length or voice selected.
For new accounts without a top-up, the limit is reduced to 10 requests per minute. This lower threshold helps manage initial load while you test connectivity. Once you add USDT, your quota automatically increases to the standard 60 requests per minute.
60 requests per minute
After topping up your account with USDT (TRC-20), you can send up to 60 requests every minute. This allows for rapid processing of long texts split into chunks. Each request processes sequentially, so actual throughput depends on server load.
- Standard limit: 60 requests/minute
- Applies per API key
- Unlocks after first top-up
10 requests before top-up
Accounts created without a Google sign-up bonus or those that have exhausted their trial credit start with a 10 requests per minute limit. This ensures stability for free-tier usage. You can upgrade at any time by sending a minimum $5 USDT transfer.
- Default for new email accounts
- Upgradeable via TRC-20
Queue behavior
Requests are processed one after another. Under heavy load, a request may wait in a queue before synthesis begins. Short phrases typically take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second). Be mindful of these delays when building tight loops.
cURL Examples
Use cURL to test your API key and verify voice selection before building your WordPress plugin or blog automation script. The following examples demonstrate the standard request structure for generating audio files directly from the command line.
Basic request example
This command sends a short text to the TTS engine using the default model. Replace YOUR_API_KEY with your key from the dashboard.
- curl -X POST https://api.n9999.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"tts-1","input":"Hello world","voice":"nova","response_format":"mp3"}' \ -o speech.mp3
Advanced parameters
Include specific language codes and speed adjustments for precise control. This example uses the HD model with a slower speaking rate for clarity.
- curl -X POST https://api.n9999.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"tts-1-hd","input":"Precise narration","voice":"sage","response_format":"wav","speed":0.8,"language":"en"}' \ -o narration.wav
Audio file download
The API returns the audio file directly in the response body. Use the -o flag to save the output immediately to your local directory for integration into your blog's media library.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Each voice maintains a consistent accent profile regardless of the language selected.
23 languages
Any voice speaks any of these languages.
