Frequently asked questions
How do I get an API key?
Sign up on /get-api-key/ using Google or email. Your key starts with 'tts-'. One active key per account; issuing a new one immediately invalidates the old one. Google sign-ups receive a $0.50 trial credit valid for 7 days.
What is the base URL for the API?
The base URL is https://api.mc64.info/v1. Use this for all requests, including the speech endpoint POST /v1/audio/speech. The voices list is available at GET /v1/voices.
Can I use the OpenAI SDK?
Yes. The request shape matches the OpenAI speech endpoint. Change the SDK's base_url to https://api.mc64.info/v1 and use your site's key. Official OpenAI SDKs work directly with this configuration.
What models are available?
Two models exist: 'tts-1' and 'tts-1-hd'. Both use the same engine and pricing. List all models via GET /v1/models.
How do I set the voice?
Include one of the eight preset voices in the 'voice' field: aria, nova, luna, sage, felix, milo, atlas, or orion. Fetch the full list via GET /v1/voices.
What is the maximum character limit?
Each request supports up to 4096 characters in the 'input' field. For longer texts, split the input into chunks, generate audio for each, and join the files.
Does the API support streaming?
No. The API returns the complete audio file in the response body. There is no WebSocket or real-time partial audio streaming available.
Can I change the base URL?
No. The base URL is fixed at https://api.mc64.info/v1. You cannot change this endpoint for this service.
How do I handle errors?
Failed requests are free, and charges are returned in full. Check the response status code. If synthesis fails, no characters are deducted from your balance.
Is there an official SDK?
No. There is no official SDK from VoxTrust. Use the OpenAI SDK (by changing base_url) or plain HTTP requests to interact with the API.
What formats are supported?
Supported response formats are mp3, wav, opus, flac, and pcm. Specify the desired format in the 'response_format' field of your request.
How do I specify speed?
Use the 'speed' field with a value between 0.25 and 4.0. Adjust this to make the speech faster or slower.
Do I need to install dependencies?
If using the OpenAI SDK, install the standard library. For plain HTTP, no special dependencies are required beyond your language's standard HTTP client. No custom packages are needed.
How do I authenticate requests?
Include your API key in the Authorization header: 'Authorization: Bearer tts-...'. Ensure the key is active; issuing a new key invalidates the previous one immediately.
First request
curl
curl https://api.mc64.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.mc64.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.mc64.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
Access the VoxTrust TTS API using a single API key generated upon account creation. This key authenticates all requests and is tied to your billing balance. You can generate a new key at any time via the dashboard; the previous key becomes invalid immediately upon issuance.
API Key
Obtain your key from the /get-api-key/ page after signing up with Google or email. Each account holds one active key. Use this key to identify your account and deduct characters from your balance.
- Keys start with the prefix 'tts-'.
- One active key per account.
- Keys are generated via the dashboard.
Bearer Token
Include the key in the HTTP header as a Bearer token. This standard authentication method ensures secure transmission of your credentials with every API call. Do not expose this token in client-side code if your infrastructure allows direct API access.
- Format: Authorization: Bearer tts-...
Key Management
Rotate your key freely if compromised. The old key stops working instantly when the new one is created. There is no limit to how often you can regenerate keys, allowing for secure integration across different environments.
Endpoint
The core synthesis endpoint is located at POST https://api.mc64.info/v1/audio/speech. This single URL handles all text-to-audio generation requests. It is designed for straightforward integration into your application’s backend or notification service.
Speech Endpoint
Send your requests to the dedicated speech URL. The endpoint accepts standard HTTP POST requests and returns the generated audio file directly in the response body. This ensures minimal latency for your fintech notifications.
POST Method
Use the HTTP POST method to transmit your payload. The request must include the Authorization: Bearer header with your API key. The endpoint processes the text synchronously, returning the audio file once synthesis is complete.
JSON Body
The request body is a JSON object containing the model, input, voice, and optional parameters like speed or response_format. The input field holds your text, limited to 4096 characters. The structure mirrors the OpenAI speech endpoint for easy SDK compatibility.
model: "tts-1" or "tts-1-hd"input: Your text string (max 4096 chars)voice: One of the 8 available presetsresponse_format: mp3, wav, opus, flac, or pcm
Parameters
Configure synthesis behavior using the model, voice, and speed parameters. The model field accepts either "tts-1" or "tts-1-hd", both using the same engine and price point. The voice parameter selects one of eight preset voices, such as "atlas" for neutral news delivery or "milo" for friendly, conversational tones. These presets are based on licensed recordings and include an inaudible synthetic watermark.
Adjust the speed parameter between 0.25 and 4.0 to control playback rate. This allows you to optimize audio length for banking notifications without re-synthesizing. Combined with the input text limit of 4096 characters, these parameters ensure precise control over the generated audio file's duration and tone.
Model Selection
Choose between "tts-1" and "tts-1-hd" for the synthesis engine. Both models use the same underlying technology and price structure, allowing you to switch without affecting billing. The model field is required in the request body to specify which engine processes your text input.
- Supports both standard and high-definition modes
- Identical pricing for both options
- No performance difference in audio quality metrics
Voice Choice
Select from eight voice presets to match your application's tone. Options include "atlas" for neutral news updates, "milo" for friendly conversations, or "aria" for clear narration. Each voice supports all 23 available languages, allowing consistent audio style across different regional banking interfaces.
- atlas: neutral, news
- milo: friendly, conversational
- aria: warm, clear narrator
- nova: bright, upbeat
- luna: soft, storytelling
- sage: calm, instructional
Speed Control
The speed parameter accepts values from 0.25 to 4.0, allowing fine-grained control over speech rate. Slower speeds may improve clarity for complex financial data, while faster rates reduce processing time for long notifications. Adjusting speed does not affect the character count or billing.
- Range: 0.25 to 4.0
- Adjusts playback rate in real-time
- Does not impact character billing
Formats
The API supports five standard audio formats to suit different deployment needs. MP3 and WAV are the most common choices for general playback, while OPUS, FLAC, and PCM offer specialized use cases for bandwidth efficiency, lossless quality, or raw signal processing.
All formats are generated synchronously with the speech request. Choose the format that best matches your application’s audio player or storage requirements without needing post-processing.
MP3 Support
MP3 is the default and most widely compatible format. It offers a good balance between file size and audio quality, making it ideal for web players and mobile apps.
- Small file sizes reduce bandwidth costs
WAV Support
WAV provides uncompressed, lossless audio. It is suitable for high-quality archives or applications that require raw PCM data without decoding overhead. The file size will be significantly larger than MP3 for the same duration.
- No compression artifacts
Other Formats
OPUS is a highly efficient open format, suitable for low-bandwidth environments. FLAC provides lossless compression, reducing file size compared to WAV while retaining all data. PCM returns raw audio samples, useful for real-time processing pipelines.
Limits
VoxTrust enforces strict boundaries to ensure reliable delivery for fintech notification pipelines. Understanding these constraints prevents request failures and keeps your audio generation predictable during peak usage.
Request Limit
You may send up to 4,096 characters per single API request. If your notification text exceeds this length, split the input into chunks and join the resulting audio files server-side or in your application layer.
Character Limit
Each request is capped at 4,096 characters, including spaces and punctuation. This limit applies per API call, not per conversation. Longer texts require multiple sequential requests.
Rate Limit
New accounts start with a limit of 10 requests per minute. Once you add funds, this increases to 60 requests per minute per API key. Requests are processed sequentially, so under heavy load, synthesis may queue briefly.

Error Codes
The API returns standard HTTP status codes to indicate request outcomes. Understanding these responses helps you handle failures gracefully in your fintech integration.
400 Bad Request
This error indicates invalid input. Common causes include exceeding the 4096 character limit, using an invalid voice name, or providing malformed JSON.
- Check the
inputlength does not exceed 4096 characters. - Verify the
voiceparameter matches one of the 8 presets. - Ensure
speedis between 0.25 and 4.0.
429 Rate Limit
You have exceeded the allowed request rate. The default limit is 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so queueing may occur under load.
- Retry after the specified wait time.
- Implement exponential backoff for robust integration.
500 Server Error
A transient internal error occurred. If synthesis fails, the charge is returned in full. Retry the request after a short delay.
SDK Integration
The VoxTrust API mirrors the OpenAI speech endpoint structure, allowing you to use the official OpenAI SDKs with minimal configuration. By simply updating the base_url and providing your API key, you can leverage existing client libraries for seamless integration into your fintech or banking applications without learning a new protocol.
OpenAI SDK
Use the standard openai Python or Node.js library. The API accepts the same JSON body schema for text-to-speech requests, ensuring that standard parameters like model, voice, and response_format work identically to the OpenAI reference implementation.
Base URL Change
Point your SDK client to https://api.mc64.info/v1 instead of the default OpenAI endpoint. This directs all requests to our infrastructure while maintaining compatibility with the standard OpenAI client interface.
Code Example
```python import openai client = openai.OpenAI( base_url="https://api.mc64.info/v1", api_key="tts-your-api-key" ) response = client.audio.speech.create( model="tts-1", voice="nova", input="System alert: Transaction verified." ) response.write_to_file("alert.mp3") ```
Examples
Use the provided snippets to integrate VoxTrust’s TTS API into your fintech or banking applications. Each example demonstrates the standard request shape, ensuring compatibility with your existing infrastructure.
Adjust the voice and language parameters to match your notification requirements. All scripts handle the basic flow from text input to audio retrieval.
cURL Command
Send a POST request to the speech endpoint. Replace YOUR_API_KEY with your key from the dashboard.
This command generates an MP3 file for the specified text using the 'nova' voice.
- Endpoint: https://api.mc64.info/v1/audio/speech
- Method: POST
- Auth: Bearer token in header
Python Script
Use the OpenAI Python SDK. Set base_url to https://api.mc64.info/v1 and provide your key.
The script sends the text and saves the returned audio stream to a local file.
- Install:
pip install openai - Set
OPENAI_BASE_URL - Use
audio.speech.create()
Node.js Script
Initialize the OpenAI client with the custom base URL. Pass the text and voice configuration.
The example handles the response buffer and writes it to disk for playback in your app.
- Install:
npm install openai - Configure
fetchagent if needed - Write buffer to
.mp3
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Understanding latency and format constraints is critical for real-time fintech notifications.
23 languages
Any voice speaks any of these languages.
