
What You Can Build
Generate Presentations
Turn text, notes, or documents into complete slide decks with AI-powered design
Add & Edit Slides
Programmatically add new slides to existing presentations
Export Anywhere
Get shareable links, PDFs, or PowerPoint files
Extract Content
Get structured content and layout information from slides
How It Works
1
Get Your API Key
Sign up at app.getalai.com and generate an API key from your account settings.
2
Submit Your Content
POST to
/generations with your text content. You’ll receive a generation_id immediately.3
Poll for Completion
Check
GET /generations/{id} every few seconds until status is completed.4
Access Your Presentation
Get shareable links, download PDFs, or export to PowerPoint from the response.
Quick Example
Get Your API Key
- Sign up at app.getalai.com
- Click on your name in the left sidebar
- Select “API” from the dropdown menu
- Click “Add new API key” to generate your key
- Copy and securely store your API key
Authentication
All requests require a Bearer token in theAuthorization header:
Available Endpoints
Async Operations
These endpoints return ageneration_id. Poll GET /generations/{id} until complete.
| Endpoint | Method | Description |
|---|---|---|
/generations | POST | Generate a presentation from text |
/presentations/{id}/slides | POST | Add a slide to a presentation |
/presentations/{id}/exports | POST | Export to PDF, PPT, or shareable link |
/presentations/{id}/transcripts | POST | Extract slide content and layout |
Synchronous Operations
These endpoints return results immediately.| Endpoint | Method | Description |
|---|---|---|
/ping | GET | Verify your API key |
/generations/{id} | GET | Check generation status |
/upload-images | POST | Upload images for presentations |
/presentations/{id}/slides/{slide_id} | DELETE | Delete a slide |
/presentations/{id} | DELETE | Delete a presentation |
Generation Status
When polling, you’ll see one of these status values:| Status | Description |
|---|---|
pending | Queued, not yet started |
in_progress | Currently processing |
completed | Finished successfully |
failed | Error occurred (check error field) |
Available Themes
Choose from 12 professionally designed themes:| Theme | Style |
|---|---|
AMETHYST_LIGHT | Light purple, modern (default) |
NEBULA_DARK | Dark blue, professional |
FLAT_WHITE | Clean, minimalist |
DESERT_BLOOM | Warm, earthy tones |
LAPIS_DAWN | Blue gradient, corporate |
EMERALD_FOREST | Green, natural |
COSMIC_THREAD | Dark, cosmic |
DONUT | Playful, colorful |
OAK | Warm wood tones |
OBSIDIAN_FLOW | Dark, sleek |
MIDNIGHT_EMBER | Dark with red accents |
AURORA_FLUX | Gradient, dynamic |
Rate Limits
- Max 5 concurrent generations per user
- Recommended polling interval: 5 seconds
Credits
API generations consume the same credits as the Alai app. To check your balance or purchase more credits:- Go to Settings in your Alai account
- Or contact [email protected] for enterprise plans
Error Handling
| Code | Description |
|---|---|
200 | Success |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
402 | Payment Required - Insufficient credits |
404 | Not Found - Resource doesn’t exist |
422 | Validation Error - Check request body |
429 | Rate limit exceeded |
500 | Internal Server Error |