> ## 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.

# Generate Slides

> Generate a TikTok slideshow with AI-created backgrounds and text overlays

An AI agent creates a multi-slide carousel from a text prompt. The agent generates gradient backgrounds, AI background images (via FLUX), and positioned text elements for each slide on a 1080x1920 canvas.

## Authentication

<ParamField header="Authorization" type="string">
  Bearer token. `Bearer <supabase-jwt>`.
</ParamField>

## Body

<ParamField body="prompt" type="string" required>
  Description of the slideshow you want to create. For example: "5-slide motivational carousel about morning routines".
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "slides": [
      {
        "name": "Intro",
        "background": {
          "type": "gradient",
          "gradientFrom": "#1a1a2e",
          "gradientTo": "#16213e",
          "gradientAngle": 135
        }
      }
    ],
    "texts": [
      {
        "slide_index": 0,
        "text": {
          "content": "Rise & Grind",
          "fontSize": 96,
          "fontWeight": 800,
          "x": 90,
          "y": 800,
          "width": 900,
          "color": "#ffffff",
          "textAlign": "center",
          "lineHeight": 1.2,
          "letterSpacing": 0,
          "textTransform": "none",
          "textShadow": {
            "enabled": true,
            "color": "#000000",
            "offsetX": 2,
            "offsetY": 2,
            "blur": 4
          },
          "textBackground": {
            "enabled": true,
            "color": "#000000",
            "paddingX": 12,
            "paddingY": 6
          },
          "textStroke": {
            "enabled": false,
            "color": "#000000",
            "width": 2
          }
        }
      }
    ],
    "images": [
      {
        "slide_index": 0,
        "image_url": "https://cdn.supapost.so/assets/team123/1712000000-bg-slide-1.jpg"
      }
    ]
  }
  ```
</ResponseExample>
