> ## Documentation Index
> Fetch the complete documentation index at: https://lingopal.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Video

## Description

Create media from a file or URL and start transcription / translation

Multipart form upload or **`source_url`**. Either **`file`** or **`source_url`** is required. **`languages`** is required unless **`skip_translate`** is set (422 otherwise). YouTube URLs are rejected.

| Field                                        | Notes                                                           |
| -------------------------------------------- | --------------------------------------------------------------- |
| `name`                                       | Required display name                                           |
| `languages`                                  | Comma-separated locales; must be allowed TTS/dubbing locales    |
| `remove_background_audio`                    | Removes the background audio in media                           |
| `number_of_speakers`                         | Controls the number of speakers detected in the media           |
| `burn_subtitles`, `burn_subtitles_on_source` | Booleans for burning subtitles on the media                     |
| `source_url`                                 | Direct URL, Vimeo, Google Drive, presigned S3; not YouTube      |
| `file`                                       | File upload                                                     |
| `is_source_srt`                              | Boolean indicating if the source is an SRT file                 |
| `prepend_ai_warning`                         | Adds an AI warning to the beginning of the media when published |
| `skip_translate`                             | Transcribe File without translating                             |
| `enhance`                                    | Optional boolean for multi-language enhancement                 |
| `context_for_translation`                    | Optional context for translation                                |
| `experimental_force_accent`, `clone_voice`   | Booleans for voice control                                      |
| `word_count_per_line`                        | Integer, default `7`, minimum **3**, maximum **15**             |


## OpenAPI

````yaml post /v1/videos/
openapi: 3.1.0
info:
  title: Lingopal VOD API
  description: API for Video on Demand processing, transcription, and translation services
  version: 0.0.1
servers:
  - url: https://api.lingopal.ai
security: []
paths:
  /v1/videos/:
    post:
      tags:
        - videos
      summary: Upload Video
      operationId: upload_video_v1_videos__post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_upload_video_v1_videos__post'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaTranslationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    Body_upload_video_v1_videos__post:
      properties:
        name:
          type: string
          title: Name
        languages:
          anyOf:
            - type: string
            - type: 'null'
          title: Languages
        remove_background_audio:
          type: boolean
          title: Remove Background Audio
          default: false
        number_of_speakers:
          type: integer
          title: Number Of Speakers
          default: 0
        burn_subtitles:
          type: boolean
          title: Burn Subtitles
          default: false
        burn_subtitles_on_source:
          type: boolean
          title: Burn Subtitles On Source
          default: false
        source_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Url
        file:
          anyOf:
            - type: string
              format: binary
            - type: 'null'
          title: File
        subtitles_file_urls:
          anyOf:
            - type: string
            - type: 'null'
          title: Subtitles File Urls
        is_source_srt:
          type: boolean
          title: Is Source Srt
          default: false
        prepend_ai_warning:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Prepend Ai Warning
          default: false
        skip_translate:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Skip Translate
          default: false
        enhance:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enhance
          default: false
        context_for_translation:
          anyOf:
            - type: string
            - type: 'null'
          title: Context For Translation
        experimental_force_accent:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Experimental Force Accent
          default: false
        clone_voice:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Clone Voice
          default: false
        word_count_per_line:
          type: integer
          title: Word Count Per Line
          default: 7
      type: object
      required:
        - name
      title: Body_upload_video_v1_videos__post
    MediaTranslationResponse:
      properties:
        metadata:
          $ref: '#/components/schemas/MediaMetadata'
        message:
          type: string
          title: Message
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        created_on:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created On
        languages:
          items:
            $ref: '#/components/schemas/TranslationLanguage'
          type: array
          title: Languages
      type: object
      required:
        - message
        - id
        - name
        - created_on
        - languages
      title: MediaTranslationResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MediaMetadata:
      properties:
        duration:
          type: number
          title: Duration
      type: object
      required:
        - duration
      title: MediaMetadata
    TranslationLanguage:
      properties:
        status:
          $ref: '#/components/schemas/TranslationStatus'
        language:
          $ref: '#/components/schemas/app__constants__video_languages__LanguageInfo'
      type: object
      required:
        - status
        - language
      title: TranslationLanguage
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    TranslationStatus:
      type: string
      enum:
        - Completed
        - Processing
      title: TranslationStatus
    app__constants__video_languages__LanguageInfo:
      properties:
        locale:
          type: string
          title: Locale
        language:
          type: string
          title: Language
      type: object
      required:
        - locale
        - language
      title: LanguageInfo
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````