Skip to main content
POST
/
generations
Generate a presentation
curl --request POST \
  --url https://slides-api.getalai.com/api/v1/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input_text": "Quarterly sales increased 25% YoY. Key drivers: enterprise segment growth, new product launches, expanded market reach.",
  "additional_instructions": "Make it infographic",
  "presentation_options": {
    "title": "Q4 2024 Sales Report",
    "theme_id": "AMETHYST_LIGHT",
    "slide_range": "6-10",
    "choices_per_slide": 1,
    "export_as": "link"
  },
  "text_options": {
    "language": "English (US)",
    "tone": "PROFESSIONAL",
    "tone_instructions": "<string>",
    "content_mode": "preserve",
    "content_instructions": "<string>",
    "amount_mode": "essential",
    "amount_instructions": "<string>"
  },
  "image_options": {
    "include_ai_images": "true",
    "style": "auto",
    "style_instructions": "<string>"
  }
}
'
{
  "presentation_url": "https://app.getalai.com/presentation/<uuid>",
  "presentation_id": "<uuid>"
}

Using the Playground

The request body accepts a JSON object containing all your generation options.
Only input_text is required. All other options have sensible defaults, so you can start simple and add customization as needed.

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Body

application/json
input_text
string
required

The main content that drives your presentation generation. This text forms the foundation of all slides created.

Example:

"Quarterly sales increased 25% YoY. Key drivers: enterprise segment growth, new product launches, expanded market reach."

additional_instructions
string
default:""

Custom generation instructions for AI that fine-tune how content is delivered on the presentation.

Example:

"Make it infographic"

presentation_options
object

Options for presentation appearance and structure

text_options
object

Options for text content generation

image_options
object

Options for AI-generated images

Response

Presentation generated successfully

presentation_url
string<uri>
required

Direct URL to view the generated presentation

Example:

"https://app.getalai.com/presentation/<uuid>"

presentation_id
string<uuid>
required

Unique identifier for the presentation

Example:

"<uuid>"