Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email and password. Accounts are specific to this site. Once registered, your dashboard displays your active Bearer key, current balance, and usage statistics immediately.
What is the base URL for the API?
The API base URL is https://api.1777bdtapk.com/v1. Use this endpoint for all requests, including the speech generation endpoint and the voices listing endpoint. Ensure your HTTP client points to this specific domain for authentication.
Which SDKs are compatible?
The API uses the same request shape as the OpenAI speech endpoint. Official OpenAI SDKs work by changing the base_url to our domain. You can also use plain HTTP requests with the standard JSON body structure.
How do I specify Hindi language?
Include the 'language' field set to 'hi' in your JSON request body. Although Hindi uses Devanagari script, explicitly setting the language ensures correct pronunciation. If omitted, the system guesses the language based on the script used.
What voices are available for Hindi?
All eight voices support Hindi: aria, nova, luna, sage, felix, milo, atlas, and orion. Each voice maintains its distinct tone, such as aria’s warm narration or atlas’s neutral news style, while speaking fluent Hindi.
What is the rate limit?
You are limited to 60 requests per minute per API key. Before your first top-up, the limit is 10 requests per minute. Exceeding this limit results in requests waiting in a queue or rejection until the window resets.
How do I handle errors?
Check the HTTP status code in the response. If synthesis fails, the charge is returned in full. Review the error message body for details on invalid parameters, such as incorrect voice names or unsupported formats.
What audio 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 request. MP3 is recommended for general use due to its balance of quality and size.
Can I adjust voice speed?
Yes, use the 'speed' field to adjust playback rate between 0.25 and 4.0. The default speed is 1.0. Adjusting speed helps language learners practice listening at different paces, from slow articulation to rapid speech.
How do I know which voice to use?
Review the voice descriptions: aria is a warm narrator, nova is upbeat, luna is soft, sage is calm, felix is energetic, milo is friendly, atlas is neutral, and orion is deep. Choose based on your content type.
Is there an OpenAI SDK example?
Yes, use the official OpenAI SDK. Set the base_url to https://api.1777bdtapk.com/v1 and provide your Bearer token. The request body structure matches the OpenAI speech endpoint exactly, requiring model, input, voice, and response_format.
What happens if I exceed the limit?
Requests are processed sequentially. If you exceed the 60 requests per minute limit, new requests may wait in a queue or be rejected. Failed requests do not consume your character balance or incur charges.
How do I top up my balance?
Top up using USDT on the TRON network (TRC-20). The minimum deposit is $5. Credits are added automatically within minutes after the transfer is confirmed on the blockchain. No other payment methods are supported.
Are there any version numbers for the API?
The API version is indicated in the URL path as /v1/. The model field accepts 'tts-1' or 'tts-1-hd', both using the same engine and pricing. No other version numbers are currently used for endpoints or models.
First request
curl
curl https://api.1777bdtapk.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.1777bdtapk.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.1777bdtapk.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 |
Get Your API Key
Sign up on https://1777bdtapk.com/get-api-key/ using Google or email. Accounts are per site. Google sign-in includes a $0.50 trial valid for 7 days.
Once registered, your dashboard displays your API key, balance, and usage statistics. This key authenticates your requests to the API.
Access your key from the dashboard
The dashboard shows your active key, remaining balance, and characters left. You can issue a new key at any time; the old one stops immediately.
- View current balance and usage stats
- Generate new keys instantly
- Track character consumption
Use Bearer token in Authorization header
Include your key in the request header: Authorization: Bearer tts-.... This authenticates every API call you make.
First Request with cURL
Generate Hindi speech by sending a POST request to the speech endpoint. The API accepts standard JSON bodies, allowing you to specify the model, input text, and voice. This method works with any HTTP client capable of sending JSON payloads.
Use the provided cURL example to verify your API key and input parameters. The response contains the binary audio data, which you can save directly to a file for playback in your language learning application.
Basic POST request example
Send a POST request to https://api.1777bdtapk.com/v1/audio/speech with your Bearer token and JSON body. Replace YOUR_API_KEY with your actual key from the dashboard.
```bash curl -X POST https://api.1777bdtapk.com/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "नमस्ते, यह एक हिंदी टेक्स्ट उदाहरण है।", "voice": "nova", "response_format": "mp3" }' \ -o output.mp3 ```
Required fields: model, input, voice
The model field accepts tts-1 or tts-1-hd. The input field contains your Hindi text, limited to 4096 characters. The voice field selects one of the 8 presets, such as nova or aria, which support Hindi natively.
Ensure the input text is UTF-8 encoded. The API automatically detects the language script, but you may explicitly set the language field to hi for clarity.
Response format options
Specify the response_format as mp3, wav, opus, flac, or pcm. MP3 is recommended for most use cases due to its balance of quality and file size.
The API returns the audio file as binary data in the response body. Save this output directly to your application's storage.
- mp3: Compressed, widely supported
- wav: Lossless, larger file size
- opus: High efficiency, small size
- flac: Lossless compression
- pcm: Raw audio data
Using the OpenAI SDK
Integrating our Hindi text-to-speech API with the official OpenAI SDK is straightforward because our endpoint structure mirrors theirs. You only need to adjust the base_url to point to our API domain and provide your API key. This allows you to reuse existing client code without significant refactoring.
The SDK handles the HTTP requests, so you can focus on passing the correct parameters like model, input, and voice. This approach works seamlessly for generating audio files from Hindi text in your language learning applications.
Set base_url to api domain
Update your SDK configuration to use https://api.1777bdtapk.com/v1 as the base URL. This directs requests to our TTS endpoint while maintaining the standard request shape.
Ensure you are using the correct version of the SDK that supports custom base URLs.
- Base URL: https://api.1777bdtapk.com/v1
- Endpoint: /v1/audio/speech
Use official OpenAI SDKs
Leverage the official OpenAI SDK for your preferred language (Python, Node.js, etc.). The SDK simplifies the JSON body construction and response handling.
Pass your parameters directly to the audio.speech method. The SDK manages the serialization and deserialization of the audio binary response.
- Python SDK
- Node.js SDK
- Go SDK
- Java SDK
Configure key in environment
Set the OPENAI_API_KEY environment variable to your API key from the dashboard. The SDK automatically reads this variable for authentication.
Alternatively, pass the key directly to the client constructor if you prefer explicit configuration. Ensure your key starts with tts-.
- Environment variable: OPENAI_API_KEY
- Key format: tts-...
Supported Voices and Languages
Our API supports 23 languages, including Hindi, Arabic, and Spanish. Any voice can speak any of these languages. If you do not set the language, the system guesses it from the script. For non-English Latin text, always set the language explicitly.
8 voice presets available
Choose from eight licensed voices based on LibriTTS-R recordings. Options include female voices like Aria and Nova, and male voices like Luna and Sage, and male voices like Felix, Milo, Atlas, and Orion. Each voice has a distinct character, from calm narration to energetic promos.
- Female: Aria, Nova, Luna, Sage
- Male: Felix, Milo, Atlas, Orion
23 languages supported including Hindi
We support Hindi, English, German, Japanese, and 19 others. Vietnamese, Thai, and Ukrainian are not supported. Use ISO codes for precise control.
- Supported: Hindi, English, Arabic, Chinese, French, German, Japanese, Korean, Russian, Spanish
- Not supported: Vietnamese, Thai, Ukrainian, Romanian, Czech, Bengali
Voice selection for tone and style
Select a voice that matches your lesson’s tone. Use Atlas for neutral news-style practice or Luna for soft storytelling. All voices generate clear audio suitable for student repetition exercises.
Audio Formats and Output
Select the desired output format using the response_format parameter in your API request. We support MP3, WAV, OPUS, FLAC, and PCM to suit various integration needs, from web playback to raw audio processing.
MP3, WAV, OPUS, FLAC, PCM support
Choose the format that best fits your application’s requirements. MP3 is ideal for general web use, while FLAC and WAV offer lossless quality for high-fidelity language learning tools. PCM provides uncompressed raw data for custom pipelines.
- MP3: Compressed, widely compatible
- WAV: Uncompressed, lossless
- OPUS: Efficient compression
- FLAC: Lossless compression
- PCM: Raw audio data
Binary audio in response body
The synthesized audio is returned directly as binary data in the HTTP response body. You can save this stream directly to a file or process it further without needing an intermediate storage step.
No streaming or WebSocket support
Audio generation is not streamed in real-time. The entire audio file is generated and returned in a single response. This means you receive the complete file only after processing finishes, rather than receiving partial chunks.

Rate Limits and Errors
This API enforces a strict rate limit of 60 requests per minute per active API key. If you exceed this threshold, your requests will be rejected until the window resets. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.
60 requests per minute limit
Each API key is allowed 60 requests per minute. New accounts begin with 10 requests per minute until a top-up is received. Exceeding these limits results in requests waiting in a queue or rejection until the window resets.
- Standard limit: 60 requests/minute/key
- New account limit: 10 requests/minute
- Limits reset every 60 seconds
4096 character input limit
Each request can process up to 4,096 characters of text. If your content exceeds this, split it into smaller parts and join the resulting audio files. Spaces and punctuation count toward the character limit.
- Maximum input length: 4,096 characters
- Characters include spaces and punctuation
- Split long texts for synthesis
Common error codes and messages
Invalid API key errors occur when the token is missing or incorrect. Rate limit exceeded warnings appear when you send too many requests. Input text too long errors trigger when the payload exceeds 4,096 characters. Failed synthesis requests are free and do not deduct from your balance.
- 401: Invalid API key
- 429: Rate limit exceeded
- 400: Input text too long
- 500: Synthesis failure (free)
Voice Parameters and Speed
The API accepts a speed parameter ranging from 0.25 to 4.0, allowing you to adjust the playback rate of generated audio. This feature is particularly useful for language learning tools, where slowing down speech helps students practice pronunciation and listening comprehension. Default speed is 1.0.
You can also provide an optional language parameter using an ISO 639-1 code (e.g., "hi" for Hindi). While the API attempts to detect the language from the text script, explicitly setting the language ensures accurate synthesis for Latin-script languages or mixed-language content.
Speed range 0.25 to 4.0
Adjusting speed lets you tailor audio for different learning levels. Slower speeds (e.g., 0.5) improve clarity for beginners, while faster rates (e.g., 2.0) simulate natural conversation practice. The API processes requests sequentially, so generation latency depends on queue load.
- Minimum speed: 0.25 (very slow)
- Maximum speed: 4.0 (very fast)
- Default speed: 1.0
Language code optional
If you omit the language field, the system guesses the language based on the text script. For Hindi, you can send the Devanagari script without a code, or set language: "hi" for clarity. This is crucial for Latin-script texts that might otherwise default to English.
- Hindi ISO code: "hi"
- Auto-detection works for Devanagari script
- Set explicitly for mixed-language inputs
Voice presets affect tone
Choose from eight voice presets to match your educational content style. For Hindi, voices like Aria or Nova offer clear, neutral tones suitable for instructional material. Each voice maintains consistent quality across all 23 supported languages, ensuring uniform audio output.
- 8 voice presets available
- Clear tones for educational content
- Consistent quality across languages
Troubleshooting Common Issues
When integrating Hindi TTS, developers often encounter authentication or input constraints. This section covers the three most frequent errors: invalid keys, rate limits, and text length issues. Use these checks to resolve requests quickly without disrupting your language learning workflow.
Ensure your API key is active and correctly formatted in the Authorization header. If you receive a 401 error, verify the key exists and hasn’t been revoked. Check your dashboard to confirm your account status and key validity.
Invalid API key errors
A 401 Unauthorized response usually means the key is missing, incorrect, or expired. Verify the key starts with tts- and is placed in the Authorization: Bearer header. If you issued a new key, the old one stops immediately. Regenerate via your dashboard if needed.
- Check key format:
tts-... - Ensure
Authorization: Bearerheader is used - Revoke old keys if rotated
Rate limit exceeded warnings
You are limited to 60 requests per minute per key. If you exceed this, you receive a 429 error. Before your first top-up, the limit is 10 requests per minute. Implement exponential backoff in your client to handle temporary throttling gracefully.
- Limit: 60 req/min (standard)
- Limit: 10 req/min (pre-top-up)
- Use exponential backoff
Input text too long errors
Each request supports up to 4096 characters. Exceeding this limit returns a 400 error. Split longer texts into chunks of 4096 characters or less. Generate audio for each chunk and join the files client-side to create the full audio output.
- Max length: 4096 characters
- Split text into chunks
- Join audio files client-side
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Her clear tone helps learners focus on pronunciation, making her a reliable choice for foundational language exercises.
23 languages
Any voice speaks any of these languages.
