Begin Your Journey with the Talkify Text-to-Speech API

By Talkify editorial team · Updated 2026-11-19

This guide helps indie developers integrate our text-to-speech API into call centers and IVR systems. You will learn how to generate audio files from text using standard HTTP requests, compatible with the OpenAI SDK. We cover practical steps for authentication, parameter configuration, and handling responses, ensuring you can build accessible voice features with confidence.

You will find concrete examples for cURL and Python, along with details on voices, languages, and pricing. The guide explains rate limits, error handling, and how to manage long texts by splitting and joining audio files. All information is based on current API facts, so you can integrate without guessing or waiting for documentation updates.

Begin Your Journey with the Talkify Text-to-Speech API

Frequently asked questions

How do I get an API key?

Navigate to /get-api-key/ and sign up using Google or an email and password. Your account page displays your active API key, balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one.

What is the base URL for the API?

The API base URL is https://api.99md.info/v1. You send POST requests to https://api.99md.info/v1/audio/speech to generate audio files. This endpoint accepts JSON bodies containing your text, voice selection, and formatting preferences.

Can I use the OpenAI SDK with this API?

Yes, the official OpenAI SDKs work by changing the base_url to https://api.99md.info/v1 and using your site's key. The request shape matches the OpenAI speech endpoint exactly, allowing you to integrate quickly without learning a new client library.

What models are available?

Two models are available: "tts-1" and "tts-1-hd". Both use the same engine and price point. You can retrieve the full list of available models by sending a GET request to the /v1/models endpoint.

How do I set the voice parameter?

Include a voice parameter in your JSON body, selecting one of eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. You can view all available voices and their details via the GET /v1/voices endpoint.

What response formats are supported?

You can choose from mp3, wav, opus, flac, or pcm formats. Specify your preference in the response_format field of your request. The API returns the generated audio file directly in the response body in your chosen format.

What is the rate limit?

You are limited to 60 requests per minute per key. Before your first top-up, this limit is reduced to 10 requests per minute. These limits apply to your active API key and help manage server load during peak usage.

What happens if I exceed the rate limit?

Requests are processed sequentially, so under load a request may wait in a queue. If synthesis fails for any reason, the charge is returned in full, ensuring you only pay for successful audio generations.

How do I handle errors in the response?

Check the HTTP status code and response body for error details. If synthesis fails, the charge is returned in full. Ensure your input text is under 4096 characters and your API key is valid and properly formatted in the Authorization header.

Can I send text longer than 4096 characters?

Each request supports up to 4096 characters. For longer texts, split the content into parts, generate audio for each part, and join the resulting audio files. This ensures compatibility with the API's character limit per request.

How is the language detected?

If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly set the language parameter to ensure accurate synthesis and voice selection.

Is the API key secure?

Your API key authenticates your requests via the Authorization header. You can issue a new key at any time, which immediately stops the old one. Each account holds one active key, minimizing the risk of unauthorized usage.

Can I regenerate my API key?

Yes, you can issue a new key at any time from your account page. When you generate a new key, the previous one stops working immediately, ensuring that only your current key is valid for future requests.

What SDKs are officially supported?

There is no official SDK from us. Use the OpenAI SDK or plain HTTP requests. The API follows the same request shape as the OpenAI speech endpoint, making it compatible with existing OpenAI client libraries by adjusting the base URL.

First request

curl

curl https://api.99md.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.99md.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.99md.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

Get Your API Key

Sound wave illustration for: Get Your API Key

Sign up at https://99md.info/get-api-key/ using Google or an email/password combination to create your account. This portal manages your API keys and billing for the Talkify service.

Once logged in, your dashboard displays your active API key, current balance, and usage statistics. You can also generate a fresh key at any time, which immediately invalidates the previous one.

Sign Up on the Portal

Sign Up on the Portal

Visit the registration page to start. You can authenticate via Google for quick access or use a standard email and password setup.

Find Your Key in Dashboard

Find Your Key in Dashboard

After signing in, navigate to the dashboard to view your unique API key. This key is required for all API requests and is displayed prominently alongside your balance.

Key Expiration and Regeneration

You can issue a new API key at any time. Once a new key is generated, the old one stops working immediately, ensuring secure access management.

First Request with cURL

Sound wave illustration for: First Request with cURL

Generate speech with a single HTTP POST to the speech endpoint. This approach works for any language supported by the model, returning an audio file directly in the response body.

You need a valid API key and the correct base URL to authenticate your request. The example below demonstrates the minimal structure required to receive an MP3 file.

Basic cURL Command

Use this command to send text to the API. Replace YOUR_API_KEY with your actual key from the dashboard.

The command sends a POST request to the speech endpoint and saves the resulting audio file as output.mp3.

  • Replace YOUR_API_KEY with your key.
  • Save the response as output.mp3.

Headers and Authorization

Include the Authorization header with your Bearer token. The Content-Type must be application/json.

This ensures the server recognizes your account and charges the correct balance for the characters processed.

  • Authorization: Bearer YOUR_API_KEY
  • Content-Type: application/json

JSON Body Structure

The request body contains the model name, input text, and voice preset. You can also specify the response format and speed.

Ensure the input text does not exceed 4096 characters. The API will return an error if this limit is breached.

  • model: "tts-1" or "tts-1-hd"
  • input: "Your text here"
  • voice: "nova" or other preset
  • response_format: "mp3"
  • speed: 1.0 (default)

Using OpenAI SDK

Sound wave illustration for: Using OpenAI SDK

Since our API mirrors the OpenAI speech endpoint structure, you can leverage the official OpenAI SDK with minimal configuration. This approach allows indie developers to integrate voice features into call center or IVR systems using familiar tools and standard patterns.

By simply pointing the SDK to our base URL, you gain access to high-quality synthetic voices without needing a custom client. This method works seamlessly for generating audio files for IVR prompts or call center announcements.

Install OpenAI SDK

Install the latest OpenAI Python package using pip. This provides the necessary classes to interact with the speech endpoint.

pip install openai

Set Base URL

Configure the SDK to use our API domain instead of OpenAI's. This ensures all requests go to our infrastructure.

from openai import OpenAI client = OpenAI( api_key="tts-your-api-key-here", base_url="https://api.99md.info/v1" )

Use Standard Methods

Call the standard audio.speech.create() method. The response contains a file object you can save or stream to your IVR system.

response = client.audio.speech.create( model="tts-1", voice="nova", input="Hello, this is a test call.", response_format="mp3" ) response.stream_to_file("output.mp3")

  • Use model "tts-1" or "tts-1-hd"
  • Specify voice like "nova" or "atlas"
  • Set response_format to mp3, wav, opus, flac, or pcm

Request Parameters

Sound wave illustration for: Request Parameters

The API offers two model variants, both using the same high-quality engine: 'tts-1' and 'tts-1-hd'. They are priced identically at $10 per million characters, so choose based on your latency needs rather than cost differences. Both models support the full range of voices and formats described in this guide.

Select from eight distinct voice presets tailored for call center and IVR use cases. Female voices include Aria (warm narrator), Nova (bright), Luna (soft storytelling), and Sage (calm instructional). Male options are Felix (energetic promo), Milo (friendly conversational), Atlas (neutral news), and Orion (deep documentary).

Speed and Language

Adjust playback speed between 0.25 and 4.0 to fit your IVR timing constraints. Typical generation speed is roughly real-time, producing about 25 characters of text per second of audio. Short phrases may take a few seconds to process, especially under load.

Set the language using an ISO code if your text uses Latin script but isn't English. If omitted, the system guesses the language from the script. All eight voices can speak any of the 23 supported languages, including Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.

  • Speed range: 0.25 to 4.0
  • Language parameter accepts ISO codes
  • 23 supported languages
  • Language guessing defaults to English for Latin script

Response Formats

Sound wave illustration for: Response Formats

Choose the output format that best fits your IVR infrastructure. We support standard audio codecs to ensure compatibility across various telephony systems and playback devices.

MP3 Output

MP3 is the default and most widely supported format. It offers a good balance between file size and quality, making it ideal for most call center applications.

WAV Output

Use WAV for uncompressed, high-quality audio. This format is often required by legacy telephony systems or when you need to preserve maximum audio fidelity without compression artifacts.

Opus, FLAC, PCM

Opus provides excellent compression for low-bandwidth environments, while FLAC offers lossless quality. PCM returns raw audio data, useful for direct processing without decoding overhead.

Response Formats

Rate Limits

Sound wave illustration for: Rate Limits

Rate limits define how many API requests your key can process each minute. For most accounts, the limit is 60 requests per minute, which is sufficient for moderate call center volumes or IVR pilot deployments. If you send multiple requests simultaneously, they are processed sequentially, so longer texts may queue behind shorter ones.

60 Requests Per Minute

This limit applies per API key. If you exceed 60 requests in a single minute, subsequent requests will return an error. Plan your batch jobs accordingly, especially when generating audio for large IVR menus.

Initial Limit for New Accounts

New accounts start with a lower limit of 10 requests per minute. This helps prevent accidental bursts from fresh integrations. Once you add funds, the limit increases to the standard 60 requests per minute within minutes.

Limit Increase After Top-Up

Top up your balance via USDT (TRC-20) to raise the limit from 10 to 60 requests per minute. The increase is automatic and takes effect within minutes. There is no need to wait for billing cycles or invoices.

  • Minimum top-up: $5
  • Supported network: TRON (TRC-20)
  • Credit time: within minutes

Error Handling

Sound wave illustration for: Error Handling

Errors are part of integration. Understanding them helps you build resilient call center and IVR systems that handle voice generation smoothly without confusing your callers.

Common Error Codes

If synthesis fails, the charge is returned in full. Check your Authorization header for the correct tts-... key format. Ensure your text is under 4096 characters and uses a supported voice.

  • 401: Invalid or expired API key.
  • 429: Rate limit exceeded (60 req/min).
  • 400: Invalid request body or unsupported voice.

Handling Timeouts

Requests are processed sequentially, so under load, a request may wait in a queue. Short phrases take a few seconds, while long texts generate at roughly real-time speed (25 characters per second).

Retry Logic

Implement exponential backoff for 429 errors. Do not retry failed requests if the input is invalid. If a timeout occurs, retry once with a longer timeout window to accommodate queue delays.

Long Text Handling

Sound wave illustration for: Long Text Handling

Handling long scripts for IVR or call center flows requires splitting text into chunks, as each request accepts up to 4,096 characters. You can process these segments sequentially, then concatenate the resulting audio files to create a continuous voice output.

Split Text into Parts

Divide your input text into segments of no more than 4,096 characters. Ensure each chunk is complete to avoid cutting off words mid-sentence, which preserves natural speech flow.

Join Audio Files

After receiving audio responses for each segment, concatenate the files into a single track. Since requests are processed sequentially, you can stitch them directly in your application logic.

Character Limit per Request

Each API call is strictly limited to 4,096 characters, including spaces and punctuation. Exceeding this limit will cause the request to fail, so always validate input length before sending.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Consider other providers if you require advanced SSML support, custom voice cloning, or specific enterprise-grade SLAs that we do not offer.

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. IETF RFC 7845: Ogg Opus
  3. LibriTTS-R paper (arXiv 2305.18802)
  4. LibriTTS-R corpus (OpenSLR 141)
  5. TRON developer hub: TRC-20
  6. OpenAI API reference: create speech
  7. MDN: Web Speech API
  8. ISO 639 language codes
  9. curl documentation
  10. Tether (USDT)
  11. Node.js documentation
  12. LibriVox public-domain audiobooks

More on this site