> ## 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 an image, video or audio clip

> Image and audio modes return the asset URL inline. Video mode is async, poll GET /api/v1/studio/generations/{id}. Audio (ByteDance Seed Audio) takes a prompt plus up to 3 reference voice URLs (referenced as @Audio1/@Audio2/@Audio3) OR a single reference image (mutually exclusive). SPENDS CREDITS (per-model).



## OpenAPI

````yaml /openapi.json post /api/v1/studio/generations
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/studio/generations:
    post:
      tags:
        - Images and video models
      summary: Generate an image, video or audio clip
      description: >-
        Image and audio modes return the asset URL inline. Video mode is async,
        poll GET /api/v1/studio/generations/{id}. Audio (ByteDance Seed Audio)
        takes a prompt plus up to 3 reference voice URLs (referenced as
        @Audio1/@Audio2/@Audio3) OR a single reference image (mutually
        exclusive). SPENDS CREDITS (per-model).
      operationId: createStudioGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StudioGenerateRequest'
      responses:
        '201':
          description: Generation accepted.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
        '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: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    StudioGenerateRequest:
      type: object
      properties:
        mode:
          type: string
          enum:
            - image
            - video
            - audio
        modelKey:
          type: string
          minLength: 1
          maxLength: 120
        prompt:
          type: string
          minLength: 1
          maxLength: 10000
        options:
          anyOf:
            - $ref: '#/components/schemas/StudioImageOptions'
            - $ref: '#/components/schemas/StudioVideoOptions'
            - $ref: '#/components/schemas/StudioAudioOptions'
      required:
        - mode
        - prompt
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
    StudioImageOptions:
      type: object
      properties:
        aspectRatio:
          type: string
          enum:
            - '1:1'
            - '16:9'
            - '9:16'
            - '4:3'
            - '3:4'
        negativePrompt:
          type: string
          maxLength: 2000
        referenceImage:
          type: string
          format: uri
        referenceImages:
          type: array
          items:
            type: string
            format: uri
          maxItems: 8
        referenceMode:
          type: string
          enum:
            - style
            - structure
            - character
        referenceStrength:
          type: number
          minimum: 0
          maximum: 1
        quality:
          type: string
          enum:
            - low
            - medium
            - high
            - auto
        background:
          type: string
          enum:
            - auto
            - transparent
            - opaque
        thinkingLevel:
          type: string
          enum:
            - very low
            - low
            - medium
            - high
    StudioVideoOptions:
      type: object
      properties:
        aspectRatio:
          type: string
          enum:
            - '1:1'
            - '16:9'
            - '9:16'
            - '4:3'
            - '3:4'
        duration:
          type: integer
          minimum: 1
          maximum: 60
        resolution:
          type: string
          enum:
            - 480p
            - 720p
            - 1080p
        generateAudio:
          type: boolean
        negativePrompt:
          type: string
          maxLength: 2000
        firstFrame:
          type: string
          format: uri
        firstFrameVideo:
          type: string
          format: uri
        referenceImages:
          type: array
          items:
            type: string
            format: uri
          maxItems: 9
        referenceVideos:
          type: array
          items:
            type: string
            format: uri
          maxItems: 3
        lastFrame:
          type: string
          format: uri
        camera:
          type: string
          maxLength: 120
        keepOriginalSound:
          type: boolean
        characterOrientation:
          type: string
          enum:
            - image
            - video
        waitForCompletion:
          type: boolean
    StudioAudioOptions:
      type: object
      properties:
        lyrics:
          type: string
          maxLength: 3500
        instrumental:
          type: boolean
        voice:
          type: string
          maxLength: 120
        referenceAudios:
          type: array
          items:
            type: string
            format: uri
          maxItems: 3
        referenceImage:
          type: string
          format: uri
        outputFormat:
          type: string
          enum:
            - mp3
            - wav
            - pcm
            - ogg_opus
        sampleRate:
          anyOf:
            - type: number
              enum:
                - 8000
            - type: number
              enum:
                - 16000
            - type: number
              enum:
                - 24000
            - type: number
              enum:
                - 32000
            - type: number
              enum:
                - 44100
            - type: number
              enum:
                - 48000
        speed:
          type: number
          minimum: 0.5
          maximum: 2
        volume:
          type: number
          minimum: 0.5
          maximum: 2
        pitch:
          type: integer
          minimum: -12
          maximum: 12
  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.