← All tools
Render markdown slides
Documentdocument.render_slides
in: documentout: document
Convert markdown to a slide deck (pdf, pptx, html).
Pricing
- Price
- 0.625 cr / request
Prices in credits (1 credit = $0.01).
Render Markdown Slides
Convert a Marp-flavoured markdown file into a slide deck: PDF, PPTX, or interactive HTML.
When to use
- Generate presentation PDFs from markdown for sharing or printing.
- Export PPTX for further editing in PowerPoint or Keynote.
- Build HTML decks for self-hosted or embedded presentations.
Inputs & outputs
| Input modality | Markdown with Marp frontmatter (inline string or URL) |
| Output modality | Slide deck file (GCS URL) |
| Max slides | 200 per deck |
| Max inline size | 500 KB |
Parameters
| Param | Required | Description |
|---|---|---|
output_format | yes | Output format — pdf, html, pptx |
theme | no | Marp built-in theme — default, gaia, uncover. Default: default |
slide_size | no | Aspect ratio — 16:9 or 4:3. Default: 16:9 |
Examples
16:9 PDF deck with default theme
{
"type": "document.render_slides",
"input": { "markdown_inline": "---\nmarp: true\n---\n# Slide 1\n\n---\n\n# Slide 2" },
"params": { "output_format": "pdf", "theme": "default", "slide_size": "16:9" }
}
PPTX with Gaia theme from URL
{
"type": "document.render_slides",
"input": { "markdown_url": "gs://infery-prod-media/decks/pitch.md" },
"params": { "output_format": "pptx", "theme": "gaia", "slide_size": "4:3" }
}
Pricing
Billed per slide rendered. See pricing dashboard for current rates.
Related capabilities
document.convert_format— convert plain markdown to PDF/DOCX (non-slide layout)document.extract_text— extract content from existing PDF presentations
Examples
PDF deck 16:9
{
"output_format": "pdf",
"theme": "default",
"slide_size": "16:9"
}