Frequently asked questions
What is the base URL for the API?
The API base URL is https://api.jl999bet.com/v1. The speech endpoint is POST https://api.jl999bet.com/v1/audio/speech. This structure matches the OpenAI speech endpoint, allowing you to use existing OpenAI SDKs by simply changing the base_url configuration to point to our domain.
How do I authenticate with the API?
Include your API key in the request header as Authorization: Bearer tts-... . You receive one active key per account. If you need a new key, you can issue it at any time; the old key stops working immediately upon generation of the new one.
What is the maximum input length per request?
The input text field supports up to 4096 characters per request. For longer texts, you must split the content into parts of this size. After generating audio for each part, you should join the resulting audio files to create the final output for your navigation prompts.
Can I use the OpenAI SDK with this API?
Yes, the request shape is identical to the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.jl999bet.com/v1 and providing your NavTTS Labs API key. This allows seamless integration into your existing engineering workflows without learning a new library.
How do I handle rate limit errors?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so under load, requests may wait in a queue. Implement exponential backoff in your code to handle temporary delays or 429 status codes gracefully during high-volume generation.
What audio formats are supported?
You can request audio in mp3, wav, opus, flac, or pcm formats via the response_format field. Choose mp3 or opus for smaller file sizes suitable for in-car storage, or wav/flac for higher quality. The format choice does not affect the price or the voice model used.
How do I change the voice model?
Change the voice parameter in your request body. You can choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice has a distinct tone, from warm narrators to deep documentary styles, allowing you to match the specific context of your navigation alerts.
Is the response always JSON?
No. The request body is JSON, but the response is the audio file itself in the format you specified (e.g., mp3, wav). The HTTP response headers will indicate the content type. You do not receive a JSON object containing the audio data; you receive the raw binary stream.
What happens if the server is busy?
Requests are processed one after another, so under load, a request may wait in a queue. Typical speed is roughly real time, but short phrases take a few seconds. If the queue is long, your request will simply take longer to complete without failing, provided you stay within rate limits.
Can I specify a language explicitly?
Yes, use the optional language field with an ISO code. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly setting the language ensures accurate pronunciation, as any voice can speak any of the 23 supported languages.
How do I rotate my API key?
Navigate to your account dashboard to issue a new key. When you generate a new key, the old one stops working immediately. This ensures that if a key is compromised, you can revoke it instantly.
What is the speed range for voice output?
You can adjust the speed parameter between 0.25 and 4.0. This allows you to slow down voice prompts for clarity in noisy car environments or speed them up for quick alerts. The speed adjustment does not incur additional costs beyond the standard per-character pricing model.
Are there any deprecated endpoints?
The primary endpoint is POST /v1/audio/speech. Additional endpoints include GET /v1/voices for listing available voices and GET /v1/models for model details. There are no other deprecated endpoints currently in use. Stick to these three endpoints for all integration needs with the NavTTS Labs API.
How do I test the API before production?
Sign up with Google to receive $0.50 of free trial credit, valid for 7 days. This allows you to generate approximately 50,000 characters of audio. Use the provided curl example on the /get-api-key/ page to verify integration. Failed requests are free, so you can test error handling safely.
First request
curl
curl https://api.jl999bet.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.jl999bet.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.jl999bet.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 Setup
NavTTS Labs provides a single active API key per account, issued via the /get-api-key/ dashboard. You generate this key by signing in with Google or an email/password combination. The dashboard displays your current balance, character usage, and a ready-to-use curl example for immediate testing.
Generating Your API Key
Access the /get-api-key/ page to create your account. Google sign-in includes a $0.50 free trial credit valid for 7 days, while email accounts start with zero balance. You must top up using USDT (TRC-20) on the TRON network to begin making requests.
Using Bearer Token Auth
Include your key in the request header as Authorization: Bearer tts-.... This standard authentication method works seamlessly with the official OpenAI SDKs by setting the base_url to https://api.jl999bet.com/v1. Ensure your key remains secure, as it grants full access to your billing and synthesis capabilities.
Key Rotation Policy
You can issue a new key at any time from your dashboard. The previous key stops working immediately upon the new key's activation. This allows for secure rotation without downtime, ensuring that compromised or legacy keys in your automotive navigation infrastructure are instantly invalidated.
Speech Synthesis Endpoint
The core synthesis engine responds to POST requests at https://api.jl999bet.com/v1/audio/speech. This endpoint accepts JSON payloads containing your input text and configuration parameters, returning the generated audio file directly in the response body. It is designed to integrate seamlessly with standard HTTP clients and the OpenAI SDK by simply overriding the base URL.
When integrating with in-car navigation systems, ensure your client handles binary audio data efficiently. The API processes requests sequentially, so under heavy load, a request may queue briefly. For long navigation instructions, split text into chunks of up to 4096 characters to maintain consistent generation speed.
POST Request Structure
Send a POST request to the speech endpoint with a JSON body. The request must include a valid Bearer token in the Authorization header. The payload defines the model, input text, voice selection, and output format. The API supports both tts-1 and tts-1-hd models, which use the same underlying engine and pricing.
- Endpoint: POST https://api.jl999bet.com/v1/audio/speech
- Content-Type: application/json
- Body: JSON object with model, input, voice, etc.
Required Parameters
The input field is mandatory and can contain up to 4096 characters of text. Spaces and punctuation count toward this limit. The voice parameter must specify one of the eight available presets, such as atlas for neutral news-style prompts or aria for clear navigation instructions. The model field accepts either tts-1 or tts-1-hd.
input: Text to convert (max 4096 chars)voice: One of 8 presets (e.g., atlas, aria)model: "tts-1" or "tts-1-hd"
Optional Parameters
You can specify the response_format as mp3, wav, opus, flac, or pcm. The speed parameter allows adjustment between 0.25 and 4.0 times normal speed. The language field accepts an ISO code to override automatic detection, which is useful for non-English Latin-script text. If omitted, the system guesses the language from the script.
response_format: mp3, wav, opus, flac, pcmspeed: 0.25–4.0language: Optional ISO code (e.g., 'en')
Response Formats and Codes
The API returns audio data in the requested format, supporting mp3, wav, opus, flac, or pcm. Each response is a binary file payload, ensuring seamless integration into your navigation system's audio pipeline without intermediate conversion steps.
Supported Audio Formats
Choose from mp3, wav, opus, flac, or pcm based on your in-car hardware constraints. Mp3 offers efficient storage, while wav provides uncompressed quality for high-fidelity voice prompts.
Success Response Structure
A successful synthesis returns an HTTP 200 status with the audio file as the response body. The content type matches your requested format, allowing immediate playback or storage by your navigation assistant.
Error Handling and Codes
Errors return standard HTTP codes (400, 401, 429, 500) with a JSON body detailing the issue. Failed requests incur no charge, and the balance is returned in full.
- 400: Invalid request parameters, such as text exceeding 4096 characters.
- 401: Unauthorized if the Bearer token is missing or invalid.
- 429: Rate limit exceeded (60 requests/minute per key).
Rate Limits and Quotas
Rate limits ensure fair usage and system stability for your navigation audio streams. Understanding these constraints helps prevent interruptions during high-volume synthetic voice generation for GPS directions or alerts.
The API enforces strict per-key limits that vary based on your account's payment status. Knowing these thresholds allows engineering teams to plan their integration architecture accordingly.
Requests Per Minute Limit
Each API key is limited to 60 requests per minute. Since each request can handle up to 4096 characters, this allows for substantial audio generation capacity. Requests are processed sequentially, so under load, a request may wait in a queue before synthesis begins.
- Limit: 60 requests/minute per key
Pre-Payment Limit
Before your first top-up, the limit is stricter: 10 requests per minute. This allows you to test the integration without immediate high-volume pressure. Once you add credit, the limit increases to 60 requests per minute automatically.
- Pre-top-up: 10 requests/minute
Handling Throttling
If you exceed the limit, the API returns a 429 Too Many Requests error. Implement exponential backoff in your client code to retry after a short delay. Since requests are processed one after another, queuing delays may also occur during peak times.
- Error code: 429
- Strategy: Exponential backoff
Voice Selection and Configuration
Select from eight licensed voice presets designed for clarity in noisy cabin environments. Options range from warm narrators to deep documentary tones, ensuring prompts for GPS directions or alerts remain intelligible across various vehicle interior acoustics.
Available Voice Presets
Choose from female voices (aria, nova, luna, sage) or male voices (felix, milo, atlas, orion). Each voice offers distinct tonal qualities suitable for specific interface contexts, such as calm instructions or energetic promotions.
- 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
Language Parameter Usage
Supports 23 languages including English, German, Japanese, and Spanish. Any voice can speak any supported language. Explicitly set the ISO code for non-English Latin script text, as the default fallback for Latin scripts is English.
Speed Adjustment Range
Adjust playback speed between 0.25 and 4.0 to match driver attention spans. Faster speeds suit rapid alert sequences, while slower rates enhance comprehension for complex navigation instructions.

Code Examples
Integration is straightforward using standard HTTP clients or the OpenAI Python library. Configure the base URL to point to our API endpoint and supply your bearer token for authentication.
These examples demonstrate sending a text payload and receiving an audio file, ensuring your navigation prompts integrate seamlessly with your automotive software stack.
cURL Command Example
Use this command to test the endpoint directly from your terminal. Replace YOUR_API_KEY with your key from the dashboard.
```bash curl https://api.jl999bet.com/v1/audio/speech \ -H "Authorization: Bearer tts-..." \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Turn left in 200 meters", "voice": "atlas", "response_format": "mp3"}' ```
OpenAI SDK Configuration
Reconfigure the OpenAI SDK by overriding the base URL. This allows you to use familiar methods while connecting to our infrastructure.
```python import openai client = openai.OpenAI(api_key="tts-...", base_url="https://api.jl999bet.com/v1") with client.audio.speech.create( model="tts-1", voice="atlas", input="Turn left in 200 meters" ) as response: response.write_to_file("navigation.mp3") ```
Python Integration Snippet
For direct HTTP requests, use the requests library. This approach gives you full control over headers and error handling.
```python import requests response = requests.post( "https://api.jl999bet.com/v1/audio/speech", headers={"Authorization": "Bearer tts-...", "Content-Type": "application/json"}, json={"model": "tts-1", "voice": "atlas", "input": "Traffic ahead"} ) with open("alert.mp3", "wb") as f: f.write(response.content) ```
Endpoint Reference
This section provides the definitive reference for all available API endpoints used in the NavTTS Labs integration. These endpoints allow your automotive navigation system to discover available voice models, retrieve configuration details, and generate audio files directly from text inputs.
All endpoints require a valid Bearer token in the Authorization header. The base URL for all requests is https://api.jl999bet.com/v1.
GET /v1/voices List
Returns a JSON array of all available voice presets, their associated languages, and supported output formats. Use this to dynamically populate your UI with voice options.
Each voice object includes the voice ID, name, gender, and the list of languages it supports. This endpoint helps you ensure the selected voice matches the language of the navigation prompt.
- Returns a JSON array of all available voice presets, their associated languages, and supported output formats.
GET /v1/models List
Returns a list of available models, currently 'tts-1' and 'tts-1-hd'. Both use the same engine and price but differ in output quality.
Use this endpoint to verify which models are active for your account before making synthesis requests.
- Returns a list of available models, currently 'tts-1' and 'tts-1-hd'.
POST /v1/audio/speech
The primary endpoint for generating audio. Send text input and receive an audio file in the specified format. Supports formats like mp3, wav, opus, flac, and pcm.
Text is limited to 4096 characters per request. For longer navigation instructions, split the text and join the resulting audio files.
- The primary endpoint for generating audio. Send text input and receive an audio file in the specified format. Supports formats like mp3, wav, opus, flac, and pcm.
- Text is limited to 4096 characters per request. For longer navigation instructions, split the text and join the resulting audio files.
Best Practices for Automotive Use
Automotive voice prompts require precise timing. Split long navigation instructions into chunks under 4,096 characters, then concatenate the resulting audio files to ensure seamless playback without gaps or buffering delays during critical driving moments.
Text Chunking Strategy
Break complex directions into logical segments. Since requests are processed sequentially, smaller chunks reduce the risk of queue delays for time-sensitive alerts.
Handling Network Latency
Generate audio files in advance where possible. Real-time synthesis takes roughly one second per 25 characters; pre-loading ensures immediate playback when a route change occurs.
Optimizing for Short Prompts
Short phrases may take a few seconds to generate due to initialization overhead. Use the tts-1 model for brief, high-frequency alerts like lane changes or speed warnings.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. The use of licensed recordings from LibriTTS-R ensures natural speech patterns.
23 languages
Any voice speaks any of these languages.
