Skip to main content
POST
/
slides
/
generate-from-doc
Generate from Document
curl --request POST \
  --url https://api.example.com/slides/generate-from-doc \
  --header 'Content-Type: application/json' \
  --data '
{
  "instructions": "<string>",
  "num_slides": 123,
  "template_id": "<string>",
  "deep_research": true
}
'
{
  "status": "<string>",
  "message": "<string>",
  "conversation_id": "<string>",
  "presentation_id": "<string>",
  "check_status_url": "<string>"
}
Asynchronously generates slides from an uploaded document. Returns immediately with a presentation ID and status URL for polling.
document
file
required
The document file (PDF, DOCX, TXT, MD, etc.)
instructions
string
Custom instructions for generation (default: “Create a presentation from the document”)
num_slides
integer
Target number of slides (default: 20)
template_id
string
UUID of the template to use
deep_research
boolean
Enable deep research mode (default: false)
status
string
Status of the generation (“pending”, “processing”, “completed”, “failed”)
message
string
Human-readable message
conversation_id
string
UUID of the conversation
presentation_id
string
UUID of the presentation
check_status_url
string
URL to check presentation status