Elai.io Story API
Build slides from text, HTML, a URL or a presentation.
Build slides from text, HTML, a URL or a presentation.
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-story-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 Story 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: Story
description: Build slides from text, HTML, a URL or a presentation.
paths:
/story/change-template/{videoId}:
post:
summary: Apply template
description: Change slide visuals to new template
operationId: apply-template
parameters:
- name: videoId
in: path
description: ID of your video
schema:
type: string
required: true
requestBody:
content:
application/json:
schema:
type: object
properties:
templateId:
type: string
description: Template ID that you want to apply visuals from
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value: {}
schema:
type: object
properties: {}
'400':
description: '400'
content:
application/json:
examples:
Result:
value: {}
schema:
type: object
properties: {}
deprecated: false
tags:
- Story
/story/generate-slides/{videoId}:
post:
summary: Generate slides/convert story
description: Generate slides visuals from story texts
operationId: generate-slides
parameters:
- name: videoId
in: path
description: ID of your story, generated in previous steps.
schema:
type: string
required: true
requestBody:
content:
application/json:
schema:
type: object
properties:
fixWithLlm:
type: boolean
default: false
description: 'Run an LLM pass over the video before converting it to slides: missing text is written, over-long speech is shortened, and content is fitted to the slide layout.
Requires LLM access on the account. Without it — or once the allowance is spent — the call answers `429` with a message explaining which, and no slides are generated.
Was documented as `fixWithGpt`, which the handler never read.'
responses:
'200':
description: '200'
content:
application/json:
examples:
Result:
value:
_id: 6464c9f3aacea2fbc41e7048
name: Storyboard Draft
type: story
data:
musicName: Stay With Me
musicUrl: https://elai-media.s3.eu-west-2.amazonaws.com/music/mixkit-stay-with-me-838.mp3
musicVolume: 0.08
musicShift: 0
resolution: FullHD
templateType: text-to-video
slides:
- id: 130590379833
speech: ''
avatar:
_id: 63bfb9c15c9b032d1df2f28a
id: alma.business
name: Business
type: null
version: 2
status: 2
gender: female
thumbnail: https://elai-avatars.s3.us-east-2.amazonaws.com/common/alma/business/alma_business.jpg
canvas: https://elai-avatars.s3.us-east-2.amazonaws.com/common/alma/business/alma_business.png
voiceType: text
animation: fade_in
newlyAdded: false
screenshot: https://elai-media.s3.eu-west-2.amazonaws.com/production/videos/6400c0b3de5e9629bff1e7dc/slide1052688866146_screenshot_1677771256781.jpg
status: story
story:
templateSlideId: 1052688866146
header: ''
subHeader: ''
tags: []
deleted: false
status: draft
verified: false
public: false
sourceId: ''
userId: ''
accountId: ''
createdAt: '2023-05-17T12:34:59.931Z'
updatedAt: '2023-05-17T12:34:59.931Z'
schema:
$ref: '#/components/schemas/Video'
'400':
description: '400'
content:
application/json:
examples:
Result:
value: {}
schema:
type: object
properties: {}
'429':
description: LLM access is unavailable or the allowance is spent. Only reachable when `fixWithLlm` is true.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
deprecated: false
tags:
- Story
/story/paste/{videoId}:
post:
tags:
- Story
summary: Append slides from pasted HTML
description: 'Parses an HTML fragment, splits it into slide-sized chunks with speech text, and appends the result to an existing video — the "paste rich text into the editor" path.
Behaviour worth knowing:
- Slides are **appended**, or inserted after `activeSlideId` when given. Existing slides are kept, except that a lone empty starter slide is replaced.
- The language of the video''s first slide is reused for the new slides; long-slide support depends on the plan.
- The whole updated video is returned with signed asset URLs.'
parameters:
- $ref: '#/components/parameters/VideoId'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
from:
type: string
description: HTML fragment to convert into slides.
activeSlideId:
type:
- string
- integer
description: Insert the new slides after this slide instead of at the end.
required:
- from
example:
from: <h1>Quarterly update</h1><p>Revenue grew 12% year over year.</p>
responses:
'200':
description: The updated video.
content:
application/json:
schema:
type: object
additionalProperties: true
description: The full video document, as returned by `GET /videos/{videoId}`.
'400':
$ref: '#/components/responses/BadRequest'
'403':
description: The caller may not edit this video.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No video with that id in this workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: paste-story-html
components:
parameters:
VideoId:
name: videoId
in: path
required: true
schema:
type: string
description: Video id (24-char hex ObjectId).
schemas:
Error:
type: object
properties:
message:
type: string
description: Human-readable explanation of the failure.
Video:
type: object
description: A video. Fields are as stored, so a draft carries far fewer of them than a rendered video.
additionalProperties: true
properties:
_id:
type: string
example: 420c6769343dc7bb51513e63
name:
type: string
example: Hello from API!
status:
type: string
enum:
- draft
- validating
- rendering
- moderation
- error
- ready
description: Only `ready` means the MP4 exists. `error` carries no reason here — that arrives on the `video_error` webhook.
url:
type: string
description: The rendered MP4. Absent until `status` is `ready`.
audioUrl:
type: string
description: Rendered audio track, when one was produced separately.
thumbnail:
type: string
duration:
type: number
description: Seconds. Known once the speech has been synthesised.
slides:
type: array
items:
$ref: '#/components/schemas/Slide'
tags:
type: array
items:
type: string
description: Videos created over the API always carry `api`.
public:
type: boolean
default: false
deleted:
type: boolean
default: false
verified:
type: boolean
default: false
version:
type: integer
default: 0
data:
type: object
additionalProperties: true
description: Render settings — subtitles, background music, and similar. Passed through to the renderer untouched.
template:
type: object
additionalProperties: true
description: Present only on templates.
properties:
enabled:
type: boolean
default: false
private:
type: boolean
default: true
tags:
type: array
items:
type: string
order:
type: integer
default: 1
sourceId:
type: string
description: The template this video was created or copied from.
userId:
type: string
accountId:
type: string
description: The workspace that owns it.
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
Slide:
type: object
description: One slide. The model stores slides as an untyped array, so this lists the keys the API and the renderer actually read rather than a closed contract — extra keys are preserved. See [Slide structure](ref:slide-structure) for the canvas in full.
additionalProperties: true
properties:
id:
type: integer
description: Unique within the video, and must be a number.
canvas:
type: object
additionalProperties: true
description: 'Fabric.js canvas: `objects[]`, `background`, `version`.'
avatar:
type: object
additionalProperties: true
description: The speaking avatar. A flat object — `code` identifies it (`id` is accepted but deprecated).
properties:
code:
type: string
example: gia.casual
name:
type: string
example: Gia Casual
gender:
type: string
example: female
version:
type: integer
example: 2
canvas:
type: string
description: Preview image for the avatar.
speech:
type: string
description: What the avatar says. Stripped from `GET /videos` list responses.
voice:
type: string
example: en-US-AriaNeural
voiceType:
type: string
description: How the speech is produced, e.g. `text`, `audio`, `silence`.
voiceProvider:
type: string
enum:
- azure
- google
- elevenlabs
language:
type: string
example: English
animation:
type: string
example: fade_in
status:
type: string
description: Set on story and outline slides while they are still placeholders.
duration:
type:
- number
- 'null'
description: Seconds. `null` until the slide's speech has been synthesised.
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