---
title: "Generate a presentation"
method: POST
path: "/v1/presentations/generate"
tags: ["Presentations"]
---

# Generate a presentation

`POST /v1/presentations/generate`

Generates a presentation based on the provided prompt

## Request body

- GeneratePresentation
  - `prompt` string, required — The prompt to generate the presentation.
  - `templateId` string — The ID of a custom template to use. Get template IDs from GET /v1/templates.

## Response `200`

The generated presentation

- Presentation
  - `id` string, required — The id of the presentation
  - `embed` string, uri, required — The url to embed the presentation. A redirect to a Microsoft PowerPoint viewer url.
  - `download` string, uri, required — The url to download the presentation as PowerPoint.

## Other responses

- `400` — Failed to generate presentation
- `500` — Internal Server Error

---

[API](https://skmtc.dev/slidesgpt/apis/web.md) · [All operations](https://skmtc.dev/slidesgpt/apis/web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/slidesgpt/web/revisions/62166446caec/schema)
