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
import json

url = "https://api.powerpointengine.io/v1.0/generator/create"
headers = {"Authorization": "Bearer YOUR_API_KEY"}

data = {
  "presentation": {
    "slides": [{
      "template_id": 1,
      "shapes": [{"name": "Title", "content": "Hello World"}]
    }]
  }
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
Beginner
5 min read

🔥 Advanced Multi-Slide Presentation

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

presentation_data = {
  "presentation": {
    "slides": [
      {
        "template_id": 1,
        "shapes": [
          {"name": "Title", "content": "Sales Report"},
          {"name": "Chart", "data": chart_data}
        ]
      },
      {
        "template_id": 2,
        "shapes": [
          {"name": "Content", "content": "Analysis results"}
        ]
      }
    ]
  }
}

response = requests.post(url, headers=headers, json=presentation_data)
Advanced
15 min read

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.