Frequently asked questions
How do I get an API key?
Sign up on https://9ani.cc/get-api-key/ using Google or email. Your key starts with 'tts-'. Accounts are per site. You receive a free trial credit of $0.50 if you sign in with Google, valid for 7 days. Email-based accounts start without trial credit. You can issue a new key anytime, which instantly invalidates the old one.
Can I use the OpenAI SDK with this API?
Yes. The request shape matches the OpenAI speech endpoint. Change the SDK's base_url to https://api.9ani.cc/v1 and use your site's key. This works with official OpenAI SDKs. You do not need our own SDK, as we do not provide one. Use plain HTTP or the OpenAI library to send text and receive audio files.
What is the base URL for the API?
The API base URL is https://api.9ani.cc/v1. Send POST requests to https://api.9ani.cc/v1/audio/speech. Use GET /v1/voices to list available voices, languages, formats, and prices. Use GET /v1/models to check model details. Include your API key in the Authorization header as 'Bearer tts-...'. This endpoint structure allows standard HTTP clients to work easily.
How do I handle 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. If you exceed the limit, requests may fail. Monitor your usage on the dashboard to stay within these bounds for smooth generation.
What formats are supported?
Supported response formats are mp3, wav, opus, flac, and pcm. You specify the format in the request body using the 'response_format' field. These formats cover most e-commerce needs for web players and ads. There is no streaming or WebSocket support; you receive the complete audio file after generation. Choose the format that best fits your platform's requirements.
How do I change the voice speed?
Use the 'speed' field in your request, with values between 0.25 and 4.0. This adjusts the playback speed of the generated audio. Default speed is 1.0. Adjusting speed helps match video pacing or emphasize key product features. The API handles the audio synthesis accordingly. This feature is available for all 8 voice presets without extra cost.
Can I generate audio in multiple languages?
Yes, 23 languages are supported, including English, Spanish, German, French, Japanese, and Chinese. Any voice can speak any of these languages. If you do not set the 'language' field, it guesses from the script. For non-English Latin text, explicitly set the language code. Vietnamese, Thai, and Ukrainian are not supported. Check the /v1/voices endpoint for the full list.
What happens if the API is down?
There is no SLA or uptime guarantee. If synthesis fails, the charge is returned in full. Failed requests are free. If the service is unavailable, your request may fail, but you are not billed. Request metadata is kept for billing. Support is by email only; there is no phone or live chat.
Do I need to store the audio files?
No. Generated audio is returned in the response and not stored by the API. Input text is used only to produce the audio and is not used for training. You receive the audio file directly in your API response. You are responsible for storing the audio on your own servers or CDN if needed for your e-commerce store or ads.
Is the API key secret?
Yes, treat your API key as secret. It starts with 'tts-'. Include it in the Authorization header as 'Bearer tts-...'. You can issue a new key anytime from your dashboard, which instantly invalidates the old one. One active key is allowed per account. Protect it to prevent unauthorized usage of your balance and character quota.
First request
curl
curl https://api.9ani.cc/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.9ani.cc/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.9ani.cc/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
Access your API key via the /get-api-key/ page. You can sign up using your Google account or create a standard email and password account.
Sign up with Google or email
Google sign-up grants an immediate free trial credit of $0.50. Email accounts start without trial credit. Both methods provide secure access to your dashboard.
Locate your key in the dashboard
Once logged in, your dashboard displays your active API key and current balance. You can view your usage history and character counts here. Use the provided curl example to test your key immediately.
Security best practices
Keep your Bearer token secure. If compromised, issue a new key from the dashboard; the old one stops immediately.
- Treat your key like a password.
- Issue a new key if you suspect unauthorized use.
- Store keys in environment variables, not hard-coded in public files.
Your First Request
Once you have your API key, generating audio is a single HTTP request. The API accepts text and returns an audio file, making it easy to integrate into your store’s workflow without complex setup.
Use the examples below to send your first product script. The response returns the audio file directly, which you can then save.
cURL example for speech generation
Send a POST request to https://api.9ani.cc/v1/audio/speech with your key. Replace YOUR_KEY with your actual key from the dashboard.
```bash curl -X POST https://api.9ani.cc/v1/audio/speech \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "High quality wireless headphones", "voice": "nova", "response_format": "mp3"}' ```
Understanding the JSON body
The request body requires three essential fields: model ("tts-1" or "tts-1-hd"), input (your text up to 4096 characters), and voice (e.g., "nova"). You can also specify response_format like "mp3" or "wav".
Include speed (0.25–4.0) if you want to adjust playback rate. The language field is optional; the system guesses it from the script, but setting it explicitly ensures accuracy for non-English text.
- model: tts-1 or tts-1-hd
- input: string, max 4096 chars
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, pcm
Sending your first product script
Start with short, clear descriptions for your products. For example, use "Handcrafted leather wallet, durable and stylish" as your input text.
Send the request and save the returned audio file. Test the playback to ensure the voice tone matches your brand. If the audio is too fast, reduce the speed parameter.
Using the OpenAI SDK
You can use the official OpenAI SDKs to interact with VoiceCopy Shop’s API. This allows non-technical store owners to leverage familiar libraries for generating product audio without writing custom HTTP requests.
The process is straightforward: you simply adjust the client configuration to point to our API base URL. Existing code structures remain compatible, making integration quick for catalog automation.
Changing the base URL
Update your SDK client’s base URL to https://api.9ani.cc/v1. This directs requests to our infrastructure while keeping the standard endpoint paths intact.
Configuring the client
Set your Authorization header with your Bearer key. Ensure the key matches the account created at /get-api-key/. The SDK handles the JSON body structure automatically.
- Use
tts-1ortts-1-hdfor the model parameter - Pass text via the
inputfield - Select a voice from the 8 available presets
Compatibility with existing code
Since the request shape matches the OpenAI speech endpoint, your existing integration logic works with minimal changes. You only need to verify the base URL and key configuration.
Available Formats
The API returns audio in five standard formats, allowing you to choose the right balance between file size and quality for your e-commerce platform. Each format serves a specific technical need for product videos, ads, and web players.
MP3 for web playback
MP3 is a widely compatible format for web playback and mobile apps. It offers a good balance between file size and audio quality, making it ideal for embedding directly into product pages or social media ads where bandwidth matters.
WAV for high quality
WAV provides uncompressed audio. Use this format if you need maximum quality for professional voiceovers, radio-style ads, or if your editing software requires lossless input. Files will be larger than MP3s.
OPUS and FLAC options
OPUS offers efficient compression for streaming or modern web players. FLAC provides lossless compression. Both are valid response_format options.
Handling Errors
When integrating the TTS API into your e-commerce workflow, understanding error responses helps you troubleshoot quickly without halting your ad production. Most issues stem from request formatting, quota limits, or unsupported voice configurations.
Common HTTP status codes
A 200 OK response means your audio file was generated successfully. A 400 Bad Request indicates invalid JSON, missing fields, or text exceeding the 4096-character limit. A 500 error suggests a temporary server issue; retry after a few seconds. There is no uptime guarantee.
Rate limit errors
You receive a 429 Too Many Requests error if you exceed 60 requests per minute. New accounts start with a limit of 10 requests per minute until the first top-up. Handle this by implementing exponential backoff in your script.
- Limit: 60 requests/minute per key
- Initial limit: 10 requests/minute
- Retry after delay
Invalid voice or model errors
A 400 error occurs if you specify a voice not in the 8 presets or use an unsupported model. Ensure your voice parameter matches one of the available options like 'aria' or 'atlas'. The model field must be 'tts-1' or 'tts-1-hd'.

Rate Limits and Quotas
Understanding rate limits is critical for e-commerce workflows to avoid interruptions during product video generation or ad campaigns. Our API enforces quotas.
By knowing your limits, you can plan your content production schedule effectively. This prevents unexpected pauses in your automation scripts when generating multiple voiceovers for a new catalog launch.
60 requests per minute
Each API key is limited to 60 requests per minute. This limit applies per API key. If you generate audio for multiple products simultaneously, the total count across all requests must stay below this threshold.
- Count includes all successful and failed requests.
- Limit resets every 60 seconds.
- Applies per API key, not per IP address.
10 requests before top-up
New accounts or those with low balances start with a lower limit of 10 requests per minute. This ensures fair usage while your account is being funded. Once you top up, the limit increases to the standard 60 requests per minute.
- Apply this limit during initial setup.
- Increases after successful USDT transfer.
- Does not affect your credit balance.
Managing burst traffic
For large catalog updates, consider spacing out your requests. If you exceed the limit, you will receive a 429 Too Many Requests error. Implement exponential backoff in your scripts to handle these pauses gracefully without losing data.
- Use retry logic in your automation.
- Avoid sending all requests at once.
- Monitor your dashboard for real-time usage.
Voice Selection
Select the voice that best fits your product's personality from eight preset options. Each voice is distinct, ranging from warm narrators to energetic promo speakers. You can mix and match voices across different product videos.
The API returns a full list of available voices via the /v1/voices endpoint. Use this list to map specific tones to your catalog categories, ensuring consistent branding across all your audio assets.
Listing available voices
Retrieve your full voice catalog by calling GET https://api.9ani.cc/v1/voices. This returns all eight presets with their metadata, allowing you to programmatically select the best fit for each script.
The list includes four female voices (aria, nova, luna, sage) and four male voices (felix, milo, atlas, orion). Each voice has a unique character, from soft storytelling to neutral news delivery.
- 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
Choosing male vs. female tones
Female voices like aria and luna work well for lifestyle and home goods, offering clarity and warmth. Male voices such as atlas and orion suit technical products or news-style announcements with their neutral or deep tones.
You are not limited to one gender. Mix voices across your store to differentiate categories. For example, use nova for seasonal sales and milo for detailed product explanations.
Matching voice to brand identity
Align your voice choice with your brand's tone. Use felix for high-energy promo videos or sage for instructional how-tos. Consistency helps customers recognize your brand, even without seeing the video.
Test different voices with a short script using the free trial credit. Listen to how each preset handles your specific product descriptions before committing to a single voice for your catalog.
Language Settings
Language settings ensure your product narrations sound natural to international customers. You can explicitly define the language or rely on automatic detection based on the text script.
Setting the language code
Always provide the ISO language code (e.g., language: 'fr') when using Latin script for non-English languages. This prevents the system from defaulting to English, which is the standard behavior for unmarked Latin text.
Automatic language detection
The API guesses the language from the script if you omit the language field. For example, Arabic script triggers Arabic, while standard English text defaults to English.
Handling mixed language text
For scripts containing multiple languages, the API may not switch voices seamlessly. It is best to send separate requests for each language segment to ensure correct pronunciation and tone.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. His neutral tone ensures clarity and neutrality, making it a safe default for diverse catalogs where you want the product to speak for itself without bias.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- LibriTTS-R paper (arXiv 2305.18802)
- OpenAI API reference: create speech
- LibriTTS-R corpus (OpenSLR 141)
- IETF RFC 7845: Ogg Opus
- Node.js documentation
- curl documentation
- Tether (USDT)
- Creative Commons Attribution 4.0
- W3C WAI: making audio and video accessible
- MDN: Web Speech API
- ISO 639 language codes
