Elai.io Voices API
The voice catalog, custom voices, and speech synthesis for previewing.
The voice catalog, custom voices, and speech synthesis for previewing.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/elaiio:elaiio-voices-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Elai Public Voices API
version: '1.0'
description: 'Every endpoint below is served under `https://apis.elai.io/api/v1`.
## Authentication
Send your workspace API token as a bearer token on every request:
```
Authorization: Bearer
```
Generate and rotate the token in the Elai web app under **Settings → API**, or through
`POST /generateToken`. The token is scoped to one **workspace** and authenticates as that
workspace''s admin user — it is not tied to an individual person, and it carries admin rights
inside that workspace.
A request with a missing, unknown or revoked token gets a bare `401` with no response body.
> **Organizations on the Unlimited plan cannot use the API.** Their requests are rejected with the
> same bare `401` as an invalid token, with nothing to distinguish the two. If a valid, freshly
> generated token returns `401` on every endpoint, check the plan first.
## Errors
Failures carry a JSON body of the shape `{ "message": "..." }`. Validation failures on the newer
endpoints may add an `errors` array naming the offending fields. `401` is the exception: it has no
body at all.
Both render endpoints are **fire-and-forget** — they queue work and return immediately, so a
`200` means "accepted", not "rendered". Render failures surface only through the `video_error`
webhook, never as an HTTP error on the call that started the render.
## Scope
This reference is generated from the running code rather than maintained by hand, so it cannot
quietly fall behind the API it describes. It documents 94 operations across the
`/api/v1` surface.
Endpoints are grouped by subject in the sidebar. If something you need is missing, or an endpoint
does not behave as described here, tell us.
---
_Generated from `HEAD` at `2a2222fdbe` on 2026-11-25._'
servers:
- url: https://apis.elai.io/api/v1
security:
- sec0: []
tags:
- name: Voices
description: The voice catalog, custom voices, and speech synthesis for previewing.
paths:
/voices:
get:
summary: Languages/Voices list
description: List of all supported languages and voices. List is an array of supported languages. Each language is an object with name, male and female, where you can find voices separated by gender.
operationId: voices-list
responses:
'200':
description: 'The full voice catalogue: an array of **language groups**, each holding `male` and `female` voice arrays.
`name` here is the language-group name (`English`, `Somali`, …) and is exactly the string the other endpoints expect as `language` — **case-sensitive**, and not a locale code. Do not send a voice''s own `name` (`English (United States)`) as `language`; it is a different field that happens to share the key.'
content:
application/json:
schema:
type: array
items:
type: object
properties:
name:
type: string
description: Language-group name. Use this as `language` elsewhere.
male:
type: array
items:
type: object
description: One voice. Send `voice` and `voiceProvider` together — they must match, or synthesis returns 400.
additionalProperties: true
properties:
voice:
type: string
description: Voice id. This is the `voice` value for `PATCH /voices` and slide payloads.
voiceProvider:
type: string
enum:
- azure
- google
- elevenlabs
description: Provider that owns this voice.
character:
type: string
description: Display name of the speaker, e.g. `Andrew M`.
name:
type: string
description: Locale label, e.g. `English (United States)`. Not the language-group name.
locale:
type: string
description: BCP-47 locale, e.g. `en-US`.
premium:
type: boolean
description: Requires a plan that allows premium voices.
url:
type: string
description: Sample audio.
styleList:
type: array
items:
type: string
description: Speaking styles this voice supports.
stylePreview:
type: object
additionalProperties:
type: string
description: Sample audio per style.
tones:
type: array
items:
type: string
categories:
type: array
items:
type: string
tags:
type: array
items:
type: string
icon:
type: string
description: Flag code for the locale.
age:
type: number
order:
type: number
defaultStyle:
type: string
rolePlayList:
type: array
items:
type: string
approxDurationCoeficient:
type: number
description: Used by `PATCH /voices/duration` to estimate speech length.
female:
type: array
items:
type: object
description: One voice. Send `voice` and `voiceProvider` together — they must match, or synthesis returns 400.
additionalProperties: true
properties:
voice:
type: string
description: Voice id. This is the `voice` value for `PATCH /voices` and slide payloads.
voiceProvider:
type: string
enum:
- azure
- google
- elevenlabs
description: Provider that owns this voice.
character:
type: string
description: Display name of the speaker, e.g. `Andrew M`.
name:
type: string
description: Locale label, e.g. `English (United States)`. Not the language-group name.
locale:
type: string
description: BCP-47 locale, e.g. `en-US`.
premium:
type: boolean
description: Requires a plan that allows premium voices.
url:
type: string
description: Sample audio.
styleList:
type: array
items:
type: string
description: Speaking styles this voice supports.
stylePreview:
type: object
additionalProperties:
type: string
description: Sample audio per style.
tones:
type: array
items:
type: string
categories:
type: array
items:
type: string
tags:
type: array
items:
type: string
icon:
type: string
description: Flag code for the locale.
age:
type: number
order:
type: number
defaultStyle:
type: string
rolePlayList:
type: array
items:
type: string
approxDurationCoeficient:
type: number
description: Used by `PATCH /voices/duration` to estimate speech length.
example:
- name: English
male:
- voice: en-US-AndrewMultilingualNeural
voiceProvider: azure
character: Andrew M
name: English (United States)
locale: en-US
female:
- voice: en-US-JennyNeural
voiceProvider: azure
character: Jenny
name: English (United States)
locale: en-US
'400':
description: '400'
content:
application/json:
examples:
Result:
value: {}
schema:
type: object
properties: {}
deprecated: false
tags:
- Voices
patch:
tags:
- Voices
summary: Synthesise speech (voice preview)
description: 'Renders `text` with the given voice and returns the audio inline as base64, plus its duration and — when available — word/marker timings.
This is the editor''s "listen" action, so it has editor-shaped side effects: the result is written into the slide **audio cache** for `videoId`/`slideId` when those are supplied, the workspace pronunciation dictionary is applied, and a `VoiceCall` accounting record is written.
Long-text and premium-voice permission both depend on the plan. Synthesis always uses the workspace of your token: a custom voice is checked against that workspace and you, so one narrowed to other workspaces or users is rejected as no longer available. A custom voice narrowed to some users also plays for a teammate through a `videoId` of a video in the workspace that speaks with it and whose owner may use it.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
description: Speech text. May contain SSML-ish markup handled by the provider.
voice:
type: string
description: Voice id. Must exist in the voices map for `language`, or be a custom voice the workspace owns.
provider:
type: string
enum:
- azure
- google
- elevenlabs
description: TTS provider. Any other value is rejected.
language:
type: string
description: Language name as used by the voices map, e.g. `English`.
videoId:
type: string
description: When set, seeds generation deterministically and lets the result populate the audio cache.
slideId:
type:
- string
- integer
description: Slide the audio belongs to, for the audio cache.
accountId:
type: string
description: Honoured for platform staff only; every other caller is served as their token's workspace.
voiceVariantId:
type: string
description: A `VoiceCustomization` `_id` (legacy field name) whose settings and model are applied.
required:
- text
- voice
- provider
- language
example:
text: Welcome to the product tour.
voice: en-US-JennyNeural
provider: azure
language: English
responses:
'200':
description: Synthesised audio.
content:
application/json:
schema:
type: object
properties:
data:
type: string
description: Audio bytes, base64-encoded (MP3).
duration:
type: number
description: Duration in seconds.
markers:
type: array
description: Word/bookmark timings. Omitted when the provider returned none.
items:
type: object
additionalProperties: true
'400':
description: Unsupported provider, or the voice is not available for this language/workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: This voice is no longer available. Please select a different voice and try again.
operationId: synthesize-speech
/voices/custom:
patch:
tags:
- Voices
summary: Submit a custom-voice recording
description: 'Attaches a recording to an existing `Voice` document, names it, moves it to status `2` (submitted) and emails the Elai avatars team to begin voice creation. It does **not** train anything synchronously — turnaround is manual.
Requires the caller''s **organization** role to be `admin`; the workspace-level admin that an API token resolves to is not sufficient unless that user is also an org admin.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: '`Voice` document id in your organization.'
name:
type: string
description: Display name for the voice.
footageLink:
type: string
description: Link to the voice recording for the team to review.
required:
- id
- name
example:
id: 66a1f0c2b7cd13032a9c6301
name: Brand narrator
footageLink: https://drive.google.com/file/d/1abc/view
responses:
'200':
description: Recording submitted. Empty body.
'400':
description: '`id` or `name` missing, or no voice with that id.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The caller is not an organization admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: You are not allowed to perform this action.
'404':
description: Organization not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: submit-custom-voice
/voices/customization-preview:
patch:
tags:
- Voices
summary: Preview voice-customization settings
description: 'Synthesises a **fixed sample sentence** (translated into the requested locale) with the supplied `stability` and `speed`, so a customization can be auditioned before it is saved. Your own text is not accepted — that is `PATCH /voices`.
Unlike `PATCH /voices` this does not touch the audio cache and always allows premium voices.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
voice:
type: string
provider:
type: string
enum:
- azure
- google
- elevenlabs
language:
type: string
description: Language name, e.g. `English`.
locale:
type: string
description: Locale used to pick the translated sample sentence, e.g. `en-US`.
stability:
type: number
minimum: 0
maximum: 1
speed:
type: number
minimum: 0.7
maximum: 1.2
required:
- voice
- provider
- language
example:
voice: 21m00Tcm4TlvDq8ikWAM
provider: elevenlabs
language: English
locale: en-US
stability: 0.5
speed: 1
responses:
'200':
description: The sample rendered with those settings.
content:
application/json:
schema:
type: object
properties:
data:
type: string
description: Base64 MP3.
duration:
type: number
'400':
$ref: '#/components/responses/BadRequest'
operationId: preview-voice-customization
/voices/duration:
patch:
summary: Get approximate duration
description: 'You can get approximate duration of your speech before rendering
Provider names are lowercase, and the body is validated strictly — an unknown field, or a capitalised provider such as `Azure`, is rejected with `400`.'
operationId: get-speech-duration
requestBody:
content:
application/json:
schema:
type: object
required:
- voice
- provider
- language
- text
properties:
voice:
type: string
description: Voice ID. Can be obtained from "Languages/Voices list" API endpoint from "voice" param.
provider:
type: string
description: TTS provider that owns `voice`. The two must match, and the value is lowercase — `Azure` is rejected.
enum:
- azure
- google
- elevenlabs
language:
type: string
description: Language name. Can be obtained from "Languages/Voices list" API endpoint in the object of root array (Language object) as "name" param.
default: English
text:
type: string
description: Text from which to get voice duration
examples:
Request Example:
value:
voice: en-US-AriaNeural
language: English
provider: azure
text: Welcome to Elai! Type your script and click 'Render' to generate your first video!
description: 'The body is validated strictly: any field not listed here returns `400`, as does a `provider` outside the enum.'
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value:
approxDuration: 50.45
schema:
type: object
properties:
approxDuration:
type: number
example: 50.45
default: 0
'400':
description: '400'
content:
application/json:
examples:
Result:
value: {}
schema:
type: object
properties: {}
deprecated: false
tags:
- Voices
/voices/user-voices:
get:
tags:
- Voices
summary: List the workspace's custom voices
description: Lists cloned/custom voices visible to the caller — those owned by the organization, the workspace, or the individual user. Standard catalog voices are not included; use `GET /voices` for those.
parameters:
- name: videoId
in: query
required: false
description: A video of the caller's workspace. The list then also holds the video owner's custom voices that its slides use, so a teammate sees the voice a slide keeps.
schema:
type: string
responses:
'200':
description: Custom voices.
content:
application/json:
schema:
type: array
items:
type: object
properties:
_id:
type: string
description: Voice document id.
id:
type: string
description: Provider-side voice id, used as `voice` when synthesising.
name:
type: string
provider:
type: string
enum:
- azure
- google
- elevenlabs
status:
type: integer
description: Lifecycle state; a voice is usable once training completes.
operationId: list-custom-voices
components:
schemas:
Error:
type: object
properties:
message:
type: string
description: Human-readable explanation of the failure.
responses:
BadRequest:
description: The request was rejected. `message` explains why.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
sec0:
type: apiKey
in: header
name: Authorization
x-bearer-format: bearer
x-default: SECRET_KEY
x-provenance:
method: searched
source: https://elai.readme.io/reference
harvested: '2026-12-01'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://elai.readme.io/reference/apply-brand-kit.md
- https://elai.readme.io/reference/apply-template.md
- https://elai.readme.io/reference/avatars-list.md
- https://elai.readme.io/reference/build-outline-video.md
- https://elai.readme.io/reference/build-quiz-question.md
- https://elai.readme.io/reference/build-video-lesson.md
- https://elai.readme.io/reference/check-upload-usage.md
- https://elai.readme.io/reference/choose-lesson-template.md
- https://elai.readme.io/reference/copy-video-by-template.md
- https://elai.readme.io/reference/copy-video.md
- https://elai.readme.io/reference/create-from-pptx.md
- https://elai.readme.io/reference/create-from-text-url.md
- https://elai.readme.io/reference/create-outline.md
- https://elai.readme.io/reference/create-upload-folder.md
- https://elai.readme.io/reference/create-user.md
- https://elai.readme.io/reference/create-video.md
- https://elai.readme.io/reference/create-voice-customization.md
- https://elai.readme.io/reference/delete-upload-folder.md
- https://elai.readme.io/reference/delete-upload.md
- https://elai.readme.io/reference/delete-uploads.md
- https://elai.readme.io/reference/delete-user.md
- https://elai.readme.io/reference/delete-video.md
- https://elai.readme.io/reference/delete-voice-customization.md
- https://elai.readme.io/reference/download-scorm-package.md
- https://elai.readme.io/reference/generate-api-token.md
- https://elai.readme.io/reference/generate-outline-chapters.md
- https://elai.readme.io/reference/generate-outline-quiz.md
- https://elai.readme.io/reference/generate-outline-script.md
- https://elai.readme.io/reference/generate-quiz-from-video.md
- https://elai.readme.io/reference/generate-slides.md
- https://elai.readme.io/reference/get-slide-screenshots.md
- https://elai.readme.io/reference/get-speech-duration.md
- https://elai.readme.io/reference/inspect-presentation.md
- https://elai.readme.io/reference/list-avatar-frames.md
- https://elai.readme.io/reference/list-custom-voices.md
- https://elai.readme.io/reference/list-fonts.md
- https://elai.readme.io/reference/list-lesson-templates.md
- https://elai.readme.io/reference/list-music-tracks.md
- https://elai.readme.io/reference/list-templates.md
- https://elai.readme.io/reference/list-upload-folder-names.md
- https://elai.readme.io/reference/list-uploads.md
- https://elai.readme.io/reference/list-users.md
- https://elai.readme.io/reference/list-video-edit-history.md
- https://elai.readme.io/reference/list-video-exports.md
- https://elai.readme.io/reference/list-videos.md
- https://elai.readme.io/reference/list-voice-customizations.md
- https://elai.readme.io/reference/llm-generate-speech.md
- https://elai.readme.io/reference/llm-rewrite-speech.md
- https://elai.readme.io/reference/move-upload.md
- https://elai.readme.io/reference/move-uploads.md
- https://elai.readme.io/reference/paste-story-html.md
- https://elai.readme.io/reference/preview-lesson-template-layouts.md
- https://elai.readme.io/reference/preview-video-lesson-restyle.md
- https://elai.readme.io/reference/preview-voice-customization.md
- https://elai.readme.io/reference/rebuild-video-lesson.md
- https://elai.readme.io/reference/regenerate-outline-quiz.md
- https://elai.readme.io/reference/regenerate-outline-speech.md
- https://elai.readme.io/reference/regenerate-quiz-question.md
- https://elai.readme.io/reference/render-personalized.md
- https://elai.readme.io/reference/render-video.md
- https://elai.readme.io/reference/restyle-video-lesson.md
- https://elai.readme.io/reference/retrieve-api-config.md
- https://elai.readme.io/reference/retrieve-avatar.md
- https://elai.readme.io/reference/retrieve-current-user.md
- https://elai.readme.io/reference/retrieve-lesson-template.md
- https://elai.readme.io/reference/retrieve-outline.md
- https://elai.readme.io/reference/retrieve-player-payload.md
- https://elai.readme.io/reference/retrieve-signed-url.md
- https://elai.readme.io/reference/retrieve-template.md
- https://elai.readme.io/reference/retrieve-upload-folder-breadcrumbs.md
- https://elai.readme.io/reference/retrieve-upload-folder-info.md
- https://elai.readme.io/reference/retrieve-upload-folder.md
- https://elai.readme.io/reference/retrieve-video-lesson-design.md
- https://elai.readme.io/reference/retrieve-video-source-links.md
- https://elai.readme.io/reference/retrieve-video.md
- https://elai.readme.io/reference/revoke-api-token.md
- https://elai.readme.io/reference/rewrite-outline-speech.md
- https://elai.readme.io/reference/search-upload-folders.md
- https://elai.readme.io/reference/submit-custom-voice.md
- https://elai.readme.io/reference/synthesize-speech.md
- https://elai.readme.io/reference/translate.md
- https://elai.readme.io/reference/update-avatar.md
- https://elai.readme.io/reference/update-outline.md
- https://elai.readme.io/reference/update-upload-folder.md
- https://elai.readme.io/reference/update-user.md
- https://elai.readme.io/reference/update-video.md
- https://elai.readme.io/reference/update-voice-customization.md
- https://elai.readme.io/reference/upload-confirm.md
- https://elai.readme.io/reference/upload-custom-voice.md
- https://elai.readme.io/reference/upload-music-track.md
- https://elai.readme.io/reference/voices-list.md
- https://elai.readme.io/reference/webhook-set-secret-token.md
- https://elai.readme.io/reference/webhook-subscribe.md
- https://elai.readme.io/reference/webhook-unsubscribe.md
merge:
pages: 94
deduped: 253
conflicts_kept_first: 0