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

# Translate Video

> Create a video translation task with specified parameters including target language, voice, and subtitle options.


Translate an existing video into another language with voiceover and subtitles.

<Warning>
  **Video Duration Limit:** Videos must be between **0-3 minutes** in length.
</Warning>

## Example Usage

```bash theme={null}
curl -X POST 'https://api.jogg.ai/v2/video_translate/' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "video_url": "https://example.com/original.mp4",
    "target_language": "es",
    "voice_id": "es-ES-AlvaroNeural",
    "enable_subtitles": true
  }'
```

## Related Guides

<CardGroup cols={2}>
  <Card title="Video Translation Guide" href="/api-reference/v2/API Documentation/VideoTranslation">
    Learn about video translation workflow
  </Card>

  <Card title="Get Target Languages" href="/api-reference/v2/Video/VideoTranslateTargetLanguagesList">
    See supported languages
  </Card>
</CardGroup>


## OpenAPI

````yaml POST /v2/video_translate/
openapi: 3.0.1
info:
  title: JoggAI OpenAPI v2
  description: >
    JoggAI OpenAPI v2 provides a comprehensive suite of endpoints for creating
    and managing AI-powered video content.


    ## Authentication

    All API requests require authentication using an API key provided in the
    `x-api-key` header.


    ## Base URL

    Production: https://api.jogg.ai/v2


    ## Rate Limiting

    API calls are subject to rate limiting based on your subscription plan.


    ## Error Handling

    All endpoints return standard HTTP status codes along with detailed error
    messages in the response body.
  version: 2.0.0
  license:
    name: MIT
servers:
  - url: https://api.jogg.ai
    description: Production server
security:
  - apiKeyAuth: []
tags:
  - name: Video
    description: Video creation and management operations
  - name: Avatar
    description: Avatar management and creation operations
  - name: Voice
    description: Voice and timbre management operations
  - name: Asset
    description: Asset management including music, scripts, and uploads
  - name: Template
    description: Template management operations
  - name: Product
    description: Product management operations
  - name: User
    description: User account operations
  - name: Webhook
    description: Webhook endpoint management for event notifications
paths:
  /v2/video_translate/:
    post:
      tags:
        - Video
      summary: Translate Video
      description: >
        Create a video translation task with specified parameters including
        target language, voice, and subtitle options.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - video_url
                - output_language
              properties:
                video_url:
                  type: string
                  description: URL of the video to translate
                  format: uri
                  example: https://res.jogg.ai/video.mp4
                output_language:
                  type: string
                  description: Target language for translation
                  example: spanish
                title:
                  type: string
                  description: Title for the translated video
                  example: Translated Video Title
                translate_audio_only:
                  type: boolean
                  description: Translate audio only without lip sync
                  example: false
                output_voice:
                  type: string
                  description: Voice ID for dubbed audio
                  example: es-ES-ElviraNeural
                add_subtitles:
                  type: boolean
                  description: Enable translated subtitles
                  example: true
                enable_dynamic_duration:
                  type: boolean
                  description: Enable dynamic duration adjustment
                  example: false
                callback_url:
                  type: string
                  description: Callback URL for status notifications
                  format: uri
                  example: https://example.com/callback
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          video_translate_id:
                            type: string
                            description: Translation task ID
                            example: vt_123456
components:
  schemas:
    BaseResponse:
      type: object
      required:
        - code
        - msg
      properties:
        code:
          type: integer
          description: |
            Business status code:
            * 0 - Success
            * 10104 - Record not found
            * 10105 - Invalid API key
            * 18020 - Insufficient credit
            * 18025 - No permission to call APIs
            * 40000 - Parameter error
            * 50000 - System error
          example: 0
        msg:
          type: string
          description: Response message
          example: Success
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Obtain your key from the JoggAI dashboard.

````