Skip to main content
POST
/
v1
/
presentations
/
generate
Generate a presentation
curl --request POST \
  --url https://api.slidesgpt.com/v1/presentations/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Create a 10 slide presentation about the history of the internet",
  "templateId": "abc123"
}
'
{
  "id": "123",
  "embed": "https://api.slidesgpt.com/123/embed",
  "download": "https://api.slidesgpt.com/123/download"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

The prompt to generate the presentation.

Required string length: 5 - 64000
templateId
string

The ID of a custom template to use. Get template IDs from GET /v1/templates.

Response

The generated 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.