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

# Export Presentation

Export the current Modern artifact to one or more formats: `pdf`, `pptx`, and `png`. The request returns an asynchronous operation. When it succeeds, `result.formats` contains signed download URLs valid for 24 hours. A multi-page PNG export may be returned as a ZIP archive.

```json theme={null}
{
  "formats": ["pdf", "pptx", "png"],
  "filename": "station-pitch",
  "scale": 1.0,
  "disable_shadows": false,
  "compress_pdf": false,
  "base_commit_sha": "CURRENT_COMMIT_SHA",
  "idempotency_key": "futuri-export-123"
}
```

Use `base_commit_sha` when the export must correspond to a specific presentation revision.


## OpenAPI

````yaml POST /api/modern/v1/presentations/{presentation_id}/exports
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/{presentation_id}/exports:
    post:
      tags:
        - Modern Slides API
      summary: Export Presentation
      operationId: >-
        export_presentation_api_modern_v1_presentations__presentation_id__exports_post
      parameters:
        - name: presentation_id
          in: path
          required: true
          schema:
            type: string
            title: Presentation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ModernApiExportInput'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModernApiOperation'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ModernApiExportInput:
      properties:
        formats:
          items:
            $ref: '#/components/schemas/ModernApiExportFormat'
          type: array
          maxItems: 3
          minItems: 1
          title: Formats
        filename:
          anyOf:
            - type: string
              maxLength: 160
              minLength: 1
            - type: 'null'
          title: Filename
        scale:
          type: number
          maximum: 2
          minimum: 0.5
          title: Scale
          default: 1
        disable_shadows:
          type: boolean
          title: Disable Shadows
          default: false
        compress_pdf:
          type: boolean
          title: Compress Pdf
          default: false
        base_commit_sha:
          anyOf:
            - type: string
              maxLength: 64
              minLength: 7
            - type: 'null'
          title: Base Commit Sha
        idempotency_key:
          anyOf:
            - type: string
              maxLength: 128
              minLength: 1
            - type: 'null'
          title: Idempotency Key
      additionalProperties: false
      type: object
      required:
        - formats
      title: ModernApiExportInput
    ModernApiOperation:
      properties:
        id:
          type: string
          title: Id
        operation_type:
          type: string
          enum:
            - generate
            - edit
            - export
          title: Operation Type
        presentation_id:
          type: string
          title: Presentation Id
        status:
          $ref: '#/components/schemas/ModernApiOperationStatus'
        progress:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Progress
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
      type: object
      required:
        - id
        - operation_type
        - presentation_id
        - status
      title: ModernApiOperation
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ModernApiExportFormat:
      type: string
      enum:
        - pdf
        - pptx
        - png
      title: ModernApiExportFormat
    ModernApiOperationStatus:
      type: string
      enum:
        - queued
        - running
        - succeeded
        - failed
      title: ModernApiOperationStatus
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your Alai API key. Get one from your account settings at app.getalai.com

````