Frequently asked questions
How do I generate an API key?
Sign up on the /get-api-key/ page using Google or an email and password. Your account page displays your active key, balance, and usage details. You can issue a new key at any time; the previous one stops immediately.
Can I use the OpenAI Python SDK?
Yes. The API accepts the same request shape as the OpenAI speech endpoint. Configure your OpenAI SDK by changing the base_url to https://api.ic555.info/v1 and providing your site-specific API key for authentication.
What is the base URL for the API?
The API base URL is https://api.ic555.info/v1. Use this URL for all requests, including the speech endpoint POST /v1/audio/speech and the voices endpoint GET /v1/voices.
How do I specify a voice?
Include the voice parameter in your JSON body with one of the eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. You can retrieve the full list of available voices via the GET /v1/voices endpoint.
What are the supported audio formats?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify your preference using the response_format field in the JSON request body sent to the speech endpoint.
What happens if I exceed the rate limit?
The limit is 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue until capacity is available.
Do I need to install a specific SDK?
No. You can use the official OpenAI SDKs or plain HTTP requests. The API uses the same request shape as OpenAI, so no proprietary SDK installation is required for integration.
Is the API compatible with JavaScript?
Yes. Since the API uses standard HTTP POST requests with JSON bodies, you can integrate it with JavaScript using any standard HTTP client library or fetch API without needing a specific vendor SDK.
How do I handle authentication errors?
Include your key in the Authorization header as 'Bearer tts-...'. If the key is invalid or missing, the API will return an authentication error. Ensure you are using the key displayed on your account page.
Can I send audio in base64?
The API returns audio files directly in the response. The API returns binary audio data directly.
What is the maximum input length?
Each request supports up to 4096 characters of text. For longer texts, split the input into parts of this size and join the resulting audio files in your application logic.
Do I need to set the language code?
Not always. The API guesses the language from the script, defaulting to English for Latin text. However, you should explicitly set the language parameter for non-English Latin-script text to ensure accurate synthesis.
How do I cancel a request?
The API does not support explicit cancellation endpoints. Requests are processed sequentially.
Is there a SDK for Java or C#?
No official SDK exists for Java or C#. You can use the OpenAI SDKs if available for these languages, or implement standard HTTP requests using your preferred language’s HTTP client library.
First request
curl
curl https://api.ic555.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.ic555.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.ic555.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 and Keys
Public sector teams access the VoxPublic API using a single active key per account. You generate this key on the /get-api-key/ page via Google or email registration. The dashboard displays your key, current balance, and usage statistics immediately after creation.
Generating Your API Key
Sign up on the site's /get-api-key/ page using Google or email plus password. Accounts created with email do not receive trial credit; Google sign-ins receive $0.50. The page shows your key, balance, and a ready curl example.
- Supported sign-in: Google or email + password
- One active key per account
- Trial credit: $0.50 (Google sign-in only)
Authorization Header Format
Include your key in the HTTP header as Authorization: Bearer tts-.... This format is compatible with the standard OpenAI SDKs. Ensure the key is sent with every request to the https://api.ic555.info/v1 base URL.
Key Rotation Policy
Issue a new key at any time via the dashboard. The old key stops working immediately upon the new key's creation. This allows zero-downtime rotation for large government or NGO teams managing multiple services.
Base URL and SDK Configuration
The API follows the OpenAI speech endpoint shape, allowing teams to reuse existing SDK clients with a simple base URL override. This reduces integration overhead for government engineering teams already familiar with standard TTS workflows.
By pointing the SDK to https://api.ic555.info/v1, you can use the official OpenAI SDK for Python or Node.js without custom wrappers. The request body remains identical, ensuring predictable behavior across environments.
OpenAI SDK Compatibility
Our endpoint mimics the standard speech generation model, meaning you can switch providers by changing one variable. This ensures technical feasibility for large-scale deployments without rewriting core logic.
- - Compatible with official OpenAI SDKs
- - Identical JSON request shape
- - No custom client required
Base URL Override
Set your base URL to https://api.ic555.info/v1. This directs all requests to our infrastructure while maintaining standard header and body structures. Ensure your API key is valid and active.
- - Base URL: https://api.ic555.info/v1
- - Standard POST /v1/audio/speech
- - No proprietary protocols
Client Initialization Code
Initialize the client with your API key and the correct base URL. The key must be passed in the Authorization header as a Bearer token. Verify connectivity before processing batch jobs.
```python import openai client = openai.OpenAI( base_url="https://api.ic555.info/v1", api_key="tts-your-api-key-here" ) ```
Endpoints Overview
The API provides three primary endpoints for generating and managing speech assets. The speech generation endpoint accepts text and returns audio, while the voices and models endpoints provide metadata on available configurations without processing audio.
Speech Generation Endpoint
Use POST /v1/audio/speech to convert text into audio files. This is the core endpoint for generating speech, supporting models tts-1 and tts-1-hd. It accepts JSON bodies with input text, voice selection, and format preferences.
Voices Listing Endpoint
Retrieve available voices, languages, and formats via GET /v1/voices. This endpoint lists the 8 preset voices (e.g., aria, nova, felix) and the 23 supported languages, allowing teams to verify compatibility before generation.
Models Listing Endpoint
Query GET /v1/models to confirm available engine versions. This ensures your integration targets the correct model identifiers (tts-1 or tts-1-hd) which share the same engine and pricing structure.
Request Parameters
Configure the POST /v1/audio/speech request by defining the text payload, target voice, and output format. The API accepts standard JSON bodies where the input field carries the raw string to be synthesized.
Input Text and Length Limits
Each request supports a maximum of 4096 characters, including spaces and punctuation. For longer scripts, split the text into chunks, generate audio for each part, and join the files server-side. Texts exceeding this limit are rejected without charge.
Voice Selection Presets
Select one of eight licensed voices, such as aria for clear narration or atlas for neutral news delivery. Every voice supports all 23 available languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
Response Format Options
Specify the response_format as mp3, wav, opus, flac, or pcm. MP3 is recommended for web playback, while WAV or FLAC suit high-quality archival needs. The speed parameter allows adjustment between 0.25 and 4.0 times normal speed.
- mp3: Standard web playback
- wav: Lossless quality
- flac: Compressed lossless
- opus: Efficient compression
- pcm: Raw audio data
Audio Formats Supported
Selecting the correct audio format ensures your generated speech integrates smoothly into your existing infrastructure. The API supports five distinct formats, allowing you to balance file size, quality, and compatibility based on your specific deployment needs.
MP3 for Web Playback
MP3 is the recommended format for most web-based applications and public-facing audio players. It offers a balance between file size and audio quality, making it suitable for storing large volumes of generated speech.
WAV for High Quality
WAV provides uncompressed, high-fidelity audio suitable for professional broadcasting or archival purposes. Use this format when preserving the exact acoustic characteristics of the generated voice is critical, such as in official government announcements or high-quality podcast production.
FLAC and Opus Options
FLAC offers lossless compression for perfect audio retention with smaller files than WAV. Opus is highly efficient for low-bandwidth environments, providing quality at reduced bitrates compared to standard formats.
- FLAC: Lossless compression, smaller than WAV.
- Opus: Efficient for low-bandwidth.

Rate Limits and Throttling
The API enforces a strict rate limit of 60 requests per minute per active key. This ensures stable processing for large-scale audio generation workflows typical in government and non-profit deployments. Requests are processed sequentially, meaning high-volume jobs may queue briefly during peak usage.
Requests per Minute Limit
Each API key is capped at 60 requests per minute. This limit applies uniformly regardless of text length or voice selection. Exceeding this threshold will trigger a 429 Too Many Requests error.
Initial Limit Before Top-Up
New accounts start with a reduced limit of 10 requests per minute. This lower threshold remains in effect until the first top-up is processed. Once credited, the standard 60 requests per minute limit activates immediately.
Handling 429 Errors
When the limit is reached, the API returns a 429 status code. Implement exponential backoff in your integration to retry after a short delay. Failed requests are free, so retrying does not incur additional costs.
- Monitor response headers for remaining quota information.
- Implement client-side queuing for batch processing jobs.
Error Handling and Status Codes
Synthesis failures return standard HTTP codes with a JSON error object. Common issues include invalid voice IDs, text exceeding the 4096-character limit, or temporary backend queues. Check the message field for specific guidance on request structure or rate limits.
Common Error Messages
The API returns a 400 Bad Request if parameters like model or voice are missing or invalid. A 401 Unauthorized indicates an expired or incorrect API key. Use 429 Too Many Requests to signal that you have exceeded the 60 requests per minute limit.
Failed Request Refunds
If synthesis fails due to a server error or invalid input, the character charge is returned in full to your balance. This ensures you only pay for successfully generated audio files. Failed requests do not incur any hidden fees or penalties.
Retry Logic Best Practices
Implement exponential backoff for 429 and 500 errors. Since requests are processed sequentially, short delays prevent queue saturation. Avoid rapid retries for 400 errors, as they will likely fail again immediately. Monitor your balance to ensure sufficient credits for retry attempts.
- Use exponential backoff for transient errors.
- Retry with a 1–2 second delay for
429responses. - Check
400errors before retrying to avoid wasted credits.
cURL Example for First Request
The following command demonstrates a complete synthesis request using the standard curl utility. Replace YOUR_API_KEY with your key from /get-api-key/ and update the base URL if you are testing locally.
Basic cURL Command
Execute this command in your terminal to generate audio from text. The request sends a JSON payload to the speech endpoint and saves the resulting audio file as output.mp3.
- Ensure your API key has sufficient balance; the free trial provides $0.50 (approx. 50,000 characters).
- The command uses the
tts-1model.
Headers and Body Structure
The request requires a Bearer token in the Authorization header. The JSON body specifies the model, voice, input text, and response_format. Spaces and punctuation in the input field count toward the character limit.
- Authorization: Bearer tts-your-key-here
- Content-Type: application/json
Response Parsing
A successful response (HTTP 200) returns the binary audio data directly. Save this stream to a file using the -o flag in curl. If the request fails, the API returns a JSON error object with a message explaining the issue, such as an invalid voice ID or insufficient balance.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This means the audio files themselves do not accumulate in our long-term storage, reducing the attack surface for potential data breaches.
23 languages
Any voice speaks any of these languages.
