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

# Clone a voice

> Needs a consent attestation for the current statement version (getVoiceConsentStatement). Starter 2 / Pro 5 / Scale 15 active clones, 3 new clones per 24 h; not available on the Agent plan. Samples: 1 to 25 audio files, ≤10 MB each.



## OpenAPI

````yaml /openapi.json post /api/v1/voices
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/voices:
    post:
      tags:
        - Audio
      summary: Clone a voice
      description: >-
        Needs a consent attestation for the current statement version
        (getVoiceConsentStatement). Starter 2 / Pro 5 / Scale 15 active clones,
        3 new clones per 24 h; not available on the Agent plan. Samples: 1 to 25
        audio files, ≤10 MB each.
      operationId: createVoiceClone
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateVoiceCloneRequest'
      responses:
        '201':
          description: Voice created.
          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: Plan or clone limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Consent statement outdated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '413':
          description: Samples too large.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '415':
          description: Samples must be audio.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Voice service failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateVoiceCloneRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        description:
          type: string
          maxLength: 500
        languageCode:
          type: string
        samples:
          type: array
          items:
            $ref: '#/components/schemas/AudioSource'
          minItems: 1
          maxItems: 25
        removeBackgroundNoise:
          type: boolean
        consent:
          type: object
          properties:
            attestation:
              type: boolean
              enum:
                - true
            speakerName:
              type: string
              minLength: 1
              maxLength: 200
            basis:
              type: string
              enum:
                - self
                - written_permission
            statementVersion:
              type: string
          required:
            - attestation
            - speakerName
            - basis
            - statementVersion
      required:
        - name
        - samples
        - consent
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
    AudioSource:
      anyOf:
        - type: object
          properties:
            r2Key:
              type: string
              minLength: 1
              description: >-
                Key from createAssetUpload/importAssetFromUrl (api-uploads/… or
                api-imports/…).
          required:
            - r2Key
        - type: object
          properties:
            url:
              type: string
              format: uri
              description: >-
                Direct https file URL (public or presigned). Video-platform page
                links are rejected.
          required:
            - url
  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.