{
  "openapi": "3.1.0",
  "info": {
    "title": "Runware API - HeyGen Video Translate 1.0",
    "summary": "Video translation into 190 languages with the speaker's own voice and matching lip sync",
    "description": "HeyGen Video Translate 1.0 is a video translation model that transcribes the speech in a video, translates it, and dubs it in the speaker's cloned voice. It redraws the mouth to match the translated speech, with a speed mode for fast turnaround and a precision mode for higher lip sync quality on moving faces, side angles, and occlusions. It suits localization of marketing, training, and social video, with options for multiple speakers, partial translation, audio-only dubbing, and custom subtitles.",
    "version": "1.0.0",
    "x-model-id": "heygen-video-translate-1-0",
    "x-air-id": "heygen:video-translate@1.0",
    "x-status": "live",
    "x-creator": {
      "id": "heygen",
      "name": "HeyGen",
      "logo": "https://assets.runware.ai/f7e2b80a-fbbe-4ff1-85ba-5a45f3d50881.png"
    },
    "x-capabilities": [
      "video-to-video",
      "audio-to-video",
      "checkpoint",
      "audio"
    ],
    "x-modes": [
      {
        "id": "video",
        "inputs": [
          "video"
        ]
      },
      {
        "id": "video+audio",
        "inputs": [
          "video",
          "audio"
        ]
      },
      {
        "id": "video+subtitles",
        "inputs": [
          "video",
          "subtitles"
        ]
      },
      {
        "id": "video+audio+subtitles",
        "inputs": [
          "video",
          "audio",
          "subtitles"
        ]
      }
    ],
    "x-cover-image": "https://assets.runware.ai/covers/heygen-video-translate-1-0.jpg",
    "x-examples": "https://runware.ai/docs/models/heygen-video-translate-1-0/examples.json",
    "x-pricing": {
      "currency": "USD",
      "docs": "https://runware.ai/docs/models-api/pricing",
      "rates": [
        {
          "amount": 0.0135,
          "unit": "durationSecond",
          "label": "Speed · Lip sync",
          "display": "$0.0135 per second"
        },
        {
          "amount": 0.0095,
          "unit": "durationSecond",
          "label": "Speed · Audio only",
          "display": "$0.0095 per second"
        },
        {
          "amount": 0.014,
          "unit": "durationSecond",
          "label": "Speed · Custom audio track",
          "display": "$0.014 per second"
        },
        {
          "amount": 0.025,
          "unit": "durationSecond",
          "label": "Precision · Lip sync or audio only",
          "display": "$0.025 per second"
        },
        {
          "amount": 0.029,
          "unit": "durationSecond",
          "label": "Precision · Custom audio track",
          "display": "$0.029 per second"
        }
      ],
      "examples": [
        {
          "id": "japanese-luxury-ryokan-tour",
          "configuration": "audio-only-dub",
          "price": 0.0574,
          "latencyMs": 89838
        },
        {
          "id": "japanese-hotel-training-localization",
          "configuration": "partial-translation",
          "price": 0.08,
          "latencyMs": 97514
        },
        {
          "id": "polish-factory-safety-induction",
          "configuration": "video-translate",
          "price": 0.0815,
          "latencyMs": 109774
        },
        {
          "id": "spanish-warehouse-safety-training",
          "configuration": "video-translate",
          "price": 0.0815,
          "latencyMs": 101886
        }
      ]
    }
  },
  "externalDocs": {
    "description": "HeyGen Video Translate 1.0 on Runware",
    "url": "https://runware.ai/docs/models/heygen-video-translate-1-0"
  },
  "servers": [
    {
      "url": "https://api.runware.ai/v1",
      "description": "Runware REST API"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Runware API Key (e.g., Bearer <your-key>)"
      }
    },
    "schemas": {
      "AuthenticationTask": {
        "title": "Authentication",
        "description": "Authenticates a connection using an API key. Can be sent as the first element of the request array as an alternative to using the Authorization header.",
        "type": "object",
        "x-response-schema": "https://schemas.runware.ai/responses/utilities/authentication.json",
        "properties": {
          "taskType": {
            "title": "Task Type",
            "description": "Identifier for the type of task being performed.",
            "type": "string",
            "const": "authentication"
          },
          "apiKey": {
            "title": "API Key",
            "description": "Your Runware API key.",
            "type": "string"
          },
          "connectionSessionUUID": {
            "title": "Connection Session UUID",
            "description": "Optional session UUID to resume a previous connection and receive any buffered results.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "taskType",
          "apiKey"
        ],
        "additionalProperties": false
      },
      "RequestBody": {
        "type": "array",
        "items": {
          "type": "object",
          "x-constraints": [
            {
              "operation": "fileFormat",
              "parameters": [
                "inputs.subtitles"
              ],
              "allowed": [
                "srt"
              ]
            }
          ],
          "properties": {
            "model": {
              "title": "Model",
              "description": "Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).\n\n[Read full documentation](https://runware.ai/docs/models/heygen-video-translate-1-0#model)",
              "type": "string",
              "const": "heygen:video-translate@1.0"
            },
            "inputs": {
              "title": "Inputs",
              "description": "Input assets for the task.",
              "type": "object",
              "properties": {
                "video": {
                  "title": "Video",
                  "description": "Video input (UUID or URL). Also accepted as an object that adds the language spoken in the video.",
                  "oneOf": [
                    {
                      "title": "Video",
                      "description": "Video input (UUID or URL).",
                      "type": "string",
                      "anyOf": [
                        {
                          "format": "uuid"
                        },
                        {
                          "format": "uri"
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "language": {
                          "enum": [
                            "af-ZA",
                            "sq-AL",
                            "am-ET",
                            "ar",
                            "ar-DZ",
                            "ar-BH",
                            "ar-EG",
                            "ar-IQ",
                            "ar-JO",
                            "ar-KW",
                            "ar-LB",
                            "ar-LY",
                            "ar-MA",
                            "ar-OM",
                            "ar-QA",
                            "ar-SA",
                            "ar-SY",
                            "ar-TN",
                            "ar-AE",
                            "ar-001",
                            "ar-YE",
                            "hy-AM",
                            "az-AZ",
                            "bn-BD",
                            "eu-ES",
                            "be-BY",
                            "bn-IN",
                            "bs-BA",
                            "bg",
                            "bg-BG",
                            "my-MM",
                            "ca-ES",
                            "zh",
                            "zh-HK",
                            "zh-CN-shandong",
                            "zh-CN",
                            "zh-CN-liaoning",
                            "zh-CN-sichuan",
                            "zh-TW",
                            "wuu-CN",
                            "zh-CN-henan",
                            "zh-CN-shaanxi",
                            "hr",
                            "hr-HR",
                            "cs",
                            "cs-CZ",
                            "da",
                            "da-DK",
                            "nl",
                            "nl-BE",
                            "nl-NL",
                            "en",
                            "en-AU",
                            "en-CA",
                            "en-HK",
                            "en-IN",
                            "en-IE",
                            "en-KE",
                            "en-NZ",
                            "en-NG",
                            "en-PH",
                            "en-SG",
                            "en-ZA",
                            "en-TZ",
                            "en-GB",
                            "en-US",
                            "et-EE",
                            "fil",
                            "ceb-PH",
                            "fil-PH",
                            "fi",
                            "fi-FI",
                            "fr",
                            "fr-BE",
                            "fr-CA",
                            "fr-FR",
                            "fr-CH",
                            "gl-ES",
                            "ka-GE",
                            "de",
                            "de-AT",
                            "de-DE",
                            "de-CH",
                            "el",
                            "el-GR",
                            "gu-IN",
                            "ht-HT",
                            "he-IL",
                            "hi",
                            "hi-IN",
                            "hu-HU",
                            "is-IS",
                            "id",
                            "id-ID",
                            "ga-IE",
                            "it",
                            "it-IT",
                            "ja",
                            "ja-JP",
                            "jv-ID",
                            "kn-IN",
                            "kk-KZ",
                            "km-KH",
                            "kok-IN",
                            "ko",
                            "ko-KR",
                            "lo-LA",
                            "la-VA",
                            "lv-LV",
                            "lt-LT",
                            "lb-LU",
                            "mk-MK",
                            "mai-IN",
                            "mg-MG",
                            "ms",
                            "ms-MY",
                            "ml-IN",
                            "mt-MT",
                            "mr-IN",
                            "mn-MN",
                            "ne-NP",
                            "nb-NO",
                            "nn-NO",
                            "or-IN",
                            "ps-AF",
                            "fa-IR",
                            "pl",
                            "pl-PL",
                            "pt",
                            "pt-BR",
                            "pt-PT",
                            "pa-IN",
                            "ro",
                            "ro-RO",
                            "ru",
                            "ru-RU",
                            "sr-LATN-RS",
                            "sd-IN",
                            "si-LK",
                            "sk",
                            "sk-SK",
                            "sl-SI",
                            "so-SO",
                            "es",
                            "es-AR",
                            "es-BO",
                            "es-CL",
                            "es-CO",
                            "es-CR",
                            "es-CU",
                            "es-DO",
                            "es-EC",
                            "es-SV",
                            "es-GQ",
                            "es-GT",
                            "es-HN",
                            "es-419",
                            "es-MX",
                            "es-NI",
                            "es-PA",
                            "es-PY",
                            "es-PE",
                            "es-PR",
                            "es-ES",
                            "es-US",
                            "es-UY",
                            "es-VE",
                            "su-ID",
                            "sw-KE",
                            "sw-TZ",
                            "sv",
                            "sv-SE",
                            "ta",
                            "ta-IN",
                            "ta-MY",
                            "ta-SG",
                            "ta-LK",
                            "te-IN",
                            "th-TH",
                            "tr",
                            "tr-TR",
                            "uk",
                            "uk-UA",
                            "ur-IN",
                            "ur-PK",
                            "uz-UZ",
                            "vi",
                            "vi-VN",
                            "cy-GB",
                            "zu-ZA"
                          ],
                          "description": "Language code of the speech in the video. Detected automatically when omitted.",
                          "title": "Language",
                          "type": "string",
                          "minLength": 1
                        },
                        "source": {
                          "title": "Source",
                          "description": "Video input (UUID or URL).",
                          "type": "string",
                          "anyOf": [
                            {
                              "format": "uuid"
                            },
                            {
                              "format": "uri"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "audio": {
                  "title": "Audio",
                  "description": "Audio input (UUID or URL). Custom audio track the video is dubbed with. Its length must be within 15% of the length of `inputs.video`.",
                  "type": "string",
                  "anyOf": [
                    {
                      "format": "uuid"
                    },
                    {
                      "format": "uri"
                    }
                  ]
                },
                "subtitles": {
                  "title": "Subtitles",
                  "description": "Document input (UUID, URL, or Base64). Custom subtitle file used in place of the automatic transcript or translation. Also accepted as an object that adds the role of the file.",
                  "oneOf": [
                    {
                      "title": "Document",
                      "description": "Document input (UUID, URL, or Base64).",
                      "type": "string",
                      "anyOf": [
                        {
                          "format": "uuid"
                        },
                        {
                          "format": "uri"
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string",
                          "title": "Role",
                          "description": "Speech the subtitle file holds.",
                          "default": "output",
                          "oneOf": [
                            {
                              "description": "Translated lines, spoken as written.",
                              "const": "output"
                            },
                            {
                              "description": "Transcript of the source speech, which is then translated.",
                              "const": "input"
                            }
                          ]
                        },
                        "source": {
                          "title": "Source",
                          "description": "Document input (UUID, URL, or Base64).",
                          "type": "string",
                          "anyOf": [
                            {
                              "format": "uuid"
                            },
                            {
                              "format": "uri"
                            }
                          ]
                        }
                      },
                      "required": [
                        "source"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "video"
              ],
              "additionalProperties": false
            },
            "speech": {
              "title": "Speech",
              "description": "Settings for speech generation.",
              "type": "object",
              "properties": {
                "language": {
                  "enum": [
                    "af-ZA",
                    "sq-AL",
                    "am-ET",
                    "ar",
                    "ar-DZ",
                    "ar-BH",
                    "ar-EG",
                    "ar-IQ",
                    "ar-JO",
                    "ar-KW",
                    "ar-LB",
                    "ar-LY",
                    "ar-MA",
                    "ar-OM",
                    "ar-QA",
                    "ar-SA",
                    "ar-SY",
                    "ar-TN",
                    "ar-AE",
                    "ar-001",
                    "ar-YE",
                    "hy-AM",
                    "az-AZ",
                    "bn-BD",
                    "eu-ES",
                    "be-BY",
                    "bn-IN",
                    "bs-BA",
                    "bg",
                    "bg-BG",
                    "my-MM",
                    "ca-ES",
                    "zh",
                    "zh-HK",
                    "zh-CN-shandong",
                    "zh-CN",
                    "zh-CN-liaoning",
                    "zh-CN-sichuan",
                    "zh-TW",
                    "wuu-CN",
                    "zh-CN-henan",
                    "zh-CN-shaanxi",
                    "hr",
                    "hr-HR",
                    "cs",
                    "cs-CZ",
                    "da",
                    "da-DK",
                    "nl",
                    "nl-BE",
                    "nl-NL",
                    "en",
                    "en-AU",
                    "en-CA",
                    "en-HK",
                    "en-IN",
                    "en-IE",
                    "en-KE",
                    "en-NZ",
                    "en-NG",
                    "en-PH",
                    "en-SG",
                    "en-ZA",
                    "en-TZ",
                    "en-GB",
                    "en-US",
                    "et-EE",
                    "fil",
                    "ceb-PH",
                    "fil-PH",
                    "fi",
                    "fi-FI",
                    "fr",
                    "fr-BE",
                    "fr-CA",
                    "fr-FR",
                    "fr-CH",
                    "gl-ES",
                    "ka-GE",
                    "de",
                    "de-AT",
                    "de-DE",
                    "de-CH",
                    "el",
                    "el-GR",
                    "gu-IN",
                    "ht-HT",
                    "he-IL",
                    "hi",
                    "hi-IN",
                    "hu-HU",
                    "is-IS",
                    "id",
                    "id-ID",
                    "ga-IE",
                    "it",
                    "it-IT",
                    "ja",
                    "ja-JP",
                    "jv-ID",
                    "kn-IN",
                    "kk-KZ",
                    "km-KH",
                    "kok-IN",
                    "ko",
                    "ko-KR",
                    "lo-LA",
                    "la-VA",
                    "lv-LV",
                    "lt-LT",
                    "lb-LU",
                    "mk-MK",
                    "mai-IN",
                    "mg-MG",
                    "ms",
                    "ms-MY",
                    "ml-IN",
                    "mt-MT",
                    "mr-IN",
                    "mn-MN",
                    "ne-NP",
                    "nb-NO",
                    "nn-NO",
                    "or-IN",
                    "ps-AF",
                    "fa-IR",
                    "pl",
                    "pl-PL",
                    "pt",
                    "pt-BR",
                    "pt-PT",
                    "pa-IN",
                    "ro",
                    "ro-RO",
                    "ru",
                    "ru-RU",
                    "sr-LATN-RS",
                    "sd-IN",
                    "si-LK",
                    "sk",
                    "sk-SK",
                    "sl-SI",
                    "so-SO",
                    "es",
                    "es-AR",
                    "es-BO",
                    "es-CL",
                    "es-CO",
                    "es-CR",
                    "es-CU",
                    "es-DO",
                    "es-EC",
                    "es-SV",
                    "es-GQ",
                    "es-GT",
                    "es-HN",
                    "es-419",
                    "es-MX",
                    "es-NI",
                    "es-PA",
                    "es-PY",
                    "es-PE",
                    "es-PR",
                    "es-ES",
                    "es-US",
                    "es-UY",
                    "es-VE",
                    "su-ID",
                    "sw-KE",
                    "sw-TZ",
                    "sv",
                    "sv-SE",
                    "ta",
                    "ta-IN",
                    "ta-MY",
                    "ta-SG",
                    "ta-LK",
                    "te-IN",
                    "th-TH",
                    "tr",
                    "tr-TR",
                    "uk",
                    "uk-UA",
                    "ur-IN",
                    "ur-PK",
                    "uz-UZ",
                    "vi",
                    "vi-VN",
                    "cy-GB",
                    "zu-ZA"
                  ],
                  "description": "Language code for speech generation. The speech in the video is translated into this language.",
                  "title": "Language",
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "language"
              ],
              "additionalProperties": false
            },
            "settings": {
              "title": "Settings",
              "description": "Global inference settings.",
              "type": "object",
              "properties": {
                "dynamicDuration": {
                  "type": "boolean",
                  "title": "Dynamic Duration",
                  "description": "Lets the output grow or shrink to match the pacing of the translated speech. When disabled, the output keeps the source length.",
                  "default": true
                },
                "endTime": {
                  "type": "number",
                  "title": "End Time",
                  "description": "End time in seconds of the part of the video to translate. Must be greater than `startTime`.",
                  "exclusiveMinimum": 0
                },
                "enhanceSpeech": {
                  "type": "boolean",
                  "title": "Enhance Speech",
                  "description": "Enhances the quality of the speech."
                },
                "fpsMode": {
                  "type": "string",
                  "title": "FPS Mode",
                  "description": "Frame rate mode of the output video.",
                  "oneOf": [
                    {
                      "description": "Variable frame rate.",
                      "const": "vfr"
                    },
                    {
                      "description": "Constant frame rate.",
                      "const": "cfr"
                    },
                    {
                      "description": "Frame rate of the source video.",
                      "const": "passthrough"
                    }
                  ]
                },
                "keepSourceFormat": {
                  "type": "boolean",
                  "title": "Keep Source Format",
                  "description": "Keeps the resolution and bitrate of the source video."
                },
                "mode": {
                  "type": "string",
                  "title": "Mode",
                  "description": "Speed and quality trade-off of the translation.",
                  "default": "speed",
                  "oneOf": [
                    {
                      "description": "Faster turnaround with standard lip sync.",
                      "const": "speed"
                    },
                    {
                      "description": "Context-aware translation and higher lip sync quality, with longer processing.",
                      "const": "precision"
                    }
                  ]
                },
                "removeBackgroundMusic": {
                  "type": "boolean",
                  "title": "Remove Background Music",
                  "description": "Removes the background music track."
                },
                "speakerCount": {
                  "type": "integer",
                  "title": "Speaker Count",
                  "description": "Number of speakers in the video. Improves speaker separation.",
                  "minimum": 1,
                  "maximum": 10
                },
                "startTime": {
                  "type": "number",
                  "title": "Start Time",
                  "description": "Start time in seconds of the part of the video to translate.",
                  "minimum": 0
                },
                "translateAudioOnly": {
                  "type": "boolean",
                  "title": "Translate Audio Only",
                  "description": "Translates the audio and keeps the original video, with no lip sync."
                }
              },
              "additionalProperties": false
            },
            "taskType": {
              "title": "Task Type",
              "description": "Identifier for the type of task being performed.",
              "type": "string",
              "const": "videoInference"
            },
            "taskUUID": {
              "title": "Task UUID",
              "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
              "type": "string",
              "format": "uuid"
            },
            "webhookURL": {
              "title": "Webhook URL",
              "description": "Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
              "type": "string",
              "format": "uri"
            },
            "includeCost": {
              "title": "Include Cost",
              "description": "Include task cost in the response.",
              "type": "boolean"
            },
            "numberResults": {
              "title": "Number of Results",
              "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "maximum": 4
            },
            "uploadEndpoint": {
              "title": "Upload Endpoint",
              "description": "Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.\n\n**Common use cases:**\n\n- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.\n- **CDN integration**: Upload to content delivery networks for immediate distribution.\n\n```text\n// S3 presigned URL for secure upload\nhttps://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600\n\n// Google Cloud Storage presigned URL\nhttps://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789\n\n// Custom storage endpoint\nhttps://storage.example.com/uploads/generated-image.jpg\n```\n\nThe content data will be sent as the request body to the specified URL when generation is complete.\n\n[Read full documentation](https://runware.ai/docs/models/heygen-video-translate-1-0#uploadEndpoint)",
              "type": "string",
              "format": "uri"
            },
            "ttl": {
              "title": "TTL",
              "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
              "type": "integer",
              "minimum": 60
            },
            "outputType": {
              "title": "Output Type",
              "description": "Video output type.",
              "type": "string",
              "enum": [
                "URL"
              ],
              "default": "URL"
            },
            "outputFormat": {
              "title": "Output Format",
              "description": "Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.\n\n- \\`JPG\\`: Best for photorealistic images with smaller file sizes (no transparency).\n- \\`PNG\\`: Lossless compression, supports high quality and transparency (alpha channel).\n- \\`WEBP\\`: Modern format providing superior compression and transparency support.\n- \\`MP4\\`: Widely supported video container (H.264), recommended for general use.\n- \\`WEBM\\`: Optimized for web delivery.\n- \\`MOV\\`: QuickTime format, common in professional workflows (Apple ecosystem).\n- \\`GIF\\`: Animated image format (no audio), suitable for short loops or previews.\n- \\`MP3\\`: Compressed audio, smaller file size.\n- \\`WAV\\`: Uncompressed, high-quality audio.\n- \\`FLAC\\`: Lossless compression.\n- \\`OGG\\`: Open-source compressed audio format (Vorbis codec).\n- \\`SVG\\`: Scalable Vector Graphics.\n- \\`TIFF\\`: High-quality output supporting layers.\n- \\`GLB\\`: Binary glTF format for 3D models, including geometry, textures, and PBR materials.\n\n> [!NOTE]\n> \\*\\*Transparency\\*\\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \\`PNG\\`, \\`WEBP\\`, \\`TIFF\\`). \\`JPG\\` does not support transparency.\n\n[Read full documentation](https://runware.ai/docs/models/heygen-video-translate-1-0#outputFormat)",
              "type": "string",
              "enum": [
                "MP4",
                "WEBM",
                "MOV"
              ],
              "default": "MP4"
            },
            "outputQuality": {
              "title": "Output Quality",
              "description": "Compression quality of the output. Higher values preserve quality but increase file size.",
              "type": "integer",
              "minimum": 20,
              "maximum": 99,
              "default": 95
            },
            "deliveryMethod": {
              "title": "Delivery Method",
              "description": "Determines how the API delivers task results.",
              "type": "string",
              "oneOf": [
                {
                  "const": "sync",
                  "description": "Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse."
                },
                {
                  "const": "async",
                  "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
                }
              ],
              "default": "async"
            },
            "safety": {
              "type": "object",
              "title": "Safety Settings",
              "description": "Content safety checking configuration for video generation.",
              "properties": {
                "checkContent": {
                  "title": "Check Content",
                  "description": "Enable or disable content safety checking. Increases total generation time.",
                  "type": "boolean"
                },
                "mode": {
                  "title": "Safety Mode",
                  "description": "Safety checking mode for video generation.",
                  "type": "string",
                  "oneOf": [
                    {
                      "const": "fast",
                      "title": "Fast",
                      "description": "Checks key frames."
                    },
                    {
                      "const": "full",
                      "title": "Full",
                      "description": "Checks all frames."
                    }
                  ],
                  "default": "fast"
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "inputs",
            "speech",
            "taskType",
            "taskUUID",
            "model"
          ],
          "allOf": [
            {
              "if": {
                "properties": {
                  "settings": {
                    "required": [
                      "fpsMode"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "required": [
                      "audio"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              }
            }
          ],
          "additionalProperties": false
        },
        "description": "You must always POST an array of task objects."
      },
      "ResponseBody": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "title": "Video Response",
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "taskType": {
                  "title": "Task Type",
                  "description": "Identifier for the type of task this response belongs to.",
                  "type": "string",
                  "const": "videoInference"
                },
                "taskUUID": {
                  "title": "Task UUID",
                  "description": "UUID v4 identifier echoed from the original request, used to match async responses to their tasks.",
                  "type": "string",
                  "format": "uuid"
                },
                "cost": {
                  "title": "Cost",
                  "description": "Task cost in USD. Present when `includeCost` is set to `true` in the request.",
                  "type": "number"
                },
                "videoUUID": {
                  "title": "Video UUID",
                  "description": "UUID of the output video.",
                  "type": "string",
                  "format": "uuid"
                },
                "videoURL": {
                  "title": "Video URL",
                  "description": "URL of the output video.",
                  "type": "string",
                  "format": "uri"
                },
                "videoBase64Data": {
                  "title": "Video Base64 Data",
                  "description": "Base64-encoded video data.",
                  "type": "string"
                },
                "videoDataURI": {
                  "title": "Video Data URI",
                  "description": "Data URI of the output video.",
                  "type": "string",
                  "format": "uri"
                },
                "seed": {
                  "title": "Seed",
                  "description": "The seed used for generation. If none was provided, shows the randomly generated seed.",
                  "type": "integer"
                },
                "NSFWContent": {
                  "title": "NSFW Content",
                  "description": "Flag indicating if NSFW content was detected.",
                  "type": "boolean"
                }
              },
              "required": [
                "taskType",
                "taskUUID",
                "videoUUID"
              ]
            }
          }
        }
      },
      "ErrorResponse": {
        "title": "Error Response",
        "description": "Standard error response returned by the Runware API.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": true,
              "properties": {
                "code": {
                  "type": "string",
                  "description": "A short identifier for the error (e.g., invalidApiKey, timeoutProvider)."
                },
                "message": {
                  "type": "string",
                  "description": "A human-readable explanation of what went wrong."
                },
                "parameter": {
                  "type": "string",
                  "description": "The request parameter related to the error, if applicable."
                },
                "taskType": {
                  "type": "string",
                  "description": "The task type of the request that failed."
                },
                "taskUUID": {
                  "type": "string",
                  "description": "The unique identifier of the failed request."
                },
                "documentation": {
                  "type": "string",
                  "description": "A link to relevant documentation."
                }
              }
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      }
    }
  },
  "paths": {
    "/": {
      "post": {
        "summary": "Run HeyGen Video Translate 1.0",
        "description": "HeyGen Video Translate 1.0 is a video translation model that transcribes the speech in a video, translates it, and dubs it in the speaker's cloned voice. It redraws the mouth to match the translated speech, with a speed mode for fast turnaround and a precision mode for higher lip sync quality on moving faces, side angles, and occlusions. It suits localization of marketing, training, and social video, with options for multiple speakers, partial translation, audio-only dubbing, and custom subtitles.",
        "operationId": "run_heygen_video_translate_1_0",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Missing or invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — No valid API key provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required — Insufficient account balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — The API key lacks permissions for this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error — Something went wrong on Runware's end.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable — Temporarily unavailable (maintenance or capacity).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}