Frequently asked questions
How do I get an API key?
Sign up on our /get-api-key/ page using Google or email. Your key appears on the dashboard. It starts with 'tts-'. You can issue a new key at any time, which immediately invalidates the old one. One active key is allowed per account.
What is the base URL for the API?
The API base URL is https://api.tgt88.info/v1. Use this for all requests. The main endpoint is POST https://api.tgt88.info/v1/audio/speech. Other endpoints include GET /v1/voices and GET /v1/models for checking available voices and models.
Can I use the OpenAI SDK?
Yes. The request shape matches the OpenAI speech endpoint. Simply change the SDK's base_url to https://api.tgt88.info/v1 and use your Audia key. This allows you to use official OpenAI SDKs without writing custom HTTP clients for basic integration.
What models are available?
Two models are available: 'tts-1' and 'tts-1-hd'. Both use the same engine and price. You can list them via the GET /v1/models endpoint. Choose based on your quality needs, as both deliver the same core synthesis capabilities.
How do I set the voice?
Include the 'voice' field in your JSON body. Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Fetch the full list with GET /v1/voices. Each voice has a distinct tone, from warm narrator to deep documentary.
What languages are supported?
We support 23 languages including English, Spanish, German, French, Japanese, and Chinese. Any voice can speak any supported language. If you send non-English Latin text without specifying 'language', it defaults to English. Set the 'language' field for other scripts.
What audio formats can I request?
You can request mp3, wav, opus, flac, or pcm. Set the 'response_format' field in your request body. These formats cover most LMS and audio player requirements. The API returns the audio file directly in the response upon successful synthesis.
How do I handle errors?
Failed requests are free; the charge is returned in full if synthesis fails. Monitor your response status codes. If an error occurs, check your input text length and voice validity. Retry the request, as failures do not consume your character balance.
What is the rate limit?
You are limited to 60 requests per minute per key. Before your first top-up, this limit is 10 requests per minute. Requests are processed sequentially, so high load may cause queuing. Monitor your usage via the dashboard to avoid throttling.
Can I change the speed?
Yes, use the 'speed' field with a value between 0.25 and 4.0. This allows you to adjust narration pace for educational content. Adjusting speed does not affect the character count or pricing of your requests.
Is the language parameter required?
No, it is optional. If omitted, the system guesses the language from the script. Latin text defaults to English. For non-English Latin text or other scripts, explicitly set the 'language' field using the ISO code to ensure accurate synthesis.
How do I split long texts?
Split your text into parts of up to 4096 characters. Send each part as a separate request. Then, join the resulting audio files in your LMS workflow. This ensures each request stays within the character limit for successful synthesis.
What is the character limit per request?
Each request supports up to 4096 characters of input text. Spaces and punctuation count toward this limit. For longer course content, divide the text into chunks of this size. Each chunk generates a separate audio file that you can concatenate.
How do I authenticate requests?
Include your API key in the Authorization header. Use the format: 'Authorization: Bearer tts-...'. Your key is issued upon account creation on /get-api-key/. Ensure you use the correct base URL and pass the key with every API call.
First request
curl
curl https://api.tgt88.info/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.tgt88.info/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.tgt88.info/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
Access the /get-api-key/ page on tgt88.info to create your account. You can sign in using Google or create an account with an email and password. This dashboard serves as your central hub for managing access credentials and monitoring usage limits.
Once authenticated, you will receive a unique API key required for all requests. This key authenticates your 60 requests-per-minute limit and tracks your character consumption against your account balance.
Sign Up on the Dashboard
Navigate to the sign-up page and choose your preferred authentication method. Google sign-in provides immediate trial credit of $0.50, valid for 7 days. Email-based accounts start without trial credit but allow immediate top-ups via USDT (TRC-20).
Create your account to generate your first API key. This key is tied to your specific site account and enables you to begin sending text-to-speech requests immediately.
- Supports Google OAuth and email/password registration
- Google sign-in includes a $0.50 trial credit
- Email accounts start without trial credit
Locate Your Key in Settings
After logging in, your API key is displayed prominently on the dashboard. The interface shows your current balance, trial status, and characters remaining.
Use this key in the Authorization: Bearer header for all API calls. The key format begins with tts- and is required for every request to https://api.tgt88.info/v1.
- Key displays with current balance and usage stats
- Format starts with 'tts-' prefix
- Key is required for all API endpoints
Regenerate Key if Needed
You can issue a new API key at any time from the settings page. When you generate a new key, the previous one stops working immediately.
This feature ensures secure access management for large educational teams. If a key is compromised or a team member leaves, you can instantly revoke access without affecting your balance or usage history.
- Old key stops working immediately upon regeneration
- No impact on account balance or usage history
- Supports secure team access management
First Request with cURL
Begin by constructing a JSON payload containing the model, input text, and desired voice preset. Ensure the text does not exceed 4,096 characters, as longer content must be split into segments before synthesis.
Prepare the JSON Body
Include the response_format (mp3, wav, opus, flac, or pcm) and optional speed or language parameters. The input field accepts plain text up to the character limit.
Send POST Request to Endpoint
Use cURL to POST the JSON to https://api.tgt88.info/v1/audio/speech. Include your API key in the Authorization: Bearer header to authenticate the request.
Receive Audio File Response
The API returns the raw audio file directly in the response body. Save this output to your LMS media library.
Integration with OpenAI SDK
Audia’s API mirrors the OpenAI speech endpoint structure, allowing teams to reuse existing OpenAI SDK clients with minimal configuration changes. This compatibility simplifies integration for educational platforms already leveraging OpenAI tools for other tasks.
By pointing the SDK to our domain, you can generate audio files for course narration without building a custom HTTP client. The standard request shape handles text input, voice selection, and format preferences seamlessly.
Set Base URL to API Domain
Configure your OpenAI SDK client to point to https://api.tgt88.info/v1 instead of the default OpenAI endpoint. This directs all requests to Audia’s infrastructure while maintaining the familiar SDK interface.
No additional client libraries are required. The existing OpenAI Python, Node.js, or other official SDKs handle the protocol correctly when the base URL is updated.
- Base URL:
https://api.tgt88.info/v1
Use Official Speech Endpoint
Call the standard POST /v1/audio/speech endpoint using the SDK’s Audio.speech method. Pass your text, chosen voice, and desired output format as parameters.
The SDK automatically serializes the JSON body and handles the response, returning the audio file in the requested format (mp3, wav, opus, flac, or pcm).
Pass API Key in Headers
Include your Audia API key in the Authorization header as Bearer tts-.... Ensure the key is correctly scoped to your account and active.
If you regenerate your key in the dashboard, the old key stops immediately. Update your SDK configuration promptly to avoid service interruption during course updates.
- Header:
Authorization: Bearer tts-...
Request Parameters
The model parameter determines the synthesis engine. Both tts-1 and tts-1-hd use the same engine and pricing, so you can switch freely based on your latency needs without cost changes. The input text is limited to 4096 characters per request.
For voices, select from eight presets like aria for clear narration or atlas for neutral news delivery. Use the speed parameter (0.25–4.0) to adjust pacing for long educational modules. Always set the language ISO code for non-English Latin text to ensure accurate synthesis.
Model Selection (tts-1, tts-1-hd)
Both models use the same engine and price ($0.01 per 1,000 characters). Choose tts-1 for standard processing or tts-1-hd if you prefer the HD variant, though output quality remains consistent. This allows you to prioritize response time for large course batches.
Voice Preset Configuration
Select one of eight voices optimized for educational content. Use aria for clear instruction or milo for conversational explanations. Each voice supports all 23 languages, ensuring consistent tone across multilingual course materials without needing separate voice assets.
Voices are based on licensed recordings, so audio files include an inaudible synthetic watermark. This helps identify generated content in your LMS library.
- 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
Speed and Language Settings
Adjust speed between 0.25 and 4.0 to match listener preferences. Faster speeds reduce processing time for long texts, while slower speeds may improve comprehension for complex topics. Always specify the language parameter (e.g., es, fr) for non-English text to prevent incorrect language guessing.
If language is omitted, Latin script defaults to English. For accurate results in German, Japanese, or other supported languages, explicitly define the code in your JSON body.
- Speed range: 0.25–4.0
- Language: optional ISO code
- Default: English for Latin script
Response Formats
The API returns audio data in the response_format field, allowing you to select the most appropriate codec for your LMS player. Choosing the right format balances file size, compatibility, and audio fidelity for your course materials.
All formats support the standard speed range of 0.25–4.0 and include an inaudible synthetic watermark. Failed requests return no charge regardless of the format chosen.
MP3 Output
MP3 is the default and most widely supported format for web browsers and most Learning Management Systems. It offers a good balance between file size and quality for standard course narration.
Use mp3 for general listening. The file size is small, making it ideal for quick downloads and streaming in standard LMS players without additional codec plugins.
- Default format for most players
WAV Output
WAV provides uncompressed, high-quality audio. It is ideal for archiving master copies of your course content or for use in professional editing workflows within your LMS.
Files are larger than MP3 but ensure no lossy compression artifacts. Choose this if your downstream processing requires raw audio data.
- Uncompressed quality
- Ideal for master archives
OPUS and FLAC Options
OPUS offers high-quality compression at smaller sizes, suitable for efficient web delivery. FLAC provides lossless compression, preserving exact audio fidelity while reducing file size compared to WAV.
Select OPUS for bandwidth-efficient delivery or FLAC for high-fidelity archival needs without the bulk of uncompressed WAV files.
- OPUS: efficient web streaming
- FLAC: lossless compression
Error Handling
Handling errors ensures your LMS workflow remains stable during high-volume content generation. Audia provides clear status codes and messages to help you debug integration issues quickly.
Rate Limit Exceeded
You receive a 429 error when exceeding 60 requests per minute. If your account has not yet topped up, the limit is 10 requests per minute.
- Implement exponential backoff to retry after brief delays.
- Monitor the
Retry-Afterheader in the response.
Invalid API Key
A 401 error indicates an incorrect or expired key. Verify the key in your dashboard settings or regenerate it if necessary.
- Ensure the key starts with
tts-. - Check that the key is active and not replaced.
Text Too Long
The API rejects inputs exceeding 4096 characters. Split your course text into smaller parts and join the resulting audio files.
- Pre-process text before sending to the API.
- Handle partial failures gracefully.
Rate Limits and Quotas
Audia enforces a standard rate limit of 60 requests per minute per API key. This capacity supports typical LMS batch processing for course narration without requiring complex throttling logic in your integration layer.
60 Requests Per Minute
Once your account is active, you can process up to 60 synthesis requests each minute. This limit applies per key, so ensure your system uses a single active key for consistent tracking.
10 Requests Before Top-Up
New accounts start with a restricted limit of 10 requests per minute. This allows you to test integration with the OpenAI SDK or cURL before adding funds. The limit lifts automatically after your first top-up.
Queue Processing Under Load
Requests are processed one after another. If you exceed the per-minute limit or send many long-text requests, subsequent requests may wait in a queue. Expect slight delays during high-volume course generation periods.
Voice and Model Details
Explore the specific voice presets and language capabilities available for your educational content. Use the /v1/voices endpoint to retrieve a complete list of eight distinct voice profiles, including their tone characteristics and supported languages. This allows you to select the most appropriate narrator for different course modules, ensuring consistency across your LMS.
List Available Voices
The /v1/voices endpoint returns eight presets, including female voices like Aria and Nova, and male options such as Felix and Milo. Each voice is designed for specific educational contexts, from clear narration to conversational instruction. You can filter these by tone to match your course style.
- Aria: Warm, clear narrator
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
Check Supported Languages
Twenty-three languages are supported, including English, Spanish, German, Japanese, and Hindi. Any voice can speak any supported language. If the language is not specified, the system guesses based on the script, defaulting to English for Latin text. Explicitly set the language parameter for non-English Latin scripts to ensure accuracy.
- Arabic, Chinese, Danish, Dutch
- English, Finnish, French, German
- Japanese, Korean, Malay, Spanish
- Russian, Turkish, and more
View Model Specifications
Two models are available: tts-1 and tts-1-hd. Both use the same engine and price structure. The /v1/models endpoint provides technical details about each model. Choose based on your quality requirements, keeping in mind that processing occurs sequentially, which may affect generation time for large batches.
- tts-1: Standard model
- tts-1-hd: High definition
- Same engine and price
- Sequential processing
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Short phrases may take a few seconds to complete, while longer texts process proportionally.
23 languages
Any voice speaks any of these languages.
