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

# Get slide preview image

> Renders a slide as a PNG image for preview. Returns the image with dimension metadata in headers.



## OpenAPI

````yaml /openapi/powerpoint-api.json get /api/v1/templates/{template_id}/slides/{slide_number}/preview
openapi: 3.1.0
info:
  title: SlideKit
  description: >-
    A comprehensive API for PowerPoint template management and presentation
    generation
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/templates/{template_id}/slides/{slide_number}/preview:
    get:
      tags:
        - templates
      summary: Get slide preview image
      description: >-
        Renders a slide as a PNG image for preview. Returns the image with
        dimension metadata in headers.
      operationId: >-
        get_slide_preview_api_v1_templates__template_id__slides__slide_number__preview_get
      parameters:
        - name: template_id
          in: path
          required: true
          schema:
            type: string
            title: Template Id
        - name: slide_number
          in: path
          required: true
          schema:
            type: integer
            title: Slide Number
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
            image/png: {}
          headers:
            X-Slide-Width-Pts:
              description: Slide width in points
              schema:
                type: number
            X-Slide-Height-Pts:
              description: Slide height in points
              schema:
                type: number
            X-Image-Width-Px:
              description: Image width in pixels
              schema:
                type: integer
            X-Image-Height-Px:
              description: Image height in pixels
              schema:
                type: integer
            X-Pixels-Per-Point:
              description: Scale factor for coordinate conversion
              schema:
                type: number
        '404':
          description: Template or slide not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Production API key. Development/test deployments may also allow
        X-Org-Name.

````