Endpoint
Description
Asynchronously generates slides from an uploaded document. Poesius automatically:- Generates the presentation narrative - Analyzes your document and creates a McKinsey-style story, summarizing key findings and revealing insights
- Retrieves layout details - Gets template specifications including colors, layout zones, and design elements (defined visually in the web app)
- Creates slides - Combines the narrative with template specs to produce professional PPTX files
Request
Method:POSTContent-Type:
multipart/form-dataHeaders:
X-API-Key: <your_api_key>ORAuthorization: Bearer <token>
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document | file | Yes | The document file (PDF, DOCX, TXT, MD, etc.) |
instructions | string | No | Custom instructions for generation (default: “Create a presentation from the document”) |
num_slides | integer | No | Target number of slides (default: 20) |
template_id | string | No | UUID of the template to use |
deep_research | boolean | No | Enable deep research mode (default: false) |
Example Request
Response
Presentation Status Flow
When you generate slides from a document, the presentation goes through several status stages before reaching the finalcompleted state. Understanding these statuses helps you track progress and know when the presentation is ready for download.
Status Progression
The presentation status transitions through the following stages:-
pending- Initial state when the presentation is created. Generation has been queued but not yet started. -
processing- The system has started processing your request. This includes:- Reading and analyzing the uploaded document
- Extracting content and structure
- Preparing for slide generation
-
content_generation- The AI is generating the slide content:- Creating markdown content for each slide
- Structuring information from your document
- Organizing content into logical slide sequences
-
content_complete- Content has been generated for all slides, but visual design may still be in progress:- All slide content is ready
- Slides may still be undergoing visual rendering or refinement
-
design_in_progress- Slides are being visually designed and rendered:- Applying template layouts
- Generating slide images/thumbnails
- Refining visual presentation
-
completed- All slides are fully generated and ready for download:- Content is complete
- Visual design is finished
- Presentation can be downloaded
Other Status Values
partial- Some slides are completed while others are still processing (rare, typically during recovery scenarios)failed- Generation encountered an error. Check error details for more informationdraft- Initial placeholder state (typically only seen during presentation initialization)
Status Polling
Poll the status endpoint (GET /presentations/{presentation_id}) every 5-10 seconds to track progress. The presentation is ready for download when the status reaches completed.
Next Steps
After receiving the response, you’ll need to:- Poll for status using the
check_status_urlorpresentation_id - Download the presentation once status is
completed
Check Status
Learn how to check presentation status
Download Presentation
Download your completed presentations
Supported File Formats
- PDF (
.pdf) - Microsoft Word (
.docx) - Plain Text (
.txt) - Markdown (
.md)
Best Practices
- File Size: Keep documents under 50MB for best performance
- Instructions: Be specific about what you want in the presentation
- Slide Count: Specify a target number of slides based on your needs
- Templates: Use templates for consistent branding

