Text-to-Speech API Documentation for Developers

By NGO TTS Engineering editorial team · Updated 2026-11-19

This documentation provides the technical specifications for the 6444.info text-to-speech API, designed for government agencies and NGOs processing large volumes of text. You will find exact endpoint structures, parameter definitions, and integration examples using standard HTTP or OpenAI-compatible SDKs.

The guide covers authentication, rate limits, and voice options, ensuring predictable costs for accessibility and public information workflows. Developers can implement reliable audio synthesis without enterprise overhead, with clear details on chunking long texts and handling responses.

Text-to-Speech API Documentation for Developers

Frequently asked questions

What is the base URL for the API?

The API base URL is https://api.6444.info/v1. Use this endpoint for all requests, including POST /v1/audio/speech for synthesis and GET /v1/voices for metadata. This URL replaces the standard OpenAI base URL when using compatible SDKs.

How do I generate an API key?

Sign up on /get-api-key/ using Google or email. Your account receives one active key. You can issue a new key at any time; the previous one stops immediately. Keys start with 'tts-' and are used in the Authorization header as a Bearer token.

Can I use the OpenAI Python SDK?

Yes. The endpoint shape matches the OpenAI speech endpoint. Change the SDK's base_url to https://api.6444.info/v1 and use your API key. The official OpenAI SDKs work by changing the base_url to https://api.6444.info/v1.

What is the maximum text length?

Each request supports up to 4096 characters in the 'input' field. Spaces and punctuation count toward this limit. If your text exceeds this, split it into parts of 4096 characters or fewer and join the resulting audio files after synthesis.

How do I handle long texts?

Split your input into chunks of up to 4096 characters. Send each chunk in a separate POST request to /v1/audio/speech. Receive the audio files for each part and join them to form the complete audio file. This ensures compatibility with the character limit.

What are the rate limits?

You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so under load, a request may wait in a queue. Exceeding the limit returns an error.

Do I need to install a specific SDK?

No. We do not provide an official SDK. Use the OpenAI Python SDK or plain HTTP requests. Any library that supports standard HTTP POST requests with JSON bodies can interact with our API. No custom libraries or specific installations are required.

How do I specify the language?

Include the 'language' field with an ISO code in your request. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language is recommended for non-English Latin-script text to ensure accuracy.

What formats can I request?

You can request audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format using the 'response_format' field in your request body. The system generates the audio in the specified format and returns it directly in the response.

Can I change the speed of the voice?

Yes. Use the 'speed' field to adjust playback speed between 0.25 and 4.0. The default speed is 1.0. Adjusting speed allows you to optimize audio length for accessibility needs or specific presentation requirements without altering the voice characteristics.

What happens if I exceed the rate limit?

Requests processed after the limit are rejected. Failed requests are free: if synthesis fails, the charge is returned in full. Under load, requests may also wait in a queue before being processed. Ensure your integration handles retries or waits appropriately when limits are reached.

Is the response JSON or binary?

The response contains the audio file directly, not JSON. The body is binary data in the requested format (mp3, wav, etc.). Headers indicate the content type. You do not need to parse JSON to extract audio; simply write the response body to a file.

How do I check my balance via API?

There is no dedicated endpoint for balance checks. Check your balance on the /get-api-key/ dashboard page, which shows current balance, trial status, and characters used. Use the API for synthesis; account details are managed via the web interface.

Can I use the same key for multiple projects?

Yes. One active key is issued per account; a new key can be issued any time (old one stops at once). You can use this single key across multiple projects or applications. If needed, you can issue a new key at any time, which immediately invalidates the previous one, allowing you to rotate keys as required.

First request

curl

curl https://api.6444.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.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.6444.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.6444.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
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Authentication

Sound wave illustration for: Authentication

Authentication relies on a single Bearer token passed in the Authorization header of every request. This key authenticates your account against the API base URL https://api.6444.info/v1 and is required for all endpoints, including speech generation and voice listing.

Bearer token in header

Bearer token in header

Include your key exactly as Authorization: Bearer tts-... in the HTTP headers. The API validates this token before processing any text synthesis or metadata requests. Ensure the header is sent with every call to avoid 401 errors.

One active key per account

One active key per account

Each account maintains exactly one active API key at any time. There are no per-seat or per-service keys; a single credential manages all usage for your organization’s projects.

Key rotation policy

Issue a new key via the dashboard at any time. The previous key is revoked immediately upon issuance, ensuring no overlap. This allows seamless rotation without downtime for long-running processes that cache credentials.

Endpoint

Sound wave illustration for: Endpoint

The core synthesis endpoint accepts text and returns audio. It follows the standard OpenAI shape, allowing agencies to use existing OpenAI SDKs by simply adjusting the base URL. This ensures straightforward integration for teams already familiar with common API patterns.

Send a POST request to the endpoint with your Bearer token. The system processes the input and returns the generated audio file directly in the response body.

POST /v1/audio/speech

Use this endpoint to convert text into speech. The base URL is https://api.6444.info/v1. Send your API key in the Authorization header as a Bearer token.

JSON request body

Pass your parameters in a JSON object. Include the text input, desired voice, and output format. The service handles the synthesis and returns the audio file.

  • model: tts-1 or tts-1-hd
  • input: text string up to 4096 characters
  • voice: one of the 8 available presets
  • response_format: mp3, wav, opus, flac, or pcm
  • speed: 0.25 to 4.0

Same shape as OpenAI

The request structure mirrors the OpenAI speech endpoint. This allows you to use official OpenAI SDKs by changing the base_url to https://api.6444.info/v1. No custom client libraries are required for basic integration.

Parameters

Sound wave illustration for: Parameters

The API accepts two model variants, tts-1 and tts-1-hd, which share the same engine and pricing structure. This simplifies integration by removing complex tier decisions while allowing you to select the specific audio quality required for your use case without altering the request shape.

Model selection (tts-1, tts-1-hd)

Both models utilize the same underlying synthesis engine and are priced equally at $10 per million characters. This uniformity ensures predictable billing regardless of the model chosen, allowing government and NGO developers to standardize their infrastructure without managing separate cost structures for different audio qualities.

Input text limit

Each request supports a maximum of 4096 characters for the input field, including spaces and punctuation. For longer documents, such as accessibility reports or public notices, the client application must split the text into chunks and join the resulting audio files sequentially.

Voice and speed settings

Select from eight voice presets, such as sage for instructional content or atlas for news updates. Adjust the speed parameter between 0.25 and 4.0 to control playback rate. The language field is optional; if omitted, the system guesses the language from the script, defaulting to English for Latin text.

  • Voice presets: aria, nova, luna, sage, felix, milo, atlas, orion
  • Speed range: 0.25 to 4.0
  • Optional ISO language code for precise control
  • Default language detection for Latin scripts

Response

Sound wave illustration for: Response

The API returns the synthesized audio file directly in the response body. The audio is delivered synchronously with the request. Requests are processed one after another, so under load a request may wait in a queue.

Audio file in response

Receive the audio data immediately upon successful synthesis. The response contains the raw audio bytes, which can be saved directly to disk or processed further for public information distribution.

Content-Type headers

The response includes a Content-Type header matching the requested response_format (e.g., audio/mpeg for mp3, audio/wav for wav). This ensures correct handling by standard HTTP clients and media players without manual extension guessing.

Error codes

Standard HTTP status codes indicate success or failure. Failed requests are free: if synthesis fails, the charge is returned in full. Common errors include 400 for invalid parameters (e.g., text exceeding 4096 characters) or 429 for rate limit exceeded (60 requests per minute).

Note that while short phrases process quickly, longer texts may experience queue delays under load, but errors remain consistent.

Rate Limits

Sound wave illustration for: Rate Limits

API requests are limited to 60 per minute per key. This limit applies uniformly to all authenticated requests, including voice and model metadata calls.

60 requests per minute

Each API key allows a maximum of 60 requests per minute.

10 requests before top-up

New accounts without a top-up are restricted to 10 requests per minute. This allows for initial testing and validation before committing to USDT payments for higher throughput.

Queue behavior under load

Requests are processed sequentially. Under heavy load, additional requests may wait in a queue before synthesis begins. Expect latency during peak usage periods as the engine prioritizes orderly processing.

  • Requests are processed one after another.
  • Latency increases when the queue is full.
  • Failed requests do not consume the character quota or count toward billing.
Rate Limits

Long Text Handling

Sound wave illustration for: Long Text Handling

The API accepts up to 4,096 characters per request. For documents exceeding this limit, split the input text into sequential chunks of 4,096 characters each and submit them as individual POST requests to /v1/audio/speech.

Split into 4096 char chunks

Divide your source text into segments no longer than 4,096 characters. Each segment counts as one request against your rate limit (60 req/min). Send these requests sequentially or in parallel, depending on your concurrency needs.

  • Max 4,096 characters per input string
  • Spaces and punctuation count toward the limit
  • Each chunk is an independent request

Join audio files client-side

The API returns a complete audio file for each chunk. You must concatenate these files in your client application to reconstruct the full narration. This ensures synchronization and allows for error handling if a specific chunk fails.

  • Receive separate audio files per chunk
  • Concatenate locally using standard audio libraries
  • Handle gaps between chunks if necessary

Streaming limitations

The API does not support real-time streaming or WebSocket connections. You receive the full audio file after synthesis completes. For long texts, generation time scales with length; expect roughly real-time duration plus queue wait time under load.

Voices Endpoint

Sound wave illustration for: Voices Endpoint

The API exposes a catalog of available voices and supported formats via a simple GET request. This endpoint allows developers to programmatically discover the eight preset voices, their associated languages, and the audio formats available for synthesis without hardcoding these values.

GET /v1/voices

Send a GET request to https://api.6444.info/v1/voices with your Bearer token in the Authorization header. The response returns a JSON array containing metadata for each voice, including its ID, name, gender, and supported languages.

List available voices

The endpoint returns the eight presets: aria, nova, luna, and sage (female); felix, milo, atlas, and orion (male). Each entry includes the voice ID required for the voice parameter in speech synthesis requests.

  • 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 and format info

Each voice object lists the 23 supported languages. Note that any voice can speak any of these languages. The response also details available output formats such as mp3, wav, opus, flac, and pcm. Use this data to validate client-side language selection before sending synthesis requests.

  • 23 supported languages
  • Any voice supports any listed language
  • Formats: mp3, wav, opus, flac, pcm

Models Endpoint

Sound wave illustration for: Models Endpoint

The /v1/models endpoint provides metadata about the underlying synthesis engines. It returns a list of available model identifiers, allowing developers to verify engine availability and configuration programmatically.

This endpoint is essential for dynamic client-side model selection and ensuring compatibility with your integration logic.

GET /v1/models

Send a GET request to https://api.6444.info/v1/models with your Bearer token. The response returns a JSON object containing the list of supported models.

Engine details

The response includes the model ID, name, and associated metadata. Currently, the API supports two model variants: tts-1 and tts-1-hd. They use the same engine and price.

  • Model ID: tts-1
  • Model ID: tts-1-hd
  • Engine: Standard TTS synthesis

Price per model

Both tts-1 and tts-1-hd incur the same charge: $10 per 1 million characters. There is no price differential between the standard and HD models. Billing is calculated based on the character count of the input text, including spaces and punctuation.

  • Cost: $0.01 per 1,000 characters
  • Applies to both tts-1 and tts-1-hd
  • No additional fees for model selection

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. There are no monthly plans, seats, or minimum spend requirements.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. Tether (USDT)
  3. W3C WAI: making audio and video accessible
  4. Creative Commons Attribution 4.0
  5. openai-node on GitHub
  6. ISO 639 language codes
  7. curl documentation
  8. MDN: Web Speech API
  9. IETF RFC 7845: Ogg Opus
  10. OpenAI API reference: create speech
  11. Node.js documentation
  12. TRON developer hub: TRC-20

More on this site