Frequently asked questions
How do I authenticate requests to the API?
Include your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-.... Each account has one active key. If you issue a new key, the old one stops immediately. You can find your key and usage details on the /get-api-key/ page after signing in.
Can I use the official OpenAI SDK with this API?
Yes. The API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDK by changing the base_url to https://api.78wimok.com/v1 and providing your site-specific key. This allows you to use familiar SDK methods without installing custom libraries.
What is the maximum length of text I can send in one request?
You can send up to 4096 characters per request. Spaces and punctuation count toward this limit. If your text exceeds this length, you must split it into smaller parts. Each part is processed independently, and the resulting audio files are joined to form the final output.
How do I handle texts longer than 4096 characters?
Split your text into chunks of up to 4096 characters. Send each chunk as a separate request to the /v1/audio/speech endpoint. Once you receive the audio files for each part, join them sequentially to create the complete audio file. This ensures compliance with the single-request character limit.
What audio formats are supported for output?
The API supports five output formats: mp3, wav, opus, flac, and pcm. Specify your preferred format using the response_format field in the JSON request body. All generated files include an inaudible watermark to mark them as synthetic speech, regardless of the chosen format.
How does the API detect the language of the input text?
If the language field is omitted, the API guesses the language based on the script. Latin script defaults to English. For non-English Latin text, you should explicitly set the language parameter. Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
What happens if I exceed the rate limit of 60 requests per minute?
The API allows 60 requests per minute per key (10 per minute before the first top-up). Since requests are processed sequentially, exceeding the limit may cause your request to wait in a queue. Under heavy load, processing may take longer than usual.
Are failed requests refunded automatically?
Yes. If a synthesis request fails, the charge is returned in full. You do not need to manually request a refund. Failed requests do not consume your character balance, ensuring you only pay for successfully generated audio files.
Can I specify a specific voice for a given language?
Yes. You can choose from eight voice presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Any voice can speak any of the 23 supported languages. Select the desired voice using the voice parameter in your request JSON body.
Is the API key reusable across different projects?
Yes, the API key is reusable. Each account has one active key that can be used across multiple projects or applications. You can issue a new key at any time, which will immediately invalidate the old key, allowing you to rotate credentials securely.
How do I rotate my API key?
You can issue a new API key at any time via your account dashboard. When a new key is issued, the old one stops working immediately. This ensures that only the current key is active, allowing you to manage access securely without downtime.
What is the difference between tts-1 and tts-1-hd?
Both tts-1 and tts-1-hd use the same engine and have the same price. The choice between them does not affect cost. You can select either model in the model field of your request based on your preference.
Do I need to install any specific libraries to use the API?
No specific library is required. You can use the official OpenAI SDK by setting the base URL to https://api.78wimok.com/v1, or use plain HTTP requests. The API accepts standard JSON bodies, allowing integration into any environment that supports HTTP POST requests.
How is the speed parameter adjusted in the request?
Include the speed field in the JSON request body, with values between 0.25 and 4.0. This parameter controls the audio playback rate directly. It does not alter the underlying voice characteristics or pitch of the selected preset. The API generates the audio at the specified speed, allowing you to adjust the final output duration without changing the voice's fundamental tone or timbre.
First request
curl
curl https://api.78wimok.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.78wimok.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.78wimok.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
Access the VocalAxis API by generating a unique key on the /get-api-key/ dashboard. After authenticating via Google or email/password, the interface displays your active key, current balance, and usage metrics immediately.
Use this key to authorize requests. The system supports simple key rotation; issuing a new key instantly invalidates the previous one, ensuring secure access control for your localization pipeline.
Generating Your API Key
Navigate to the /get-api-key/ page after signing in. Your unique API key is displayed alongside your current balance, trial status, and usage statistics, ready for immediate integration.
Bearer Token Format
Include your key in the HTTP header as Authorization: Bearer tts-.... This standard format ensures compatibility with existing tools and allows you to swap keys without updating application code.
Key Rotation Policy
Generate a new key at any time via the dashboard. The old key stops working immediately upon creation of the new one, preventing unauthorized access if a key is compromised.
Core Endpoint: Speech Generation
Send text to the speech generation endpoint to receive synthesized audio. The API processes requests sequentially, meaning under load, your request may wait in a queue before synthesis begins. This ensures reliable processing for high-volume localization pipelines without real-time streaming guarantees.
POST /v1/audio/speech
Issue a POST request to this endpoint with your JSON payload. The endpoint accepts text input up to 4096 characters and returns the resulting audio file upon successful synthesis.
JSON Request Body Structure
Include the model, input, voice, and response_format fields. The language parameter is optional; if omitted, the system guesses the language from the script, defaulting to English for Latin text.
- model: "tts-1" or "tts-1-hd"
- input: string (max 4096 chars)
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, or pcm
- speed: 0.25–4.0
- language: optional ISO code
Response Format Options
Specify the output format via response_format. Supported formats include mp3, wav, opus, flac, and pcm. The audio file is returned directly in the response body for immediate use in your pipeline.

Voice and Model Selection
Select from eight voice presets tailored for localization workflows. Female voices include aria (warm narrator), nova (upbeat), luna (storytelling), and sage (instructional). Male options cover felix (energetic promo), milo (conversational), atlas (neutral news), and orion (documentary). All voices support any of the 23 available languages.
Available Voice Presets
Each voice is based on licensed recordings from LibriTTS-R (CC BY 4.0), derived from LibriVox public-domain audiobook readings. This foundation ensures consistent quality across your dubbing projects. Every generated file carries an inaudible watermark marking it as synthetic speech, aiding in content identification.
- 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
Model Versions: tts-1 and tts-1-hd
Both "tts-1" and "tts-1-hd" utilize the same underlying engine and price point. Choose based on your specific latency or quality preference, though processing remains sequential. Requests are processed one after another, so under load a request may wait in a queue regardless of the model selected.
Language Parameter Handling
The API supports 23 languages, including Arabic, Chinese, English, German, Japanese, and Spanish. Any voice can speak any of these languages. If the language parameter is omitted, the system guesses the language from the script, defaulting to English for Latin-script text.
- Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
SDK Integration Examples
Integrate the TTS API into your localization workflow using standard HTTP clients or the OpenAI SDK. The API accepts standard JSON bodies and returns audio files directly, allowing straightforward piping into your file system or processing pipelines without requiring proprietary libraries.
OpenAI SDK with Base URL Override
Use the official OpenAI SDK by overriding the base_url to https://api.78wimok.com/v1. This allows you to use familiar methods like Audio.speech.create() while leveraging the VocalAxis infrastructure. Ensure your API key is passed via the standard Authorization header.
cURL Request Example
Execute a basic synthesis request using cURL to verify connectivity and response format. Replace YOUR_API_KEY with your active key and provide the text input in the JSON body. The response will contain the audio binary data.
- curl -X POST https://api.78wimok.com/v1/audio/speech \
- -H "Authorization: Bearer YOUR_API_KEY" \
- -H "Content-Type: application/json" \
- -d '{"model": "tts-1", "input": "Hello world", "voice": "nova"}'
Python Request Library Example
For custom error handling or logging, use the requests library. Always check the HTTP status code; a 200 OK indicates success, while other codes require inspection of the error JSON body for details. Save the response content directly to a file.
Handling Long Text Inputs
The API enforces a strict 4096-character limit per request. This constraint applies to the input text string, including spaces and punctuation. If your content exceeds this threshold, you must split the text client-side before sending individual requests. The system does not handle multi-part generation internally.
Splitting logic should preserve semantic boundaries to minimize audio artifacts. While joining files is straightforward, be aware that concatenation may introduce slight timing gaps between segments. Since there is no SSML or pause control, perfect synchronization across long documents is not guaranteed.
4096 Character Limit per Request
Each API call processes a maximum of 4096 characters. This limit is hard-coded and applies to the raw input string. Characters include letters, numbers, spaces, and punctuation marks. Exceeding this limit results in an immediate error response without processing.
Client-Side Text Splitting Logic
Split text at natural boundaries, such as sentence endings or paragraph breaks, to maintain coherence. Avoid cutting mid-word to prevent audio clipping. Since the API processes requests sequentially, efficient splitting reduces queue wait times during high load.
You are responsible for managing the sequence of requests. Ensure your client library handles the 60 requests-per-minute rate limit to avoid throttling during large batch operations.
Audio File Concatenation
After receiving multiple audio files, concatenate them in the correct order. Use a library compatible with your chosen response_format (mp3, wav, opus, flac, or pcm). Note that joining files may result in minor audio gaps depending on the format specifications.
The generated audio carries an inaudible watermark. Ensure your concatenation process preserves metadata if required for verification. There is no built-in mechanism to adjust silence gaps between segments, so the final output may have slight discontinuities.

Rate Limits and Quotas
Rate limits are enforced per API key to ensure stable synthesis throughput for high-volume localization pipelines. Understanding these constraints helps teams manage concurrent voiceover generation without unexpected throttling or delays during peak production hours.
60 Requests Per Minute Limit
Each API key supports a maximum of 60 requests per minute. This allowance accommodates typical batch processing workflows for dubbing agencies, allowing teams to generate audio files for multiple scenes or segments concurrently without exceeding the threshold.
Initial Rate for New Accounts
New accounts start with a lower limit of 10 requests per minute. This rate applies until the first top-up is processed. Once a minimum $5 USDT (TRC-20) transfer is confirmed, the rate increases to the standard 60 requests per minute.
Queue Behavior Under Load
Requests are processed sequentially. Under heavy load, a request may wait in a queue before synthesis begins. While this may introduce slight delays for long texts, each request maintains its priority in the queue without additional cost or penalty.
Error Codes and Handling
Errors in the TTS API are communicated via standard HTTP status codes, allowing you to distinguish between authentication issues, rate limits, or internal processing failures. Monitoring 4xx and 5xx responses ensures your application handles transient network or server-side glitches without losing sync with your billing data.
Standard HTTP Error Responses
Use standard HTTP status codes to identify the error source. 4xx errors typically indicate client-side issues such as invalid API keys or malformed JSON bodies. 5xx errors suggest temporary server-side processing delays or internal failures.
Handling Synthesis Failures
When a synthesis request fails, the system returns the appropriate HTTP error code. Your application should log these events and implement retry logic for transient 5xx errors. Since input text is not stored after generation, failed requests do not retain audio data for recovery.
Refund Logic for Errors
Failed requests are free. The charge is returned in full to your account balance automatically. You do not need to manually request a refund; the system credits your balance immediately upon confirming the failure, ensuring your cost tracking remains accurate.

Additional Endpoints
The API provides dedicated endpoints to programmatically discover available voices, models, and supported formats. These endpoints return structured JSON data, allowing your application to dynamically update UI controls or validate inputs before sending synthesis requests. This ensures your integration stays aligned with the current infrastructure without hardcoding values.
Use these endpoints to verify that your chosen voice supports the target language or to confirm which audio formats are accepted by the server. This reduces validation errors and simplifies the development workflow for localization pipelines.
GET /v1/voices Endpoint
Call this endpoint to retrieve a list of all eight voice presets, their IDs, and metadata. The response includes supported languages and pricing details, enabling you to build dynamic selectors for your application.
This data is essential for validating user selections before submission, ensuring the requested voice and language combination is valid.
- Returns voice ID, name, gender, and supported languages
- Includes pricing per character for each voice tier
- Updates reflect real-time infrastructure changes
GET /v1/models Endpoint
Retrieve the available model versions, currently tts-1 and tts-1-hd. Both models use the same underlying engine and pricing structure, but may offer different default behaviors for speed or quality depending on your configuration.
Use this endpoint to ensure your application requests a valid model ID, preventing 400 Bad Request errors.
- Lists all active model IDs
- Confirms pricing equivalence between models
- Returns default settings per model
Retrieving Available Formats
The /v1/voices and /v1/models endpoints also return the list of supported response formats: mp3, wav, opus, flac, and pcm. Use this information to set the response_format field correctly in your synthesis requests.
Knowing the available formats in advance helps you optimize storage and bandwidth based on your delivery requirements, whether for web playback or archival storage.
No additional endpoint is required; format data is embedded in the voice and model responses.
- Supported formats: mp3, wav, opus, flac, pcm
- Format options are consistent across all voices
- No extra API call needed to check formats
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Our team streamlines the entire localization workflow to ensure seamless cultural adaptation for your global audience.
23 languages
Any voice speaks any of these languages.
