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

# Create a video

> Compatibility endpoint that creates a video_production job from the legacy brief shape.



## OpenAPI

````yaml /openapi.json post /api/v1/videos
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/videos:
    post:
      tags:
        - Videos
      summary: Create a video
      description: >-
        Compatibility endpoint that creates a video_production job from the
        legacy brief shape.
      operationId: createVideoCompatibility
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateVideoRequest'
      responses:
        '201':
          description: Video accepted for processing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateVideoResponse'
        '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 or rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateVideoRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 200
        brief:
          $ref: '#/components/schemas/LegacyVideoBrief'
      required:
        - brief
    CreateVideoResponse:
      type: object
      properties:
        id:
          type:
            - string
            - 'null'
        status:
          type: string
        creditsUsed:
          type: integer
        characterId:
          type: string
          description: >-
            Only when ugc.characterId was "auto": the actor that was picked.
            Reuse it on later videos.
        actorPick:
          $ref: '#/components/schemas/UgcActorPick'
      required:
        - id
        - status
        - creditsUsed
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
    LegacyVideoBrief:
      type: object
      properties:
        directorInput:
          $ref: '#/components/schemas/DirectorInput'
        topic:
          type: string
          minLength: 3
          maxLength: 500
        durationSeconds:
          type: integer
          minimum: 15
          maximum: 60
        platform:
          type: string
          enum:
            - tiktok
            - reels
            - shorts
            - youtube
            - linkedin
        videoType:
          type: string
          enum:
            - faceless
            - motion-graphics
            - whiteboard
            - ugc
            - brainrot
            - ugc-broll
            - ugc-demo
        ugc:
          $ref: '#/components/schemas/UgcSettings'
        tone:
          type: string
          maxLength: 100
        voicePreference:
          type: object
          properties:
            gender:
              type: string
            style:
              type: string
            voiceId:
              type: string
        brandColors:
          type: object
          properties:
            primary:
              type: string
            secondary:
              type: string
            accent:
              type: string
        hookType:
          type: string
          maxLength: 50
        visualStyle:
          type: string
          maxLength: 100
        additionalInstructions:
          type: string
          maxLength: 1000
        templateId:
          type: string
          maxLength: 50
      required:
        - topic
        - durationSeconds
        - platform
    UgcActorPick:
      type: object
      properties:
        characterName:
          type: string
        imageUrl:
          type: string
        picker:
          type: string
          enum:
            - image
            - text
            - tags_fallback
          description: >-
            image = chosen by looking at the shortlisted photos; text = chosen
            from the photos' descriptions; tags_fallback = matched on gender,
            age and tags.
        fit:
          type:
            - number
            - 'null'
          description: How well the photo fits the script, 0 to 1. Null for tags_fallback.
        setting:
          type: string
          example: train-interior
        settingGroup:
          type: string
          example: transit
        libraryAssetId:
          type: string
      required:
        - picker
        - fit
        - setting
        - settingGroup
        - libraryAssetId
      description: >-
        How an auto actor was chosen. Returned only when the request sent
        ugc.characterId "auto".
    DirectorInput:
      type: object
      properties:
        version:
          type: number
          enum:
            - 1
        mode:
          type: string
          enum:
            - guide
            - locked
        creativeIntent:
          type: string
          minLength: 1
          maxLength: 2000
        visualDirection:
          type: string
          minLength: 1
          maxLength: 2000
        continuity:
          type: string
          minLength: 1
          maxLength: 2000
        avoid:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 500
          minItems: 1
          maxItems: 20
        scenes:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 1
                maxLength: 80
                pattern: ^[a-zA-Z0-9_-]+$
              durationMs:
                type: integer
                exclusiveMinimum: 0
                maximum: 120000
              narration:
                type: string
                minLength: 1
                maxLength: 5000
              dialogue:
                type: array
                items:
                  type: object
                  properties:
                    speaker:
                      type: string
                      minLength: 1
                      maxLength: 80
                    line:
                      type: string
                      minLength: 1
                      maxLength: 1500
                  required:
                    - speaker
                    - line
                  additionalProperties: false
                minItems: 1
                maxItems: 10
              visualPrompt:
                type: string
                minLength: 1
                maxLength: 5000
              motionPrompt:
                type: string
                minLength: 1
                maxLength: 2000
              referenceAssetIds:
                type: array
                items:
                  type: string
                  format: uuid
                maxItems: 5
            required:
              - id
              - visualPrompt
            additionalProperties: false
          minItems: 1
          maxItems: 20
      required:
        - version
        - mode
      additionalProperties: false
      description: >-
        Optional, versioned creative/scene direction. Feature-gated;
        job-specific capabilities determine which fields and control modes can
        execute. Omit to retain existing generation behavior. Locked mode
        requires scenes with unique IDs; maximum 80,000 serialized characters.
    UgcSettings:
      type: object
      properties:
        characterId:
          type: string
          minLength: 1
          description: >-
            A saved actor id (list_characters / POST /api/v1/characters), or
            "auto" to let VidGuy pick a talking-head actor whose setting, gender
            and age fit the script, topic and scenePrompt. The auto pick is
            saved as a character on your account (free) and its id comes back as
            characterId on the create response and on every poll, pass that id
            on later videos to keep the same actor across a campaign.
          example: auto
        scenePrompt:
          type: string
          minLength: 5
          maxLength: 500
        sceneImageUrl:
          type: string
          format: uri
        demoVideoUrl:
          type: string
          format: uri
        script:
          type: string
          minLength: 10
          maxLength: 5000
        engine:
          type: string
          enum:
            - pvideo2
            - h3ultra
          default: pvideo2
        dubbing:
          type: object
          properties:
            enabled:
              type: boolean
              default: false
            voice:
              anyOf:
                - type: string
                  enum:
                    - auto
                    - male-professional
                    - male-casual
                    - female-professional
                    - female-casual
                    - dramatic
                - type: string
                  pattern: ^[A-Za-z0-9_-]{10,}$
              default: auto
          default:
            enabled: false
            voice: auto
      required:
        - characterId
        - script
      description: >-
        UGC (talking-head) settings. Required for videoType ugc, brainrot,
        ugc-broll and ugc-demo.
  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.