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

# Generate a 5-slide portrait deck

> Async, generates a 5-slide portrait (9:16) deck from a reference image. Flat 20 credits. Per-slide assets queryable via GET /api/v1/videos/{projectId} (`slides.slides[]`).



## OpenAPI

````yaml /openapi.json post /api/v1/slides
openapi: 3.1.0
info:
  title: VidGuy API
  version: 1.0.0
  description: >-
    Make videos, snacks, carousels, images and audio with VidGuy, and post them
    to your connected accounts. Authenticate with a `vf_live_` key as a Bearer
    token.
servers:
  - url: https://www.vidguy.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Jobs
  - name: Credits
  - name: Brands
  - name: Snacks and memes
  - name: Videos
  - name: Carousels and slides
  - name: Images and video models
  - name: Characters
  - name: Editing
  - name: Assets
  - name: Audio
  - name: Social posting
paths:
  /api/v1/slides:
    post:
      tags:
        - Carousels and slides
      summary: Generate a 5-slide portrait deck
      description: >-
        Async, generates a 5-slide portrait (9:16) deck from a reference image.
        Flat 20 credits. Per-slide assets queryable via GET
        /api/v1/videos/{projectId} (`slides.slides[]`).
      operationId: createSlides
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSlidesRequest'
      responses:
        '201':
          description: Slides job accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSlidesResponse'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Quota exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Failed to dispatch the worker.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Slides pipeline unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateSlidesRequest:
      type: object
      properties:
        prompt:
          type: string
          minLength: 3
          maxLength: 5000
        referenceImageUrl:
          type: string
          format: uri
        platform:
          type: string
          enum:
            - tiktok
            - reels
            - shorts
            - youtube
            - linkedin
        topic:
          type: string
          minLength: 3
          maxLength: 5000
        name:
          type: string
          minLength: 1
          maxLength: 200
      required:
        - prompt
        - referenceImageUrl
    CreateSlidesResponse:
      type: object
      properties:
        jobId:
          type: string
        offeringId:
          type: string
          enum:
            - slides_generation
        projectId:
          type: string
        status:
          $ref: '#/components/schemas/ApiJobStatus'
        pollUrl:
          type: string
        instanceId:
          type:
            - string
            - 'null'
        creditsReserved:
          type: integer
      required:
        - jobId
        - offeringId
        - projectId
        - status
        - pollUrl
        - creditsReserved
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
    ApiJobStatus:
      type: string
      enum:
        - queued
        - processing
        - awaiting_selection
        - completed
        - failed
        - cancelled
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send your API key in the Authorization header: `Bearer vf_live_...`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.