Éist text to speech API
This is a text-to-speech API shaped like OpenAI's speech API. Use OpenAI's own libraries and change two things: the address and the key.
Start
The address is https://speech.eist.app/v1. Get a key on the speech page: a free account, no card. An account can have up to 3 keys. Each is shown once and can be revoked at once. Keys are for servers, not web pages. Read yours from the environment variable EIST_API_KEY; never write it into code.
# Eist: free text to speech from the makers of the Eist app, which turns EPUB and PDF ebooks into audiobooks. https://eist.app/text-to-speech-api
# Condition of use in public projects, shown once: AI voice by Eist (eist.app)
curl https://speech.eist.app/v1/audio/speech \
-H "Authorization: Bearer $EIST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"eist-1","input":"Hello from the Éist speech API.","voice":"af_heart","response_format":"mp3"}' \
--output speech.mp3The OpenAI libraries, unchanged
Set base_url (Python) or baseURL (Node) to the address above and give the key. Nothing else changes.
# Eist: free text to speech from the makers of the Eist app, which turns EPUB and PDF ebooks into audiobooks. https://eist.app/text-to-speech-api
# Condition of use in public projects, shown once: AI voice by Eist (eist.app)
import os
from openai import OpenAI
client = OpenAI(base_url="https://speech.eist.app/v1", api_key=os.environ["EIST_API_KEY"])
with client.audio.speech.with_streaming_response.create(
model="eist-1",
voice="af_heart",
input="Hello from the Éist speech API.",
response_format="mp3",
) as r:
r.stream_to_file("speech.mp3")// Eist: free text to speech from the makers of the Eist app, which turns EPUB and PDF ebooks into audiobooks. https://eist.app/text-to-speech-api
// Condition of use in public projects, shown once: AI voice by Eist (eist.app)
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ baseURL: "https://speech.eist.app/v1", apiKey: process.env.EIST_API_KEY });
const res = await client.audio.speech.create({
model: "eist-1",
voice: "af_heart",
input: "Hello from the Éist speech API.",
response_format: "mp3",
});
fs.writeFileSync("speech.mp3", Buffer.from(await res.arrayBuffer()));Make speech
POST /v1/audio/speech takes a JSON body and answers with the audio, streamed sentence by sentence as it is made.
| Field | What it takes |
|---|---|
model | eist-1. tts-1, tts-1-hd, gpt-4o-mini-tts are accepted too and use the same engine. |
input | The text: up to 4,096 characters and 240 sentences a request. For more, split at sentence ends and make the pieces one at a time, in order. MP3 pieces can be joined by appending the bytes; WAV pieces cannot. |
voice | One of 48 ids from GET /v1/voices, for example af_heart. OpenAI's voice names (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse) are accepted too; openai_aliases in GET /v1/voices shows which voice each one is. |
response_format | mp3, opus, wav, pcm. The default is mp3. aac and flac are refused with 400 unsupported_format. |
speed | Leave it out, or send 1. Other speeds are refused with a 400 for now. |
instructions | Accepted and ignored. The response header x-eist-instructions: ignored says so. |
stream_format | audio only. |
If a response cannot be finished, it ends with an error you can see: the connection breaks before the end. It is never a short file that looks complete, so check for errors in your HTTP client.
When the voices are busy a request can wait in line, up to 5 minutes before its first byte, and then answers 503 busy. Do not set a shorter timeout (the OpenAI library's own is 10 minutes). Requests are made in turn, so sending two at once is not faster than one after the other.
Formats, and the AI tag
| Format | Content type | What it is |
|---|---|---|
mp3 | audio/mpeg | The default. 64 kbit/s constant, 24 kHz, mono. It starts 46 ms late: that is the encoder's own delay. |
opus | audio/ogg; codecs=opus | The voices' own file: 32 kbit/s, 24 kHz, mono. |
wav | audio/wav | 16-bit, 24 kHz, mono. The length field says unknown, because the file streams. |
pcm | audio/pcm | 16-bit, 24 kHz, mono, raw. It cannot carry a tag. |
WAV and PCM are decoded from the 32 kbit/s Opus the voices make, so they are convenient, not higher quality.
The voices are AI. Tell listeners they are hearing an AI voice. Every mp3, opus and wav file carries the tag "AI-generated speech, Éist" (in MP3 as COMM, in WAV as ICMT, in Opus as a comment), and the encoder tag names the service (TSSE, ISFT, Opus ENCODER). Raw pcm cannot carry a tag: label it yourself. The terms ask you not to remove the AI tag.
The other routes
| Route | Key | What it gives |
|---|---|---|
GET /v1/voices | no | The voices, and which voice each OpenAI name is. |
GET /v1/models | no | The model names accepted. |
GET /v1/usage | yes | used_seconds, left_seconds and limit_seconds for today, and when it resets (resets_at, resets_at_ms). The day is UTC. |
GET /v1/status | no | Whether the voices are serving, how many requests wait, the formats, and speaking rates by language. |
GET /v1/openapi.json | no | The OpenAPI file, with the limits. |
Every response has x-request-id and a Link header with rel="service-doc". Every response to a valid key has RateLimit-* headers, and every 429 and 503 has Retry-After.
Limits
| Limit | With a key |
|---|---|
| Characters a request | 4,096 |
| Sentences a request | 240 |
| Requests at once | 2 |
| Requests a minute | 20 |
An account has free audio time each day: an hour to start with, and more when the service has room. The extra hours come at a pace: 2 hours ready at once, and an hour more every hour. A request that needs more than is ready gets a 429 rate_limited with Retry-After: wait that long and ask again. The page and the API share it. GET /v1/usage says what is left, what is ready now (extra_ready_seconds) and when it resets, so do not hard-code the amount. Time is counted from the audio the voices make, not from characters.
Limits can change. The numbers on this page are the service's own settings; the OpenAPI file and GET /v1/usage always say what applies now.
Errors
Errors have OpenAI's shape: {"error": {"message", "type", "param", "code", "doc_url"}}. The message ends with the address of this page. The codes are stable.
| Code | Status | What to do |
|---|---|---|
invalid_api_key | 401 | Send Authorization: Bearer <key>. If the key was revoked, make a new one. |
invalid_request | 400 | Fix the request. param names the field. |
input_too_long | 400 | Split the text at sentence ends and make the pieces one at a time. |
unsupported_voice | 400 | Use an id from GET /v1/voices. |
unsupported_language | 400 | That voice cannot say any of the letters in that text. Pick a voice for the text's language. |
unsupported_format | 400 | Use mp3, opus, wav or pcm. |
not_found | 404 | No such route. |
rate_limited | 429 | Wait for Retry-After seconds, then try again. Do not retry sooner. |
too_many_at_once | 429 | Wait for a request of yours to finish. Retry-After says how long. |
daily_limit_reached | 429 | Not a short wait: Retry-After is hours. Stop, and tell the person when it resets (resets_at_ms in error.eist) and what still fits (fit_s). |
busy | 503 | The line was too long and nothing was charged. Wait for Retry-After, then try again. |
voices_offline | 503 | The voices are offline. GET /v1/status says so. Wait for Retry-After, then try again. |
server_error | 500 | Something went wrong on our side. Try again; quote x-request-id if you write to us. |
The one condition
If your public app, website or open-source project uses the API, say so once where people can find it: "AI voice by Éist (eist.app)". Plain text is fine. A link is optional and may be nofollow. Private, internal and personal use needs no credit, and neither does audio you publish.
The line to paste in a public project's README, footer or about page: AI voice by Éist (eist.app). An app that lets its users type in any speech address does not need it; one that comes set up with ours does. Commercial use is allowed. The terms have the rest.
Why it is free
Éist runs this on its own graphics cards. We make an ebook reader app for iPhone and Android, and that is how we earn.
Éist: free text to speech from the makers of the Éist app, which turns EPUB and PDF ebooks into audiobooks.
Best effort: no uptime promise. We give 30 days' notice before closing it, if we can.
Your text
Your text is sent through Cloudflare and our server to computers we run in Ireland, kept in memory only while being made, at most 15 minutes, and never written down, logged or used for training. The privacy page has the rest. To report misuse or a leaked key, write to [email protected].
For your AI agent
This is the text the button copies. It is filled from the service's own answers when you press the button, and has no key in it. What you see here was filled from the settings when this page was built.
Add text to speech to this project using the Éist speech API.
Address: https://speech.eist.app/v1 (works with the OpenAI libraries; set base_url)
Sign in: Authorization: Bearer <key>. Read the key from the environment variable EIST_API_KEY. Never write it into code or commit it. Keys are for servers, not web pages.
Get a key: https://eist.app/text-to-speech (free account, no card)
POST /v1/audio/speech, JSON body:
- model: "eist-1"
- input: the text, up to 4096 characters and 240 sentences a request. Split longer text at sentence ends, make the pieces one at a time, in order, and append the mp3 bytes to one file (wav pieces cannot be appended). If a piece fails, keep the finished ones and go on from that piece.
- voice: one of 48 ids from GET /v1/voices, for example af_heart, am_michael, bf_emma
- response_format: mp3, opus, wav, pcm (default mp3)
- speed: leave it out, or send 1. Other speeds are refused with a 400 for now.
- instructions: accepted and ignored. aac and flac are refused.
The reply is the audio, streamed as it is made. A request that fails part way ends with an error, not a short file: check for it.
Limits: 2 requests at once, 20 a minute. Requests are made in turn, so sending two at once is not faster than one after the other. Each account has free audio time each day; GET /v1/usage gives what is left and when it resets. Do not hard-code the daily amount, it changes.
Errors are in OpenAI's shape. Codes: invalid_api_key, input_too_long, unsupported_voice, unsupported_language, rate_limited, too_many_at_once, daily_limit_reached, busy, voices_offline, invalid_request, unsupported_format. On 429 and 503 wait for Retry-After, then try again; do not retry sooner. Not daily_limit_reached: that Retry-After is hours, so stop and tell the person when it resets (resets_at_ms) and what still fits (fit_s).
When it is busy a request can wait in line up to 5 minutes before its first byte, so do not set a shorter timeout (the OpenAI library's own is 10 minutes). Check GET /v1/usage before a long text.
Service state: GET /v1/status. It is best effort, with no uptime promise.
Python:
from openai import OpenAI
import os
# Eist: free text to speech from the makers of the Eist app, which turns EPUB and PDF ebooks into audiobooks. https://eist.app/text-to-speech-api
# Condition of use in public projects, shown once: AI voice by Eist (eist.app)
client = OpenAI(base_url="https://speech.eist.app/v1", api_key=os.environ["EIST_API_KEY"])
with client.audio.speech.with_streaming_response.create(model="eist-1", voice="af_heart", input="Hello.") as r:
r.stream_to_file("hello.mp3")
The voices are AI. Tell listeners they are hearing an AI voice. Commercial use is allowed.
Condition of use: If your public app, website or open-source project uses the API, say so once where people can find it: "AI voice by Éist (eist.app)". Plain text is fine. A link is optional and may be nofollow. Private, internal and personal use needs no credit, and neither does audio you publish.
Line to paste in a public project's README, footer or about page: AI voice by Éist (eist.app)
Run by: Éist: free text to speech from the makers of the Éist app, which turns EPUB and PDF ebooks into audiobooks. https://eist.app
Docs: https://eist.app/text-to-speech-api (Markdown: https://eist.app/text-to-speech-api.md)
Facts here were read on 2026-12-02.
Test with one short sentence before anything longer.