Alai integration
Alai turns text into designed presentation decks with AI. Classic & Creative Slides: generate a deck from text with a theme, add or delete slides, export to a share link, PDF or PowerPoint, extract slide transcripts, upload images. Modern Slides: create a deck on a published design system, upload brand assets, generate, revise with natural-language edits and export to PDF, PPTX or PNG. Generations, edits and transcripts spend the account's Alai credits (402 when they run out); 5 concurrent generations per user. The two key-check (ping) routes are not exposed. Authentication is an Alai API key (account menu, API, Add new API key) sent as a Bearer token.
Say what should happen.
The workflow builds itself.
What you can do with Alai
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Presentation, 6 operations
create_modern_presentationCreate modern presentationPOSTCreates an empty Modern Slides deck (no AI, no credits) and returns its id. Then call generate_modern_presentation. A presentation format needs a design_system_id from list_design_systems.delete_modern_presentationDelete modern presentationDELETEPermanently deletes a Modern Slides deck and its files. Let running operations on it finish or fail first. Answers with no body.delete_presentationDelete presentationDELETEPermanently deletes a Classic & Creative presentation. Returns success and the presentation_id.get_modern_presentationGet modern presentationGETReads a Modern Slides deck: title, format, canvas size, design system, preview_url and repo_commit_sha (pass it as base_commit_sha to edit or export exactly this revision).list_modern_presentationsList modern presentationsGETLists the user's Modern Slides presentations, newest first: id, title, artifact format, canvas size, design system, current commit (repo_commit_sha) and preview URL.list_presentationsList presentationsGETLists the Classic & Creative presentations of the API key's user, newest first: each with its id (pass it to add_slide, export_presentation, extract_slide_transcripts or delete_presentation) and title. No paging parameters.
Export, 2 operations
export_modern_presentationExport modern presentationPOSTExports a Modern Slides deck to pdf, pptx and/or png: result.formats holds signed URLs valid 24 hours (a multi-page PNG may be a ZIP). Waits for the job and returns the finished result; gives up after 10 minutes.export_presentationExport presentationPOSTExports an existing deck: returns formats with a share link, PDF and/or PowerPoint URLs (signed, valid 24 hours). Call again for fresh URLs. Waits for the job and returns the finished result; gives up after 10 minutes.
Generation, 2 operations
generate_presentationGenerate presentationPOSTGenerates a new deck from text, spending Alai credits: returns presentation_id and formats (a share link by default; PDF or PowerPoint URLs if asked). Waits for the job and returns the finished result; gives up after 10 minutes.get_generationGet generationGETReads a Classic & Creative async job (generation, slide, export or transcript): status pending, in_progress, completed or failed, the error, presentation_id, slide_id, formats download URLs and transcripts.
Slide, 2 operations
add_slideAdd slidePOSTAdds one AI-designed slide to an existing deck, spending Alai credits: returns slide_id and formats. slide_type creative makes an image-led slide. Waits for the job and returns the finished result; gives up after 10 minutes.delete_slideDelete slideDELETEPermanently deletes one slide from a Classic & Creative presentation. Returns success.
Asset, 1 operation
upload_modern_assetUpload modern assetPOSTUploads one image to a Modern Slides deck with a usage label (brand_logo, reference_image, content_image, background) and returns the asset; pass its id in asset_ids to generate or edit.
Cancel, 1 operation
cancel_modern_operationCancel modern operationPOSTCancels a queued or running Modern Slides operation; no result is published. Calling it again returns the same cancelled operation; an operation that already succeeded or failed answers 409.
Design system, 1 operation
list_design_systemsList design systemsGETLists the published design systems this account can use (id, name, target_format). Pass an id as design_system_id to create_modern_presentation; drafts are not listed.
Edit, 1 operation
edit_modern_presentationEdit modern presentationPOSTRevises a Modern Slides deck from an instruction, overwriting its slides and spending credits. Pass base_commit_sha so a stale edit fails instead. Waits for the job and returns the finished result; gives up after 10 minutes.
Generate, 1 operation
generate_modern_presentationGenerate modern presentationPOSTBuilds a Modern Slides deck (made first with create_modern_presentation) from content with Alai's agent, spending credits: returns the operation and its result. Waits for the job and returns the finished result; gives up after 10 minutes.
Model, 1 operation
list_modern_modelsList modern modelsGETLists the AI models this account may use for Modern Slides (id, label, default flag). Pass an id as model_id to generate_modern_presentation or edit_modern_presentation; availability varies by account.
Operation, 1 operation
get_modern_operationGet modern operationGETReads a Modern Slides operation (generate, edit or export): status queued, running, succeeded, failed or cancelled, progress, result on success, error code and message on failure.
Theme, 1 operation
list_themesList themesGETLists the theme ids and names (system themes and the user's own) usable as theme_id in generate_presentation. Themes set colors, fonts and styling.
Transcript, 1 operation
extract_slide_transcriptsExtract slide transcriptsPOSTExtracts each slide's text and layout with AI, spending credits per slide: returns transcripts (slide_id, slide_order, title, content, layout). Waits for the job and returns the finished result; gives up after 10 minutes.
Upload image, 1 operation
upload_imageUpload imagePOSTUploads one image (PNG, JPEG, WebP, GIF, AVIF or SVG, at most 10 MB) and returns its id in image_ids; pass those ids as image_ids in generate_presentation, which places them on relevant slides.
Vibe, 1 operation
list_vibesList vibesGETLists vibe ids, names and source (system or custom). A vibe is a visual preset for creative image-led variants: pass its id as vibe_id in generate_presentation, together with num_image_variants of 1 or more.
Use Alai from Claude Code, Cursor or Codex
Connect Alai in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Alai operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Alai
- Create your workspace
Sign up free. Nothing to install.
- Connect Alai once
Add your Alai connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Alai integration FAQ
What can you do with the Alai integration?
LiveContext exposes 23 operations on Alai, covering presentation, export, generation and slide.
