Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email and password. Your account is specific to this site. The dashboard displays your active API key, balance, and usage statistics immediately after registration. You can issue a new key at any time, which instantly invalidates the previous one.
What is the endpoint URL?
Send POST requests to https://api.toti88.info/v1/audio/speech. Use the JSON body format compatible with the OpenAI speech endpoint. The API base URL is https://api.toti88.info/v1. You can also retrieve available voices and models via GET /v1/voices and GET /v1/models respectively.
Can I use the OpenAI Python SDK?
Yes. The request shape matches the OpenAI speech endpoint. Simply configure your SDK’s base_url to https://api.toti88.info/v1 and provide your EchoNest API key. This allows you to use standard OpenAI SDKs without custom client libraries for making text-to-speech requests.
What models are available?
Two models are available: tts-1 and tts-1-hd. Both use the same underlying engine and pricing. Both models use the same engine and price. The choice is purely a matter of preference for the model identifier in your API requests, with no functional difference in output.
How do I specify the voice?
Include the voice parameter in your request body using one of eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Voices are distinct presets. You can list all available voices by calling the GET /v1/voices endpoint.
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 JSON body. The API returns the audio file directly in the response, allowing immediate playback or storage by your application.
How do I set the speed?
Use the speed parameter with a value between 0.25 and 4.0. The default speed is 1.0. Adjusting this value scales the playback speed of the generated audio. Lower values slow down the speech, while higher values accelerate it, useful for notifications or summaries.
What if the API is rate-limited?
You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. If you exceed the limit, requests will queue or fail. Monitor your usage on the dashboard and manage concurrency to stay within these bounds.
Do I need to install extra libraries?
No. You can use the official OpenAI SDK or standard HTTP libraries. Since the API follows the OpenAI endpoint structure, existing clients work by changing the base URL. No proprietary EchoNest libraries are required to integrate the text-to-speech functionality into your application.
How do I handle errors in the response?
The API returns standard HTTP status codes for errors. Failed synthesis requests are free, and charges are returned in full. Check the response body for error details. Implement retry logic for transient network issues, but be mindful of the rate limits to avoid excessive failures.
Is the base URL different for production?
No. The base URL https://api.toti88.info/v1 is used for both development and production. There is no separate staging environment. Your API key determines your access level and billing. Ensure you secure your key in production environments to prevent unauthorized usage of your balance.
Can I send large texts in one request?
No. Each request supports up to 4096 characters. For longer texts, you must split the input into chunks of this size. Generate audio for each chunk separately and then join the resulting audio files in your application to create a continuous playback experience.
What is the maximum text length?
The maximum input length is 4096 characters per request. This limit applies to each individual API call. If your text exceeds this, you need to handle the splitting logic in your client code. Spaces and punctuation count toward this character limit.
How do I rotate my API key?
Issue a new key from your account dashboard at any time. The new key becomes active immediately, and the old key stops working at once. This ensures secure access control. There is one active key per account.
First request
curl
curl https://api.toti88.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.toti88.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.toti88.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
Secure your API access with a single active key. Keys follow the format tts-... and are issued per account. You can generate a new key at any time via the dashboard, and the previous key stops working immediately.
Authenticate every request by including the header Authorization: Bearer tts-.... This standard Bearer token method ensures your requests are validated before processing. Keep this key private to prevent unauthorized usage of your character balance.
API Key Format
Your API key begins with the prefix tts- followed by a unique string. This key is tied to your account and balance. Ensure you copy the full string, including the prefix, when configuring your application.
- Starts with
tts- - One active key per account
- Visible in your dashboard
Bearer Token Usage
Include the header Authorization: Bearer tts-... in every HTTP request. The API validates this token before attempting synthesis. If the token is missing or invalid, you will receive a 401 Unauthorized error.
Key Rotation
Generate a new key anytime from your account settings. The old key becomes invalid instantly. This allows you to revoke access without downtime if you suspect a leak or want to reset your credentials.
First Request with Curl
Send a POST request to the speech endpoint with your API key and text payload. This standard JSON structure ensures compatibility with existing OpenAI SDK clients, requiring only a base URL adjustment. The request body includes the model, input text, voice preset, and output format.
The API processes the text and returns the synthesized audio file directly in the response body. You can save this binary data to a file or pipe it into your application’s audio player for playback in notifications or dashboards.
Endpoint URL
Direct your requests to POST https://api.toti88.info/v1/audio/speech. This endpoint accepts JSON payloads and returns audio data, following the same request shape as the OpenAI speech endpoint. Ensure your Authorization header includes your Bearer token generated from the dashboard.
- Method: POST
- URL: https://api.toti88.info/v1/audio/speech
- Content-Type: application/json
JSON Body Structure
The request body requires a model ("tts-1" or "tts-1-hd"), the input text (up to 4096 characters), and a voice preset. You may also specify response_format (mp3, wav, opus, flac, pcm) and an optional speed between 0.25 and 4.0. Spaces and punctuation count toward the character limit.
Include the language ISO code if needed, though the system guesses it from the script. For non-English Latin text, explicitly setting the language prevents incorrect English defaults.
- model: "tts-1" or "tts-1-hd"
- input: string (max 4096 chars)
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, pcm
Response Handling
On success, the API returns the audio file as binary data in the response body. You can save this directly to disk or pipe it into a player. If the request fails, a JSON error object is returned, and no charge is applied to your balance.
Check the HTTP status code to determine success. A 200 OK indicates the audio is ready. Failed requests are free, so you can retry without worrying about credit consumption.
- Status 200: Audio file returned
- Status 4xx/5xx: JSON error details
- No charge on failure
OpenAI SDK Integration
Replace the default OpenAI base URL with your EchoNest endpoint to use the official SDKs. This allows you to keep your existing code structure while routing requests to our API.
Base URL Configuration
Set the base_url parameter in your SDK client to https://api.toti88.info/v1. This single change redirects all speech generation calls to our infrastructure without altering the request payload format.
SDK Compatibility
The API follows the same JSON structure as the OpenAI speech endpoint. You can use the official OpenAI Python, Node.js, or other language SDKs directly. No custom wrapper libraries are required for basic integration.
Client Initialization
Initialize the client with your API key and the new base URL. Ensure you pass your tts-... key in the Authorization header. The SDK handles the JSON serialization automatically.
- Use
base_url=https://api.toti88.info/v1 - Pass key via
Authorization: Bearer tts-...
Input Parameters
Configure your synthesis requests by selecting the model, voice, and speed. These parameters determine the audio quality, character, and pacing of the generated speech. The API accepts a simple JSON body with these fields.
Choose from two model variants for standard or high-definition audio. Select one of eight distinct voice presets to match your interface’s tone. Adjust the speed between 0.25x and 4.0x to control playback rate.
Model Selection
The API supports two model identifiers: tts-1 and tts-1-hd. Both use the same underlying engine and incur identical pricing. Choose tts-1 for standard quality or tts-1-hd for enhanced clarity. Both models accept up to 4096 characters per request.
- Use
tts-1for cost-effective standard audio. - Use
tts-1-hdfor improved naturalness. - Both models have the same price and character limit.
Voice Presets
Select one of eight licensed voices, derived from public-domain recordings. Female voices include Aria (warm narrator), Nova (upbeat), Luna (soft storytelling), and Sage (calm instruction). Male options include Felix (energetic), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).
Every voice supports all 23 listed languages. The system guesses the language from the script if you omit the language field, but specifying it explicitly ensures accuracy for Latin-script text that isn't English.
- Aria, Nova, Luna, Sage (Female)
- Felix, Milo, Atlas, Orion (Male)
- All voices speak all 23 supported languages
Speed Adjustment
Set the speed parameter between 0.25 and 4.0 to control the playback rate. A value of 1.0 represents normal speed. Adjusting this allows you to fit speech into tight UI spaces or slow down complex explanations for clarity. The API processes requests sequentially, so extreme speeds do not significantly alter generation latency compared to queue wait times.
- Minimum speed: 0.25x
- Maximum speed: 4.0x
- Normal speed: 1.0x
Output Formats
The API returns audio in five distinct formats, allowing you to balance file size and quality based on your specific use case. Each format serves a different purpose, from lightweight delivery for mobile notifications to high-fidelity storage for archival needs.
MP3 Compression
MP3 is the most widely supported format, ideal for web players and mobile apps where bandwidth matters. It provides a good balance between audio clarity and file size, ensuring fast loading times for end-users.
- Universal compatibility across all major browsers and devices.
- Smaller file sizes for efficient network transmission.
WAV Quality
WAV offers uncompressed, lossless audio quality. Use this format when you need the highest fidelity for professional editing or when your downstream processing pipeline requires raw audio data.
- Lossless quality.
- Best for local editing or high-quality archival.
Opus and FLAC Options
Opus provides excellent compression efficiency for modern web applications, while FLAC offers lossless compression for those who want smaller files than WAV without losing any audio data.
- Opus: Optimal for modern streaming and web contexts.
- FLAC: Lossless compression for efficient storage.

Language Handling
Language handling ensures your synthesized speech sounds natural regardless of the source text's origin. You can explicitly define the language using an ISO code or rely on our automatic detection system.
This flexibility allows you to build multilingual interfaces without managing complex language-specific voice configurations for every possible region.
ISO Code Specification
You can pass an optional language field in the request body using a standard ISO code. This explicitly tells the engine which language to use, ensuring consistent pronunciation and intonation even if the text contains mixed scripts or ambiguous phrasing.
- Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
Auto-Detection Logic
If you omit the language field, the API attempts to infer the language from the text's script and character patterns. This works well for single-language texts but may produce unexpected accents if the input mixes languages or contains unique dialectal features.
Latin Script Default
For text written in Latin characters, the system defaults to English if no language is specified. If your input is Latin-script text in another supported language (e.g., French or Spanish), you must set the language parameter explicitly to avoid an English accent.
Rate Limits and Errors
Understanding rate limits ensures your application maintains steady performance without unexpected interruptions. The API enforces a limit of 60 requests per minute per key, which is generally sufficient for standard notification workflows and dashboard updates.
However, new accounts start with a stricter limit of 10 requests per minute until the first top-up is processed. This prevents sudden bursts from overwhelming the queue during initial testing phases.
60 Requests Per Minute
Once your account is active with a funded balance, you can send up to 60 requests per minute. Each request generates a separate audio file, so plan your batch sizes accordingly to avoid queuing delays.
- Limit is per API key
- Queues may form under high load
- Real-time generation takes ~25 chars/sec
Initial Limit Restriction
New keys begin with a 10 requests per minute cap. This restriction lifts automatically within minutes after you complete your first USDT top-up of at least $5. Until then, keep your integration simple.
- Apply after first top-up
- No manual review required
- Applies to all keys
Error Code Handling
If you exceed the limit, the API returns a 429 Too Many Requests error. Failed synthesis requests are free, so no credit is deducted if the engine rejects the input due to errors like invalid voice or model parameters.
Always implement exponential backoff in your client code to handle transient 429 errors gracefully without wasting API calls.
- 429 for rate limits
- 400 for bad requests
- Failed requests are free
Testing and Validation
Before integrating the TTS API into your startup’s notification system, verify that your input text stays within the 4096-character limit per request. This ensures your application handles long dashboards or user interfaces correctly by splitting and joining audio files as needed.
Character Count Check
Count every character, including spaces and punctuation, to calculate accurate costs ($0.01 per 1,000 characters). Use this check to ensure your batch processing logic respects the single-request limit before splitting.
- Count spaces and punctuation as characters.
- Limit is 4096 characters per request.
- Split longer texts into parts.
Audio Playback Test
Play the returned audio file to verify voice selection and speed settings. Note that every generated file carries an inaudible watermark that marks it as synthetic speech.
- Verify voice clarity and tone.
- Check speed adjustments (0.25–4.0).
- Confirm audio format compatibility.
Latency Measurement
Measure response time to ensure it meets your user experience requirements. Short phrases take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second). Note that requests are processed sequentially, so queueing may occur under load.
- Short phrases: few seconds.
- Long texts: ~25 chars/sec.
- Requests process sequentially.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This data is kept only as long as necessary to process your invoices and does not include the audio content itself.
23 languages
Any voice speaks any of these languages.
