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

> Async, prompt-first meme generation. Rendering is included. Requests 1 to 5 variations of one type and returns a jobId immediately; poll GET /api/v1/jobs/{id}. Brand context is optional.



## OpenAPI

````yaml /openapi.json post /api/v1/snacks/memes
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/snacks/memes:
    post:
      tags:
        - Snacks and memes
      summary: Generate memes
      description: >-
        Async, prompt-first meme generation. Rendering is included. Requests 1
        to 5 variations of one type and returns a jobId immediately; poll GET
        /api/v1/jobs/{id}. Brand context is optional.
      operationId: createMeme
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMemeRequest'
      responses:
        '201':
          description: Meme job accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateMemeResponse'
        '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'
        '404':
          description: Brand not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Failed to dispatch the worker.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateMemeRequest:
      type: object
      properties:
        memeType:
          type: string
          enum:
            - meme-edit
            - meme-greenscreen
            - meme-comic
          description: >-
            Meme format: reaction-clip caption rewrite, keyed greenscreen
            reaction, or illustrated comic strip.
        prompt:
          type: string
          minLength: 3
          maxLength: 2000
          description: >-
            Plain-language subject or moment to turn into a meme; the caller
            does not need to write the joke.
          example: When the AI video renders perfectly on the first try
        count:
          type: integer
          minimum: 1
          maximum: 5
          description: Number of variations of the selected type (default 1).
          example: 1
        brandId:
          type: string
          description: >-
            Optional tenant brand UUID. Omit for brandless prompt-only
            generation.
      required:
        - memeType
        - prompt
    CreateMemeResponse:
      type: object
      properties:
        jobId:
          type: string
        offeringId:
          type: string
          enum:
            - meme_snack_pack
        status:
          $ref: '#/components/schemas/ApiJobStatus'
        pollUrl:
          type: string
        creditsReserved:
          type: integer
        count:
          type: integer
        memeType:
          type: string
          enum:
            - meme-edit
            - meme-greenscreen
            - meme-comic
      required:
        - jobId
        - offeringId
        - status
        - pollUrl
        - creditsReserved
        - count
        - memeType
    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.