Frequently asked questions
What is the base URL?
The API base URL is https://api.gg666.info/v1. All requests, including audio synthesis and voice listing, originate from this endpoint. You can use this base URL with standard HTTP clients or by configuring third-party SDKs to point to this address for all API interactions.
Can I use the OpenAI Python SDK?
Yes. The endpoint shape matches the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.gg666.info/v1 and providing your NewsTTS API key. This allows you to use familiar code structures for generating audio files from text inputs.
How do I set the speed?
Include the speed field in your JSON request body. Acceptable values range from 0.25 to 4.0. This parameter adjusts the playback rate of the synthesized audio. You can set the speed to match specific pacing requirements for your news content.
What happens if I exceed the limit?
Your rate limit is 60 requests per minute per key. If you exceed this, requests may queue or fail. Before your first top-up, the limit is 10 requests per minute. Exceeding limits does not incur extra charges; you simply wait for the window to reset or upgrade your throughput.
Is SSML supported?
No. The API does not support SSML (Speech Synthesis Markup Language). You must provide plain text input. If you need specific pauses or emphasis, you must manage those via text formatting or by splitting your input into multiple requests with appropriate timing logic in your application.
Can I stream audio?
No. The API returns the complete audio file in the response body. There is no WebSocket or streaming endpoint for real-time partial audio. You receive the full file once synthesis is complete. This approach simplifies integration but requires waiting for the full generation before playback begins.
What is the input character limit?
Each request supports up to 4096 characters. If your text exceeds this limit, you must split it into parts. Generate audio for each part separately and then join the resulting audio files in your application. Spaces and punctuation count toward this character limit.
How do I specify language?
Include the language field with an ISO code in your request. If omitted, the system guesses the language based on the script, defaulting to English for Latin text. For non-English Latin-script text, always set the language explicitly to ensure accurate synthesis across the 23 supported languages.
Are there voice-specific limits?
No. There are no specific limits per voice. All eight voices (aria, nova, luna, sage, felix, milo, atlas, orion) share the same rate limits and character constraints. You can rotate between voices freely within your 60 requests per minute limit without any additional restrictions or penalties.
How do I handle errors?
The API returns standard HTTP status codes for errors. Failed requests are free, and the charge is returned in full if synthesis fails. Check the response body for error details. Ensure your key is valid and your request format matches the required JSON structure for successful processing.
Can I use custom voices?
No. The API offers eight fixed presets: aria, nova, luna, sage, felix, milo, atlas, and orion. There is no custom voice cloning or uploading of your own voice. You cannot design new voices or modify existing ones. You must choose from the available licensed recordings.
Is the API RESTful?
Yes. The API uses standard HTTP methods. Use POST for generating speech and GET for listing voices or models. It follows RESTful conventions with JSON request and response bodies. This makes it easy to integrate with existing web services and standard HTTP clients without complex protocol handling.
Do I need a callback URL?
No. The API is synchronous. You send a POST request and receive the audio file directly in the response. There is no need to configure a callback URL or wait for asynchronous notifications. The audio is delivered immediately after the server completes the synthesis process.
How do I rotate my API key?
You can issue a new key at any time from your account dashboard. When you generate a new key, the old one stops working immediately. Ensure your application updates to use the new key to maintain continuous service availability.
First request
curl
curl https://api.gg666.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.gg666.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.gg666.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 |
Authentication
Authentication for the NewsTTS API relies on a single Bearer token included in the Authorization header of every request. This key identifies your account and tracks usage against your character balance. Ensure the header format is strictly Authorization: Bearer tts-<your-key> to avoid 401 errors.
Bearer token usage
Include your API key in the Authorization header of all POST requests to https://api.gg666.info/v1. The key is issued upon account creation on /get-api-key/. It remains active until you rotate it or delete the account. Do not share this token in client-side code where it can be exposed.
- Use HTTPS for all requests.
- Include
Authorization: Bearer tts-...in headers. - Keep the key secure; it grants full access to your balance.
Key rotation
You can issue a new API key at any time from the dashboard. Once a new key is generated, the previous key stops working immediately. This allows you to revoke access instantly without waiting for session timeouts. Use rotation to secure your integration if a key is potentially compromised.
- Generate a new key via the dashboard.
- Old keys cease immediately upon new key creation.
- Update your application configuration promptly.
Single active key
Each account maintains only one active API key at a time. This simplifies billing and usage tracking, as all requests are attributed to a single identifier. There is no need to manage multiple keys for different environments unless you rotate them sequentially.
Speech endpoint
Send your news scripts to the speech generation endpoint. The API accepts text input and returns synthesized audio files directly in the response body, allowing seamless integration into your publishing pipeline.
POST /v1/audio/speech
Use the POST method to trigger synthesis. The endpoint processes requests sequentially, so high-volume batches may queue. Ensure your client handles the response efficiently to maintain throughput for large article batches.
- Endpoint:
https://api.gg666.info/v1/audio/speech - Method:
POST - Content-Type:
application/json
JSON body structure
The request body requires the model, input, and voice fields. You may optionally specify response_format, speed, and language. The input text is limited to 4096 characters per request.
model: "tts-1" or "tts-1-hd"input: Your news script textvoice: One of the 8 presetsresponse_format: mp3, wav, opus, flac, or pcmspeed: Float between 0.25 and 4.0language: Optional ISO code
Response format
On success, the response body contains the raw audio data in the requested format. Failed requests return an error object and the charge is returned in full. Always validate the response status code before processing the audio stream.
Models and voices
The API provides two model variants, "tts-1" and "tts-1-hd", which utilize the same underlying engine and pricing structure. This allows news teams to select the appropriate quality level without adjusting their character-based cost expectations.
tts-1 and tts-1-hd
Both models generate audio files using identical processing logic. The choice between them depends on your specific fidelity requirements for news broadcasts, though the per-character rate remains constant at $0.01 per 1,000 characters regardless of the model selected.
8 voice presets
The service offers eight distinct voice presets based on licensed recordings from LibriTTS-R and LibriVox. These voices cover various tones suitable for news delivery, ranging from neutral reporting to energetic promotions.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
Voice selection
Select a voice by passing its name in the voice field of the JSON request body. You can list all available voices and their details by calling the GET /v1/voices endpoint. Each voice is capable of speaking any of the 23 supported languages.
Parameters
The API accepts text input up to 4096 characters per request, including spaces and punctuation. For longer news articles, split the text into chunks and join the resulting audio files sequentially.
Adjust speech speed between 0.25 and 4.0 to match the desired pace of the broadcast. Faster speeds reduce generation time, while slower speeds may increase processing time.
Input text limit
Each request supports a maximum of 4096 characters. Input text is used only to produce the audio and is not used for training.
Split longer texts into parts to ensure consistent quality and manageable processing times. Short phrases may take a few seconds to generate.
- Maximum 4096 characters per request
- Spaces and punctuation count as characters
- Split long texts and join audio files
Speed range
Set the speed parameter between 0.25 and 4.0. This allows you to control the pacing of the narration without affecting voice quality.
Adjust speed to fit the specific tone of the news segment, from slow, deliberate reporting to fast-paced updates.
- Minimum speed: 0.25x
- Maximum speed: 4.0x
- Adjustable per request
Language code
Optionally specify the language parameter using an ISO code. This ensures correct pronunciation for non-English Latin-script text.
If language is not set, the system guesses the language from the script, defaulting to English for Latin text.
Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.
- Optional ISO language code
- Auto-detection defaults to English for Latin text
- 23 supported languages
Formats
The API supports five distinct audio formats to suit different publication needs, from web delivery to archival quality. You can select the output format via the response_format field in your request JSON, choosing between mp3, wav, opus, flac, or pcm.
MP3 support
MP3 is a widely compatible format for web players and podcast platforms. It offers efficient compression, making it suitable for high-volume news segments where bandwidth matters.
- Default output format
- Optimized for web playback
- Balanced file size and quality
WAV support
WAV provides uncompressed audio suitable for editing suites and broadcast masters. Use this format when you need raw audio data without compression artifacts for professional post-production workflows.
- Lossless uncompressed audio
- Ideal for editing and broadcast
- Maximum fidelity output
Opus, FLAC, PCM
Opus offers efficient compression at low bitrates, suitable for mobile data efficiency. FLAC provides lossless compression for storage efficiency. PCM delivers raw uncompressed audio data, useful for direct hardware integration or specific legacy systems requiring raw byte streams.
- Opus: Efficient low-bitrate compression
- FLAC: Lossless compressed storage
- PCM: Raw uncompressed data stream

Rate limits
Understanding rate limits ensures your newsroom’s audio pipeline remains stable during high-volume broadcasts. The API enforces a standard limit of 60 requests per minute per active key, allowing teams to generate content consistently without sudden throttling.
New accounts start with a lower threshold of 10 requests per minute until the first top-up is processed. This prevents accidental bursts from overwhelming the queue before your billing is active.
60 requests per minute
Once your account is funded, you can send up to 60 synthesis requests each minute. This capacity supports steady workflows for large teams producing daily news segments or podcast episodes.
Requests are processed sequentially. Under heavy load, a request may wait in a queue if the previous synthesis is still generating audio.
- Standard limit: 60 req/min per key
- Processes one request after another
- Queues requests if the engine is busy
10 requests before top-up
Accounts created with email and password, or those without a recent top-up, start with a limit of 10 requests per minute.
The limit increases to 60 req/min automatically within minutes after a USDT (TRC-20) transfer is confirmed on the TRON network.
- Initial limit: 10 req/min
- Increases to 60 req/min after top-up
- No minimum spend required
Queue behavior
Requests are not dropped due to speed; they wait in line. Typical generation speed is roughly real-time (25 characters per second), so long texts may take time.
Short phrases usually take a few seconds to generate. Plan your integration to handle asynchronous responses or implement retry logic with exponential backoff for queue delays.
- Sequential processing
- No hard timeout for queued requests
- Plan for variable generation times
Error handling
The API returns standard HTTP status codes to indicate request outcomes. Failed synthesis requests are free, ensuring you are not charged for errors. Understanding these codes helps your team handle failures gracefully without wasting credits.
400 Bad Request
This error indicates invalid input, such as exceeding the 4096-character limit or using an unsupported format. Check your JSON body structure and ensure the input text is valid UTF-8.
- Verify input length is under 4096 characters.
- Ensure response_format is one of mp3, wav, opus, flac, or pcm.
401 Unauthorized
Returned if the Bearer token is missing, expired, or incorrect. Ensure your Authorization header matches the format Bearer tts-....
429 Too Many Requests
Occurs when you exceed the 60 requests per minute limit. Before your first top-up, the limit is 10 requests per minute. Requests are processed in a queue, so high load may also cause delays.
OpenAI SDK compatibility
The NewsTTS API is compatible with the official OpenAI SDKs. By changing the base URL to https://api.gg666.info/v1, you can use the same SDKs to interact with our service. This approach requires no custom client libraries or additional dependencies.
Base URL change
Update your SDK configuration to point to our API endpoint. Set the base URL to https://api.gg666.info/v1 while keeping your existing API key structure. This simple change allows your code to route requests to our service without modifying the core logic.
Same request shape
The JSON body structure matches the OpenAI speech endpoint exactly. You send a model, input text, voice, and format. The API returns an audio file in the requested format. This consistency means you can swap the base URL without rewriting your request payload.
SDK support
We support the official OpenAI SDKs for Python, Node.js, and other languages. Use the standard methods for audio generation. No custom client is needed. Just ensure you use the correct base URL and pass your NewsTTS API key.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. You can save this file directly to your server or CDN for distribution.
23 languages
Any voice speaks any of these languages.
