Frequently asked questions
How do I generate an API key?
Sign up on the /get-api-key/ page using Google or email. Your account receives one active API key starting with 'tts-'. You can issue a new key at any time, which immediately invalidates the previous one. The key is used in the Authorization header for all requests.
What is the maximum text length per request?
The input field supports up to 4096 characters per request. For longer texts, split your content into chunks of this size and join the resulting audio files. Each request is processed independently, so managing these chunks allows you to generate audio for extensive documents or scripts.
Can I use the official OpenAI SDK?
Yes, the request shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.x89ok.com/v1 and providing your VoxaLink API key. This allows seamless integration with existing client libraries without rewriting your integration logic.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue or fail. Failed requests are free, but successful ones consume your character balance.
Is the tts-1-hd model more expensive?
No, both 'tts-1' and 'tts-1-hd' use the same engine and price. The cost is $10 per 1 million characters regardless of the model selected. You can switch between models without any change in billing or character consumption for your account.
How do I handle long texts for bots?
Split the input text into parts of up to 4096 characters. Send each part as a separate POST request to the speech endpoint. Join the returned audio files to create a continuous audio file. This ensures consistent latency and predictable character-level billing.
What response formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format using the response_format field in your JSON body. The API returns the audio file directly in the response, allowing immediate playback or storage by your bot or application.
Do I need to specify the language code?
It is optional. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language parameter to ensure accurate synthesis. Supported languages include English, Spanish, German, and 20 others.
How do I rotate my API key?
Navigate to your account page to issue a new API key. The new key becomes active immediately, and the old one stops working at once. This allows you to revoke access without downtime. You can perform this rotation anytime from your dashboard.
Is there a WebSocket endpoint for streaming?
No, there is no WebSocket endpoint or real-time partial audio streaming. The API returns the complete audio file after synthesis. For bots, you can manage latency by splitting long texts into smaller chunks and processing them sequentially or in parallel.
Can I use SSML in the input text?
No, SSML is not supported. The input field accepts plain text only. You cannot use SSML tags for pronunciation or pauses. If you need specific control, you must rely on the available voice presets and speed adjustments within the standard text input.
How do I detect syntax errors in requests?
The API returns standard HTTP status codes indicating success or failure. Check the response body for error details if the request fails. Failed requests are free, so you can safely retry or debug your JSON payload without incurring charges for invalid syntax.
What is the base URL for the API?
The base URL is https://api.x89ok.com/v1. Use this URL for all API calls, including the speech endpoint and voices list. When using SDKs, configure this as the base_url to ensure your requests are routed correctly to the VoxaLink service.
Are there SDKs for Python or Node.js?
There is no official SDK from VoxaLink, but you can use the official OpenAI SDKs. Simply set the base_url to https://api.x89ok.com/v1. This allows you to leverage existing client libraries for seamless integration into your bot infrastructure.
First request
curl
curl https://api.x89ok.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.x89ok.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.x89ok.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
The VoxaLink API uses standard Bearer token authentication. Include your unique API key in the Authorization header of every request: Authorization: Bearer tts-.... This single key grants access to your account’s balance and usage limits.
Each account holds one active key. If you generate a new key via the dashboard, the previous key is immediately invalidated. This ensures tight control over integrations in voice assistants and chatbots.
Bearer token usage
Pass your key as a Bearer token in the HTTP header. The API validates this token against your active key. If the token is missing or incorrect, the request returns a 401 Unauthorized error.
The token format is tts-<unique_id>. Ensure your client library preserves the exact string, including case sensitivity, to avoid authentication failures during synthesis.
- Header:
Authorization: Bearer tts-<your_key> - Standard HTTP Bearer scheme
- Validates against active key only
Single active key
Your account is tied to exactly one active API key at any time. This simplifies security auditing for bot deployments. If you suspect a leak, you can rotate the key immediately.
All usage, billing, and rate limits are aggregated under this single key. You cannot split limits across multiple keys for the same account.
Key rotation
Generate a new key in the dashboard anytime. The old key stops working instantly upon generation. Update your bot’s configuration to use the new key before the old one expires or is revoked.
No downtime is required during rotation if you update your client configuration promptly. The new key inherits your current balance and rate limit status.
- Generate new key in dashboard
- Old key invalidates immediately
- No downtime if updated promptly
Endpoints
VoxaLink provides three core endpoints for integrating synthetic speech into your bot or voice assistant. The primary endpoint handles audio generation, while the metadata endpoints provide voice options and model details. All requests use standard HTTP methods and JSON bodies, compatible with existing OpenAI SDK configurations.
POST /v1/audio/speech
Send text and receive an audio file. This endpoint accepts up to 4096 characters per request. You must specify the model, input text, voice preset, and desired response format. The API returns the audio file directly in the response body.
- Accepts JSON body with model, input, voice, and response_format fields
- Returns audio data directly in the response
- Supports speed adjustment from 0.25x to 4.0x
GET /v1/voices
Retrieve available voice presets and supported languages. This endpoint lists the eight available voices and their capabilities. It helps you select the appropriate voice for your bot’s personality, such as a calm narrator for FAQs or an energetic voice for promotions.
- Lists all 8 voice presets
- Shows supported languages (23 total)
- Displays available audio formats and pricing
GET /v1/models
View available model versions. Currently, the API offers two models: tts-1 and tts-1-hd. Both engines produce identical audio quality and have the same price. Use this endpoint to verify model availability before sending synthesis requests.
- tts-1: Standard engine
- tts-1-hd: High-definition engine
- Both models have the same price point
Request Parameters
The API accepts plain text in the input field, capped at 4,096 characters per request. Spaces and punctuation count toward this limit. For longer scripts, split the text into chunks and concatenate the resulting audio files. Each request is processed sequentially, so queueing may occur under load, but latency remains predictable for standard bot interactions.
Select a voice from the 8 available presets using the voice parameter. All voices support any of the 23 languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly set language for non-English Latin scripts to ensure accuracy.
Input text limit
The input field accepts up to 4,096 characters. Spaces and punctuation count toward this limit. For longer scripts, split the text into chunks and concatenate the resulting audio files. Each request is processed sequentially, so queueing may occur under load, but latency remains predictable for standard bot interactions.
Voice selection
Select a voice from the 8 available presets using the voice parameter. All voices support any of the 23 languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly set language for non-English Latin scripts to ensure accuracy.
Voices include Aria (warm narrator), Nova (upbeat), Luna (storytelling), Sage (instructional), Felix (energetic), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).
- 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
Response format
Specify the output format using response_format. Supported formats are mp3, wav, opus, flac, and pcm. Choose opus or mp3 for efficient bandwidth usage in chatbot flows. Use wav or flac if your integration requires lossless audio. The speed parameter allows adjustment from 0.25x to 4.0x.
Each generated file carries an inaudible watermark marking it as synthetic speech. Input text is not stored or used for training; only request metadata is kept for billing.
- mp3: Standard compression
- wav: Lossless audio
- opus: Efficient bandwidth
- flac: Lossless audio
- pcm: Raw audio data
Models
The API offers two model variants for audio synthesis: tts-1 and tts-1-hd. Both utilize the same underlying engine and produce identical audio quality. Both models use the same engine and price; tts-1-hd is simply the high-definition variant.
tts-1 engine
Use tts-1 for general-purpose bot responses where speed is prioritized. It generates audio efficiently, handling the standard character throughput without compromising basic intelligibility.
tts-1-hd engine
Select tts-1-hd when higher audio quality is required. This model is ideal for interactive voice response (IVR) systems or conversational agents where naturalness enhances user trust.
Same price for both
Both models are billed at the same rate: $10 per 1 million characters. You can switch between tts-1 and tts-1-hd in your requests without changing your pricing tier or budget expectations.
OpenAI SDK Integration
Leverage the official OpenAI SDKs by overriding the base URL to https://api.x89ok.com/v1. This allows your bot to use standard client libraries without rewriting HTTP logic, ensuring consistent integration patterns across your voice assistant infrastructure.
Base URL override
Point the SDK’s base_url configuration to our API endpoint. This redirects all standard speech requests to our infrastructure while maintaining the expected JSON request shape and authentication headers.
Standard SDK methods
Use the standard audio.speech method. Pass your tts-... key in the Authorization header. The SDK handles serialization, sending the text and voice parameters to generate the audio file.
- Use
audio.speechfor synthesis - Pass
base_urlfor routing - Standard JSON payload structure
Client initialization
Initialize the client with your API key and the overridden base URL. This setup ensures that all subsequent calls route correctly to our TTS engine, maintaining compatibility with existing codebases.

Rate Limits
VoxaLink enforces a hard limit of 60 requests per minute per API key. This cap ensures consistent latency for your voice assistant or chatbot without requiring complex queueing logic on your end. If you exceed this threshold, the API returns a 429 error until the window resets.
60 requests per minute
The standard rate limit is 60 requests per minute. This allows for steady generation of audio clips for interactive applications. Requests are processed sequentially, so high concurrency may introduce slight queuing delays.
10 requests before top-up
New accounts without a funded balance are restricted to 10 requests per minute. This prevents accidental resource exhaustion during initial testing. Once you top up with USDT (TRC-20), the limit increases to the standard 60 rpm.
Per key limit
Rate limits apply per API key, not per account or IP address. Since each account holds only one active key, your entire service is bounded by this single limit. Rotate keys only when necessary, as the old key becomes invalid immediately.
Error Handling
The API returns standard HTTP status codes to indicate request outcomes. Errors are reported as JSON objects with an error field containing a human-readable message and a specific code. Failed synthesis requests incur no charge, ensuring you only pay for successful audio generation.
400 Bad Request
This error indicates invalid input parameters. Common causes include exceeding the 4096-character limit for the input field or providing an unsupported voice name. The response body includes details to help you correct the payload structure before retrying.
- Check character count limits
- Verify voice names against /v1/voices
- Ensure valid JSON structure
401 Unauthorized
The provided API key is missing, invalid, or expired. Ensure the Authorization header uses the format Bearer tts-.... Note that issuing a new key immediately invalidates the previous one, so update your bot’s configuration promptly after rotation.
- Verify key format
- Check for key rotation
429 Too Many Requests
You have exceeded the rate limit of 60 requests per minute for your API key. New accounts start with a 10 requests per minute limit until the first top-up. Implement exponential backoff in your bot to handle retries gracefully without overwhelming the queue.
- Monitor usage stats
- Implement backoff logic
- Top up to increase limit
Audio Formats
VoxaLink supports multiple audio formats to suit different bot and telephony requirements. Each format balances file size, quality, and compatibility differently.
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 most voice assistant integrations.
WAV output
WAV provides uncompressed, high-quality audio. Use this format when you need maximum fidelity or when your telephony system requires raw PCM data without compression artifacts.
Opus and FLAC options
Opus offers high-quality audio at lower bitrates, suitable for bandwidth-constrained environments. FLAC provides lossless compression, preserving every detail of the synthetic speech while reducing file size compared to WAV.
- Opus: Efficient compression for low-bandwidth bots
- FLAC: Lossless quality for archival needs
- PCM: Raw uncompressed data for simple telephony
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Short phrases often incur a fixed processing overhead, taking a few seconds to generate.
23 languages
Any voice speaks any of these languages.
