EchoNode API Documentation for Developers

By EchoNode editorial team · Updated 2026-11-18

This documentation provides the technical specifications for integrating the EchoNode text-to-speech API into voice assistants and conversational agents. It covers the core endpoints, request parameters, and response formats required for reliable audio generation. You will find concrete examples for Python and cURL, along with details on authentication, rate limits, and error handling to help you build robust integrations quickly.

Designed for indie developers, this guide assumes familiarity with HTTP APIs and basic SDK usage. We use the standard OpenAI-compatible request shape, allowing you to reuse existing clients with a simple base URL override. There are no custom SDKs or streaming protocols to manage; just send text and receive audio files. Read on to start generating speech with transparent pricing and clear engineering constraints.

EchoNode API Documentation for Developers

Frequently asked questions

How do I get an API key?

Navigate to /get-api-key/ and sign in using Google or an email and password combination. The dashboard displays your active 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.man79ok.com/v1. Use this endpoint for all requests, including POST /v1/audio/speech for generation and GET /v1/voices for metadata. This base URL allows compatibility with standard HTTP clients and SDKs.

Which models are available?

Two models are available: tts-1 and tts-1-hd. Both use the same underlying engine and pricing structure. Select the model that best fits your quality requirements, though the audio generation process remains identical for both options.

Can I use the OpenAI Python SDK?

Yes. The request shape matches the OpenAI speech endpoint. Configure the SDK by changing the base_url to https://api.man79ok.com/v1 and providing your EchoNode API key. This allows seamless integration into existing Python workflows without code restructuring.

How do I specify the voice?

Include the voice parameter in your JSON body. Choose from eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. Each voice has a distinct tone, from warm narrator to deep documentary, suitable for various assistant personalities.

What is the maximum input length?

The maximum input length is 4096 characters per request. If your text exceeds this limit, split it into chunks of up to 4096 characters. Generate audio for each chunk and join the resulting files to create the final output.

How do I set the audio speed?

Use the speed parameter with a value between 0.25 and 4.0. This allows you to adjust the playback rate to fit your voice assistant’s pacing requirements. The default speed is 1.0, providing natural speech rhythm for most use cases.

What happens if the request fails?

Failed requests are free. If synthesis fails, the charge is returned in full. You can retry the request or adjust parameters like input text or voice. No credit is deducted for unsuccessful generation attempts, ensuring transparent billing for your application.

Is SSML supported in the input?

No, SSML is not supported. The API accepts plain text input only. There are no phoneme dictionaries or custom pronunciation lexicons available. You must rely on the voice presets and speed adjustments to control the output audio characteristics.

How do I handle long texts?

Split your text into parts of up to 4096 characters. Send each part as a separate POST request to /v1/audio/speech. Once you receive the audio files for each chunk, join them sequentially to create the complete audio output.

What is the default language if not specified?

If the language parameter is omitted, the system guesses the language from the script. Latin script text defaults to English. For non-English Latin-script text, explicitly set the language parameter to ensure accurate synthesis and avoid mispronunciation errors.

Can I stream the audio response?

No streaming is available. The API returns the complete audio file in the response body. There is no WebSocket or real-time partial audio support. You must wait for the full file to be generated before processing or playback.

How do I rotate my API key?

Issue a new key from your dashboard at any time. The new key becomes active immediately, and the old key stops working at once. This allows seamless rotation without downtime. You can generate new keys as needed for security.

What is the response format for errors?

Standard HTTP error codes are returned with a JSON body describing the issue. Failed requests do not incur charges. Check the status code and response message to debug issues like invalid input, rate limits, or authentication errors in your integration.

First request

curl

curl https://api.man79ok.com/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.man79ok.com/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.man79ok.com/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

Obtain your API key by signing up on the /get-api-key/ page using Google or email. Your account displays a single active key, which you use to authenticate all requests to the EchoNode TTS API.

API key generation

API key generation

Keys are issued upon account creation. Each account maintains one active key at a time. You can generate a new key at any time via the dashboard, which immediately invalidates the previous one.

Bearer token usage

Bearer token usage

Include your key in the Authorization header of every request. Use the format Authorization: Bearer tts-.... The key identifies your account and tracks usage against your balance and rate limits.

Key rotation policy

Rotating your key is immediate. When you issue a new key from the dashboard, the old key stops working at once. This ensures security without downtime if you suspect a leak.

Endpoints

Sound wave illustration for: Endpoints

The EchoNode API exposes three primary endpoints for voice assistant integration. The speech generation endpoint accepts text and returns synthesized audio, while the list endpoints provide metadata on available voices and model configurations.

Speech generation endpoint

Send a POST request to /v1/audio/speech with your text payload. The API returns the audio file directly in the response body, allowing seamless integration into your voice pipeline.

  • Endpoint: POST https://api.man79ok.com/v1/audio/speech
  • Returns: Audio binary (mp3, wav, opus, flac, or pcm)

List voices endpoint

Query GET /v1/voices to retrieve the full list of available voice presets, their associated languages, and supported output formats. This allows dynamic voice selection in your application.

  • Endpoint: GET /v1/voices
  • Returns: JSON array of voice objects with metadata

List models endpoint

Use GET /v1/models to verify the currently active model versions (tts-1 and tts-1-hd). This ensures your application uses the correct identifiers for synthesis requests.

  • Endpoint: GET /v1/models
  • Returns: JSON array of model objects

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts plain text strings as input, with a strict limit of 4096 characters per request. Spaces and punctuation count toward this total. For longer content, split the text into chunks and concatenate the resulting audio files.

Input text field

Pass your text via the input field. Ensure it fits within the 4096-character constraint to avoid truncation or errors.

Voice selection

Choose from 8 preset voices (e.g., aria, nova, atlas) that support 23 languages. Any voice can speak any supported language; set the language code explicitly for non-English Latin text to ensure correct pronunciation.

  • Female: aria, nova, luna, sage
  • Male: felix, milo, atlas, orion

Model selection

Select tts-1 or tts-1-hd. Both use the same engine and pricing structure, so the model choice does not affect cost or latency significantly.

Response Formats

Sound wave illustration for: Response Formats

The API returns synthesized audio as raw binary data, allowing direct piping to voice assistant playback engines without intermediate parsing. Alternatively, clients receive a structured JSON response containing metadata about the generation job.

Error responses adhere to standard HTTP conventions, providing clear codes and messages for debugging integration issues. Rate limit headers are included in every response to help manage throughput efficiently.

Audio binary response

The response body contains the raw audio bytes in the requested format (mp3, wav, opus, flac, or pcm). This data is not wrapped in JSON, enabling direct streaming to audio hardware or memory buffers for immediate playback in conversational agents.

Error JSON structure

Errors return a JSON object with 'code' and 'message' fields. Client errors use 4xx status codes, while server issues use 5xx. Specific codes indicate rate limits, invalid input, or authentication failures, allowing precise error handling in your integration logic.

Rate limit headers

Every response includes standard rate limit headers indicating your current usage relative to the 60 requests per minute quota. Exceeding this limit triggers a 429 status code. Monitor these values to implement backoff strategies and ensure smooth operation during high-volume generation.

SDK Integration

Sound wave illustration for: SDK Integration

The EchoNode API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing integrations with minimal friction. By simply overriding the base URL, your current SDK client can direct requests to our infrastructure without code refactoring.

OpenAI SDK configuration

Install the openai Python package. Import the client and initialize it with your API key obtained from the dashboard.

  • Use standard openai package
  • Standard speech method

Base URL override

Set the base_url parameter to https://api.man79ok.com/v1. This directs all subsequent API calls to EchoNode’s endpoints while maintaining the expected request shape.

  • base_url: https://api.man79ok.com/v1

Python example

Initialize the client and call the speech method. The response contains the audio binary directly, ready for playback in your voice assistant pipeline.

  • client = OpenAI(base_url="https://api.man79ok.com/v1", api_key="tts-...")
  • audio = client.audio.speech.create(...)
SDK Integration

Curl Example

Sound wave illustration for: Curl Example

The EchoNode API accepts standard JSON payloads via POST. You send your text and desired parameters to receive synthesized audio directly. This approach ensures compatibility with existing TTS workflows without requiring custom protocol adapters.

Each request processes one text segment up to 4,096 characters. The API returns the audio file in the requested format, allowing immediate playback or storage by your voice assistant.

Basic speech request

Send a minimal request to generate audio using the default model and voice. The response contains the binary audio data or an error JSON if synthesis fails.

This command sends the text "Hello, this is a test" using the default settings. The API returns an MP3 file by default (mp3 is the default response_format).

  • Endpoint: POST https://api.man79ok.com/v1/audio/speech
  • Header: Authorization: Bearer YOUR_API_KEY

Specifying voice

Select from eight preset voices to match your assistant’s personality. Each voice has a distinct tone, from warm narration to energetic promo styles.

This example uses the 'nova' voice for a bright, upbeat delivery. You can swap 'nova' with any of the eight supported voice IDs.

  • Available voices: aria, nova, luna, sage, felix, milo, atlas, orion

Setting speed

Adjust the playback speed between 0.25 and 4.0 to fit your dialogue timing. Faster speeds reduce latency for quick responses, while slower speeds improve clarity for complex instructions.

Set speed to 1.5 for a brisk conversational tone. The API handles the audio resampling automatically without requiring post-processing.

  • Speed range: 0.25 to 4.0
  • Default speed: 1.0

Error Handling

Sound wave illustration for: Error Handling

The API returns standard HTTP status codes to indicate request outcomes. A 400 Bad Request signals invalid parameters, while 401 Unauthorized indicates an invalid or missing API key. Use the response body to identify the specific issue.

Common error codes

400 errors typically occur when the request body is malformed or fields are missing. 401 errors indicate authentication failures; ensure your Bearer token is correct. 429 errors signal rate limit exceeded. 500 errors represent internal server issues.

  • 400: Bad Request
  • 401: Unauthorized
  • 429: Too Many Requests
  • 500: Internal Server Error

Rate limit errors

When exceeding 60 requests per minute, the API returns a 429 status. The response includes headers indicating when the limit resets. Pre-top-up accounts are limited to 10 requests per minute. Retry logic should respect these headers.

Invalid input handling

Text exceeding 4096 characters triggers a 400 error. Ensure your client splits long inputs before sending. Invalid voice IDs or unsupported formats also return 400 errors. Check the response body for details on the invalid field.

  • Max 4096 characters per request
  • Invalid voice ID
  • Unsupported response format

Rate Limits

Sound wave illustration for: Rate Limits

Your API key allows 60 requests per minute under normal conditions. This limit applies to the POST /v1/audio/speech endpoint and is enforced server-side. You can monitor your usage via the dashboard or by inspecting response headers.

Failure to adhere to these limits results in a 429 Too Many Requests error. Failed synthesis attempts do not consume your character balance but do count toward the request limit.

Requests per minute

The standard rate limit is 60 requests per minute per active key. This throughput supports real-time voice assistant interactions for moderate traffic volumes.

  • Limit: 60 requests/minute/key

Pre-top-up limits

New accounts without a top-up are restricted to 10 requests per minute. This lower limit ensures stability during initial testing phases.

  • Initial limit: 10 requests/minute

Queue behavior

Requests are processed sequentially. Under heavy load, new requests may wait in a queue before processing begins. This ensures fair resource distribution but may increase latency for long texts.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Cache audio files for static or frequently repeated text segments.

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. FFmpeg documentation
  3. W3C WAI: making audio and video accessible
  4. ISO 639 language codes
  5. LibriTTS-R corpus (OpenSLR 141)
  6. OpenAI API reference: create speech
  7. TRON developer hub: TRC-20
  8. MDN: Web Speech API
  9. IETF RFC 7845: Ogg Opus
  10. openai-python on GitHub
  11. Creative Commons Attribution 4.0
  12. openai-node on GitHub

More on this site