Frequently asked questions
What is the API endpoint?
Send a POST request to https://api.88newok.com/v1/audio/speech. The endpoint accepts JSON bodies containing the text, voice model, and audio format preferences. This structure mirrors standard TTS APIs, making it easy to integrate into your mobile app’s backend or client-side logic without complex routing.
How do I authenticate?
Include your unique API key in the request header as Authorization: Bearer tts-... You can generate or rotate this key via your account dashboard. Each account holds one active key; issuing a new one immediately invalidates the previous one, ensuring secure access for your mobile app.
Can I use the OpenAI SDK?
Yes. The request shape matches the OpenAI speech endpoint. Simply update the SDK’s base_url to https://api.88newok.com/v1 and provide your Voxify API key. This allows you to use official OpenAI SDKs directly without writing custom HTTP clients, speeding up your mobile app integration significantly.
What audio formats are supported?
You can choose between mp3, wav, opus, flac, or pcm via the response_format field. MP3 and Opus are ideal for mobile bandwidth efficiency, while WAV and FLAC offer lossless quality. PCM is available for raw audio processing. Select the format that best fits your app’s playback requirements.
What is the rate limit?
The limit is 60 requests per minute per API key. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed. This ensures fair usage for indie developers. Monitor your usage via the dashboard to avoid temporary throttling during peak app usage.
How do I handle long texts?
Split your text into chunks of up to 4096 characters. Send each chunk as a separate request and join the resulting audio files in your app. This approach ensures compatibility with the API’s character limit while allowing you to generate narration for longer content like articles or chapters.
What voices are available?
Eight presets are available: Aria, Nova, Luna, and Sage (female); Felix, Milo, Atlas, and Orion (male). Each voice has a distinct tone, from warm narration to energetic promos. All voices support 23 languages, allowing you to localize your mobile app content without needing additional voice assets.
What is the tts-1-hd model?
The tts-1-hd model uses the same engine as tts-1. Both models share the same price point of $10 per million characters. Choose tts-1-hd if your app prioritizes audio fidelity, such as for audiobook-style features or high-quality voiceovers for premium app content.
How do I list available voices?
Send a GET request to /v1/voices. This endpoint returns details on all available voices, supported languages, formats, and pricing. Use this data to dynamically populate your app’s voice selection UI, ensuring users always see the correct options and language support for their selected voice preset.
What happens on error?
If synthesis fails, the charge is returned in full. You will receive an error response indicating the issue, such as invalid input or rate limits. Since failed requests are free, you can retry or adjust your parameters without worrying about unnecessary costs affecting your app’s budget or user credits.
Is SSML supported?
No, SSML is not supported. The API accepts plain text input only. If you need precise control over pauses or emphasis, you must manage this logic in your app by splitting text or adjusting speed parameters. This keeps the integration simple and lightweight for mobile environments.
Can I stream audio?
No, streaming or WebSocket support is not available. The API returns the complete audio file upon request completion. For mobile apps, this means you must wait for the full response before playing audio. This is suitable for most use cases, though real-time partial audio is not offered.
How do I set the language?
Include the language parameter with an ISO code in your request. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin text, always set the language explicitly to ensure accurate pronunciation and avoid misinterpretation by the synthesis engine.
What is the character limit?
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer content, split your text into multiple requests and concatenate the resulting audio files in your app. This ensures consistent performance and avoids exceeding the single-request character constraint.
First request
curl
curl https://api.88newok.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.88newok.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.88newok.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 |
Quickstart: Get Your Key
Start by creating an account on our get-api-key page using your Google account or a standard email and password. This gives you immediate access to a free trial balance of $0.50, valid for seven days, which covers about 50,000 characters of audio generation. Accounts created with email and password start without trial credit.
Once signed in, you are redirected to the dashboard where your unique API key is displayed. You will also see your current balance, character usage, and a ready-to-use cURL example. Keep this key secure, as it authenticates all your requests to the speech endpoint.
Sign up with Google or email
Registration is quick and requires only an email address or a Google login. The process takes just a few seconds and sets up your independent storefront account.
Find your API key on dashboard
After logging in, navigate to the dashboard to view your active API key. The interface displays your key, current balance, and character usage stats. You can copy the key directly from this page to use in your mobile app’s network calls.
One key per account
Each account holds exactly one active API key. If you need to revoke access or rotate credentials, you can issue a new key at any time. The previous key stops working immediately, ensuring secure management for your mobile projects without complex permission layers.
First Request with cURL
Once you have your API key, you can generate speech immediately using a simple cURL command. The endpoint accepts a JSON payload containing your text and voice selection. This straightforward structure makes it easy to integrate voice features into your mobile app's backend or testing scripts.
Send a POST request to the speech endpoint with your credentials. The system processes the text and returns an audio file directly in the response body.
Basic JSON body structure
The request body is a standard JSON object. You specify the model, the text to speak, and the desired voice. Optional parameters allow you to fine-tune the output speed and language.
Keep the payload clean and minimal. The API expects specific keys to process your request correctly.
Required fields: model, input, voice
The model field accepts either "tts-1" or "tts-1-hd". Both use the same engine and pricing. The input field contains your text string, limited to 4096 characters. The voice field requires one of the eight available presets, such as "aria" or "nova".
- model: "tts-1" or "tts-1-hd"
- input: your text string (max 4096 chars)
- voice: e.g., "aria", "nova", "luna", "sage", "felix", "milo", "atlas", "orion"
Optional fields: speed, language
You can adjust the speed between 0.25 and 4.0 to make the speech faster or slower. The language parameter accepts an ISO code (e.g., "en", "fr", "de"). If omitted, the system guesses the language based on the text script, defaulting to English for Latin text.
- speed: 0.25 to 4.0
- language: optional ISO code (e.g., "en", "es", "jp")
Using OpenAI SDK
The official OpenAI SDKs work seamlessly with Voxify by simply updating the base URL. This allows indie developers to leverage familiar tools without learning a new client library. You only need to point the SDK to our API endpoint, and standard TTS methods function as expected.
This approach simplifies integration for mobile apps, letting you use existing code patterns. It reduces boilerplate and speeds up development cycles, ensuring your voice features are ready quickly without unnecessary complexity.
Change base_url to api endpoint
Update your SDK configuration to point to https://api.88newok.com/v1. This single change redirects all requests to our infrastructure while maintaining the standard request shape.
You do not need to modify other parts of your code. The endpoint structure mirrors the OpenAI standard, ensuring compatibility with existing implementations.
Use official SDKs directly
Since the request format is identical, you can use the official OpenAI SDKs for Python, Node.js, or other languages. This means less custom code to maintain and fewer bugs to debug.
The SDK handles JSON serialization and response parsing automatically, making it easy to integrate voice generation into your mobile app's backend or client-side logic.
Authentication header setup
Pass your API key using the standard Authorization: Bearer <key> header. Your key is available on the dashboard at /get-api-key/.
Ensure the key starts with tts- and is sent with every request. The SDK will include this header automatically if configured correctly, keeping your credentials secure and your requests authenticated.
Supported Formats
The API returns audio in five formats: MP3, WAV, Opus, FLAC, and PCM. Choose based on your app’s balance of quality and file size. MP3 and Opus are ideal for mobile data efficiency, while WAV and FLAC offer lossless clarity for local playback.
MP3, WAV, Opus, FLAC, PCM
Select the format that best fits your use case. MP3 and Opus provide smaller file sizes suitable for storage. WAV and FLAC deliver uncompressed, high-fidelity audio. PCM offers raw binary data for immediate processing.
Choose based on app needs
For indie mobile apps, Opus often provides a good balance of quality and bandwidth usage. Use WAV or FLAC if your users are audiophiles or if you are storing audio locally without compression concerns. PCM is useful if your app handles audio encoding natively.
Binary response handling
The API returns the audio file as a binary response body. Ensure your HTTP client handles binary data correctly. Save the response directly to a file or pipe it into your app’s audio player. No JSON parsing is needed for the audio content itself.
Voices and Models
The API offers two model variants: tts-1 and tts-1-hd. Both run on the same engine with identical pricing, so you can choose based on your quality needs without worrying about cost differences. There is no separate SDK or premium tier; both models support the full range of 8 voice presets and all audio formats.
Each voice delivers consistent, clear speech in any of the 23 supported languages. You can mix voices across requests, but each generation uses a single voice preset. The system automatically detects language from the text script if you don’t specify it, though setting the language field explicitly is recommended for non-English Latin text to ensure accuracy.
tts-1 and tts-1-hd models
Both models use the same underlying engine and price structure. There is no performance difference in speed or character limits between the models. Choose tts-1 for standard efficiency or tts-1-hd if you prefer slightly higher fidelity for critical app features.
The models support all response formats: mp3, wav, opus, flac, and pcm. You can switch between models per request without any configuration changes or additional setup.
- Identical pricing: $0.01 per 1,000 characters
- Same 4096 character input limit per request
- No feature differences between models
8 voice presets available
Voxify provides 8 distinct voice presets designed for various app contexts. Female voices include aria (warm narrator), nova (upbeat), luna (soft storytelling), and sage (calm instructional). Male voices include felix (energetic promo), milo (conversational), atlas (neutral news), and orion (deep documentary).
Every voice speaks all 23 supported languages. If you do not set the language parameter, the system guesses from the text script, defaulting to English for Latin characters. Explicitly setting the language ensures correct pronunciation for non-English texts.
- 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
List voices via /v1/voices
Use the GET /v1/voices endpoint to retrieve the full list of available voices, their IDs, and supported languages. This endpoint also returns the available audio formats and current pricing details. It is useful for dynamically populating voice selection menus in your app interface.
The response includes metadata for each voice, such as gender and style tags. You can cache this data locally to reduce API calls during app startup. Always validate the voice ID before sending synthesis requests to avoid errors.
- Returns voice ID, name, and gender
- Lists supported languages and formats
- Includes current pricing info
Rate Limits
Keep your app responsive by staying within our request limits. We cap usage at 60 requests per minute per API key.
60 requests per minute
After you top up your account, your limit increases to 60 requests per minute.
10 per minute initially
New accounts start with a lower limit of 10 requests per minute. This prevents accidental bursts from draining your free trial credit before you are ready to scale.
Increase after top-up
Top up via USDT on TRON to immediately raise your limit. Credits are added automatically, so you can continue generating audio without waiting for manual verification.
Error Handling
API errors return standard HTTP codes to indicate success or failure. A 200 OK means your audio file is ready in the response body. Any non-200 status indicates an issue with authentication, input, or rate limits.
HTTP status codes
Use 400 for invalid JSON or missing fields. 401 indicates an invalid or expired API key. 429 means you have exceeded the 60 requests per minute limit.
JSON error responses
Errors return a JSON object with a code and a message explaining the issue. This structure allows for easy parsing in any mobile language. Always check the status code before parsing the body.
- Include
codeandmessagein the error JSON - Parse errors client-side to handle UI states gracefully
Failed requests are free
If synthesis fails due to invalid input or server issues, you are not charged. The balance remains unchanged. This protects you from unexpected costs during development and testing phases.
Long Text Handling
Your input text cannot exceed 4096 characters in a single API call. For longer scripts, you must split the text into chunks and call the endpoint for each part.
4096 character limit per request
The API enforces a strict 4096-character limit per request. Spaces and punctuation count toward this total. If your text is longer, you must divide it into smaller segments before sending them.
Split and join audio files
Send each text chunk to the POST /v1/audio/speech endpoint. Each request returns a separate audio file. You are responsible for combining these files into a single continuous track for your app.
- Split text into segments under 4096 characters.
- Send each segment as a separate API request.
- Receive multiple audio files from the responses.
Client-side concatenation
Since the API does not join audio for you, you must handle concatenation on the client side. Use your mobile app's audio library to merge the returned files seamlessly. This ensures the final audio plays as one continuous speech.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Pricing clarity matters for indie devs who need to forecast costs without hidden surprises.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- Creative Commons Attribution 4.0
- ISO 639 language codes
- LibriTTS-R corpus (OpenSLR 141)
- W3C WAI: making audio and video accessible
- TRON developer hub: TRC-20
- IETF RFC 7845: Ogg Opus
- Node.js documentation
- openai-node on GitHub
- Python documentation
- OpenAI API reference: create speech
- MDN: Web Speech API
