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

# Create Presentation

Create an empty Modern presentation container. This synchronous request returns `201 Created`; call the generate endpoint afterward to build its content.

For `artifact_format: "presentation"`, provide the ID of a published design system. Canvas presets are `16:9`, `4:3`, `1:1`, and `custom`. A custom canvas requires both `width` and `height`.

```json theme={null}
{
  "title": "Futuri station pitch",
  "artifact_format": "presentation",
  "canvas": { "preset": "16:9" },
  "design_system_id": "YOUR_PUBLISHED_DESIGN_SYSTEM_ID"
}
```

Supported artifact formats are `presentation`, `infographic`, `carousel`, `poster`, and `social_post`.


## OpenAPI

````yaml POST /api/modern/v1/presentations
openapi: 3.1.0
info:
  title: Alai API
  description: API endpoints for Alai Classic, Creative, and Modern presentation generation
  version: 1.1.0
servers:
  - url: https://slides-api.getalai.com
security:
  - BearerAuth: []
paths:
  /api/modern/v1/presentations:
    post:
      tags:
        - Modern Slides API
      summary: Create Presentation
      operationId: create_presentation_api_modern_v1_presentations_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ModernApiCreatePresentationInput'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModernApiPresentation'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ModernApiCreatePresentationInput:
      properties:
        title:
          type: string
          maxLength: 200
          minLength: 1
          title: Title
          default: Untitled Presentation
        artifact_format:
          $ref: '#/components/schemas/ArtifactFormat'
          default: presentation
        canvas:
          anyOf:
            - $ref: '#/components/schemas/ModernApiCanvasInput'
            - type: 'null'
        design_system_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Design System Id
      additionalProperties: false
      type: object
      title: ModernApiCreatePresentationInput
    ModernApiPresentation:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        artifact_format:
          $ref: '#/components/schemas/ArtifactFormat'
        canvas_width:
          type: integer
          title: Canvas Width
        canvas_height:
          type: integer
          title: Canvas Height
        design_system_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Design System Id
        repo_commit_sha:
          anyOf:
            - type: string
            - type: 'null'
          title: Repo Commit Sha
        preview_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Preview Url
      type: object
      required:
        - id
        - title
        - artifact_format
        - canvas_width
        - canvas_height
      title: ModernApiPresentation
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ArtifactFormat:
      type: string
      enum:
        - presentation
        - infographic
        - carousel
        - poster
        - social_post
      title: ArtifactFormat
    ModernApiCanvasInput:
      properties:
        preset:
          $ref: '#/components/schemas/ModernApiCanvasPreset'
          default: '16:9'
        width:
          anyOf:
            - type: integer
              maximum: 2400
              minimum: 100
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: integer
              maximum: 3240
              minimum: 100
            - type: 'null'
          title: Height
      additionalProperties: false
      type: object
      title: ModernApiCanvasInput
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ModernApiCanvasPreset:
      type: string
      enum:
        - '16:9'
        - '4:3'
        - '1:1'
        - custom
      title: ModernApiCanvasPreset
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your Alai API key. Get one from your account settings at app.getalai.com

````