Frequently asked questions
How do I authenticate?
Send your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-.... You receive one active key per account. If you issue a new key, the old one stops immediately.
What is the speech endpoint?
Use POST https://api.xx66ok.com/v1/audio/speech. Send a JSON body with model, input, voice, response_format, and optional speed or language. The endpoint accepts standard TTS parameters and returns the audio file.
Which models are available?
Two models are available: tts-1 and tts-1-hd. Both use the same engine and pricing. Select the model that best fits your quality needs, as the generation process and costs remain identical for both options.
How do I select a voice?
Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice supports all 23 languages. Set the voice field in your request body to the desired preset name for synthesis.
Can I change the speed?
Yes, adjust the speed parameter between 0.25 and 4.0. This allows you to speed up or slow down the narration. The default speed is 1.0, which produces natural-sounding speech for most mobile app contexts.
What is the max input length?
The maximum input length is 4096 characters per request. For longer texts, split your content into chunks of up to 4096 characters. Generate audio for each part and join the resulting files in your application.
How do I handle errors?
If synthesis fails, the charge is returned in full. Check the response status code and error message to identify issues like invalid parameters or rate limits. Failed requests do not consume your character balance.
What are the rate limits?
You are limited to 60 requests per minute per key. New accounts start with a limit of 10 requests per minute until the first top-up is processed. Monitor your usage to avoid delays in generation.
How do I get voices list?
Call GET https://api.xx66ok.com/v1/voices to retrieve available voices, languages, formats, and pricing. This endpoint provides the metadata needed to configure your mobile app’s voice selection interface accurately.
Can I use the OpenAI SDK?
Yes, the official OpenAI SDKs work by changing the base_url to https://api.xx66ok.com/v1 and using your VoxaFlow key. This allows you to use familiar client libraries without rewriting your integration logic.
How do I change base URL?
Set the SDK’s base_url configuration to https://api.xx66ok.com/v1. This directs all API calls to our infrastructure while maintaining compatibility with the standard request shape used by the OpenAI speech endpoint.
What formats are supported?
Supported formats are mp3, wav, opus, flac, and pcm. Select the format that best suits your mobile app’s audio player capabilities. MP3 is recommended for general use due to its balance of quality and file size.
How do I check balance?
Visit the /get-api-key/ page after signing in. The dashboard displays your current balance, trial status, characters remaining, and usage history.
What happens on failure?
If synthesis fails, the charge is returned in full. No characters are deducted from your balance. You can retry the request with corrected parameters or investigate the error message provided in the response.
First request
curl
curl https://api.xx66ok.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.xx66ok.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.xx66ok.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
VoxaFlow authenticates API requests using a Bearer token passed in the Authorization header. This key identifies your account and tracks usage against your balance. Keep this value secure, as it provides full access to your synthesis capabilities.
Bearer Token
Include Authorization: Bearer <your_key> in every request. The token validates your identity and links charges to your specific account. Without it, the API returns a 401 Unauthorized error.
Key Management
Each account holds one active key. You can issue a new key at any time via the dashboard. The old key stops working immediately, revoking access for any compromised devices or services without waiting for a session timeout.
- One active key per account
- Immediate invalidation on regeneration
- View keys in your dashboard
Security
Store your API key in environment variables or secure key storage within your mobile app build process. Avoid hardcoding it in client-side code if possible, though the API does not restrict usage to specific domains.
Endpoints Overview
The API exposes three primary endpoints for mobile integration. Use the speech endpoint to convert text into audio, the voices endpoint to fetch available presets, and the models endpoint to verify engine status.
These endpoints follow a standard JSON structure, making them compatible with existing HTTP clients. All responses are machine-readable, allowing your mobile app to dynamically update UI elements based on available voices or model capabilities.
Speech Generation
Send a POST request to /v1/audio/speech with your text and voice selection. The API returns an audio file in your chosen format. You can process up to 4096 characters per request.
For longer texts, split your input into chunks, generate each segment, and concatenate the audio files in your app. Failed requests incur no charge.
- Endpoint: POST /v1/audio/speech
- Input: JSON body with text, voice, and format
- Output: Audio binary (mp3, wav, opus, flac, pcm)
Voices List
Retrieve the full list of available voices, languages, and formats by sending a GET request to /v1/voices. This endpoint helps you populate your app’s voice selection dropdown with accurate, up-to-date options.
Each voice entry includes its ID (e.g., 'aria', 'nova') and supported languages, ensuring your mobile interface displays correct options for the user's selected language.
- Endpoint: GET /v1/voices
- Returns: Voice IDs, languages, formats
- Use case: Populating UI dropdowns
Models List
Check available models via GET /v1/models. Currently, both 'tts-1' and 'tts-1-hd' use the same engine and pricing, but this endpoint allows you to verify model availability programmatically.
This endpoint is useful for monitoring service status or adapting your app’s behavior if model configurations change in the future.
- Endpoint: GET /v1/models
- Returns: Model IDs and status
- Use case: Service verification
Request Parameters
Configure the core synthesis parameters to define how your text becomes audio. The model field accepts either "tts-1" or "tts-1-hd", both using the same engine and pricing tier. The input field contains your text payload, which must not exceed 4096 characters per request. Spaces and punctuation count toward this limit.
Model Selection
Select "tts-1" for standard processing or "tts-1-hd" for higher fidelity. Both models deliver identical voice quality and pricing, allowing you to switch without changing your integration logic. The API processes requests sequentially, so longer texts should be split into chunks under the character limit and joined client-side.
Voice Selection
Choose from eight preset voices, each designed for specific mobile use cases. Female voices include aria (clear narrator), nova (upbeat), luna (storytelling), and sage (instructional). Male options feature felix (energetic promo), milo (conversational), atlas (news), and orion (documentary). Every voice supports all 23 supported languages.
- aria: warm, clear narrator
- nova: bright, upbeat
- luna: soft, storytelling
- sage: calm, instructional
- felix: energetic, promo
- milo: friendly, conversational
Response Format
Specify the response_format to match your mobile app’s audio requirements. Supported formats include mp3, wav, opus, flac, and pcm. MP3 is recommended for general use due to its balance of quality and file size, while WAV offers uncompressed clarity. The generated audio is returned as binary data in the response body.
- mp3: compressed, widely supported
- wav: uncompressed, high quality
- opus: efficient compression
- flac: lossless compression
- pcm: raw audio data
Optional Parameters
Optional parameters allow you to fine-tune the audio output without changing the core request structure. These fields let you adjust the pacing, specify the language explicitly, or handle input text boundaries efficiently.
Speed Control
Adjust the playback speed between 0.25 and 4.0. A value of 1.0 is normal speed. This parameter helps optimize audio length for mobile data usage or user experience preferences.
- Range: 0.25 to 4.0
- Default: 1.0
- Adjusts duration without changing pitch
Language Code
Specify the ISO language code (e.g., 'de' for German). If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicit codes ensure correct pronunciation for non-English languages.
- Optional ISO code
- Defaults to English for Latin script
- Supports 23 languages
Input Text
The input field accepts up to 4096 characters per request. Longer texts should be split into chunks. Each chunk is synthesized separately and then joined to form the final audio file.
- Max 4096 characters
- Split long texts manually
- Spaces and punctuation count
Response Handling
The API returns the synthesized audio file directly in the response body, allowing mobile applications to save the audio data immediately after a successful request.
Audio File Delivery
For standard requests, the entire audio file is returned upon completion. Since generation typically takes roughly real-time (25 characters per second), short phrases may take a few seconds, while longer texts are split into parts and joined client-side.
Content Type
The Content-Type header indicates the format of the returned audio, matching the response_format parameter you specified in the request (e.g., audio/mpeg for MP3, audio/wav for WAV).
Binary Data
The response body contains raw binary data. Mobile SDKs should handle this binary data directly without attempting to parse it as JSON, ensuring efficient memory usage and immediate playback capability.

Error Handling
Handling API responses ensures your mobile app remains stable when synthesis fails or exceeds limits. The API returns standard HTTP status codes to indicate success or failure, allowing your client to log issues and alert users appropriately.
Common Error Codes
Use 401 for invalid keys, 400 for malformed requests (e.g., text exceeding 4096 characters), and 500 for server-side synthesis failures. Failed requests incur no charge, so you can safely retry without cost penalties.
Retry Logic
Implement exponential backoff for transient errors. Since requests are processed sequentially, brief delays often resolve queue congestion. Always verify the response body for specific error messages before retrying to avoid redundant requests.
Rate Limits
You are limited to 60 requests per minute per key (10 per minute before the first top-up). Exceeding this limit returns a 429 error. Monitor your usage via the dashboard to adjust request pacing for your app’s peak hours.
Rate Limits
VoxaFlow enforces strict rate limits to ensure stable generation for your mobile app. Each API key is limited to 60 requests per minute, with a lower initial limit of 10 requests per minute until your first top-up.
Requests Per Minute
Limit your application to 60 requests per minute per key. This ensures consistent performance for batch processing or real-time user inputs.
Queue Behavior
Requests are processed sequentially. Requests are processed sequentially, so under load a request may wait in a queue. Long texts may take additional time due to this single-threaded processing.
Burst Limits
New accounts start with a 10 requests per minute limit. This increases to 60 requests per minute automatically after your first USDT top-up of at least $5.
- Start: 10 requests/minute
- Post-top-up: 60 requests/minute
- Processing: Sequential queue

Code Examples
Integrate speech synthesis into your mobile app by sending a POST request to the speech endpoint. You can use standard HTTP libraries or the OpenAI-compatible SDK to handle authentication and payload formatting easily.
The API returns binary audio data directly. Ensure your mobile client handles the response stream correctly to play the audio without saving intermediate files unnecessarily.
cURL Request
Use cURL to test the integration quickly. Replace YOUR_API_KEY with your actual token from the dashboard.
- curl -X POST https://api.xx66ok.com/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"}'
OpenAI SDK
The endpoint matches the OpenAI speech schema. Change the base URL to use VoxaFlow.
- import openai client = openai.OpenAI(base_url="https://api.xx66ok.com/v1", api_key="YOUR_API_KEY") speech_file = client.audio.speech.create( model="tts-1", voice="nova", input="Hello world") speech_file.write_to_file("output.mp3")
Python Example
For direct HTTP requests, use the requests library. Handle the binary response to save the audio file locally.
- import requests url = "https://api.xx66ok.com/v1/audio/speech" headers = {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"} payload = {"model": "tts-1", "voice": "nova", "input": "Hello world"} response = requests.post(url, headers=headers, json=payload) with open("output.mp3", "wb") as f: f.write(response.content)
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Design intuitive interfaces that delight users and drive engagement across all mobile devices.
23 languages
Any voice speaks any of these languages.
