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

# Start an AI Edit

> ~5 cr/30s, +5 cr when broll=true (defaults off). Poll GET /api/v1/projects/{projectId}/status.



## OpenAPI

````yaml /openapi.json post /api/v1/ai-edit/projects
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/ai-edit/projects:
    post:
      tags:
        - Editing
      summary: Start an AI Edit
      description: >-
        ~5 cr/30s, +5 cr when broll=true (defaults off). Poll GET
        /api/v1/projects/{projectId}/status.
      operationId: createAiEdit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAiEditRequest'
      responses:
        '201':
          description: AI Edit job queued.
          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'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Source 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: Worker dispatch failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateAiEditRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 200
        source:
          type: object
          properties:
            r2Key:
              type: string
              description: From ai-edit/uploads; must start with uploads/ai-edit/{userId}/.
            fileName:
              type: string
              minLength: 1
              maxLength: 255
            fileSize:
              type: integer
              exclusiveMinimum: 0
            contentType:
              type: string
            durationSeconds:
              type: number
              exclusiveMinimum: 0
              maximum: 36000
          required:
            - r2Key
            - fileName
            - durationSeconds
        recipe:
          type: string
          enum:
            - captions-only
            - polished-broll
        preferences:
          type: object
          properties:
            recipe:
              type: string
              enum:
                - captions-only
                - polished-broll
            editStyle:
              type: string
              enum:
                - bloom
                - prism
                - slam
                - lava
                - editorial
                - parallax
                - matrix
                - highlight
                - clipwipe
            texturePreset:
              type: string
              enum:
                - lava
                - marble
                - metal
                - candy
                - rock
                - wood
            accentColor:
              type: string
              pattern: ^#[0-9a-fA-F]{6}$
            broll:
              type: boolean
            captionStyle:
              type: string
              enum:
                - classic
                - bold
                - minimal
                - neon
                - podcast
                - meme
                - karaoke
            captionPosition:
              type: string
              enum:
                - auto
                - bottom
                - center
                - top
            sfxIntensity:
              type: string
              enum:
                - 'off'
                - subtle
                - punchy
            outputFormat:
              type: string
              enum:
                - '9:16'
                - '1:1'
                - '16:9'
            notes:
              type: string
              maxLength: 1000
          required:
            - recipe
            - captionStyle
            - captionPosition
            - sfxIntensity
            - outputFormat
      required:
        - source
        - recipe
        - preferences
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
  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.