> ## Documentation Index
> Fetch the complete documentation index at: https://developers.supapost.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Slides

> Create AI-powered TikTok slideshows.

## Overview

Supapost's slide system lets you create TikTok-ready slideshows either manually through the visual editor or automatically with AI.

## AI Generation

Send a text prompt and the AI agent will:

1. Create slides with gradient backgrounds
2. Generate AI images for each slide background (via FAL FLUX)
3. Add text layers with proper positioning and styling

```bash theme={null}
curl -X POST https://api.supapost.so/generate/slides \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "5 slides about productivity tips, minimal style"}'
```

## Canvas Dimensions

All slides use a **1080 x 1920px** canvas (9:16 portrait), optimized for TikTok and Instagram Reels.

## Export

Slides can be exported as:

* **JPEG** — For publishing to social media
* **PNG** — For download and manual use

The export system renders each slide to a canvas element, including all layers (text, images, shapes, drawings), and uploads the result to R2 storage.
