Code Examples 💻

Real-world examples to help you integrate PowerPoint generation into your applications. Copy, paste, and customize for your needs.

Basic presentation generation

Generate a simple presentation from a template with text placeholders.

import requests

url = "https://powerpointengine.io/api/powerpoint/generate"

data = {
    "markup": "# Q3 Review\n## Revenue\n- Up 24%\n- Churn down",
    "theme": "corporate",
}

r = requests.post(url, json=data)
print(r.json()["result"]["downloadUrl"])
Beginner

Advanced multi-slide presentation

Create complex presentations with multiple slides, images, and charts.

# Structured template with a native chart slide
data = {
    "template": {
        "title": "Sales Report",
        "slides": [
            {"type": "content", "title": "Summary",
             "content": "- Revenue up 24%\n- Costs down 8%"},
            {"type": "chart", "title": "Quarterly Revenue",
             "chartData": {
                 "kind": "col",
                 "categories": ["Q1", "Q2", "Q3", "Q4"],
                 "series": [{"name": "Revenue", "values": [120, 150, 170, 210]}],
             }},
        ],
    },
    "theme": "corporate",
}

r = requests.post(url, json=data)
print(r.json()["result"])
Advanced

Popular Use Cases

📊 Business Reports

Generate monthly/quarterly reports with charts and data visualization.

Popular

🎓 Educational Content

Create training materials and educational presentations automatically.

Trending

💼 Client Proposals

Generate customized proposals and pitch decks for different clients.

Business

Ready to Start Building? 🚀

Get your API key and start generating presentations in minutes.