SlidesGPTSlidesGPT API

Downloading a Presentation

Download a generated presentation as a PowerPoint file

The SlidesGPT API allows you to download a generated presentation as a PowerPoint (.pptx) file.

Request Example

Send a GET request to:

https://api.slidesgpt.com/v1/presentations/{id}/download

Sample Code (JavaScript)

import fs from "fs";

async function downloadPresentation(id) {
  try {
    const response = await fetch(`${API_BASE_URL}/presentations/${id}/download`, {
      method: "GET",
      headers: { Authorization: `Bearer ${token}` },
    });
    const buffer = await response.arrayBuffer();
    fs.writeFileSync(`presentation-${id}.pptx`, Buffer.from(buffer));
  } catch (err) {
    console.error(err);
  }
}

This function fetches the .pptx file and saves it locally.

Sample Code (wget)

wget --header="Authorization: Bearer YOUR_API_KEY" \
     -O presentation.pptx \
     "https://api.slidesgpt.com/v1/presentations/12345/download"

Note

You must include your API key in the Authorization header. If you don't have one, follow the steps in the Authentication Guide to get your API key.

On this page