{
  "openapi": "3.1.0",
  "info": {
    "title": "HeyGen External API",
    "version": "1.0.0",
    "description": "HeyGen's external API for programmatic AI video creation. See https://docs.heygen.com for full documentation.",
    "contact": {
      "name": "HeyGen Product Infra",
      "url": "https://heygen.com"
    }
  },
  "servers": [
    {
      "url": "https://api.heygen.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Video Agent",
      "description": "Create videos from text prompts using AI"
    },
    {
      "name": "Videos",
      "description": "Create, list, retrieve, and delete videos"
    },
    {
      "name": "Templates",
      "description": "Generate videos from reusable templates by replacing their variables"
    },
    {
      "name": "Audio",
      "description": "Search the background-music and sound-effects catalog"
    },
    {
      "name": "Video Translate",
      "description": "Translate videos into other languages"
    },
    {
      "name": "AI Clipping",
      "description": "Turn long-form videos into ready-to-share short clips with captions"
    },
    {
      "name": "Batches",
      "description": "Create and track batches of videos."
    },
    {
      "name": "Video Translation Batches",
      "description": "Create and track batches of video translations."
    },
    {
      "name": "Lipsync Batches",
      "description": "Create and track batches of lipsyncs."
    },
    {
      "name": "Asset Batches",
      "description": "Create and track batches of direct-to-S3 asset uploads."
    },
    {
      "name": "User",
      "description": "Account information and billing"
    },
    {
      "name": "API Keys",
      "description": "Inspect the API key authenticating the current request"
    },
    {
      "name": "Avatars",
      "description": "List and manage avatars and looks"
    },
    {
      "name": "Assets",
      "description": "Upload files for use in video creation"
    },
    {
      "name": "Folders",
      "description": "Create folders to organize videos and translations in the workspace, and look up any folder, Assets library folders included, by id"
    },
    {
      "name": "Webhooks",
      "description": "Manage webhook endpoints and events"
    },
    {
      "name": "Lipsync",
      "description": "Dub or replace audio on existing videos"
    },
    {
      "name": "Brand",
      "description": "Brand-related resources \u2014 brand kits (colors, fonts, logos) and brand glossaries (custom term translations)"
    },
    {
      "name": "HyperFrames",
      "description": "Render HyperFrames composition zips into video \u2014 separate from /v3/videos"
    },
    {
      "name": "Models",
      "description": ""
    },
    {
      "name": "Filler Word Removal",
      "description": ""
    }
  ],
  "paths": {
    "/v1/video_agent/generate": {
      "post": {
        "summary": "Create a video from a prompt",
        "description": "Creates a video from a text prompt with Video Agent, which picks the avatar, writes the script and produces the video. Runs asynchronously: poll GET /v2/videos/{video_id} with the returned video_id.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    },
                    "data": {
                      "$ref": "#/components/schemas/ExternalCreateVideoAgentSessionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/LegacyAPIError"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/LegacyAPIError"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized"
                  },
                  "data": null
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/LegacyAPIError"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests"
                  },
                  "data": null
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createVideoAgent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalCreateVideoAgentSessionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "video_agent:write"
        ]
      }
    },
    "/v3/video-agents": {
      "post": {
        "summary": "Create Video Agent Session",
        "description": "One-shot video generation from a prompt \u2014 agent handles scripting, avatar selection, scene composition, and rendering. Supports generate (fire-and-forget) and chat (multi-turn) modes.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateVideoAgentResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'prompt' is required and must be 1-10000 characters.",
                    "param": "prompt",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/create-video-agent-session"
        },
        "operationId": "createVideoAgentV3",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoAgentRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "video_agent:write"
        ]
      },
      "get": {
        "summary": "List Video Agent Sessions",
        "description": "Returns a paginated list of video agent sessions for the authenticated user, sorted newest-first.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SessionListItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-video-agent-sessions"
        },
        "operationId": "listVideoAgentSessions",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page. Obtained from next_token in a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "video_agent:read"
        ]
      }
    },
    "/v3/video-agents/styles": {
      "get": {
        "summary": "List Video Agent Styles",
        "description": "Returns curated visual style templates available for Video Agent sessions. Each style controls scene composition, pacing, and aesthetics. Supports tag filtering (e.g. 'cinematic', 'retro-tech').",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/StyleItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 50.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-video-agent-styles"
        },
        "operationId": "listVideoAgentStyles",
        "parameters": [
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Filter by tag (e.g., 'cinematic', 'retro-tech', 'iconic-artist', 'pop-culture', 'handmade', 'print').",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page. Obtained from next_token in a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "video_agent:read"
        ]
      }
    },
    "/v3/brand-glossaries": {
      "get": {
        "summary": "List Brand Glossaries",
        "description": "Lists the brand glossaries in your workspace. A glossary sets how terms are pronounced in generated speech and how they are handled in translation. Pass a `brand_glossary_id` when creating a video or translation to apply it.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BrandGlossaryItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-brand-glossaries"
        },
        "operationId": "listBrandGlossaries",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of brand glossaries to return (1-100). Default 10.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response's `next_token`. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "brand:read"
        ]
      },
      "post": {
        "summary": "Create Brand Glossary",
        "description": "Creates a brand glossary. Pass the returned `brand_glossary_id` when creating a video or translation to apply it. `name` must be unique in the workspace, ignoring case; a duplicate returns 409. Term lists are optional and can be added later with PATCH. `pronunciation_language` and `target_language` accept scope 'all' or scope 'specific' with a base language code such as 'fr'; omission means all languages and null is invalid. Duplicate term/rule-type/language combinations return 409; distinct languages for the same term are allowed. The response includes language fields for specific-language rules. Temporary access-evaluation failures return 503; retry the request.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BrandGlossaryDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'name' must be between 1 and 64 characters.",
                    "param": "name",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks google for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Brand glossary access is temporarily unavailable. Please retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 either the request conflicts with existing state, or a prior request with this `Idempotency-Key` is still in progress (`request_in_progress`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "conflict": {
                    "summary": "Resource conflict",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "A brand glossary with this name already exists.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/create-brand-glossary"
        },
        "operationId": "createBrandGlossary",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBrandGlossaryRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "brand:write"
        ]
      }
    },
    "/v3/brand-kits": {
      "post": {
        "summary": "Create Brand Kit",
        "description": "Creates a brand kit by importing logos, colors and fonts from a public website; by calling it you confirm you have the rights to use those assets. The kit assembles in the background: poll GET /v3/brand-kits/{brand_kit_id} until status is `completed`. Send an Idempotency-Key to make retries safe.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateBrandKitResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "URL is not supported",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "Your workspace settings do not allow creating brand kits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-brand-kit"
        },
        "operationId": "createBrandKit",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBrandKitRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "brand:write"
        ]
      },
      "get": {
        "summary": "List Brand Kits",
        "description": "Returns brand kits available in the authenticated user's workspace. Each brand kit contains colors, fonts, and logos that can be applied to Video Agent sessions. Use the returned brand_kit_id with POST /v3/video-agents to generate on-brand videos.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BrandKitItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-brand-kits"
        },
        "operationId": "listBrandKits",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page. Obtained from next_token in a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "brand:read"
        ]
      }
    },
    "/v3/brand-kits/{brand_kit_id}": {
      "get": {
        "summary": "Get Brand Kit",
        "description": "Returns one brand kit with its colors, logos and fonts and the role each plays. While status is `loading` these are provisional; poll every 2 to 5 seconds until status is `completed`.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BrandKitDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Brand kit not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-brand-kit"
        },
        "operationId": "getBrandKit",
        "parameters": [
          {
            "name": "brand_kit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique brand kit identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "brand:read"
        ]
      },
      "patch": {
        "summary": "Update Brand Kit",
        "description": "Updates a brand kit's name or role assignments: color roles, main logo, heading and body fonts. Omitted fields are unchanged and `null` is rejected. Each role object you send replaces the existing one in full; `{}` clears a role and it stays cleared. Role edits return 409 until the kit is `completed`; shared kits return 403.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BrandKitDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Provide at least one field to update.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Brand kit not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "This brand kit is shared with your workspace and can only be edited by the workspace that owns it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "brand_kit_not_ready",
                    "message": "This brand kit is still being assembled (status 'loading'). Roles can only be edited once it is 'completed'.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-brand-kit"
        },
        "operationId": "updateBrandKit",
        "parameters": [
          {
            "name": "brand_kit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique brand kit identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBrandKitRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "brand:write"
        ]
      },
      "delete": {
        "summary": "Delete Brand Kit",
        "description": "Deletes a brand kit and its colors, logos and fonts. This cannot be undone. Videos already rendered with it are unaffected. A kit shared from another workspace cannot be deleted and returns 403.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteBrandKitResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Brand kit not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "This brand kit is shared with your workspace and can only be deleted by the workspace that owns it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-brand-kit"
        },
        "operationId": "deleteBrandKit",
        "parameters": [
          {
            "name": "brand_kit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique brand kit identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "brand:write"
        ]
      }
    },
    "/v3/brand-glossaries/{brand_glossary_id}": {
      "get": {
        "summary": "Get Brand Glossary",
        "description": "Returns one brand glossary with its full term list. Pronunciations affect generated audio only, not captions. Translation rules (`do_not_translate_terms`, `forced_translations`) apply only to translation features; a list is omitted from the response when it is empty. Language-specific entries include `pronunciation_language` or `target_language`; all-languages entries omit those fields. Specific-language rules override all-languages rules, and Don't Translate takes precedence over Force Translate without deleting it. Tone settings are not returned here. Temporary access-evaluation failures return 503; retry the request.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BrandGlossaryDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Brand glossary not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Brand glossary access is temporarily unavailable. Please retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-brand-glossary"
        },
        "operationId": "getBrandGlossary",
        "parameters": [
          {
            "name": "brand_glossary_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique brand glossary identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "brand:read"
        ]
      },
      "patch": {
        "summary": "Update Brand Glossary",
        "description": "Updates a brand glossary. A field you omit is left untouched, a list you send replaces the existing list in full across all languages, and an empty array removes every entry. Read the glossary and preserve every entry's `pronunciation_language` or `target_language` when sending an edited list; omitting a language field means all languages. A duplicate name or term/rule-type/language combination returns 409. A concurrent-edit conflict also returns 409 without saving the update; fetch the latest glossary and reapply your changes. Clients do not supply revisions. Tone settings are never modified by this endpoint. Temporary access-evaluation failures return 503; retry the request.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BrandGlossaryDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Provide at least one field to update.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Brand glossary not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks google for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Brand glossary access is temporarily unavailable. Please retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "conflict",
                    "message": "A brand glossary with this name already exists.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-brand-glossary"
        },
        "operationId": "updateBrandGlossary",
        "parameters": [
          {
            "name": "brand_glossary_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique brand glossary identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBrandGlossaryRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "brand:write"
        ]
      },
      "delete": {
        "summary": "Delete Brand Glossary",
        "description": "Deletes a brand glossary. This cannot be undone. Its pronunciation terms and translation rules stop applying to anything generated afterwards; videos already generated are unaffected, and requests that still reference it keep working.",
        "tags": [
          "Brand"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteBrandGlossaryResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Brand glossary not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-brand-glossary"
        },
        "operationId": "deleteBrandGlossary",
        "parameters": [
          {
            "name": "brand_glossary_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique brand glossary identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "brand:write"
        ]
      }
    },
    "/v3/avatars": {
      "post": {
        "summary": "Create Avatar",
        "description": "Creates a new avatar from an image, video footage, or a text prompt. Supports photo, digital_twin, and prompt types. Avatar training is asynchronous.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAvatarResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At least one file source is required: provide image, video, or consent_video.",
                    "param": "files",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-avatar"
        },
        "operationId": "createAvatar",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAvatarRequestBody"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      },
      "get": {
        "summary": "List Avatar Groups",
        "description": "Returns a paginated list of avatar groups (characters). Each group contains one or more looks. Filterable by ownership.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AvatarGroupItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 50.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-avatar-groups"
        },
        "operationId": "listAvatarGroups",
        "parameters": [
          {
            "name": "ownership",
            "in": "query",
            "required": false,
            "description": "Filter by ownership: 'public' for preset avatars, or 'private' for your own. Omit for all.",
            "schema": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return per page (1-50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:read"
        ]
      }
    },
    "/v1/audio/text_to_speech": {
      "post": {
        "summary": "Generate speech audio from text",
        "description": "Synthesize speech audio from text using a specified voice. Returns a URL to the generated audio file along with duration and optional word-level timestamps.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TextToSpeechResponseData"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'voice_id' is required.",
                    "param": "voice_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "textToSpeech",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TextToSpeechRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v1/audio/voices": {
      "get": {
        "summary": "List voices for text-to-speech",
        "description": "List voices available for TTS generation with cursor-based pagination. Filter by type (public/private), language, and gender.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AudioVoiceItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listAudioVoices",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Voice type: 'public' for the shared library or 'private' for your cloned voices.",
            "schema": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ],
              "default": "public"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Filter by language (e.g. 'English').",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gender",
            "in": "query",
            "required": false,
            "description": "Filter by gender ('male' or 'female').",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "voices:read"
        ]
      }
    },
    "/v3/audio/sounds": {
      "get": {
        "summary": "Search audio (music or sound effects)",
        "description": "Searches the music or sound-effects catalog by natural-language description (`type=music` by default, or `sound_effects`). Returns tracks ranked by similarity, each with a download URL, paginated by cursor.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AudioSoundItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'query' is required.",
                    "param": "query",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Search is temporarily unavailable. Retry the request after a short delay.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/search-audio-music-or-sound-effects"
        },
        "operationId": "searchAudioSounds",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Natural-language description of the audio you want, e.g. 'upbeat lofi hip-hop' or 'tense cinematic riser'. Results are ranked by semantic similarity to this text.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 5000
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Audio content type to search: 'music' (background-music catalog) or 'sound_effects' (SFX catalog). Defaults to 'music'.",
            "schema": {
              "type": "string",
              "enum": [
                "music",
                "sound_effects"
              ],
              "default": "music"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of results to return (1-50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "required": false,
            "description": "Minimum semantic similarity score (0-1). Tracks scoring below this are omitted.",
            "schema": {
              "type": "number",
              "minimum": 0.0,
              "maximum": 1.0,
              "default": 0.7
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page, taken from 'next_token' in a prior response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      }
    },
    "/v3/voices/speech": {
      "post": {
        "summary": "Generate Speech",
        "description": "Synthesizes speech from text with a catalog voice and returns an audio URL, its duration and optional word timestamps. Omit engine to use the voice's saved default and settings, or set it per request; choose an ElevenLabs model with settings: {model_id: 'eleven_v4'}. Requests that omit engine use HeyGen Voice for most public catalog voices. Set engine only to request a specific engine, for example engine: 'heygen_voice' for HeyGen Voice. The legacy 'orca' input remains accepted; response engine values retain 'orca' for compatibility. A professional HeyGen Voice clone is synthesized by POST /v3/models/audio/tts instead. HTTP 400: the saved default or explicit engine is unsupported, not allowed on your plan, or incompatible with the requested locale or language. HTTP 403 (ai_vendor_access_restricted): workspace vendor policy blocks ElevenLabs and all of its model variants.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateSpeechV3ResponseData"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'voice_id' is required.",
                    "param": "voice_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks elevenlabs for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "Our voice service is temporarily unavailable. Please try again in a moment.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "Our voice service is temporarily unavailable. Please try again in a moment.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-excluded": true,
        "deprecated": true,
        "operationId": "createSpeechV3",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSpeechV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/voices": {
      "post": {
        "summary": "Design a Voice",
        "description": "Returns up to 3 voices matching a natural language description (e.g. 'warm, confident female narrator'). Use the seed parameter to get different batches of results.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DesignVoiceResponseData"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'prompt' is required.",
                    "param": "prompt",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-excluded": true,
        "deprecated": true,
        "operationId": "designVoice",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DesignVoiceRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      },
      "get": {
        "summary": "List Voices",
        "description": "Returns a paginated list of voices, filterable by type, engine, language, and gender. Each voice includes its speech default and available speech engines; a voice with no available engines cannot generate speech.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VoiceV3Item"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-excluded": true,
        "deprecated": true,
        "operationId": "listVoicesV3",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Voice type: 'public' for the shared library or 'private' for your cloned voices.",
            "schema": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ],
              "default": "public"
            }
          },
          {
            "name": "engine",
            "in": "query",
            "required": false,
            "description": "Filter by stored engine mapping. Use 'heygen_voice' for HeyGen Voice; 'orca' remains accepted as its legacy alias. Also accepts 'elevenlabs' or other internal engine names. Response engine values retain 'orca' for compatibility. The deprecated elevenlabs_v3 input alias is also accepted. Available engines may also include engines prepared on first use.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Filter by language (e.g. 'English').",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gender",
            "in": "query",
            "required": false,
            "description": "Filter by gender ('male' or 'female').",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "voices:read"
        ]
      }
    },
    "/v3/voices/clone": {
      "post": {
        "summary": "Clone a Voice",
        "description": "Creates a voice clone from an audio file. Returns a voice_clone_id that can be polled via GET /v3/voices/{voice_clone_id} until the status is 'complete'. The resulting voice can be used with POST /v3/voices/speech and POST /v3/videos.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoiceCloneCreateV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_limit_reached",
                    "message": "Voice clone limit reached (10). Delete unused clones or contact support to increase your limit."
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "plan_upgrade_required",
                    "message": "Voice cloning is not available on the free tier. Please upgrade your plan."
                  }
                }
              }
            }
          }
        },
        "x-excluded": true,
        "deprecated": true,
        "operationId": "cloneVoice",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVoiceCloneV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/models/audio/voices": {
      "post": {
        "summary": "Create or Retrain an Audio Voice",
        "description": "Creates an instant voice with `mode: instant` from one recording, a professional voice with `mode: professional`, or a reusable HeyGen voice from a description in the requested language with `mode: design`. Every mode returns HTTP 202 with voice_id. Poll the voice until it is ACTIVE; a designed voice is ready once its preview_audio_url is set, a URL to a WAV clip of the new voice. An optional speaker image adapts the voice to the speaker's appearance and environment. Free-plan workspaces can make 20 instant-clone calls per rolling day by default. All members share the workspace limit. Text-based voice design has a separate daily limit. Workspace limits can differ. Instant and designed voices also count toward the workspace's voice clone limit, which depends on its plan; at the limit the request fails with `resource_limit_reached` until a voice is deleted. Instant voices do not support retraining. Use POST /v3/models/audio/tts/stream for streaming speech; model defaults to heygen-voice-1. Instant voices ignore seed, speed and pitch controls. Mode is required for both creation and retraining. Retrains a professional voice when `voice_id` is set. The voice is `PENDING` while training; poll GET /v3/models/audio/voices/{voice_id} until it is `ACTIVE` or `FAILED`. A new voice in professional mode needs a free professional-voice slot; each purchased slot provides five pooled trainings per monthly billing period, including the first, and failed trainings do not count. Send an Idempotency-Key to make retries safe.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateModelAudioVoiceResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_audio": {
                    "summary": "Source audio does not satisfy training requirements",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "The supplied recordings must contain at least 20 minutes of audio in total.",
                        "param": "audio",
                        "doc_url": null
                      }
                    }
                  },
                  "voice_capacity": {
                    "summary": "All purchased professional-voice slots are occupied",
                    "value": {
                      "error": {
                        "code": "resource_limit_reached",
                        "message": "No professional voice slots are available. Purchase another slot, or delete a voice after its training finishes."
                      }
                    }
                  },
                  "training_allowance": {
                    "summary": "The monthly professional-voice training allowance is exhausted",
                    "value": {
                      "error": {
                        "code": "resource_limit_reached",
                        "message": "The monthly professional voice training allowance is exhausted. Try again in the next billing period or purchase another slot."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_not_found",
                    "message": "Voice not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Professional voice source audio ingestion is temporarily unavailable. Retry with the same Idempotency-Key.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 either the request conflicts with existing state, or a prior request with this `Idempotency-Key` is still in progress (`request_in_progress`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "conflict": {
                    "summary": "Resource conflict",
                    "value": {
                      "error": {
                        "code": "resource_not_ready",
                        "message": "The professional voice must be ACTIVE and have no training in progress before it can be retrained.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/create-or-retrain-an-audio-voice"
        },
        "operationId": "createModelAudioVoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAudioVoiceRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      },
      "get": {
        "summary": "List Audio Voices",
        "description": "Returns model-backed audio voices. With the default `type=private`, these are the voices in the caller's workspace, professional and instant, ordered newest first; `mode` tells them apart. With `type=public`, these are the voices HeyGen provides to every workspace, best first. Filter the public list with `language`, `gender` and `age`, or search it with `query`. A public page holds at most 50 voices. Use `limit` and `token` to retrieve additional pages. A token works only with the `type` and filters that returned it.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ModelAudioVoiceResponse"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid pagination token",
                    "param": "token",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-audio-voices"
        },
        "operationId": "listModelAudioVoices",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "`private` lists the voices your workspace created. `public` lists the voices HeyGen provides to every workspace.",
            "schema": {
              "type": "string",
              "enum": [
                "private",
                "public"
              ],
              "default": "private"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of voices to return per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Public list only. Language code, such as `en`. Without `query` or `age`, voices that speak many languages also match.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 8
            }
          },
          {
            "name": "gender",
            "in": "query",
            "required": false,
            "description": "Public list only. Voice gender.",
            "schema": {
              "type": "string",
              "enum": [
                "male",
                "female"
              ]
            }
          },
          {
            "name": "age",
            "in": "query",
            "required": false,
            "description": "Public list only. Voice age group.",
            "schema": {
              "type": "string",
              "enum": [
                "young",
                "middle_aged",
                "old"
              ]
            }
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "Public list only. Free text matched against voice names and descriptions, such as `warm narrator`. Results are ordered by relevance.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination token returned by a previous request.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-heygen-required-scopes": [
          "voices:read"
        ]
      }
    },
    "/v3/models/audio/sts": {
      "post": {
        "summary": "Convert Speech",
        "description": "Convert a recording into an ACTIVE instant voice in your workspace. Professional voice clones are not supported. The words and timing stay the same. The response contains one WAV URL and its duration in seconds.\n\nUse an API key with voices:write or an OAuth bearer token. OAuth requires a paid plan. The limit is 30 requests per minute per workspace member.\n\nThe source can contain up to 300 seconds of audio. Use a public HTTPS URL, an uploaded asset, or base64 audio. URL downloads must finish within 60 seconds. Set a client timeout of at least 160 seconds.\n\nThe optional model_id defaults to heygen-voice-sts-0. The optional seed requests best-effort repeatable generation. Set remove_background_noise to true to clean the source before conversion. This adds latency.\n\nSend Idempotency-Key for safe retries. The same key and body replay the completed result without another charge for 24 hours. Keys are scoped to the workspace and this endpoint. A running request returns 409 request_in_progress. A different body with the same key returns 409 conflict. A keyed request continues after a client disconnect and can still be charged. Without a key, a disconnect before the charge cancels the request without a charge. After a timeout, wait before retrying with the same key. The conversion can still be running.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Converted speech. The audio_url points to a WAV. Duration is in seconds and matches the source.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateSpeechConversionResponseData"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "The request identifier. Use this ID when you contact support.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "The audio must contain valid speech and must not exceed 300 seconds.",
                    "param": "audio",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "An API key or OAuth token is required."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Payment required \u2014 `error.code` is one of: `insufficient_credit`, `plan_upgrade_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "insufficient_credit": {
                    "summary": "Insufficient credits",
                    "value": {
                      "error": {
                        "code": "insufficient_credit",
                        "message": "The balance does not cover the source duration.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "plan_upgrade_required": {
                    "summary": "OAuth requires a paid plan",
                    "value": {
                      "error": {
                        "code": "plan_upgrade_required",
                        "message": "OAuth speech conversion requires a paid plan."
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_not_found",
                    "message": "Voice not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden \u2014 `error.code` is one of: `insufficient_api_key_scope`, `resource_access_denied`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "insufficient_api_key_scope": {
                    "summary": "Missing scope",
                    "value": {
                      "error": {
                        "code": "insufficient_api_key_scope",
                        "message": "The API key requires voices:write."
                      }
                    }
                  },
                  "resource_access_denied": {
                    "summary": "Role has no API access",
                    "value": {
                      "error": {
                        "code": "resource_access_denied",
                        "message": "Your role does not permit API access."
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Conversion is unavailable, or the source download timed out. Retry after the Retry-After delay.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "504": {
            "description": "Conversion exceeded 150 seconds. It can still be running. Wait before retrying with the same key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "Conversion exceeded 150 seconds. It can still be running. Wait before retrying with the same key.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `voice_not_ready`, `voice_training_failed`, `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "voice_not_ready": {
                    "summary": "Voice preparation is incomplete",
                    "value": {
                      "error": {
                        "code": "voice_not_ready",
                        "message": "Retry after the Retry-After delay.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "voice_training_failed": {
                    "summary": "Voice creation failed",
                    "value": {
                      "error": {
                        "code": "voice_training_failed",
                        "message": "Use another voice.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "A request with this key is running",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "Retry after the Retry-After delay.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The key was used with another body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "Use a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait for voice_not_ready or request_in_progress.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "internal_error",
                    "message": "The conversion failed."
                  }
                }
              }
            },
            "description": "Conversion failed, or an unexpected error occurred."
          }
        },
        "x-mint": {
          "href": "/reference/convert-model-speech"
        },
        "operationId": "convertModelSpeech",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Optional key, scoped to the workspace and this endpoint. The same key and body replay the result for 24 hours without another charge. A different body returns 409 conflict. A running request returns 409 request_in_progress.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-:.]{1,255}$",
              "minLength": 1,
              "maxLength": 255
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSpeechConversionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/models/audio/tts": {
      "post": {
        "summary": "Generate Speech",
        "description": "Generate speech from the voice identified by `voice_id`.\n\nThe request stays open until speech generation finishes. The response contains an audio URL: a 44.1 kHz mono WAV by default, or the requested `output_format`.\n\n### Voice and settings\n\nUse an `ACTIVE` HeyGen Voice clone in your workspace. `heygen-voice-1-turbo` speaks instant clones at lower latency and refuses professional clones.\n\n`seed`, `speed`, `pitch_shift`, and `pitch_variance` apply only to professional clones. Instant clones, including Turbo, accept and ignore these controls.\n\n### Turbo Free\n\nUse `heygen-voice-1-turbo-free` for instant voices without charge, including API-key and OAuth requests. This model is available to direct users and resellers for experimentation and prototyping. It has no latency, time-to-first-audio, or availability guarantee.\n\nPer-user request limits and shared free capacity both apply. Either limit can return HTTP 429 with `code=rate_limit_exceeded`. Shared capacity can be exhausted even when you are below your own request limit. A timeout or service failure can return HTTP 500. Follow `Retry-After` when present; otherwise use exponential backoff. A free request never switches to a paid model. For streaming, HTTP 429 is returned before audio starts.\n\n### Language\n\nSet `language` to the language of `text`. If you omit it, the language is detected from `text`. Successful responses include `Content-Language`, the language the speech was generated in.\n\n### Limits and request ID\n\nThe rate limit is 30 requests per minute per workspace member.\nHigh demand can exceed the available capacity for speech generation. The service then returns HTTP 429 with `code=rate_limit_exceeded`. This response has no `Retry-After` header. Retry the request with exponential backoff. For streaming, the service returns HTTP 429 only before the response starts.\n\nSuccessful responses include `X-Request-Id`. Use this ID when you contact support about the request. For instant clones, completed requests automatically retain audio for request stitching when speech retention is allowed. Pass completed IDs in `previous_request_ids` or `next_request_ids` to keep continuity. Use up to three IDs per field in playback order, from the same workspace, voice, and model, within two hours. Finish reading a stream before reusing its ID. If context is unavailable, synthesis continues with its normal defaults. Stitching is unavailable when speech retention is disabled.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateSpeechResponseData"
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "The request identifier. Use it for support or as stitching context after generation completes.",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Language": {
                "description": "The language the speech was generated in.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "Unsupported language",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "language is not a supported language.",
                        "param": "language",
                        "doc_url": null
                      }
                    }
                  },
                  "invalid_voice_id": {
                    "summary": "Voice missing or inaccessible in the caller's workspace",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Voice not found",
                        "param": "voice_id",
                        "doc_url": null
                      }
                    }
                  },
                  "language_not_detected": {
                    "summary": "Language omitted and not detected from text",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Could not detect a supported language in text. Set language to the language of the text.",
                        "param": "language",
                        "doc_url": null
                      }
                    }
                  },
                  "voice_expired": {
                    "summary": "Professional voice clone over the workspace slot limit",
                    "value": {
                      "error": {
                        "code": "voice_expired",
                        "message": "Professional voice clone 'voice-1' expired because this workspace exceeded its professional voice clone slot limit of 2. Purchase more professional voice clone slots, or delete other professional voice clones to bring the workspace within its limit, then try again.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "API key or OAuth token required",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Payment required \u2014 `error.code` is one of: `usage_limit_reached`, `insufficient_credit`, `plan_upgrade_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "usage_limit_reached": {
                    "summary": "A workspace usage limit or an API key's credit limit was reached",
                    "value": {
                      "error": {
                        "code": "usage_limit_reached",
                        "message": "Usage limit reached. Ask a workspace administrator to check your limit."
                      }
                    }
                  },
                  "insufficient_credit": {
                    "summary": "Insufficient credits in the selected billing wallet",
                    "value": {
                      "error": {
                        "code": "insufficient_credit",
                        "message": "Insufficient credits. Please upgrade your plan or purchase additional credits.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "plan_upgrade_required": {
                    "summary": "OAuth speech requires a paid plan",
                    "value": {
                      "error": {
                        "code": "plan_upgrade_required",
                        "message": "Professional voice speech through OAuth requires a paid plan. Please upgrade your subscription.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "The upstream voice provider failed. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Voice inference is temporarily busy. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "The upstream voice provider timed out. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `voice_not_ready`, `voice_training_failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "voice_not_ready": {
                    "summary": "Voice creation is not complete",
                    "value": {
                      "error": {
                        "code": "voice_not_ready",
                        "message": "The voice clone is not ready for inference.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "voice_training_failed": {
                    "summary": "Voice creation failed",
                    "value": {
                      "error": {
                        "code": "voice_training_failed",
                        "message": "The voice clone failed to train or design.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/generate-model-speech"
        },
        "operationId": "generateModelSpeech",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSpeechRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/models/audio/tts/stream": {
      "post": {
        "summary": "Stream Speech",
        "description": "Stream speech from the voice identified by `voice_id`.\n\nSet `output_format` to request raw PCM16, MP3, mu-law, or A-law audio bytes without SSE framing. Raw streams require `with_timestamps=false`; a failure after audio begins terminates the connection. `X-Audio-Sample-Rate` and `X-Audio-Channels` identify the audio parameters.\nOtherwise, the response sends base64 WAV parts as Server-Sent Events (SSE). Set `with_timestamps` to `true` to include one alignment event after the audio. This event contains character and word timings for original and normalized text. Words use Unicode boundaries, without dictionary segmentation. A successful stream ends with `data: [DONE]`.\n\n### WebSocket input streaming\n\nTo send `text` in pieces as it is produced, such as LLM tokens, open a WebSocket instead. Use `wss://api.heygen.com/v3/models/audio/tts/stream-input?voice_id=<voice_id>` for one synthesis, or `wss://api.heygen.com/v3/models/audio/tts/multi-stream-input?voice_id=<voice_id>` for up to five concurrent contexts on one socket. Messages use the ElevenLabs `stream-input` and `multi-stream-input` formats: send `{\"text\": \" \"}` to open, then the text pieces, `flush` to generate what is buffered, and `{\"text\": \"\"}` to end the input. Audio returns as base64 `audio` messages in `output_format` (default `pcm_44100`).\n\nAuthenticate the handshake with the same headers as this endpoint. A client that cannot set headers, such as a browser, calls `POST /v3/models/audio/tts/stream-input/tokens` and passes the returned `token` as a query parameter. A token is valid for 15 minutes and for one connection.\n\nQuery parameters use the names of this endpoint, such as `model`, `language`, and `with_timestamps`. The sockets serve instant clones on `heygen-voice-1`, `heygen-voice-1-turbo`, and `heygen-voice-1-turbo-free`, and refuse professional clones. Each context accepts up to 10,000 characters and is billed as one request. On a socket, Turbo Free counts a request when each context opens and counts text as each piece is sent for synthesis. A socket over the free quota closes with code 1008, which can come after earlier audio.\n\nA workspace can have a limit on open sockets, at most the API concurrency of its plan. Sockets opened with an API key count against the API plan, and sockets opened by an OAuth app count against the web plan, each separately. The limit is off by default. When it is on, a handshake past the limit gets HTTP 429 with `code=rate_limit_exceeded` and a `Retry-After` header. Retry that handshake after the `Retry-After` time.\n\n### Voice and settings\n\nUse an `ACTIVE` HeyGen Voice clone in your workspace. `heygen-voice-1-turbo` speaks instant clones at lower latency and refuses professional clones.\n\n`seed`, `speed`, `pitch_shift`, and `pitch_variance` apply only to professional clones. Instant clones, including Turbo, accept and ignore these controls.\n\n### Turbo Free\n\nUse `heygen-voice-1-turbo-free` for instant voices without charge, including API-key and OAuth requests. This model is available to direct users and resellers for experimentation and prototyping. It has no latency, time-to-first-audio, or availability guarantee.\n\nPer-user request limits and shared free capacity both apply. Either limit can return HTTP 429 with `code=rate_limit_exceeded`. Shared capacity can be exhausted even when you are below your own request limit. A timeout or service failure can return HTTP 500. Follow `Retry-After` when present; otherwise use exponential backoff. A free request never switches to a paid model. For streaming, HTTP 429 is returned before audio starts.\n\n### Language\n\nSet `language` to the language of `text`. If you omit it, the language is detected from `text`. Successful responses include `Content-Language`, the language the speech was generated in.\n\n### Limits and request ID\n\nThe rate limit is 30 requests per minute per workspace member.\nHigh demand can exceed the available capacity for speech generation. The service then returns HTTP 429 with `code=rate_limit_exceeded` and no `Retry-After` header. Retry the request with exponential backoff. The socket-limit handshake response also has `code=rate_limit_exceeded`, but it has `Retry-After`. For streaming, the service returns HTTP 429 only before the response starts.\n\nSuccessful responses include `X-Request-Id`. Use this ID when you contact support about the request. For instant clones, completed requests automatically retain audio for request stitching when speech retention is allowed. Pass completed IDs in `previous_request_ids` or `next_request_ids` to keep continuity. Use up to three IDs per field in playback order, from the same workspace, voice, and model, within two hours. Finish reading a stream before reusing its ID. If context is unavailable, synthesis continues with its normal defaults. Stitching is unavailable when speech retention is disabled.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Raw audio bytes when `output_format` is supplied; otherwise a Server-Sent Events stream. Each `data:` frame contains an audio, alignment, or terminal error event; a clean stream terminates with `data: [DONE]`.",
            "content": {
              "text/event-stream": {
                "schema": {
                  "$ref": "#/components/schemas/SpeechStreamEvent"
                }
              },
              "audio/pcm": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/basic": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/alaw": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "The request identifier. Use it for support or as stitching context after generation completes.",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Language": {
                "description": "The language the speech was generated in.",
                "schema": {
                  "type": "string"
                }
              },
              "X-Audio-Sample-Rate": {
                "description": "Sample rate in Hz. Present only for raw audio output.",
                "schema": {
                  "type": "string"
                }
              },
              "X-Audio-Channels": {
                "description": "Channel count. Present only for raw audio output.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "Unsupported language",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "language is not a supported language.",
                        "param": "language",
                        "doc_url": null
                      }
                    }
                  },
                  "invalid_voice_id": {
                    "summary": "Voice missing or inaccessible in the caller's workspace",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Voice not found",
                        "param": "voice_id",
                        "doc_url": null
                      }
                    }
                  },
                  "language_not_detected": {
                    "summary": "Language omitted and not detected from text",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Could not detect a supported language in text. Set language to the language of the text.",
                        "param": "language",
                        "doc_url": null
                      }
                    }
                  },
                  "voice_expired": {
                    "summary": "Professional voice clone over the workspace slot limit",
                    "value": {
                      "error": {
                        "code": "voice_expired",
                        "message": "Professional voice clone 'voice-1' expired because this workspace exceeded its professional voice clone slot limit of 2. Purchase more professional voice clone slots, or delete other professional voice clones to bring the workspace within its limit, then try again.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "API key or OAuth token required",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Payment required \u2014 `error.code` is one of: `usage_limit_reached`, `insufficient_credit`, `plan_upgrade_required`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "usage_limit_reached": {
                    "summary": "A workspace usage limit or an API key's credit limit was reached",
                    "value": {
                      "error": {
                        "code": "usage_limit_reached",
                        "message": "Usage limit reached. Ask a workspace administrator to check your limit."
                      }
                    }
                  },
                  "insufficient_credit": {
                    "summary": "Insufficient credits in the selected billing wallet",
                    "value": {
                      "error": {
                        "code": "insufficient_credit",
                        "message": "Insufficient credits. Please upgrade your plan or purchase additional credits.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "plan_upgrade_required": {
                    "summary": "OAuth speech requires a paid plan",
                    "value": {
                      "error": {
                        "code": "plan_upgrade_required",
                        "message": "Professional voice speech through OAuth requires a paid plan. Please upgrade your subscription.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "The upstream voice provider failed. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Voice inference is temporarily busy. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "The upstream voice provider timed out. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `voice_not_ready`, `voice_training_failed`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "voice_not_ready": {
                    "summary": "Voice creation is not complete",
                    "value": {
                      "error": {
                        "code": "voice_not_ready",
                        "message": "The voice clone is not ready for inference.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "voice_training_failed": {
                    "summary": "Voice creation failed",
                    "value": {
                      "error": {
                        "code": "voice_training_failed",
                        "message": "The voice clone failed to train or design.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/stream-speech"
        },
        "operationId": "streamModelSpeech",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StreamSpeechRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/models/audio/tts/stream-input/tokens": {
      "post": {
        "summary": "Create Speech Input Token",
        "description": "Create a single-use token that authenticates one WebSocket handshake to `/v3/models/audio/tts/stream-input` or `/v3/models/audio/tts/multi-stream-input` as the caller. Use it for a client that cannot set headers, such as a browser: your backend creates the token with its API key, and the client connects with `?token=<token>`.\n\nThe token is valid until `expires_at`: 15 minutes, or less when the API key or OAuth access token expires sooner. The first accepted handshake uses it. A handshake refused for a bad parameter does not use it. A key with no time left gets HTTP 401. The response has `Cache-Control: no-store`.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SpeechInputTokenData"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_api_key_scope",
                    "message": "The API key's policy lacks `voices:write`.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/create-speech-input-token"
        },
        "operationId": "createModelSpeechInputToken",
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/models/audio/voices/{voice_id}": {
      "get": {
        "summary": "Get an Audio Voice",
        "description": "Returns one model-backed audio voice, owned by the caller's workspace or public, and its current lifecycle state. `PENDING` covers queued and running work, `ACTIVE` is ready for inference, and `FAILED` is terminal. An instant voice is `ACTIVE` as soon as it can speak.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelAudioVoiceResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_not_found",
                    "message": "Voice not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-an-audio-voice"
        },
        "operationId": "getModelAudioVoice",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique voice identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "voices:read"
        ]
      },
      "delete": {
        "summary": "Delete an Audio Voice",
        "description": "Deletes the caller-owned model-backed audio voice. The voice is removed from subsequent reads. A professional voice cannot be deleted while its status is `PENDING`: wait for training to finish and retry. Deleting an instant voice that is still being created cancels it. Repeating a successful deletion returns the same successful response.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteModelAudioVoiceResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_not_found",
                    "message": "Voice not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_ready",
                    "message": "A professional voice cannot be deleted while training is in progress. Wait until its status is ACTIVE or FAILED, then retry.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-an-audio-voice"
        },
        "operationId": "deleteModelAudioVoice",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique voice identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v3/voices/{voice_id}": {
      "get": {
        "summary": "Get Voice",
        "description": "Returns details for a specific voice, including clone workflow status when available. Use this to poll a voice clone until its status is 'complete'.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoiceDetailV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_not_found",
                    "message": "Voice not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-excluded": true,
        "deprecated": true,
        "operationId": "getVoice",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique voice identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "voices:read"
        ]
      },
      "delete": {
        "summary": "Delete a Voice",
        "description": "Deletes a voice clone you own and frees its place in your clone limit. A voice used by a template cannot be deleted. An unknown or already-deleted voice returns 404 `voice_not_found`; treat that as success in delete-then-list flows.",
        "tags": [
          "Voices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VoiceDeleteV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_not_found",
                    "message": "Voice not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "Voice is associated with an active template, please change the voice used in that template first before deleting this voice",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-excluded": true,
        "deprecated": true,
        "operationId": "deleteVoice",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique voice identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "voices:write"
        ]
      }
    },
    "/v2/videos": {
      "post": {
        "summary": "Create an avatar video",
        "description": "Creates a video from an avatar or image with an explicit avatar, voice and script. Runs asynchronously: poll GET /v2/videos/{video_id}. For a video planned from a prompt, use Video Agent.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAvatarVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "Invalid visual source",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Exactly one visual source required: avatar_id, image_url, or image_asset_id.",
                        "param": "avatar_id",
                        "doc_url": null
                      }
                    }
                  },
                  "avatar_not_usable": {
                    "summary": "Avatar cannot be used",
                    "value": {
                      "error": {
                        "code": "avatar_not_usable",
                        "message": "This avatar cannot be used because it did not pass content moderation.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_ready",
                    "message": "This avatar is still processing. Wait for avatar creation to complete, then try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createAvatarVideo",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAvatarVideoRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      },
      "get": {
        "summary": "List videos",
        "description": "List videos in the account with pagination and optional filtering.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listVideos",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "folder_id",
            "in": "query",
            "required": false,
            "description": "Filter videos by folder ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "title",
            "in": "query",
            "required": false,
            "description": "Filter videos by title substring",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v2/videos/{video_id}": {
      "get": {
        "summary": "Get video details",
        "description": "Get detailed information about a video including status, URLs, and metadata. Supports both generated and translated videos.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getVideo",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      },
      "delete": {
        "summary": "Delete a video",
        "description": "Permanently delete a video. Supports both generated and translated videos.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "deleteVideo",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/videos": {
      "post": {
        "summary": "Create Video",
        "description": "Creates an avatar video: a HeyGen avatar or an image speaks your script or audio with lip-sync. Choose Avatar III, IV or V with `engine` (Avatar IV by default). To generate a whole scene from a prompt instead, use POST /v3/models/videos.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateVideoV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "Invalid visual source",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Exactly one visual source required: avatar_id, image_url, or image_asset_id.",
                        "param": "avatar_id",
                        "doc_url": null
                      }
                    }
                  },
                  "avatar_not_usable": {
                    "summary": "Avatar cannot be used",
                    "value": {
                      "error": {
                        "code": "avatar_not_usable",
                        "message": "This avatar cannot be used because it did not pass content moderation.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `resource_not_ready`, `request_in_progress`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "resource_not_ready": {
                    "summary": "Avatar is still processing",
                    "value": {
                      "error": {
                        "code": "resource_not_ready",
                        "message": "This avatar is still processing. Wait for avatar creation to complete, then try again.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/create-video"
        },
        "operationId": "createVideo",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoV3RequestBody"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      },
      "get": {
        "summary": "List Videos",
        "description": "Returns a paginated list of all videos in the account. Filterable by folder_id or title substring.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-videos"
        },
        "operationId": "listVideosV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "folder_id",
            "in": "query",
            "required": false,
            "description": "Filter videos by folder ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "title",
            "in": "query",
            "required": false,
            "description": "Filter videos by title substring",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v3/videos/{video_id}": {
      "get": {
        "summary": "Get Video",
        "description": "Returns details for a video including status, video_url, thumbnail_url, duration, and failure info if applicable.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-video"
        },
        "operationId": "getVideoV3",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      },
      "post": {
        "summary": "Edit Video",
        "description": "Edits a video and renders it again under the same `video_id`. Send the `edit_version` from GET /v3/videos/{video_id}/scenes; a stale version returns 409. The render is charged as an API render. `Idempotency-Key` is required; if the key store is unavailable, a retry can render, and charge, a second time. Follow the render with GET /v3/videos/{video_id} or a webhook.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    },
                    "data": {
                      "$ref": "#/components/schemas/EditVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "edit_not_supported",
                    "message": "'scenes.script.text.voice_id' cannot be edited through the API yet. Remove 'scenes.0.script.0.voice_id' from the request.",
                    "param": "scenes.0.script.0.voice_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Not enough credits to render this video.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "render_not_started",
                    "message": "The render did not start, and the video's document has changed since you read it. Read the scenes for the new edit_version, then call again with no edits to render it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `stale_edit_version`, `resource_not_ready`, `conflict`, `request_in_progress`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "stale_edit_version": {
                    "summary": "The video changed since the scenes read",
                    "value": {
                      "error": {
                        "code": "stale_edit_version",
                        "message": "The video changed after its scenes were read. Fetch the scenes again and retry with the new edit_version.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "resource_not_ready": {
                    "summary": "The video is rendering",
                    "value": {
                      "error": {
                        "code": "resource_not_ready",
                        "message": "Video v_91c3 is rendering. Retry once the render finishes.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The same Idempotency-Key with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with the same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "editVideoV3",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          },
          {
            "$ref": "#/components/parameters/RequiredIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditVideoRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      },
      "delete": {
        "summary": "Delete Video",
        "description": "Permanently deletes a video and its associated files. This action cannot be undone.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-video"
        },
        "operationId": "deleteVideoV3",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/videos/{video_id}/scenes": {
      "get": {
        "summary": "Get Video Scenes",
        "description": "Returns a video's scenes as it stands now, with the `edit_version` to send when editing. Each scene has a `background`, placed `elements` and a `script`. Skip element types you do not recognize. Geometry, text content, animations and background music are not described. A video whose editor document is still being prepared returns `409 resource_not_ready`; retry after it advances.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    },
                    "data": {
                      "$ref": "#/components/schemas/VideoScenesResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_ready",
                    "message": "The editor document is not ready yet. Retry after the video has finished preparing.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-video-scenes"
        },
        "operationId": "getVideoScenesV3",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v3/videos/{video_id}/deliveries": {
      "post": {
        "summary": "Redeliver Video Files",
        "description": "Uploads a finished avatar video's files again, to fresh presigned PUT URLs: for example after the URL sent with output_upload expired. Send a target for each file to upload again. Each file's outcome is reported by a video_delivery.success or video_delivery.fail webhook and on GET /v3/videos/{video_id}. Available to enabled workspaces.",
        "tags": [
          "Videos"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    },
                    "data": {
                      "$ref": "#/components/schemas/RedeliveryResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_upload_url": {
                    "summary": "An upload URL is refused",
                    "value": {
                      "error": {
                        "code": "invalid_upload_url",
                        "message": "upload URL must stay valid for at least 60 minutes; sign it for longer",
                        "param": "output_upload.video.url",
                        "doc_url": null
                      }
                    }
                  },
                  "content_policy_violation": {
                    "summary": "Moderation rejected the video",
                    "value": {
                      "error": {
                        "code": "content_policy_violation",
                        "message": "Moderation rejected this video, so its files can't be delivered.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "invalid_parameter": {
                    "summary": "The video failed to render",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "The video failed to render, so it has no files to deliver.",
                        "param": "video_id",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "output_upload_not_enabled",
                    "message": "Uploading outputs to your own storage is not enabled for this workspace",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `resource_not_ready`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "resource_not_ready": {
                    "summary": "The video is rendering, or held for moderation review",
                    "value": {
                      "error": {
                        "code": "resource_not_ready",
                        "message": "The video has not finished rendering yet.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "A concurrent redelivery staged the same file",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "Another redelivery of this video changed the same file at the same time. Retry the request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "redeliverVideoV3",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeliveryRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/templates": {
      "get": {
        "summary": "List Templates",
        "description": "Returns a paginated list of API-ready templates in the workspace. Templates are created and edited in the HeyGen web editor; only templates with variables defined are listed.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TemplateListItemV3"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid pagination token",
                    "param": "token",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-templates"
        },
        "operationId": "listTemplatesV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of templates to return per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination token from a previous response's next_token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "templates:read"
        ]
      },
      "post": {
        "summary": "Create Template from Video",
        "description": "Creates a private template from one of your videos, copying its scenes, avatars, script and media. URL-to-Video and older editor videos return `template_source_unsupported`. The template starts with no variables; declare them with PUT /v3/templates/{template_id}/variables.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TemplateDetailV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "template_source_unsupported",
                    "message": "Video 7c1f0b2e3d4a4f5e8a9b0c1d2e3f4a5b has no editable draft in the current editor format (draft version 2), so it cannot become a template.",
                    "param": "video_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "video_not_found",
                    "message": "Video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "Template creation is restricted by your workspace settings. Ask a workspace admin to allow it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-template-from-video"
        },
        "operationId": "createTemplateV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "templates:write",
          "videos:read"
        ]
      }
    },
    "/v3/templates/{template_id}": {
      "patch": {
        "summary": "Update Template",
        "description": "Renames a template. Other properties are edited in the HeyGen editor or through PUT /v3/templates/{template_id}/variables. Returns the template detail.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TemplateDetailV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "template_not_found",
                    "message": "Template not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "Template creation is restricted by your workspace settings. Ask a workspace admin to allow it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-template"
        },
        "operationId": "updateTemplateV3",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique template identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "templates:write"
        ]
      },
      "delete": {
        "summary": "Delete Template",
        "description": "Soft-deletes a template. It disappears from the list and can no longer be used to generate videos; videos already generated from it are unaffected. Templates managed by another HeyGen product cannot be deleted here.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteTemplateV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "template_not_found",
                    "message": "Template not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "Template creation is restricted by your workspace settings. Ask a workspace admin to allow it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-template"
        },
        "operationId": "deleteTemplateV3",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique template identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "templates:write"
        ]
      },
      "get": {
        "summary": "Get Template",
        "description": "Returns template details including its variable schema (with current default values) and scenes. Variable defaults are returned in the same shape the generate request accepts, so a response can be edited and posted back. Only draft version 4 templates (the current editor format) are supported.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TemplateDetailV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "template_not_found",
                    "message": "Template not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-template"
        },
        "operationId": "getTemplateV3",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique template identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "templates:read"
        ]
      },
      "post": {
        "summary": "Generate Video from Template",
        "description": "Generates a video from a template by filling its variables. Use `scene_ids` to select, reorder or repeat the template's existing scenes. Poll GET /v3/videos/{video_id} or use webhooks for completion. An idempotent replay returns the original response, not the video's current state.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Variable 'company_name' is not defined in this template.",
                    "param": "variables",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "template_not_found",
                    "message": "Template not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/generate-video-from-template"
        },
        "operationId": "generateFromTemplateV3",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique template identifier"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateFromTemplateV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "templates:read",
          "videos:write"
        ]
      }
    },
    "/v3/templates/{template_id}/variables": {
      "put": {
        "summary": "Set Template Variables",
        "description": "Replaces a template's full set of variables: any variable you omit is removed. Media, character and voice variables bind to a node by `element_id`, listed under `composition` in GET /v3/templates/{template_id}. A text variable with `match` turns that text into a `{{name}}` placeholder.",
        "tags": [
          "Templates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TemplateDetailV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "variable_match_not_found",
                    "message": "Text 'Acme' for variable 'company' was not found in the template.",
                    "param": "variables.company.match",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "template_not_found",
                    "message": "Template not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "Template creation is restricted by your workspace settings. Ask a workspace admin to allow it.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "The template's element metadata could not be read, so the character variable was not stored. Retry the request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `stale_edit_version`, `template_update_in_progress`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "stale_edit_version": {
                    "summary": "expected_edit_version no longer matches the template",
                    "value": {
                      "error": {
                        "code": "stale_edit_version",
                        "message": "Template tmpl_123 is at edit_version 4, not 3. Re-read it with GET /v3/templates/tmpl_123 and send the variable set again with the current edit_version.",
                        "param": "expected_edit_version",
                        "doc_url": null
                      }
                    }
                  },
                  "template_update_in_progress": {
                    "summary": "Another write to the template is in progress",
                    "value": {
                      "error": {
                        "code": "template_update_in_progress",
                        "message": "Another update to template tmpl_123 is in progress. Retry in a moment.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/set-template-variables"
        },
        "operationId": "setTemplateVariablesV3",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique template identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTemplateVariablesV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "templates:write"
        ]
      }
    },
    "/v3/background-removals": {
      "post": {
        "summary": "Create Background Removal",
        "description": "Submits a video for background removal and returns a job; poll Get Background Removal with its id. A completed job has download URLs for the requested layers: `foreground`, `mask` and `background`. For idempotency, send `request_id` in the body. Available on all plans with sufficient credits. Failed jobs are refunded. An insufficient-credit response allows retrying the same `request_id` after topping up; a concurrent replay may return a pending job that is removed if payment is refused. After a job is claimed, other submission failures retain a failed job; use a new `request_id` to try again. The `request_id` inside an error body identifies the HTTP request for support; it is not this idempotency key.",
        "tags": [
          "Background Removal"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BackgroundRemovalJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-excluded": true,
        "operationId": "createBackgroundRemoval",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBackgroundRemovalRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "background_removal:write"
        ]
      },
      "get": {
        "summary": "List Background Removals",
        "description": "Returns a paginated list of background removal jobs for the account, newest first.",
        "tags": [
          "Background Removal"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BackgroundRemovalJob"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-excluded": true,
        "operationId": "listBackgroundRemovals",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of jobs to return (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "background_removal:read"
        ]
      }
    },
    "/v3/background-removals/{job_id}": {
      "get": {
        "summary": "Get Background Removal",
        "description": "Returns a background removal job including its status and, once completed, presigned download URLs for the produced layers.",
        "tags": [
          "Background Removal"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BackgroundRemovalJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Background removal job not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-excluded": true,
        "operationId": "getBackgroundRemoval",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Background removal job id"
          }
        ],
        "x-heygen-required-scopes": [
          "background_removal:read"
        ]
      },
      "delete": {
        "summary": "Delete Background Removal",
        "description": "Soft-deletes a background removal job.",
        "tags": [
          "Background Removal"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BackgroundRemovalDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Background removal job not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-excluded": true,
        "operationId": "deleteBackgroundRemoval",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Background removal job id"
          }
        ],
        "x-heygen-required-scopes": [
          "background_removal:write"
        ]
      }
    },
    "/v3/models/audio/transcriptions": {
      "post": {
        "summary": "Create Model Transcription",
        "description": "Transcribe audio with heygen-asr-1. Accepts WAV or MP3 as inline base64 up to 16 MiB or an accessible uploaded audio asset ID up to 32 MiB. Raw URL inputs are rejected. Asset access and contents are checked on each retry; changed audio with the same Idempotency-Key returns 409. Requires a non-trial API key with assets:write. Audio must decode to at most 30 minutes. Requires Idempotency-Key: identical retries return the stored result; a different request with the same key or a pending request returns 409. Charges API credits; failed calls are refunded. Returns the transcript and charged usage synchronously.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelTranscriptionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createModelTranscription",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateModelTranscriptionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/audio/transcriptions": {
      "post": {
        "summary": "Create Transcription",
        "description": "Transcribe an audio or video file with `scribe-v2`. The request waits for the transcript and answers 200 with it. Audio is limited to 10 minutes with `diarize` on and 30 minutes with it off. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original result instead of transcribing again, and a duplicate sent while the original is still running gets 409 `request_in_progress`. A request the workspace's API credits cannot cover is refused with 402 `insufficient_credit` before the model runs. The credits are charged once the transcript is made, and a failed transcription is not charged. If the balance no longer covers the charge when the transcript is ready, the request answers 402 `insufficient_credit` without it. Read `status` rather than assuming the POST finished the transcription.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The finished transcription with its transcript.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TranscriptionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Transcription with speaker labels accepts up to 10 minutes of audio; this audio is 14 min. Set diarize=false to transcribe up to 30 minutes.",
                    "param": "audio",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 0.08 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks elevenlabs for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "The transcription model is unavailable right now. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "The transcription model took too long to answer. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "request_in_progress": {
                    "summary": "A request with this Idempotency-Key is still running",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createTranscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequiredIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranscriptionCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "audio:write"
        ]
      }
    },
    "/v3/audio/transcriptions/{transcription_id}": {
      "get": {
        "summary": "Get Transcription",
        "description": "Return a transcription created by `POST /v3/audio/transcriptions`: its transcript once completed, its failure code once failed, or `pending` while the creating request is still running.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TranscriptionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Transcription not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getTranscription",
        "parameters": [
          {
            "name": "transcription_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `id` returned by Create Transcription."
          }
        ],
        "x-heygen-required-scopes": [
          "audio:read"
        ]
      }
    },
    "/v3/audio/music": {
      "post": {
        "summary": "Create Music",
        "description": "Generate a music track with `lyria-3-pro`. The request waits for the track and answers 200 with a time-limited `audio_url` to the mp3. `duration_seconds` is a target: a longer render is cut to it with a fade-out, and a shorter one is kept, so read the returned `duration_seconds` for the real length. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original track instead of generating again, and a duplicate sent while the original is still running gets 409 `request_in_progress`. A request the workspace's API credits cannot cover is refused with 402 `insufficient_credit` before the model runs. The credits are charged once the track is made, and a failed generation is not charged. If the balance no longer covers the charge when the track is ready, the request answers 402 `insufficient_credit` without it.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The finished track with its download URL.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MusicResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "An option the model does not accept",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "duration_seconds must be one of 30, 60, 120, 180",
                        "param": "duration_seconds",
                        "doc_url": null
                      }
                    }
                  },
                  "content_policy_violation": {
                    "summary": "The model refused the prompt or lyrics",
                    "value": {
                      "error": {
                        "code": "content_policy_violation",
                        "message": "The prompt or lyrics were rejected by the music model's content policy.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 0.08 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks google for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "The music model is unavailable right now. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "The music model took too long to answer. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "request_in_progress": {
                    "summary": "A request with this Idempotency-Key is still running",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createMusic",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequiredIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MusicCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "audio:write"
        ]
      }
    },
    "/v3/audio/music/{music_id}": {
      "get": {
        "summary": "Get Music",
        "description": "Return a music job created by `POST /v3/audio/music`: a fresh `audio_url` once completed, its failure code once failed, or `pending` while the creating request is still running.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MusicResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Music job not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getMusic",
        "parameters": [
          {
            "name": "music_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `id` returned by Create Music."
          }
        ],
        "x-heygen-required-scopes": [
          "audio:read"
        ]
      }
    },
    "/v3/audio/analysis": {
      "post": {
        "summary": "Analyze Audio",
        "description": "Find the beats, bar starts and sections of a piece of audio, or describe it, with a Gemini model. The request waits for the answer and returns it. Every time is in seconds from the start of the uploaded WAV and is the model's own estimate, no finer than `time_resolution_seconds`. A capability the model could not answer is left out of the response. A request the workspace's API credits cannot cover is refused with 402 `insufficient_credit` before the model runs. The credits are charged before the model runs, and failures are refunded before being recorded. Upload PCM WAV through the asset upload API and pass its asset_id. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original answer without charging again, a duplicate sent while the original is still running gets 409 `request_in_progress`, and the same key with a different body gets 409 `conflict`. Failed requests replay their stored error; use a new key for a new attempt. A pending job older than 30 minutes is refunded on replay, then failed. Recovery requires a later replay; it is not scheduled automatically.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "What the model answered.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AudioAnalysisResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "Audio the route cannot take",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "The audio is 734.2 s long; the limit is 600 s.",
                        "param": "audio",
                        "doc_url": null
                      }
                    }
                  },
                  "content_policy_violation": {
                    "summary": "The model refused the audio",
                    "value": {
                      "error": {
                        "code": "content_policy_violation",
                        "message": "The audio was rejected by the analysis model's content policy.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 0.03 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks google for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "The analysis model is unavailable right now. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "The analysis model took too long to answer. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "request_in_progress": {
                    "summary": "A request with this Idempotency-Key is still running",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "analyzeAudio",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequiredIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AudioAnalysisRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "audio:write"
        ]
      }
    },
    "/v3/audio/stems": {
      "post": {
        "summary": "Separate Audio Stems",
        "description": "Separate a recording of at most 3600 seconds into six stems with ElevenLabs `six_stems_v1`: `vocals`, `drums`, `bass`, `guitar`, `piano` and `other`. Upload the audio through the asset upload API (at most 200 MB) and pass its asset_id. The request waits for the stems and answers 200 with a time-limited mp3 `url` for each, every stem the full length of the audio. A request the workspace's API credits cannot cover is refused with 402 `insufficient_credit` before the model runs. The credits are charged once the stems are made, and a failed separation is not charged. If the balance no longer covers the charge when the stems are ready, the request answers 402 `insufficient_credit` without them. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original stems with fresh URLs without charging again, a duplicate sent while the original is still running gets 409 `request_in_progress`, and the same key with a different body gets 409 `conflict`. Failed requests replay their stored error; use a new key for a new attempt.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The stems with their download URLs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StemsResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "The audio is 4210 s long; send at most 3600 s.",
                    "param": "audio",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 1.20 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks elevenlabs for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "502": {
            "description": "Upstream dependency failed \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "voice_provider_error",
                    "message": "The stem model is unavailable right now. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "504": {
            "description": "Upstream dependency timed out \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "gateway_timeout",
                    "message": "The stem model took too long to answer. Submit a new request to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "request_in_progress": {
                    "summary": "A request with this Idempotency-Key is still running",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "separateAudioStems",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequiredIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StemsCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "audio:write"
        ]
      }
    },
    "/v3/audio/stems/{stems_id}": {
      "get": {
        "summary": "Get Audio Stems",
        "description": "Return a stems job created by `POST /v3/audio/stems`: fresh stem URLs once completed, its failure code once failed, or `pending` while the creating request is still running.",
        "tags": [
          "Audio"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StemsResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Stems job not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getAudioStems",
        "parameters": [
          {
            "name": "stems_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `id` returned by Separate Audio Stems."
          }
        ],
        "x-heygen-required-scopes": [
          "audio:read"
        ]
      }
    },
    "/v3/video-analyses": {
      "post": {
        "summary": "Analyze Video",
        "description": "Ask a Gemini model a question about a video of at most 180 seconds, given as a public HTTPS `url` or an uploaded `asset_id` (at most 50 MB) or inline `base64` (at most 16 MB), in MP4, MOV, WebM or MPEG. `model` picks the model and `prompt` asks the question. With a `response_schema` (a JSON Schema whose root is an object) the answer is JSON that validates against it; without one it is text. The request answers 202 with the job, `pending` or `processing`, and the analysis finishes whether or not it is read: read it with `GET /v3/video-analyses/{analysis_id}` until it is `completed` with its `output`, or `failed` with a `failure_code`. Send `Prefer: wait=N` (at most 50 seconds) to hold the request until the analysis finishes: it then answers 200 with the finished job and a `Preference-Applied` header, or 202 if it is still running when the wait ends. Before the model runs, the workspace's API credits must cover the largest charge the analysis can reach, including the workspace's analyses still running; a request they cannot cover is refused with 402 `insufficient_credit` and nothing is charged. Once the model has answered, the analysis is charged. If the balance can no longer pay it then, the analysis fails with `insufficient_credit`, its answer is not returned, and a request reading it through `Prefer: wait` or a replay gets 402. A failed analysis is never charged, also when the model ran: `output_not_json` (an answer that is not JSON matching `response_schema`, or was cut off at `max_output_tokens`), `no_answer` (the model wrote nothing it could return, for example when its thinking used the whole allowance) and `vendor_timeout` return no answer and cost nothing. A video that is too long or in another format is refused with 400. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original job without charging or analyzing again, and the same key with a different body gets 409 `conflict`. A job still unfinished 30 minutes after it was created is failed by the next read, and refunded if its charge had started. HyperFrames Desktop may call it with its OAuth token instead of an API key: its analyses are paid from the HyperFrames plan by the same rules, and a request the plan cannot pay is refused before any work with 403 `api_key_required` (the plan does not pay for this work; send it with an API key) or 402 `hf_usage_exhausted` or `hf_subscription_required`.",
        "tags": [
          "Video Analysis"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "The accepted job, `pending` or `processing` until the model finishes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoAnalysisResponse"
                    }
                  }
                }
              }
            },
            "headers": {
              "Preference-Applied": {
                "description": "`wait=N` when the request waited for the analysis under `Prefer: wait`.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "A video the model cannot read",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "The video is not in a format the analysis model reads. Send MP4, MOV, WebM or MPEG.",
                        "param": "video",
                        "doc_url": null
                      }
                    }
                  },
                  "video_too_long": {
                    "summary": "A video longer than 180 seconds",
                    "value": {
                      "error": {
                        "code": "video_too_long",
                        "message": "The video is 212.4 s long; the limit is 180 s. Trim it and send it again.",
                        "param": "video",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 0.03 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "`video`: asset 'a1b2' not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "ai_vendor_access_restricted",
                    "message": "Workspace AI vendor policy blocks google for this request.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "gemini-4-argon is unavailable right now. Nothing was charged; send a new request later.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "200": {
            "description": "The finished job: the analysis finished within `Prefer: wait`, or a replay of a finished job.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoAnalysisResponse"
                    }
                  }
                }
              }
            },
            "headers": {
              "Preference-Applied": {
                "description": "`wait=N` when the request waited for the analysis under `Prefer: wait`.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createVideoAnalysis",
        "parameters": [
          {
            "$ref": "#/components/parameters/RequiredIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoAnalysisRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/video-analyses/{analysis_id}": {
      "get": {
        "summary": "Get Video Analysis",
        "description": "Return a job created by `POST /v3/video-analyses`: `pending` until its balance check passes, `processing` while the model works, `completed` with its `output` and `usage`, or `failed` with its `failure_code` and `failure_message`. A failed analysis is never charged.",
        "tags": [
          "Video Analysis"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoAnalysisResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Video analysis not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getVideoAnalysis",
        "parameters": [
          {
            "name": "analysis_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `id` returned by analyze video."
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v2/video_translate": {
      "post": {
        "summary": "Create video translation",
        "description": "Translates a video into one or more target languages. Runs asynchronously: poll with the returned `video_translate_id`. Get supported language names from the languages endpoint, then set `output_language` or `output_languages`, and `mode` (`speed` or `precision`).",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslateCreateResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'video_url' is required.",
                    "param": "video_url",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createVideoTranslate",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MCPVideoTranslateCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      }
    },
    "/v2/video_translate/target_languages": {
      "get": {
        "summary": "List video translate languages",
        "description": "List all supported target language names for video translation. Call this before create_video_translate to validate language choices.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ListTargetLanguageResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listVideoTranslateLanguages",
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v2/video_translate/caption": {
      "get": {
        "summary": "Get video translate caption",
        "description": "Get the caption file (SRT or VTT format) for a completed video translation. The translation must have status \"completed\" \u2014 use get_video to check status first. Requires enable_caption=true when creating the translation.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslateCaptionGetResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'video_translate_id' is required.",
                    "param": "video_translate_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getVideoTranslateCaption",
        "parameters": [
          {
            "name": "video_translate_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "caption_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "vtt",
                "srt"
              ]
            }
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v3/video-translations": {
      "post": {
        "summary": "Create Video Translation",
        "description": "Translates a video into one or more target languages with voice cloning and lip-sync. Returns one video_translation_id per language. Use mode: 'speed' (default) for fast turnaround or 'precision' for higher lip-sync quality.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslationCreateResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'video_url' is required.",
                    "param": "video_url",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-video-translation"
        },
        "operationId": "createVideoTranslationV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoTranslationRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      },
      "get": {
        "summary": "List Video Translations",
        "description": "Returns a paginated list of all video translation jobs in the account.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoTranslationDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-video-translations"
        },
        "operationId": "listVideoTranslationsV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v3/video-translations/{video_translation_id}": {
      "get": {
        "summary": "Get Video Translation",
        "description": "Returns details for a translation job including status, output language, video_url, and failure info if applicable.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslationDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video translation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-video-translation"
        },
        "operationId": "getVideoTranslationV3",
        "parameters": [
          {
            "name": "video_translation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video translation identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      },
      "patch": {
        "summary": "Update Video Translation",
        "description": "Updates the display title of a video translation job.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslationDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At least one field must be provided for update.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video translation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-video-translation"
        },
        "operationId": "updateVideoTranslationV3",
        "parameters": [
          {
            "name": "video_translation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video translation identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoTranslationRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      },
      "delete": {
        "summary": "Delete Video Translation",
        "description": "Permanently deletes a video translation and its associated files. This action cannot be undone.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslationDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Video translation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-video-translation"
        },
        "operationId": "deleteVideoTranslationV3",
        "parameters": [
          {
            "name": "video_translation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video translation identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      }
    },
    "/v3/video-translations/languages": {
      "get": {
        "summary": "List Supported Translation Languages",
        "description": "Returns all supported target language names for video translation, and the names the caller's current plan can use. Names with a region in brackets (e.g. 'Hindi (India)') are premium dialect voices.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoTranslationLanguagesResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-supported-translation-languages"
        },
        "operationId": "listVideoTranslationLanguagesV3",
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v3/video-translations/proofreads": {
      "post": {
        "summary": "Create Proofread Session",
        "description": "Creates a proofread session that extracts editable subtitles from a video before final rendering.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateProofreadResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'video_url' is required.",
                    "param": "video_url",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/create-proofread-session"
        },
        "operationId": "createProofreadV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProofreadRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      },
      "get": {
        "summary": "List Proofread Sessions",
        "description": "Returns a paginated list of all proofread sessions in the workspace, newest first.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProofreadDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/list-proofread-sessions"
        },
        "operationId": "listProofreadsV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v3/video-translations/proofreads/{proofread_id}": {
      "get": {
        "summary": "Get Proofread Session",
        "description": "Returns the status and details of a proofread session.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProofreadDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Proofread not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/get-proofread-session"
        },
        "operationId": "getProofreadV3",
        "parameters": [
          {
            "name": "proofread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique proofread identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      },
      "delete": {
        "summary": "Delete Proofread Session",
        "description": "Deletes a proofread session, removing it from listings and from the workspace's projects. Requires an account role of Creator or higher. This action cannot be undone.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProofreadDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Proofread not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "Forbidden",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/delete-proofread-session"
        },
        "operationId": "deleteProofreadV3",
        "parameters": [
          {
            "name": "proofread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique proofread identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      }
    },
    "/v3/video-translations/proofreads/{proofread_id}/srt": {
      "get": {
        "summary": "Download Proofread SRT",
        "description": "Returns presigned download URLs for the edited and original SRT files of a completed proofread session.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DownloadSRTResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Proofread not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/download-proofread-srt"
        },
        "operationId": "downloadProofreadSrtV3",
        "parameters": [
          {
            "name": "proofread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique proofread identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      },
      "put": {
        "summary": "Upload Proofread SRT",
        "description": "Replaces the proofread subtitles with an edited SRT file.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProofreadDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'srt_content' is required.",
                    "param": "srt_content",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Proofread not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/upload-proofread-srt"
        },
        "operationId": "uploadProofreadSrtV3",
        "parameters": [
          {
            "name": "proofread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique proofread identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadSRTRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      }
    },
    "/v3/video-translations/proofreads/{proofread_id}/generate": {
      "post": {
        "summary": "Generate Video from Proofread",
        "description": "Starts final video generation using the approved subtitles from a proofread session.",
        "tags": [
          "Video Translate"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/GenerateVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Proofread not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-action": true,
        "x-mint": {
          "href": "/reference/generate-video-from-proofread"
        },
        "operationId": "generateFromProofreadV3",
        "parameters": [
          {
            "name": "proofread_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique proofread identifier"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateVideoRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      }
    },
    "/v3/lipsyncs": {
      "post": {
        "summary": "Create Lipsync",
        "description": "Replaces the audio on an existing video and re-animates the speaker's lip movements to match the new audio. Use mode: 'speed' for fast output or 'precision' for high-quality lip-sync.",
        "tags": [
          "Lipsync"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/LipsyncCreateResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'video_url' is required.",
                    "param": "video_url",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-lipsync"
        },
        "operationId": "createLipsyncV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLipsyncRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "lipsync:write"
        ]
      },
      "get": {
        "summary": "List Lipsyncs",
        "description": "Returns a paginated list of all lipsync jobs in the account.",
        "tags": [
          "Lipsync"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/LipsyncDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-lipsyncs"
        },
        "operationId": "listLipsyncsV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "lipsync:read"
        ]
      }
    },
    "/v3/lipsyncs/{lipsync_id}": {
      "get": {
        "summary": "Get Lipsync",
        "description": "Returns details for a lipsync job including status, video_url, caption_url, and failure info if applicable.",
        "tags": [
          "Lipsync"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/LipsyncDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Lipsync not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-lipsync"
        },
        "operationId": "getLipsyncV3",
        "parameters": [
          {
            "name": "lipsync_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique lipsync identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "lipsync:read"
        ]
      },
      "patch": {
        "summary": "Update Lipsync",
        "description": "Updates the display title of a lipsync job.",
        "tags": [
          "Lipsync"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/LipsyncDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At least one field must be provided for update.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Lipsync not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-lipsync"
        },
        "operationId": "updateLipsyncV3",
        "parameters": [
          {
            "name": "lipsync_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique lipsync identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLipsyncRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "lipsync:write"
        ]
      },
      "delete": {
        "summary": "Delete Lipsync",
        "description": "Permanently deletes a lipsync job and its associated files. This action cannot be undone.",
        "tags": [
          "Lipsync"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/LipsyncDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Lipsync not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-lipsync"
        },
        "operationId": "deleteLipsyncV3",
        "parameters": [
          {
            "name": "lipsync_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique lipsync identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "lipsync:write"
        ]
      }
    },
    "/v3/hyperframes/renders": {
      "post": {
        "summary": "Create HyperFrames Render",
        "description": "Renders a HyperFrames composition (an HTML+JS+assets project bundled as a .zip) into a video. Submit the project via `url`, `asset_id` (pre-uploaded via POST /v3/assets), or inline `base64`. Returns a `render_id` to poll via GET /v3/hyperframes/renders/{render_id}.",
        "tags": [
          "HyperFrames"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateHyperframesRenderResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Composition zip is invalid or missing index.html.",
                    "param": "project",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/create-hyperframes-render"
        },
        "operationId": "createHyperframesRenderV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateHyperframesRenderRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "hyperframes:write"
        ]
      },
      "get": {
        "summary": "List HyperFrames Renders",
        "description": "Returns a cursor-paginated list of HyperFrames renders in the account, newest first.",
        "tags": [
          "HyperFrames"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HyperframesRenderDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/list-hyperframes-renders"
        },
        "operationId": "listHyperframesRendersV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum items per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "hyperframes:read"
        ]
      }
    },
    "/v3/hyperframes/renders/{render_id}": {
      "get": {
        "summary": "Get HyperFrames Render",
        "description": "Returns full details for a single HyperFrames render, including status and signed video_url when complete.",
        "tags": [
          "HyperFrames"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HyperframesRenderDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "HyperFrames render not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/get-hyperframes-render"
        },
        "operationId": "getHyperframesRenderV3",
        "parameters": [
          {
            "name": "render_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique HyperFrames render identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "hyperframes:read"
        ]
      },
      "delete": {
        "summary": "Delete HyperFrames Render",
        "description": "Soft-deletes a HyperFrames render. Subsequent GETs return 404.",
        "tags": [
          "HyperFrames"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteHyperframesRenderResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "HyperFrames render not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/delete-hyperframes-render"
        },
        "operationId": "deleteHyperframesRenderV3",
        "parameters": [
          {
            "name": "render_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique HyperFrames render identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "hyperframes:write"
        ]
      }
    },
    "/v3/custom-agents": {
      "get": {
        "summary": "List Custom Agents",
        "description": "Returns the installed custom agents. Each entry carries id, name, description, and the internal workflow_type.",
        "tags": [
          "Custom Agents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CustomAgentListResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listCustomAgents",
        "x-heygen-required-scopes": [
          "custom_agents:read"
        ]
      }
    },
    "/v3/custom-agents/{agent_id}": {
      "get": {
        "summary": "Get Custom Agent",
        "description": "Returns metadata for a single custom agent.",
        "tags": [
          "Custom Agents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CustomAgentDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Custom agent not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getCustomAgent",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Custom-agent id (e.g. `chiron`)."
          }
        ],
        "x-heygen-required-scopes": [
          "custom_agents:read"
        ]
      }
    },
    "/v3/custom-agents/{agent_id}/videos": {
      "post": {
        "summary": "Create Custom Agent Video",
        "description": "Starts a custom-agent run from a topic prompt and returns a `video_id`; poll GET /v3/custom-agents/videos/{video_id} for status and the MP4 URL. Pass screenshots and screen recordings as asset ids, and the presenter clip as a completed `roll_video_id`.",
        "tags": [
          "Custom Agents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CustomAgentVideoCreateResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createCustomAgentVideo",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Custom-agent id (e.g. `chiron`)."
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomAgentVideoCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:read",
          "custom_agents:write",
          "videos:read",
          "videos:write",
          "voices:write"
        ]
      }
    },
    "/v3/custom-agents/videos/{video_id}": {
      "get": {
        "summary": "Get Custom Agent Video Status",
        "description": "Returns status + presigned output MP4 URL once the workflow completes.",
        "tags": [
          "Custom Agents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CustomAgentVideoStatusResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Custom agent video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getCustomAgentVideo",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Video id from POST /v3/custom-agents/{agent_id}/videos."
          }
        ],
        "x-heygen-required-scopes": [
          "custom_agents:read"
        ]
      }
    },
    "/v3/custom-agents/videos/{video_id}/edits": {
      "post": {
        "summary": "Edit Custom Agent Video",
        "description": "Edits a completed custom-agent video from a natural-language instruction, reusing the source run's composition and paid media. Returns a NEW `video_id`; poll GET /v3/custom-agents/videos/{video_id} for status and the MP4 URL.",
        "tags": [
          "Custom Agents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CustomAgentVideoCreateResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Custom agent video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "editCustomAgentVideo",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Source video id to edit."
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomAgentVideoEditRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:read",
          "custom_agents:write",
          "videos:read",
          "videos:write",
          "voices:write"
        ]
      }
    },
    "/v1/user/me": {
      "get": {
        "summary": "Get current user info, remaining credits, and billing",
        "description": "Returns the authenticated user's profile, remaining credits or balance, and billing details. The billing_type field indicates which billing object is populated: wallet (prepaid balance), subscription (OAuth credit pools), or usage_based (metered spending).",
        "tags": [
          "User"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "API status code (100 = success)",
                      "example": 100
                    },
                    "data": {
                      "$ref": "#/components/schemas/UserInfoResponse"
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1APIError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1APIError"
                },
                "example": {
                  "code": 401,
                  "message": "Unauthorized"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V1APIError"
                },
                "example": {
                  "code": 429,
                  "message": "Too many requests"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getUserMe",
        "x-heygen-required-scopes": [
          "account:read"
        ]
      }
    },
    "/v3/users/me": {
      "get": {
        "summary": "Get Current User",
        "description": "Returns the authenticated user's profile, remaining credits or balance, and billing details.",
        "tags": [
          "User"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/UserInfoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-current-user"
        },
        "operationId": "getCurrentUserV3",
        "x-heygen-required-scopes": [
          "account:read"
        ]
      }
    },
    "/v3/api_keys/self": {
      "get": {
        "summary": "Get Current API Key",
        "description": "Returns non-secret metadata, expiration, and permission scopes for the API key used to authenticate this request. This endpoint accepts API-key authentication only and does not require the key to grant itself a permission scope.",
        "tags": [
          "API Keys"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CurrentAPIKeyResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-mint": {
          "href": "/reference/get-current-api-key"
        },
        "operationId": "getCurrentApiKeyV3"
      }
    },
    "/v3/requests": {
      "get": {
        "summary": "List API Requests",
        "description": "Lists the write calls (POST, PUT, PATCH, DELETE) made to the API from your workspace, newest first, with the job each call was charged for and its charge. Workspace admins see every call; other members see the calls they made. Calls are kept for 12 months; one request covers at most 90 days.",
        "tags": [
          "Usage"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RequestLogEntry"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Pass request_id or job_id, not both.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listApiRequests",
        "parameters": [
          {
            "name": "start_time",
            "in": "query",
            "required": true,
            "description": "Range start, Unix seconds.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4102444800
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "required": true,
            "description": "Range end, Unix seconds; after start_time and at most 90 days after it.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4102444800
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "succeeded: HTTP status below 400; failed: HTTP status 400 and above.",
            "schema": {
              "type": "string",
              "enum": [
                "succeeded",
                "failed"
              ]
            }
          },
          {
            "name": "api_key_id",
            "in": "query",
            "required": false,
            "description": "Only calls made with this API key.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "endpoint",
            "in": "query",
            "required": false,
            "description": "Only calls to this route template, for example /v3/videos/{video_id}.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          },
          {
            "name": "request_id",
            "in": "query",
            "required": false,
            "description": "The call with this request ID (the X-HeyGen-Request-Id response header). Not with job_id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "job_id",
            "in": "query",
            "required": false,
            "description": "The calls charged for this job, for example a video ID. Not with request_id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Calls per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "The next_token of the previous page.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          }
        ],
        "x-heygen-required-scopes": [
          "usage:read"
        ]
      }
    },
    "/v3/usage": {
      "get": {
        "summary": "Get API Key Usage",
        "description": "Lists what each API key spent, per credit pool, grouped by budget group (a regenerated key and the keys it replaced share one) or by the project or environment tag stamped on each charge, over whole UTC days. Counts charges made with an API key since per-key recording began; OAuth, MCP and web usage are not spend of a key, so the rows do not add up to your workspace's total. Workspace admins see every key; other members see the keys they own.",
        "tags": [
          "Usage"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UsageRow"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "token belongs to a request with other parameters",
                    "param": "token",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getApiKeyUsage",
        "parameters": [
          {
            "name": "start_time",
            "in": "query",
            "required": true,
            "description": "Range start, Unix seconds; counted from the start of its UTC day, or of its UTC hour with bucket=hour.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4102444800
            }
          },
          {
            "name": "end_time",
            "in": "query",
            "required": true,
            "description": "Range end, Unix seconds; after start_time and at most 90 days after it. Its UTC day is included, or its UTC hour with bucket=hour.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4102444800
            }
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "description": "api_key: one row per budget group; project or environment: one row per value of that tag; product: one row per product charged, by item type; endpoint: one row per route template, HTTP methods combined; channel: one row per sign-in method (api_key, mcp, cli, or oauth).",
            "schema": {
              "type": "string",
              "enum": [
                "api_key",
                "project",
                "environment",
                "product",
                "endpoint",
                "channel"
              ],
              "default": "api_key"
            }
          },
          {
            "name": "bucket",
            "in": "query",
            "required": false,
            "description": "day: one row per group and UTC day with spend. hour: one row per group and UTC hour with spend, from the hour holding start_time through the hour holding end_time, which must lie within 7 UTC days. Periods without spend have no row. Omit for one row per group over the range.",
            "schema": {
              "type": "string",
              "enum": [
                "day",
                "hour"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Groups per page. A member's pages are chosen among the groups they may see.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "The next_token of the previous page.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024
            }
          }
        ],
        "x-heygen-required-scopes": [
          "usage:read"
        ]
      }
    },
    "/v1/workflows/executions": {
      "post": {
        "summary": "Create a workflow execution",
        "description": "Submit a single workflow for asynchronous execution. Returns an execution_id that can be polled via GET /v1/workflows/executions/{execution_id}.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowExecutionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'workflow_id' is required.",
                    "param": "workflow_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createWorkflowExecution",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowExecutionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/v1/workflows/graph-executions": {
      "post": {
        "summary": "Create a graph execution",
        "description": "Submit a multi-workflow graph for asynchronous execution. Returns an execution_id that can be polled via GET /v1/workflows/executions/{execution_id}.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowExecutionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'workflows' is required and must not be empty.",
                    "param": "workflows",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createGraphExecution",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGraphExecutionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/v1/workflows/executions/{execution_id}": {
      "get": {
        "summary": "Get workflow execution status",
        "description": "Poll the status and output of a workflow execution.\n\n**Single-workflow executions** return output in the `output` field.\n\n**Multi-workflow graph executions** return all outputs in the `outputs` field, keyed by workflow ID.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowExecutionDetailResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Workflow execution not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getWorkflowExecution",
        "parameters": [
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Execution ID returned from POST /v1/workflows/executions"
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v1/workflows": {
      "get": {
        "summary": "List available workflows",
        "description": "List all available workflow types with their input/output schemas.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowCatalogEntry"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listWorkflows",
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/avatars/{group_id}": {
      "get": {
        "summary": "Get Avatar Group",
        "description": "Returns details for a specific avatar group including name, gender, preview URLs, looks count, and training status.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AvatarGroupItem"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "avatar_not_found",
                    "message": "Avatar group not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-avatar-group"
        },
        "operationId": "getAvatarGroup",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar group identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:read"
        ]
      },
      "patch": {
        "summary": "Update Avatar Group",
        "description": "Updates an avatar group you own. Currently sets `default_voice_id`, the voice this avatar uses by default; any voice in your workspace works, including clones. Public avatars cannot be updated.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AvatarGroupItem"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid default_voice_id: 'abc123'. Voice not found.",
                    "param": null,
                    "doc_url": "https://developers.heygen.com/docs/error-codes#invalid-parameter"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "avatar_not_found",
                    "message": "Avatar group ag_abc123 not found.",
                    "param": null,
                    "doc_url": "https://developers.heygen.com/docs/error-codes#avatar-not-found"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden \u2014 `error.code` is one of: `resource_access_denied`, `forbidden`, `voice_not_usable`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "resource_access_denied": {
                    "summary": "Caller lacks write access to this avatar group",
                    "value": {
                      "error": {
                        "code": "resource_access_denied",
                        "message": "Forbidden",
                        "param": null,
                        "doc_url": "https://developers.heygen.com/docs/error-codes#resource-access-denied"
                      }
                    }
                  },
                  "forbidden": {
                    "summary": "Workspace policy restricts avatar editing to the owner or an admin",
                    "value": {
                      "error": {
                        "code": "forbidden",
                        "message": "Only the avatar owner or a workspace admin can edit this avatar.",
                        "param": null,
                        "doc_url": "https://developers.heygen.com/docs/error-codes#forbidden"
                      }
                    }
                  },
                  "voice_not_usable": {
                    "summary": "The voice exists but is not usable by this workspace",
                    "value": {
                      "error": {
                        "code": "voice_not_usable",
                        "message": "This voice can't be used to generate this video. Please select a different voice to continue.",
                        "param": null,
                        "doc_url": "https://developers.heygen.com/docs/error-codes#voice-not-usable"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_ready",
                    "message": "This voice is still being created. Please try again in a moment.",
                    "param": null,
                    "doc_url": "https://developers.heygen.com/docs/error-codes#resource-not-ready"
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-avatar-group"
        },
        "operationId": "updateAvatarGroup",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar group identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAvatarGroupRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      },
      "delete": {
        "summary": "Delete Avatar Group",
        "description": "Permanently deletes an avatar group and all its associated looks. Cannot delete public or community groups.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AvatarGroupDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "avatar_not_found",
                    "message": "Avatar group not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-avatar-group"
        },
        "operationId": "deleteAvatarGroup",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar group identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      }
    },
    "/v3/avatars/{group_id}/consent": {
      "post": {
        "summary": "Create Avatar Consent",
        "description": "Starts the consent flow for an avatar group and returns a URL where the subject approves in their browser. Required before a private avatar can generate video. The link expires after 24 hours and accepts one submission.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAvatarConsentResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "avatar_not_found",
                    "message": "Avatar group not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-avatar-consent"
        },
        "operationId": "createAvatarConsent",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar group identifier"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAvatarConsentRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      }
    },
    "/v3/avatars/looks": {
      "get": {
        "summary": "List Avatar Looks",
        "description": "Returns a paginated list of avatar looks (outfits, poses, styles). Filterable by group_id, avatar_type, and ownership. The look id is the avatar_id to pass when creating a video.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AvatarLookItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 50.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-avatar-looks"
        },
        "operationId": "listAvatarLooks",
        "parameters": [
          {
            "name": "group_id",
            "in": "query",
            "required": false,
            "description": "Filter looks to a specific avatar group. Returns only looks belonging to this group.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "avatar_type",
            "in": "query",
            "required": false,
            "description": "Filter by avatar type: 'studio_avatar', 'digital_twin', or 'photo_avatar'.",
            "schema": {
              "type": "string",
              "enum": [
                "studio_avatar",
                "digital_twin",
                "photo_avatar"
              ]
            }
          },
          {
            "name": "ownership",
            "in": "query",
            "required": false,
            "description": "Filter by ownership: 'public' for preset avatars, or 'private' for your own. Omit for all.",
            "schema": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return per page (1-50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:read"
        ]
      },
      "post": {
        "summary": "Create Avatar Looks",
        "description": "Generates new looks for an existing avatar from `reference_look_id`. `type: look_pack` applies a Look Pack; `type: template` applies one look template and produces two looks. Billing happens when the request is accepted. Free-tier MCP access cannot use this endpoint. Poll GET /v3/avatars/looks/{id} until each look finishes.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAvatarLooksResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "template_id must refer to a Look Pack template; a single look template is applied with type 'template'",
                    "param": "template_id",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient credit to generate the looks. Add credits or choose a pack that generates fewer looks.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "avatar_not_found",
                    "message": "Avatar not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden \u2014 `error.code` is one of: `forbidden`, `resource_access_denied`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "Avatar look generation is temporarily unavailable",
                    "value": {
                      "error": {
                        "code": "forbidden",
                        "message": "Avatar look generation is temporarily unavailable. Please try again later.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "paid_plan_required": {
                    "summary": "The connected integration cannot generate looks on the free tier",
                    "value": {
                      "error": {
                        "code": "forbidden",
                        "message": "Avatar look generation requires a paid plan. Upgrade to access this feature.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "workspace_access_denied": {
                    "summary": "The workspace or avatar group does not allow look generation",
                    "value": {
                      "error": {
                        "code": "resource_access_denied",
                        "message": "Space is not allowed to create a private avatar",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-avatar-looks"
        },
        "operationId": "createAvatarLooks",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAvatarLooksRequestBody"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      }
    },
    "/v3/avatars/look-templates": {
      "get": {
        "summary": "List Look Templates",
        "description": "Lists the look templates and Look Packs your workspace can apply with POST /v3/avatars/looks. Send an item's `id` as `template_id` and its `type` as `type`. Filter by `gender` to match your avatar.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/LookTemplateItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 50.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden \u2014 `error.code` is one of: `insufficient_api_key_scope`, `resource_access_denied`, `forbidden`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "insufficient_api_key_scope": {
                    "summary": "The API key lacks the avatars:read scope",
                    "value": {
                      "error": {
                        "code": "insufficient_api_key_scope",
                        "message": "This API key does not have permission to perform this action. Required scope: avatars:read.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "workspace_role_denied": {
                    "summary": "The caller's workspace role cannot read avatar templates",
                    "value": {
                      "error": {
                        "code": "resource_access_denied",
                        "message": "Your account does not have permission to access this resource. Ask your Space Admin for further details.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "workspace_session_unavailable": {
                    "summary": "The active workspace session is unavailable",
                    "value": {
                      "error": {
                        "code": "forbidden",
                        "message": "The active workspace session is unavailable. Reauthenticate and try again.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-look-templates"
        },
        "operationId": "listLookTemplates",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by generation method: 'look_pack' for Look Packs, 'template' for single look templates. Omit for both.",
            "schema": {
              "type": "string",
              "enum": [
                "look_pack",
                "template"
              ]
            }
          },
          {
            "name": "gender",
            "in": "query",
            "required": false,
            "description": "Filter to templates built for 'male' or 'female'. Templates with no gender of their own are returned for either value. Omit for all.",
            "schema": {
              "type": "string",
              "enum": [
                "male",
                "female"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return per page (1-50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:read"
        ]
      }
    },
    "/v3/avatars/looks/{look_id}": {
      "get": {
        "summary": "Get Avatar Look",
        "description": "Returns details for a specific avatar look including supported engines, preferred orientation, preview URLs, and training status.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AvatarLookItem"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Avatar look not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-avatar-look"
        },
        "operationId": "getAvatarLook",
        "parameters": [
          {
            "name": "look_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar look identifier. This is the value to pass as avatar_id to POST /v3/videos."
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:read"
        ]
      },
      "patch": {
        "summary": "Update Avatar Look",
        "description": "Updates the display name of an avatar look. Only supported for photo avatar and digital twin look types.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AvatarLookItem"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Renaming is only supported for photo and digital twin avatar looks.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Avatar look not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/update-avatar-look"
        },
        "operationId": "updateAvatarLook",
        "parameters": [
          {
            "name": "look_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar look identifier. This is the value to pass as avatar_id to POST /v3/videos."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAvatarLookRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      },
      "delete": {
        "summary": "Delete Avatar Look",
        "description": "Deletes an avatar look. Photo avatar, digital twin and kit-based looks can be deleted; studio avatars cannot. Deleting the last look in a group also deletes the group.",
        "tags": [
          "Avatars"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AvatarLookDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Deleting this avatar look type is not supported.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Avatar look not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "Cannot update public avatar"
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-avatar-look"
        },
        "operationId": "deleteAvatarLook",
        "parameters": [
          {
            "name": "look_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique avatar look identifier. This is the value to pass as avatar_id to POST /v3/videos."
          }
        ],
        "x-heygen-required-scopes": [
          "avatars:write"
        ]
      }
    },
    "/v3/webhooks/event-types": {
      "get": {
        "summary": "List Webhook Event Types",
        "description": "Returns all available webhook event types with human-readable descriptions.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEventTypeItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/list-webhook-event-types"
        },
        "operationId": "listWebhookEventTypes",
        "x-heygen-required-scopes": [
          "webhooks:read"
        ]
      }
    },
    "/v3/webhooks/endpoints": {
      "get": {
        "summary": "List Webhook Endpoints",
        "description": "Returns a paginated list of registered webhook endpoints.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEndpointResponse"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/list-webhook-endpoints"
        },
        "operationId": "listWebhookEndpoints",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of endpoints to return (1-100). Default: 10.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "webhooks:read"
        ]
      },
      "post": {
        "summary": "Create Webhook Endpoint",
        "description": "Registers an HTTPS URL to receive webhook event notifications. Returns the endpoint details and a signing secret. The signing secret is only shown at creation and rotation \u2014 store it securely.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookEndpointResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'url' must be a publicly accessible HTTPS URL.",
                    "param": "url",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 either the request conflicts with existing state, or a prior request with this `Idempotency-Key` is still in progress (`request_in_progress`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "conflict": {
                    "summary": "Resource conflict",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "A webhook endpoint with this URL already exists for this account.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/create-webhook-endpoint"
        },
        "operationId": "createWebhookEndpoint",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookEndpointRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "webhooks:write"
        ]
      }
    },
    "/v3/webhooks/endpoints/{endpoint_id}": {
      "patch": {
        "summary": "Update Webhook Endpoint",
        "description": "Updates the URL and/or subscribed event types for a webhook endpoint. The events array is fully replaced \u2014 include all types you want to keep.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookEndpointResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At least one of 'url' or 'events' must be provided.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "webhook_not_found",
                    "message": "Webhook endpoint not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/update-webhook-endpoint"
        },
        "operationId": "updateWebhookEndpoint",
        "parameters": [
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Webhook endpoint ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookEndpointRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "webhooks:write"
        ]
      },
      "delete": {
        "summary": "Delete Webhook Endpoint",
        "description": "Permanently removes a webhook endpoint. Events will no longer be delivered to this URL. This action cannot be undone.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "webhook_not_found",
                    "message": "Webhook endpoint not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/delete-webhook-endpoint"
        },
        "operationId": "deleteWebhookEndpoint",
        "parameters": [
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Webhook endpoint ID"
          }
        ],
        "x-heygen-required-scopes": [
          "webhooks:write"
        ]
      }
    },
    "/v3/webhooks/endpoints/{endpoint_id}/rotate-secret": {
      "post": {
        "summary": "Rotate Webhook Signing Secret",
        "description": "Generates a new signing secret for a webhook endpoint and immediately invalidates the old one. Store the new secret securely \u2014 it will not be shown again.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/RotateSecretResponseData"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "webhook_not_found",
                    "message": "Webhook endpoint not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-action": true,
        "x-mint": {
          "href": "/reference/rotate-webhook-signing-secret"
        },
        "operationId": "rotateWebhookEndpointSecret",
        "parameters": [
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Webhook endpoint ID"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "x-heygen-required-scopes": [
          "webhooks:write"
        ]
      }
    },
    "/v3/webhooks/events": {
      "get": {
        "summary": "List Webhook Events",
        "description": "Returns a paginated history of delivered webhook events. Filterable by event_type or entity_id.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEventResponse"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/list-webhook-events"
        },
        "operationId": "listWebhookEvents",
        "parameters": [
          {
            "name": "event_type",
            "in": "query",
            "required": false,
            "description": "Filter events by type, e.g. 'avatar_video.success'.",
            "schema": {
              "type": "string",
              "enum": [
                "avatar_video.success",
                "avatar_video.fail",
                "avatar_video_gif.success",
                "avatar_video_gif.fail",
                "video_translate.success",
                "video_translate.fail",
                "video_translate.preflight.validation_failed",
                "video_translate.preflight.download_failed",
                "personalized_video",
                "instant_avatar.success",
                "instant_avatar.fail",
                "photo_avatar_generation.success",
                "photo_avatar_generation.fail",
                "photo_avatar_train.success",
                "photo_avatar_train.fail",
                "photo_avatar_add_motion.success",
                "photo_avatar_add_motion.fail",
                "proofread_creation.success",
                "proofread_creation.fail",
                "live_avatar.success",
                "live_avatar.fail",
                "avatar_video_caption.success",
                "avatar_video_caption.fail",
                "video_agent.success",
                "video_agent.fail",
                "hyperframes_video.success",
                "hyperframes_video.fail",
                "ai_clipping.success",
                "ai_clipping.fail",
                "filler_word_removal.success",
                "filler_word_removal.fail",
                "podcast.success",
                "podcast.fail",
                "batch.finished",
                "video_generation.success",
                "video_generation.fail",
                "video_delivery.success",
                "video_delivery.fail"
              ]
            }
          },
          {
            "name": "entity_id",
            "in": "query",
            "required": false,
            "description": "Filter events by entity ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of events to return (1-100). Default: 10.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "webhooks:read"
        ]
      }
    },
    "/v3/folders": {
      "post": {
        "summary": "Create Folder",
        "description": "Creates a folder at the root or inside `parent_id`. Pass its `folder_id` to POST /v3/videos or POST /v3/video-translations to file output there. Names need not be unique, so store the ids you receive. Send an Idempotency-Key to make retries safe.",
        "tags": [
          "Folders"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FolderV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'name' must be between 1 and 256 characters.",
                    "param": "name",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Parent folder not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_access_denied",
                    "message": "You do not have write access to the parent folder.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-folder"
        },
        "operationId": "createFolderV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFolderV3Request"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/folders/{folder_id}": {
      "get": {
        "summary": "Get Folder",
        "description": "Returns one folder in your workspace, including one in the trash (`is_trash`). Use it to check that a stored `folder_id` still exists. Deleted folders and folders in other workspaces return 404.",
        "tags": [
          "Folders"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FolderV3"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Folder 7c1f0b2e3d4a4f5e8a9b0c1d2e3f4a5b not found in this workspace.",
                    "param": "folder_id",
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-folder"
        },
        "operationId": "getFolderV3",
        "parameters": [
          {
            "name": "folder_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique folder identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v3/assets/search": {
      "get": {
        "summary": "Search assets (images and icons)",
        "description": "Semantically search re-hosted public images and icons by natural-language description, e.g. 'pepperoni pizza on a wooden table' or 'minimalist rocket icon'. Returns assets ranked by similarity, each with a stable public URL, plus cursor-based pagination.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AssetSearchItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'query' is required.",
                    "param": "query",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Search is temporarily unavailable. Retry the request after a short delay.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-action": true,
        "x-excluded": true,
        "operationId": "searchAssets",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Natural-language description of the image or icon you want, e.g. 'pepperoni pizza on a wooden table' or 'minimalist rocket icon'. Results are ranked by semantic similarity.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of results to return (1-50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page, taken from 'next_token' in a prior response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "Asset type to search (image or icon).",
            "schema": {
              "type": "string",
              "enum": [
                "image",
                "icon"
              ]
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "description": "Which assets to search: 'public' (the shared catalog, default) or 'personal' (your own space's assets).",
            "schema": {
              "type": "string",
              "enum": [
                "public",
                "personal"
              ],
              "default": "public"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      }
    },
    "/v3/assets": {
      "post": {
        "summary": "Upload Asset",
        "description": "Uploads a file (image, video, audio, PDF, or SRT subtitle) and returns an asset_id for use in other endpoints. Max 50 MB, or 32 MB for an image. Supported types: png, jpeg, mp4, webm, mp3, wav, m4a, pdf, srt. A file is checked against the content policy after it is uploaded; if it is blocked, the asset is removed and later requests for it return not found.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/UploadAssetV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "File is required. Upload a file using multipart/form-data.",
                    "param": "file",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/upload-asset"
        },
        "operationId": "uploadAsset",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "File to upload (image, video, audio, PDF, or SRT subtitle). Max 50 MB, or 32 MB for an image."
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      },
      "get": {
        "summary": "List Assets",
        "description": "**Beta**: may change with a few days' notice. Lists a workspace member's uploaded assets, newest first, with cursor pagination. `username` is required during the beta. Pass `folder_id` to narrow to one folder, or an empty value for the root.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/GetAssetV3Response"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid pagination token",
                    "param": "token",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-excluded": true,
        "operationId": "listAssets",
        "parameters": [
          {
            "name": "username",
            "in": "query",
            "required": true,
            "description": "Username of the workspace member whose assets to list \u2014 the same value as asset items' 'owner' field. Required while this endpoint is in beta; it will become an optional filter in a future release.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of assets to return per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from a previous response's next_token. Omit for the first page.",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "folder_id",
            "in": "query",
            "required": false,
            "description": "Optional folder filter. Omit to list ALL workspace assets across folders. Pass a folder id to list that folder only, or an empty value (folder_id=) for root-level assets (assets not filed into any folder).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      }
    },
    "/v3/assets/{asset_id}": {
      "get": {
        "summary": "Get Asset",
        "description": "Returns metadata for an asset in the caller's workspace \u2014 including owner, upload timestamp, file type, and a publicly accessible URL.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/GetAssetV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-asset"
        },
        "operationId": "getAsset",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      },
      "delete": {
        "summary": "Delete Asset",
        "description": "Permanently deletes an asset. The asset must belong to the caller's workspace and not already be deleted.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteAssetV3Response"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-asset"
        },
        "operationId": "deleteAsset",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/assets/direct-uploads": {
      "post": {
        "summary": "Create Asset Upload",
        "description": "Begin a direct-to-S3 upload. Returns an asset_id and a presigned upload_url; PUT the file bytes to upload_url, then call POST /v3/assets/{asset_id}/complete. Unlike POST /v3/assets (which proxies the bytes), this never sends the file through the API.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAssetUploadResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-asset-upload"
        },
        "operationId": "createAssetUpload",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAssetUploadRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/assets/{asset_id}/complete": {
      "post": {
        "summary": "Complete Asset Upload",
        "description": "Finalize a direct-to-S3 upload into a reusable asset. Call after the upload PUT returns 200. Idempotent: repeated calls return the same finalized asset.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CompleteAssetUploadResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "conflict",
                    "message": "Uploaded object not found yet. Retry after the upload PUT returns 200.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-idempotent": true,
        "x-mint": {
          "href": "/reference/complete-asset-upload"
        },
        "operationId": "completeAssetUpload",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteAssetUploadRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/assets/{asset_id}/parts": {
      "post": {
        "summary": "Get Asset Upload Part URLs",
        "description": "For an upload created with `multipart`: presigned URLs for the part numbers named, each signed with that part's length. PUT each part to its URL, then call POST /v3/assets/{asset_id}/complete with the multipart_upload_id and every part number with the ETag S3 answered. Ask again for a part whose URL ran out.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MintPartUrlsResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/get-asset-upload-part-urls"
        },
        "operationId": "getAssetUploadPartUrls",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MintPartUrlsRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      },
      "get": {
        "summary": "List Uploaded Asset Parts",
        "description": "For an upload created with `multipart`: the parts S3 already holds, so an interrupted upload sends only the rest. Pass the multipart_upload_id from the create response as a query parameter.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ListUploadedPartsResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/list-uploaded-asset-parts"
        },
        "operationId": "listAssetUploadParts",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset identifier"
          },
          {
            "name": "multipart_upload_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "description": "From the create response."
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      },
      "delete": {
        "summary": "Abort Asset Upload Parts",
        "description": "Give up an upload created with `multipart`: the parts stored so far are dropped. Pass the multipart_upload_id from the create response as a query parameter.",
        "tags": [
          "Assets"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AbortAssetUploadResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-mint": {
          "href": "/reference/abort-asset-upload-parts"
        },
        "operationId": "abortAssetUploadParts",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset identifier"
          },
          {
            "name": "multipart_upload_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "description": "From the create response."
          }
        ],
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/video-agents/{session_id}": {
      "get": {
        "summary": "Get Video Agent Session",
        "description": "Returns the current status, progress, video_id, and recent chat messages for a session.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/GetSessionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Session not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-video-agent-session"
        },
        "operationId": "getVideoAgentSession",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Session ID"
          }
        ],
        "x-heygen-required-scopes": [
          "video_agent:read"
        ]
      },
      "post": {
        "summary": "Send Video Agent Message",
        "description": "Sends a follow-up turn to a session created in either `generate` or `chat` mode; follow-up turns preserve the session mode. Send a `message`, a scene `edit_plan` built from GET /v3/videos/{video_id}/scenes, or both. Items may reference different scene snapshots from this session; none identifies the output draft. `edit_version` is not a document lock, so two edits from one version may both be accepted. Returns the current working draft in `video_id`. Poll GET /v3/videos/{video_id} for status. For a failed video, inspect `failure_code` and `failure_message`; the session endpoint also exposes known stop reasons in `error`.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SendMessageResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "missing_turn_content": {
                    "summary": "No message or edit plan",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Provide a message or edit_plan.",
                        "param": "message",
                        "doc_url": null
                      }
                    }
                  },
                  "invalid_scene": {
                    "summary": "Scene is not in the snapshot",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Scene scene_example is not present in the current video draft.",
                        "param": "edit_plan",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Session or scene snapshot video not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `stale_edit_version`, `resource_not_ready`, `request_in_progress`, `context_limit_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "stale_edit_version": {
                    "summary": "The scene graph changed",
                    "value": {
                      "error": {
                        "code": "stale_edit_version",
                        "message": "The video changed after its scenes were read. Fetch the scenes again and retry with the new edit_version.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "resource_not_ready": {
                    "summary": "The editable draft resource is still being prepared",
                    "value": {
                      "error": {
                        "code": "resource_not_ready",
                        "message": "The editable Video Agent resource is not ready yet.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "context_limit_exceeded": {
                    "summary": "The conversation is too long to continue",
                    "value": {
                      "error": {
                        "code": "context_limit_exceeded",
                        "message": "This session's conversation has grown too long for the agent to continue. Start a new session to keep working.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/send-message-or-request-revision"
        },
        "operationId": "sendVideoAgentMessage",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Session ID"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendMessageRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "video_agent:write"
        ]
      }
    },
    "/v3/video-agents/{session_id}/resources/{resource_id}": {
      "get": {
        "summary": "Get Session Resource",
        "description": "Returns a single session resource (image, video, draft, avatar, voice, etc.) by its resource_id.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SessionResource"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Resource not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-session-resource"
        },
        "operationId": "getVideoAgentResource",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Session ID"
          },
          {
            "name": "resource_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource ID"
          }
        ],
        "x-heygen-required-scopes": [
          "video_agent:read"
        ]
      }
    },
    "/v3/video-agents/{session_id}/videos": {
      "get": {
        "summary": "List Session Videos",
        "description": "Returns all videos produced within a Video Agent session, sorted newest-first.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Session not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-session-videos"
        },
        "operationId": "listVideoAgentSessionVideos",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Session ID"
          }
        ],
        "x-heygen-required-scopes": [
          "video_agent:read"
        ]
      }
    },
    "/v3/video-agents/{session_id}/stop": {
      "post": {
        "summary": "Stop Video Agent Session",
        "description": "Halts an active agent run at its next checkpoint. Partial results are preserved.",
        "tags": [
          "Video Agent"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StopSessionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Session not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-cli-action": true,
        "x-mint": {
          "href": "/reference/stop-video-agent-session"
        },
        "operationId": "stopVideoAgentSession",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Session ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StopSessionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "video_agent:write"
        ]
      }
    },
    "/v3/ai-clipping/{job_id}": {
      "get": {
        "summary": "Get AI Clipping",
        "description": "Returns the full job resource including produced clips, statuses, and presigned download URLs.",
        "tags": [
          "AI Clipping"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AiClippingDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "AI clip not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-ai-clipping"
        },
        "operationId": "getAiClippingV3",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique AI clip job identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "ai_clipping:read"
        ]
      },
      "delete": {
        "summary": "Delete AI Clipping",
        "description": "Soft-deletes an AI clip job and its clips.",
        "tags": [
          "AI Clipping"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DeleteAiClippingResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "AI clip not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/delete-ai-clipping"
        },
        "operationId": "deleteAiClippingV3",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique AI clip job identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "ai_clipping:write"
        ]
      }
    },
    "/v3/ai-clipping": {
      "get": {
        "summary": "List AI Clipping",
        "description": "Returns a cursor-paginated list of AI clip jobs in the authenticated user's workspace, newest first.",
        "tags": [
          "AI Clipping"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AiClippingDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/list-ai-clipping"
        },
        "operationId": "listAiClippingV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items per page. Defaults to 10 (lower than other v3 lists) because each item embeds its full clips array.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "ai_clipping:read"
        ]
      },
      "post": {
        "summary": "Create AI Clipping",
        "description": "Submit a source video and return a job id immediately. The job runs asynchronously and produces one or more short clips. Highlights are picked from the spoken dialogue, so music-only or silent videos fail. Clips are 20 seconds or longer; output_settings.duration_types picks the length bands (30, 60, 180, long). Check progress with GET /v3/ai-clipping/{job_id}, or subscribe to the ai_clipping.success / ai_clipping.fail webhooks.",
        "tags": [
          "AI Clipping"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAiClippingResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Source video URL is unsupported or unreachable.",
                    "param": "video",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-ai-clipping"
        },
        "operationId": "createAiClippingV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAiClippingRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "ai_clipping:write"
        ]
      }
    },
    "/v3/filler-word-removals": {
      "post": {
        "summary": "Create Filler Word Removal",
        "description": "Submits a video for filler-word removal and returns a job id. The job cuts filler words and long silences and renders one cleaned video; if nothing changes, the charge is refunded. Poll GET /v3/filler-word-removals/{id} or use webhooks.",
        "tags": [
          "Filler Word Removal"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateFillerWordRemovalResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "Unusable source (zero duration / probe timeout)",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "The input video reports a zero duration \u2014 provide a valid video source.",
                        "param": "video",
                        "doc_url": null
                      }
                    }
                  },
                  "video_too_long": {
                    "summary": "Source exceeds the 2-hour cap",
                    "value": {
                      "error": {
                        "code": "video_too_long",
                        "message": "The input video is 7305s long; the maximum supported duration is 7200s (2 hours).",
                        "param": "video",
                        "doc_url": null
                      }
                    }
                  },
                  "no_audio_track": {
                    "summary": "Source has no audio stream",
                    "value": {
                      "error": {
                        "code": "no_audio_track",
                        "message": "The input video has no audio track. Filler removal needs speech audio to transcribe.",
                        "param": "video",
                        "doc_url": null
                      }
                    }
                  },
                  "download_failed": {
                    "summary": "Source URL unreachable or unreadable",
                    "value": {
                      "error": {
                        "code": "download_failed",
                        "message": "Could not read the input video \u2014 provide a valid, accessible video URL or asset_id.",
                        "param": "video",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Not enough premium credits for Speech Cleanup",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-filler-word-removal"
        },
        "operationId": "createFillerWordRemovalV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFillerWordRemovalRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "filler_removal:write"
        ]
      }
    },
    "/v3/filler-word-removals/{filler_word_removal_id}": {
      "get": {
        "summary": "Get Filler Word Removal",
        "description": "Returns the job resource: lifecycle status, progress, and \u2014 once completed \u2014 the presigned download URL of the cleaned video plus removal statistics (num_cuts, reduction_pct, durations).",
        "tags": [
          "Filler Word Removal"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FillerWordRemovalDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Filler word removal job not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-filler-word-removal"
        },
        "operationId": "getFillerWordRemovalV3",
        "parameters": [
          {
            "name": "filler_word_removal_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique filler word removal job identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "filler_removal:read"
        ]
      }
    },
    "/v3/videos/batches": {
      "post": {
        "summary": "Create Video Batch",
        "description": "Submit up to 100 video creation payloads in one request and return a batch id immediately. Videos are created asynchronously; poll GET /v3/videos/batches/{batch_id} for per-item video ids and statuses.",
        "tags": [
          "Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateVideoBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid payload(s) at index 3.",
                    "param": "videos",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-video-batch"
        },
        "operationId": "createVideoBatchV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoBatchRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/videos/batches/{batch_id}": {
      "get": {
        "summary": "Get Video Batch",
        "description": "Returns batch aggregate status and one page of items with their video ids and statuses. Item statuses are one of queued, processing, completed, or failed.",
        "tags": [
          "Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoBatchDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Batch not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-video-batch"
        },
        "operationId": "getVideoBatchV3",
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video batch identifier returned by POST /v3/videos/batches"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v3/videos/statuses": {
      "get": {
        "summary": "Bulk Video Statuses",
        "description": "Returns statuses for up to 100 videos in one request, addressed by comma-separated video_ids and/or batch_ids query params. Statuses are one of queued, processing, completed, or failed, plus not_found for unknown or unowned ids.",
        "tags": [
          "Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoStatusEntry"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At most 100 ids per request.",
                    "param": "video_ids",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/bulk-video-statuses"
        },
        "operationId": "bulkVideoStatusesV3",
        "parameters": [
          {
            "name": "video_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated video ids to look up.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "batch_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated batch ids; each expands to its member videos.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v3/video-translations/batches": {
      "post": {
        "summary": "Create Video Translation Batch",
        "description": "Submits up to 100 translation payloads, each shaped like POST /v3/video-translations, as one batch. A payload with several `output_languages` becomes one item per language, and items run independently. Returns 202 with a `batch_id` to poll. Send an Idempotency-Key to make retries safe.",
        "tags": [
          "Video Translation Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateVideoTranslationBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid payload(s) at index 3.",
                    "param": "video_translations",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-video-translation-batch"
        },
        "operationId": "createVideoTranslationBatchV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoTranslationBatchRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "translations:write"
        ]
      }
    },
    "/v3/video-translations/batches/{batch_id}": {
      "get": {
        "summary": "Get Video Translation Batch",
        "description": "Returns batch aggregate status and one page of items with their ids and statuses. Item statuses are one of queued, processing, completed, or failed. The per-item id is returned as video_id (the batch read model is shared with the videos batch API).",
        "tags": [
          "Video Translation Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoBatchDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Batch not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-video-translation-batch"
        },
        "operationId": "getVideoTranslationBatchV3",
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video-translation batch identifier returned by POST /v3/video-translations/batches"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v3/video-translations/statuses": {
      "get": {
        "summary": "Bulk Video Translation Statuses",
        "description": "Returns statuses for up to 100 video translations by `video_translation_ids` and/or `batch_ids`: `queued`, `processing`, `completed`, `failed`, or `not_found`. Each entry's id is in `video_id`.",
        "tags": [
          "Video Translation Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoStatusEntry"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At most 100 ids per request.",
                    "param": "video_translation_ids",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/bulk-video-translation-statuses"
        },
        "operationId": "bulkVideoTranslationStatusesV3",
        "parameters": [
          {
            "name": "video_translation_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated video translation ids to look up.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "batch_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated batch ids; each expands to its member video translations.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "translations:read"
        ]
      }
    },
    "/v3/lipsyncs/batches": {
      "post": {
        "summary": "Create Lipsync Batch",
        "description": "Submits up to 100 lipsync payloads as one batch, and items run independently. Returns 202 with a `batch_id`; poll GET /v3/lipsyncs/batches/{batch_id}. Send an Idempotency-Key to make retries safe.",
        "tags": [
          "Lipsync Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateLipsyncBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid payload(s) at index 3.",
                    "param": "lipsyncs",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-lipsync-batch"
        },
        "operationId": "createLipsyncBatchV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLipsyncBatchRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "lipsync:write"
        ]
      }
    },
    "/v3/lipsyncs/batches/{batch_id}": {
      "get": {
        "summary": "Get Lipsync Batch",
        "description": "Returns batch aggregate status and one page of items with their ids and statuses. Item statuses are one of queued, processing, completed, or failed. The per-item id is returned as video_id (the batch read model is shared with the videos batch API).",
        "tags": [
          "Lipsync Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoBatchDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Batch not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-lipsync-batch"
        },
        "operationId": "getLipsyncBatchV3",
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique lipsync batch identifier returned by POST /v3/lipsyncs/batches"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "lipsync:read"
        ]
      }
    },
    "/v3/lipsyncs/statuses": {
      "get": {
        "summary": "Bulk Lipsync Statuses",
        "description": "Returns statuses for up to 100 lipsyncs by `lipsync_ids` and/or `batch_ids`: `queued`, `processing`, `completed`, `failed`, or `not_found`. Each entry's id is in `video_id`.",
        "tags": [
          "Lipsync Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoStatusEntry"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At most 100 ids per request.",
                    "param": "lipsync_ids",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/bulk-lipsync-statuses"
        },
        "operationId": "bulkLipsyncStatusesV3",
        "parameters": [
          {
            "name": "lipsync_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated lipsync ids to look up.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "batch_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated batch ids; each expands to its member lipsyncs.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "lipsync:read"
        ]
      }
    },
    "/v3/assets/direct-uploads/batches": {
      "post": {
        "summary": "Create Asset Upload Batch",
        "description": "Returns up to 100 presigned upload URLs in one call. PUT each file to its `upload_url` with the returned headers, then call POST /v3/assets/complete/batches. Send an Idempotency-Key to make retries safe.",
        "tags": [
          "Asset Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateAssetUploadBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Invalid file(s) at index 3.",
                    "param": "files",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-asset-upload-batch"
        },
        "operationId": "createAssetUploadBatchV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAssetUploadBatchRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/assets/complete/batches": {
      "post": {
        "summary": "Complete Asset Upload Batch",
        "description": "Finalizes every uploaded file in a batch once all PUTs return 200. Files are ingested independently. Returns 202 with the `batch_id`; poll GET /v3/assets/batches/{batch_id} for progress. Safe to repeat.",
        "tags": [
          "Asset Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CompleteAssetBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Batch not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/complete-asset-upload-batch"
        },
        "operationId": "completeAssetBatchV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteAssetBatchRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "assets:write"
        ]
      }
    },
    "/v3/assets/batches/{batch_id}": {
      "get": {
        "summary": "Get Asset Batch",
        "description": "Returns batch aggregate status and one page of items with their ids and statuses. Item statuses are one of queued, processing, completed, or failed. The per-item id is returned as video_id (the batch read model is shared with the videos batch API); for asset batches it holds the asset_id.",
        "tags": [
          "Asset Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoBatchDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Batch not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-asset-batch"
        },
        "operationId": "getAssetBatchV3",
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique asset batch identifier returned by POST /v3/assets/direct-uploads/batches"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination cursor from a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      }
    },
    "/v3/assets/statuses": {
      "get": {
        "summary": "Bulk Asset Statuses",
        "description": "Returns statuses for up to 100 assets by `asset_ids` and/or `batch_ids`: `queued`, `processing`, `completed`, `failed`, or `not_found`. Each entry's id is in `video_id`.",
        "tags": [
          "Asset Batches"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VideoStatusEntry"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "At most 100 ids per request.",
                    "param": "asset_ids",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/bulk-asset-statuses"
        },
        "operationId": "bulkAssetStatusesV3",
        "parameters": [
          {
            "name": "asset_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated asset ids to look up.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "batch_ids",
            "in": "query",
            "required": false,
            "description": "Comma-separated batch ids; each expands to its member assets.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "assets:read"
        ]
      }
    },
    "/v3/podcasts": {
      "post": {
        "summary": "Create Podcast",
        "description": "Generate a multi-avatar conversational podcast video from a topic and/or source files plus two avatars. Generation is asynchronous \u2014 use the returned podcast_id to poll status via GET /v3/podcasts/{podcast_id}.",
        "tags": [
          "Podcasts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PodcastCreateResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Provide at least one of `topic` or `source_files`.",
                    "param": "topic",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createPodcastV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePodcastRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "podcasts:write"
        ]
      },
      "get": {
        "summary": "List Podcasts",
        "description": "Returns a paginated list of the podcasts in the authenticated workspace, newest first.",
        "tags": [
          "Podcasts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PodcastDetail"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "'limit' must be between 1 and 100.",
                    "param": "limit",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listPodcastsV3",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor token for the next page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "podcasts:read"
        ]
      }
    },
    "/v3/podcasts/{podcast_id}": {
      "get": {
        "summary": "Get Podcast",
        "description": "Returns a podcast's status and, once completed, its video_url, thumbnail_url, and duration.",
        "tags": [
          "Podcasts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PodcastDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Podcast not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getPodcastV3",
        "parameters": [
          {
            "name": "podcast_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique podcast identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "podcasts:read"
        ]
      },
      "delete": {
        "summary": "Delete Podcast",
        "description": "Soft-deletes a podcast so it no longer appears in the get/list endpoints. Does not cancel in-flight generation or permanently remove files. Idempotent: deleting an already-deleted podcast succeeds.",
        "tags": [
          "Podcasts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PodcastDeleteResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Podcast not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "deletePodcastV3",
        "parameters": [
          {
            "name": "podcast_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique podcast identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "podcasts:write"
        ]
      }
    },
    "/v3/workflows": {
      "post": {
        "summary": "Create Workflow",
        "description": "Creates a workflow and publishes its graph as version 1 in one step, ready to run. An invalid graph returns 422 `graph_invalid` and a duplicate name returns 409 `conflict`; neither creates anything. With an Idempotency-Key, a retry of the same request within 24 hours replays a snapshot of the original body with HTTP 200. Unlike run creation, this is not durable.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowDefinitionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "description": "Graph invalid \u2014 the request parsed but the workflow graph is semantically invalid; `error.errors[]` lists every issue found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "graph_invalid",
                    "message": "The workflow graph is invalid. Each entry in errors identifies one problem to fix.",
                    "param": null,
                    "doc_url": null,
                    "errors": [
                      {
                        "code": "unknown_node_type",
                        "message": "unknown node family 'lmm'",
                        "node_id": "summary"
                      },
                      {
                        "code": "invalid_config",
                        "message": "Field required",
                        "node_id": "narrate",
                        "path": "config.prompt"
                      }
                    ]
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `conflict`, `request_in_progress`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "workflow_name_conflict": {
                    "summary": "A workflow with this name already exists in the space",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "A workflow named 'Onboarding' already exists in this space.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "idempotency_key_reused": {
                    "summary": "Idempotency-Key reused with a different request",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "200": {
            "description": "Idempotency-key replay of a previously created workflow.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowDefinitionResponse"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createWorkflow",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      },
      "get": {
        "summary": "List Workflows",
        "description": "Returns a paginated list of workflow definitions.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowDefinitionListItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listWorkflowDefinitions",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max items per page (1-100). Defaults to 10 if omitted.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination token from a prior response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/workflows/{workflow_id}": {
      "get": {
        "summary": "Get Workflow",
        "description": "Returns a single workflow definition, including its current mutable draft graph.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowDefinitionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getWorkflow",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Workflow definition ID"
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      },
      "patch": {
        "summary": "Update Workflow Draft",
        "description": "Replaces the mutable draft product graph. Rejected (409) if `expected_revision` is stale, and 422 `graph_invalid` if the graph uses node types not available for authoring \u2014 the draft is left unchanged in both cases.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowDefinitionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Graph invalid \u2014 the request parsed but the workflow graph is semantically invalid; `error.errors[]` lists every issue found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "graph_invalid",
                    "message": "The workflow graph is invalid. Each entry in errors identifies one problem to fix.",
                    "param": null,
                    "doc_url": null,
                    "errors": [
                      {
                        "code": "unknown_node_type",
                        "message": "unknown node family 'lmm'",
                        "node_id": "summary"
                      },
                      {
                        "code": "invalid_config",
                        "message": "Field required",
                        "node_id": "narrate",
                        "path": "config.prompt"
                      }
                    ]
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `stale_workflow_draft`, `workflow_archived`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "stale_workflow_draft": {
                    "summary": "expected_revision no longer matches",
                    "value": {
                      "error": {
                        "code": "stale_workflow_draft",
                        "message": "Definition 'def_abc123' draft_revision is 3, expected 2. Re-read the workflow and reapply the change.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "workflow_archived": {
                    "summary": "Workflow definition is archived",
                    "value": {
                      "error": {
                        "code": "workflow_archived",
                        "message": "Definition 'def_abc123' is archived and cannot be modified.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "updateWorkflowDraft",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Workflow definition ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowDraftRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/v3/workflows/{workflow_id}/versions": {
      "post": {
        "summary": "Publish Workflow Version",
        "description": "Publishes the graph in the body as the workflow's next immutable version: 201 when new, 200 when it matches the latest. Roll back by republishing an earlier graph. An invalid graph returns 422 `graph_invalid`. With an Idempotency-Key, a retry within 24 hours replays a snapshot of the original body with HTTP 200, and reuse with a different graph returns 409 `conflict`. Unlike run creation, this is not durable.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowVersionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Graph invalid \u2014 the request parsed but the workflow graph is semantically invalid; `error.errors[]` lists every issue found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "graph_invalid",
                    "message": "The workflow graph is invalid. Each entry in errors identifies one problem to fix.",
                    "param": null,
                    "doc_url": null,
                    "errors": [
                      {
                        "code": "unknown_node_type",
                        "message": "unknown node family 'lmm'",
                        "node_id": "summary"
                      },
                      {
                        "code": "invalid_config",
                        "message": "Field required",
                        "node_id": "narrate",
                        "path": "config.prompt"
                      }
                    ]
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "A concurrent publish on this workflow took the version number. This is safe to retry: repeat the request (with the same Idempotency-Key, a retry after success replays the published version).",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `workflow_archived`, `conflict`, `request_in_progress`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "workflow_archived": {
                    "summary": "Workflow definition is archived",
                    "value": {
                      "error": {
                        "code": "workflow_archived",
                        "message": "Definition 'def_abc123' is archived; nothing was published.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "idempotency_key_reused": {
                    "summary": "Idempotency-Key reused with a different request or target",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "request_in_progress": {
                    "summary": "Concurrent retry with same Idempotency-Key",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "200": {
            "description": "Existing identical version returned, or an idempotency-key replay.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowVersionResponse"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "publishWorkflowVersion",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Workflow definition ID"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishVersionRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      },
      "get": {
        "summary": "List Workflow Versions",
        "description": "Returns a paginated list of immutable, compiled versions for a workflow definition.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowVersionListItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listWorkflowVersions",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Workflow definition ID"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max items per page (1-100). Defaults to 10 if omitted.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination token from a prior response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/workflows/{workflow_id}/versions/{version_number}": {
      "get": {
        "summary": "Get Workflow Version",
        "description": "Returns a single immutable, compiled workflow version, including its full plan summary.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowVersionResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getWorkflowVersion",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Workflow definition ID"
          },
          {
            "name": "version_number",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Version number"
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/workflows/node-types": {
      "get": {
        "summary": "List Workflow Node Types",
        "description": "Discovery catalog of authorable node types, grouped by family with per-variant config schema and ports. Discovery metadata only: publishing a workflow version remains the authoritative validation of a graph.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/NodeTypeCatalogResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getWorkflowNodeTypes",
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/workflow-runs": {
      "post": {
        "summary": "Start a workflow run",
        "description": "Starts a run of a workflow and submits the run for execution. No video is created and nothing is charged by this call. Omit `version_number` to use the latest published version, resolved exactly once per `Idempotency-Key`. The key is required: repeating it returns that original run, reusing it with different inputs returns 409 `conflict`, and it is how to recover from a retryable 503.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowRunResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Workflow not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Workflow run admission is temporarily unavailable. This is safe and expected to retry: repeat this request with the same Idempotency-Key to resume this run.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `conflict`, `workflow_archived`, `workflow_run_admission_refused`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "conflict": {
                    "summary": "Idempotency-Key reused with a different request body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "An Idempotency-Key was reused with a different request body. Use a new key, or repeat the original request exactly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "workflow_archived": {
                    "summary": "Workflow definition is archived",
                    "value": {
                      "error": {
                        "code": "workflow_archived",
                        "message": "Definition 'def_abc123' is archived and cannot start new runs.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "workflow_run_admission_refused": {
                    "summary": "Run inputs rejected at admission (terminal)",
                    "value": {
                      "error": {
                        "code": "workflow_run_admission_refused",
                        "message": "This run could not be started: its inputs were rejected during workflow scheduling. Retrying will not resolve this; review the run's inputs.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "200": {
            "description": "Existing run returned for a repeated Idempotency-Key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowRunResponse"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createWorkflowRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/DurableIdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowRunRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      },
      "get": {
        "summary": "List Workflow Runs",
        "description": "Returns a paginated list of runs for the workflow named by the required `workflow_id` query parameter, newest first. List items are compact status rows; fetch a single run for its outputs and error detail.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowRunListItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listWorkflowRuns",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "query",
            "required": true,
            "description": "Workflow whose runs to list. Required.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max items per page (1-100). Defaults to 10 if omitted.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination token from a prior response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/workflow-runs/{run_id}": {
      "get": {
        "summary": "Get Workflow Run",
        "description": "Returns a workflow run: its pinned version, timestamps, node progress, any terminal error and every declared output. Media outputs carry a fresh URL; inline JSON outputs carry their value, up to 64 KiB each and 256 KiB per response. Per-node detail is under /nodes.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowRunResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getWorkflowRun",
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Run ID"
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/workflow-runs/{run_id}/cancel": {
      "post": {
        "summary": "Cancel Workflow Run",
        "description": "Requests cancellation of a run. Safe to repeat in any state: a 200 reports the settled outcome, canceled now or already finished. A retryable 503 means cancellation could not be confirmed and the run is unchanged.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkflowRunResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "This cancellation could not be confirmed. It is safe to retry this request, or fetch the run to see its current status.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "cancelWorkflowRun",
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Run ID"
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:write"
        ]
      }
    },
    "/v3/workflow-runs/{run_id}/nodes": {
      "get": {
        "summary": "List Workflow Run Nodes",
        "description": "Paginated per-node diagnostics for one run: node id, status, timestamps, and a sanitized error for failed nodes. Diagnostics only \u2014 a run's declared outputs live on the run resource itself.",
        "tags": [
          "Durable Workflows"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WorkflowRunNodeItem"
                      }
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more pages are available"
                    },
                    "next_token": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Opaque cursor for the next page"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "listWorkflowRunNodes",
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Run ID"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max items per page (1-100). Defaults to 10 if omitted.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque pagination token from a prior response's next_token.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-heygen-required-scopes": [
          "workflows:read"
        ]
      }
    },
    "/v3/video-quality/comparisons": {
      "post": {
        "summary": "Create Video Quality Comparison",
        "description": "Submit one pairwise video comparison. The server waits for a bounded synchronous result: completed comparisons return 200, while comparisons that continue asynchronously return 202 and can be polled by comparison_id.",
        "tags": [
          "Video Quality"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoQualityComparisonResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          },
          "202": {
            "description": "Accepted \u2014 comparison continues asynchronously; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoQualityComparisonResponse"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createVideoQualityComparisonV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoQualityComparisonRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "video_quality:write"
        ]
      }
    },
    "/v3/video-quality/comparisons/{comparison_id}": {
      "get": {
        "summary": "Get Video Quality Comparison",
        "description": "Return the latest state and result or terminal error for one comparison.",
        "tags": [
          "Video Quality"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoQualityComparisonResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getVideoQualityComparisonV3",
        "parameters": [
          {
            "name": "comparison_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video quality comparison identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "video_quality:read"
        ]
      }
    },
    "/v3/video-quality/comparisons/batches": {
      "post": {
        "summary": "Create Video Quality Comparison Batch",
        "description": "Submit up to 2000 pairwise video comparisons for asynchronous processing.",
        "tags": [
          "Video Quality"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateVideoQualityComparisonBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createVideoQualityComparisonBatchV3",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVideoQualityComparisonBatchRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "video_quality:write"
        ]
      }
    },
    "/v3/video-quality/comparisons/batches/{batch_id}": {
      "get": {
        "summary": "Get Video Quality Comparison Batch",
        "description": "Return aggregate batch status and one cursor-paginated page of comparison items.",
        "tags": [
          "Video Quality"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoQualityComparisonBatchResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getVideoQualityComparisonBatchV3",
        "parameters": [
          {
            "name": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video quality comparison batch identifier"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of ordered batch items to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "description": "Opaque cursor returned by a previous page.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          }
        ],
        "x-heygen-required-scopes": [
          "video_quality:read"
        ]
      }
    },
    "/v3/models/videos": {
      "post": {
        "summary": "Create HeyGen Video",
        "description": "Generates a scene with its sound from a prompt using HeyGen Video (`heygen-video-1`). Set `mode` to `text_to_video`, `image_to_video` or `reference_to_video`; reference-to-video takes up to fifteen references in total, and reference videos must be between 1:4 and 4:1. Returns 202 with a `video_id`; poll GET /v3/models/videos/{video_id}. Send an Idempotency-Key to retry safely; without one, each submission creates a new generation. To have an avatar speak a script, use POST /v3/videos.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateModelVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Provide at least one reference image, video, or audio recording.",
                    "param": "reference_images",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient credits for the video and its references. Add credits or use a shorter video or fewer references.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_ready",
                    "message": "Asset ingestion is temporarily unavailable. Retry with the same Idempotency-Key."
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-heygen-video"
        },
        "operationId": "createModelVideo",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateModelVideoRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/models/videos/{video_id}": {
      "get": {
        "summary": "Get HeyGen Video",
        "description": "Returns a HeyGen Video generation: `pending`, `processing`, `completed`, `failed` or `cancelled`. Completed results include a fresh `video_url`, duration and dimensions; failed results include `failure_code` and `failure_message`. Poll again to refresh an expired URL.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVideoResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Video generation request not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-heygen-video"
        },
        "operationId": "getModelVideo",
        "parameters": [
          {
            "name": "video_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Unique video identifier"
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    },
    "/v3/models/avatars": {
      "post": {
        "summary": "Create Avatar 6 Video",
        "description": "Animates a reference image or video with driving speech audio using Avatar 6 (`heygen-avatar-6` or `heygen-avatar-6-turbo`). Provide one reference image or one reference video, plus `audio`. Optionally direct the performance with `motion_prompt` or `motion_expressiveness`. Returns 202 with a `video_id`; poll GET /v3/models/videos/{video_id}. Send an Idempotency-Key to retry safely. Access is invite-only. To have a saved avatar look speak a script, use POST /v3/videos.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateModelAvatarResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "invalid_parameter",
                    "message": "Value error, Provide at least one reference image or video.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "asset_not_found",
                    "message": "Asset not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "forbidden",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "422": {
            "description": "Graph invalid \u2014 the request parsed but the workflow graph is semantically invalid; `error.errors[]` lists every issue found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "realistic_human_reference_not_allowed",
                    "message": "Using videos of realistic humans as references requires identity verification. Create your avatar in HeyGen, then use the /v3/videos API to create your video. For enterprise access, contact our sales team at https://www.heygen.com/contact-us/sales.",
                    "param": "reference_videos",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "Reference video screening is unavailable. Retry the request shortly.",
                    "param": "reference_videos",
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-hidden": true,
        "operationId": "createModelAvatarVideo",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateModelAvatarRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/models/images": {
      "post": {
        "summary": "Create HeyGen Image",
        "description": "Generate one to five portraits with identity_remix, the default and only supported mode. Provide one to five identity_images and exactly one item in reference_images. The output preserves the identity while following the reference image's clothing, pose, composition, and background. Returns a generation_id to poll. The job completes when all requested images are available; partial results are not returned.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted \u2014 submission acknowledged; poll for completion.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CreateImageGenerationResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Image generation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/IdempotencyInProgress"
          }
        },
        "x-mint": {
          "href": "/reference/create-heygen-image"
        },
        "operationId": "createImageGeneration",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateImageGenerationRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "images:write"
        ]
      }
    },
    "/v3/models/images/{generation_id}": {
      "get": {
        "summary": "Get HeyGen Image",
        "description": "Return the generation job status and ordered images with fresh download URLs once the entire job completes.",
        "tags": [
          "Models"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ImageGenerationResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Image generation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mint": {
          "href": "/reference/get-heygen-image"
        },
        "operationId": "getImageGeneration",
        "parameters": [
          {
            "name": "generation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Generation job identifier returned by create image generation."
          }
        ],
        "x-heygen-required-scopes": [
          "images:read"
        ]
      }
    },
    "/v3/images": {
      "post": {
        "summary": "Create Image",
        "description": "Generate images with `gpt-image-2.5`, `gpt-image-2.6`, `gpt-image-2.6-flare`, `nano-banana-2` or `nano-banana-2.1`, or edit the reference images when any are given. The request waits for the images and answers 200 with them; a generation is capped at 300 seconds. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original result instead of generating again, and a duplicate sent while the original is still running gets 409 `request_in_progress`. A request the workspace's API credits cannot cover is refused with 402 `insufficient_credit` before any work starts. The credits are charged once the images are generated; a failed generation is not charged. If the balance no longer covers the charge when the images are ready, the request answers 402 `insufficient_credit` without them. A completed generation's `charged` is what it actually debited, and from which balance. The request body is capped at about 7.4 MiB, so inline `base64` references together must stay under about 5 MiB decoded; send larger or additional images as `url` or `asset_id`.",
        "tags": [
          "Images"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The finished generation with its images.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThirdPartyImageResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "The model is not available",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "model is required and must be one of gpt-image-2.5, gpt-image-2.6, gpt-image-2.6-flare, nano-banana-2, nano-banana-2.1.",
                        "param": "model",
                        "doc_url": null
                      }
                    }
                  },
                  "content_policy_violation": {
                    "summary": "The image model rejected the prompt or references",
                    "value": {
                      "error": {
                        "code": "content_policy_violation",
                        "message": "The prompt or reference images were rejected by the image model's content policy.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 0.50 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden \u2014 `error.code` is one of: `resource_access_denied`, `ai_vendor_access_restricted`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "resource_access_denied": {
                    "summary": "The caller's workspace role cannot use the API",
                    "value": {
                      "error": {
                        "code": "resource_access_denied",
                        "message": "Your account does not have permission to access this resource. Ask your Space Admin for further details.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "ai_vendor_access_restricted": {
                    "summary": "The workspace's AI vendor policy blocks the model's vendor",
                    "value": {
                      "error": {
                        "code": "ai_vendor_access_restricted",
                        "message": "Workspace AI vendor policy blocks openai for this request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable \u2014 the request did not complete and is safe to retry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "service_unavailable",
                    "message": "The image model is unavailable or did not finish in time. Nothing was charged. Send a new request with a new Idempotency-Key to try again.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "request_in_progress": {
                    "summary": "A request with this Idempotency-Key is still running",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createImage",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "Required. A retry with the same key and body returns the original result instead of generating again: the images when it finished, or the same error when it failed. A different body under the same key returns 409 `conflict`. A retry that arrives while the original is still running gets 409 `request_in_progress`. Scope is the calling user plus the request path: another member of the same workspace sending the same key gets their own generation. A missing or blank value is rejected with 400. Keys must be 1\u2013255 characters from `[A-Za-z0-9_:.-]`; a UUID is a safe default.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-:.]{1,255}$",
              "maxLength": 255,
              "minLength": 1
            },
            "example": "550e8400-e29b-41d4-a716-446655440000"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "images:write"
        ]
      }
    },
    "/v3/images/{generation_id}": {
      "get": {
        "summary": "Get Image",
        "description": "Return a generation created by `POST /v3/images`: its images with fresh download URLs once completed, its failure code once failed, or `pending` while the creating request is still running.",
        "tags": [
          "Images"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThirdPartyImageResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Image generation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getImage",
        "parameters": [
          {
            "name": "generation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `id` returned by create image."
          }
        ],
        "x-heygen-required-scopes": [
          "images:read"
        ]
      }
    },
    "/v3/video-generations": {
      "post": {
        "summary": "Create Video Generation",
        "description": "Generate a video from a prompt with the model `model` names, each with its own options: `seedance-2.5`, optionally guided by reference images and reference videos, or `minimax-h3-max`, optionally opening on a `first_frame` image, ending on an `end_frame`, steered through a `middle_frame`, and guided by reference images, reference videos and reference audio. The request answers 200 once the generation is accepted, with `status` `pending`, and the generation finishes whether or not it is read. Read it with `GET /v3/video-generations/{generation_id}` until it is `completed` with a time-limited `video_url`, or `failed`, or pass `callback_url` to receive `video_generation.success` or `video_generation.fail` when it finishes; the workspace's configured webhook endpoints receive the same events. Send an `Idempotency-Key` header with every request: it is required. Repeating a request with the same key and body returns the original generation instead of submitting again. The workspace's API credits are charged when the request starts. A request the credits cannot cover is refused with 402 `insufficient_credit` before any work starts, and a generation that fails is refunded. The request body is capped at about 22 MiB, so inline `base64` references together must stay under about 16 MiB decoded; send larger or additional references as `url` or `asset_id`.",
        "tags": [
          "Video Generations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "The submitted generation, `pending` until the model finishes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoGenerationResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "invalid_parameter": {
                    "summary": "An option the model does not accept",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Input should be less than or equal to 30",
                        "param": "duration",
                        "doc_url": null
                      }
                    }
                  },
                  "aspect_ratio": {
                    "summary": "An aspect ratio the model does not render yet",
                    "value": {
                      "error": {
                        "code": "invalid_parameter",
                        "message": "Model seedance-2.5 renders aspect_ratio 16:9, 9:16, 1:1 only.",
                        "param": "aspect_ratio",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "insufficient_credit",
                    "message": "Insufficient API credits: this request needs 1.17 API credits.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden \u2014 `error.code` is one of: `resource_access_denied`, `ai_vendor_access_restricted`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "resource_access_denied": {
                    "summary": "The caller's workspace role cannot use the API",
                    "value": {
                      "error": {
                        "code": "resource_access_denied",
                        "message": "Your account does not have permission to access this resource. Ask your Space Admin for further details.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "ai_vendor_access_restricted": {
                    "summary": "The workspace's AI vendor policy blocks the model's vendor",
                    "value": {
                      "error": {
                        "code": "ai_vendor_access_restricted",
                        "message": "Workspace AI vendor policy blocks bytedance for this request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict \u2014 `error.code` is one of: `request_in_progress`, `conflict`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "examples": {
                  "request_in_progress": {
                    "summary": "A request with this Idempotency-Key is still submitting",
                    "value": {
                      "error": {
                        "code": "request_in_progress",
                        "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  },
                  "conflict": {
                    "summary": "The Idempotency-Key was used with a different body",
                    "value": {
                      "error": {
                        "code": "conflict",
                        "message": "This Idempotency-Key was already used with a different request. Send a new key for a new request.",
                        "param": null,
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "createVideoGeneration",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "Required. A retry with the same key and body returns the original generation instead of submitting again, or the same error when its request failed. A different body under the same key returns 409 `conflict`. A retry that arrives while the original request is still submitting gets 409 `request_in_progress`. Scope is the calling user plus the request path: another member of the same workspace sending the same key gets their own generation. A missing or blank value is rejected with 400. Keys must be 1\u2013255 characters from `[A-Za-z0-9_:.-]`; a UUID is a safe default.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_\\-:.]{1,255}$",
              "maxLength": 255,
              "minLength": 1
            },
            "example": "550e8400-e29b-41d4-a716-446655440000"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoGenerationCreateRequest"
              }
            }
          }
        },
        "x-heygen-required-scopes": [
          "videos:write"
        ]
      }
    },
    "/v3/video-generations/{generation_id}": {
      "get": {
        "summary": "Get Video Generation",
        "description": "Return a generation created by `POST /v3/video-generations`: `pending` while the model works, `completed` with a fresh `video_url` to the mp4, or `failed` with its failure code. A failed generation is refunded.",
        "tags": [
          "Video Generations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/VideoGenerationResponse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Invalid or expired API key. Verify your x-api-key header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "rate_limit_exceeded",
                    "message": "Too many requests. Retry after the duration specified in the Retry-After header.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/StandardAPIError"
                    }
                  }
                },
                "example": {
                  "error": {
                    "code": "resource_not_found",
                    "message": "Video generation not found.",
                    "param": null,
                    "doc_url": null
                  }
                }
              }
            }
          }
        },
        "x-mcp-visible": false,
        "x-cli-visible": false,
        "x-excluded": true,
        "operationId": "getVideoGeneration",
        "parameters": [
          {
            "name": "generation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `id` returned by create video generation."
          }
        ],
        "x-heygen-required-scopes": [
          "videos:read"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "LegacyAPIError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable error code",
            "example": "invalid_parameter"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "prompt is required"
          },
          "request_id": {
            "type": "string",
            "description": "Request identifier, also returned in the X-HeyGen-Request-Id response header. Include it when contacting support.",
            "example": "8c4f0b9e1d2a4f6b9e3c7a1d5f2b8e40"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "StandardAPIError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable error code",
            "example": "invalid_parameter"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "Video not found"
          },
          "param": {
            "type": [
              "string",
              "null"
            ],
            "description": "Which request field caused the error"
          },
          "doc_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Link to error documentation"
          },
          "errors": {
            "type": "array",
            "description": "Per-item error details for batch/multi-node failures (e.g. graph compilation errors by node).",
            "items": {
              "$ref": "#/components/schemas/StandardAPIErrorDetail"
            }
          },
          "request_id": {
            "type": "string",
            "description": "Request identifier, also returned in the X-HeyGen-Request-Id response header. Include it when contacting support.",
            "example": "8c4f0b9e1d2a4f6b9e3c7a1d5f2b8e40"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "StandardAPIErrorDetail": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable error code",
            "example": "unknown_node_type"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "Unknown node type"
          },
          "node_id": {
            "type": "string",
            "description": "Graph node id this error pertains to, if applicable"
          },
          "port": {
            "type": "string",
            "description": "Port name on the node this error pertains to, if applicable"
          },
          "path": {
            "type": "string",
            "description": "Field path within the item this error pertains to, if applicable"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "V1APIError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "API status code",
            "example": 401
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message",
            "example": "Unauthorized"
          },
          "request_id": {
            "type": "string",
            "description": "Request identifier, also returned in the X-HeyGen-Request-Id response header. Include it when contacting support.",
            "example": "8c4f0b9e1d2a4f6b9e3c7a1d5f2b8e40"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "ExternalCreateVideoAgentSessionRequest": {
        "additionalProperties": false,
        "description": "Request body for creating a video from a prompt using Video Agent V2A.",
        "properties": {
          "prompt": {
            "description": "The message/prompt for video generation (1-10000 characters)",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "avatar_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Specific avatar ID to use",
            "title": "Avatar Id"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Specific voice ID to use for narration",
            "title": "Voice Id"
          },
          "orientation": {
            "anyOf": [
              {
                "enum": [
                  "landscape",
                  "portrait"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video orientation. If not provided, auto-detected from content.",
            "title": "Orientation"
          },
          "duration_sec": {
            "anyOf": [
              {
                "minimum": 5,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Approximate video duration in seconds (minimum 5)",
            "title": "Duration Sec"
          },
          "config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAgentConfig"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Deprecated. Use top-level avatar_id, orientation, and duration_sec instead. Video generation configuration."
          },
          "files": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FileInput"
                },
                "maxItems": 20,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional file attachments (max 20 files)",
            "title": "Files"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL for completion/failure notifications",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional callback ID included in webhook payload",
            "title": "Callback Id"
          },
          "incognito_mode": {
            "default": false,
            "description": "When enabled, disables memory injection and extraction for this session",
            "title": "Incognito Mode",
            "type": "boolean"
          }
        },
        "required": [
          "prompt"
        ],
        "title": "ExternalCreateVideoAgentSessionRequest",
        "type": "object"
      },
      "FileInput": {
        "additionalProperties": false,
        "description": "Input file attachment for video generation.",
        "properties": {
          "asset_id": {
            "description": "HeyGen asset ID (from /v1/asset upload endpoint). Supported types: image (png, jpeg), video (mp4, webm), pdf.",
            "title": "Asset Id",
            "type": "string"
          }
        },
        "required": [
          "asset_id"
        ],
        "title": "FileInput",
        "type": "object"
      },
      "VideoAgentConfig": {
        "additionalProperties": false,
        "description": "Configuration options for video generation.",
        "properties": {
          "duration_sec": {
            "anyOf": [
              {
                "minimum": 5,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Approximate video duration in seconds (minimum 5)",
            "title": "Duration Sec"
          },
          "orientation": {
            "anyOf": [
              {
                "enum": [
                  "landscape",
                  "portrait"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video orientation. If not provided, auto-detected from content.",
            "title": "Orientation"
          },
          "avatar_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Specific avatar ID to use",
            "title": "Avatar Id"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Specific voice ID to use for narration",
            "title": "Voice Id"
          }
        },
        "title": "VideoAgentConfig",
        "type": "object"
      },
      "ExternalCreateVideoAgentSessionResponse": {
        "description": "Response from creating a video.",
        "properties": {
          "video_id": {
            "description": "Video ID. Use with GET /v2/videos/{video_id} for polling",
            "title": "Video Id",
            "type": "string"
          },
          "session_id": {
            "description": "Video Agent session ID",
            "title": "Session Id",
            "type": "string"
          }
        },
        "required": [
          "video_id",
          "session_id"
        ],
        "title": "ExternalCreateVideoAgentSessionResponse",
        "type": "object"
      },
      "CreateVideoAgentRequest": {
        "additionalProperties": false,
        "description": "Request body for creating a video from a prompt using Video Agent v3.\n\nAll configuration is flat (no nested config object). Files use the\ntype-discriminated AssetInput union for flexible asset inputs.\n\nSupports two modes:\n- ``generate`` (default): one-shot \u2014 auto-proceeds through storyboard, produces one video.\n- ``chat``: multi-turn \u2014 may pause for user input on real decisions (e.g. pick a voice),\n  auto-proceeds on confirmations. Allows follow-up messages, targeted edits, and additional videos.",
        "properties": {
          "prompt": {
            "description": "The message/prompt for video generation (1-10000 characters)",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "mode": {
            "$ref": "#/components/schemas/SessionMode",
            "default": "generate",
            "description": "Session mode. 'generate' produces one video (fire-and-forget). 'chat' enables multi-turn interaction \u2014 the agent may pause for decisions and accept follow-up messages."
          },
          "avatar_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Specific avatar ID to use",
            "title": "Avatar Id"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Specific voice ID to use for narration",
            "title": "Voice Id"
          },
          "style_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Style ID from GET /v3/video-agents/styles. Applies a curated visual template to the generated video.",
            "title": "Style Id"
          },
          "brand_kit_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand kit ID to apply brand colors, fonts, and logos to the generated video. In enterprise workspaces with a locked brand policy, only the workspace default brand kit is accepted; omit this field to apply the workspace default automatically.",
            "title": "Brand Kit Id"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in the generated video's narration (for example, saying 'HeyGen' as 'hey-jen'). Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "orientation": {
            "anyOf": [
              {
                "enum": [
                  "landscape",
                  "portrait"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video orientation. If not provided, auto-detected from content.",
            "title": "Orientation"
          },
          "files": {
            "anyOf": [
              {
                "items": {
                  "discriminator": {
                    "mapping": {
                      "asset_id": "#/components/schemas/AssetId",
                      "base64": "#/components/schemas/AssetBase64",
                      "url": "#/components/schemas/AssetUrl"
                    },
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssetUrl"
                    },
                    {
                      "$ref": "#/components/schemas/AssetId"
                    },
                    {
                      "$ref": "#/components/schemas/AssetBase64"
                    }
                  ]
                },
                "maxItems": 20,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional file attachments (max 20 files)",
            "title": "Files"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL for completion/failure notifications",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional callback ID included in webhook payload",
            "title": "Callback Id"
          },
          "visibility": {
            "default": "space",
            "description": "Who can open the session. `private`: the owner only. `space`: everyone in the workspace can open and drive the session. `selected`: the owner plus the workspace members listed in `members`. Defaults to `space`. Applies to the session and its conversation; does not change existing sessions.",
            "enum": [
              "private",
              "space",
              "selected"
            ],
            "title": "Visibility",
            "type": "string"
          },
          "members": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "maxItems": 100,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Email addresses to grant access to. Valid only with `visibility: selected`, and every address must belong to a member of the caller's workspace (max 100). May be omitted or empty, leaving the session owner-only until members are added.",
            "title": "Members"
          },
          "incognito_mode": {
            "default": false,
            "description": "When enabled, disables memory injection and extraction for this session",
            "title": "Incognito Mode",
            "type": "boolean"
          }
        },
        "required": [
          "prompt"
        ],
        "title": "CreateVideoAgentRequest",
        "type": "object"
      },
      "AssetBase64": {
        "additionalProperties": false,
        "description": "Asset input via base64-encoded content.",
        "properties": {
          "type": {
            "const": "base64",
            "description": "Input type discriminator",
            "title": "Type",
            "type": "string"
          },
          "media_type": {
            "description": "MIME type of the encoded content (e.g. \"image/png\")",
            "title": "Media Type",
            "type": "string"
          },
          "data": {
            "description": "Base64-encoded file content",
            "title": "Data",
            "type": "string"
          }
        },
        "required": [
          "type",
          "media_type",
          "data"
        ],
        "title": "AssetBase64",
        "type": "object",
        "x-mcp-visible": false
      },
      "AssetId": {
        "additionalProperties": false,
        "description": "Asset input via HeyGen asset ID from the asset upload endpoint.",
        "properties": {
          "type": {
            "const": "asset_id",
            "description": "Input type discriminator",
            "title": "Type",
            "type": "string"
          },
          "asset_id": {
            "description": "HeyGen asset ID from an asset upload or import; not a third-party file ID.",
            "title": "Asset Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "asset_id"
        ],
        "title": "AssetId",
        "type": "object"
      },
      "AssetUrl": {
        "additionalProperties": false,
        "description": "Asset input via publicly accessible HTTPS URL.",
        "properties": {
          "type": {
            "const": "url",
            "description": "Input type discriminator",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "description": "Public http(s) URL HeyGen can download without auth or redirects. Not a local or sandbox path (/mnt/data/..., file://, sandbox:); upload such files and pass asset_id.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "type",
          "url"
        ],
        "title": "AssetUrl",
        "type": "object"
      },
      "SessionMode": {
        "enum": [
          "generate",
          "chat"
        ],
        "title": "SessionMode",
        "type": "string"
      },
      "CreateVideoAgentResponse": {
        "description": "Response from creating a video agent session.",
        "properties": {
          "session_id": {
            "description": "Session ID \u2014 primary identifier for this video agent session",
            "examples": [
              "sess_012abc345def678"
            ],
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "description": "Session status",
            "enum": [
              "generating",
              "thinking",
              "completed",
              "failed"
            ],
            "examples": [
              "generating"
            ],
            "title": "Status",
            "type": "string"
          },
          "video_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video ID for polling via GET /v3/videos/{video_id}, when available. For a failed video, inspect `failure_code` and `failure_message` for the reason.",
            "examples": [
              "v_abc123def456"
            ],
            "title": "Video Id"
          },
          "created_at": {
            "description": "Unix timestamp of session creation",
            "examples": [
              1711929600
            ],
            "title": "Created At",
            "type": "integer"
          }
        },
        "required": [
          "session_id",
          "status",
          "created_at"
        ],
        "title": "CreateVideoAgentResponse",
        "type": "object"
      },
      "SessionListItem": {
        "description": "A single session in the list response.",
        "properties": {
          "session_id": {
            "description": "Session ID",
            "title": "Session Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LLM-generated session title",
            "title": "Title"
          },
          "created_at": {
            "description": "Unix timestamp of session creation",
            "title": "Created At",
            "type": "integer"
          }
        },
        "required": [
          "session_id",
          "created_at"
        ],
        "title": "SessionListItem",
        "type": "object"
      },
      "StyleItem": {
        "description": "A single style in the listing response.",
        "properties": {
          "style_id": {
            "description": "Unique style identifier. Pass to POST /v3/video-agents as style_id.",
            "title": "Style Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the style.",
            "title": "Name",
            "type": "string"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Thumbnail image URL (public CDN).",
            "title": "Thumbnail Url"
          },
          "preview_video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Preview video URL (public CDN, mp4).",
            "title": "Preview Video Url"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Tags (e.g., cinematic, retro-tech, iconic-artist).",
            "title": "Tags"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Aspect ratio (e.g., '16:9', '9:16', '1:1').",
            "title": "Aspect Ratio"
          }
        },
        "required": [
          "style_id",
          "name"
        ],
        "title": "StyleItem",
        "type": "object"
      },
      "BrandGlossaryItem": {
        "description": "A single brand glossary entry in the list response.",
        "properties": {
          "brand_glossary_id": {
            "description": "Unique brand glossary ID. Pass it as `brand_glossary_id` when creating a video or translation to apply this glossary.",
            "title": "Brand Glossary Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the brand glossary.",
            "title": "Name",
            "type": "string"
          },
          "created_at": {
            "description": "Creation timestamp (UTC).",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Last update timestamp (UTC).",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "brand_glossary_id",
          "name",
          "created_at",
          "updated_at"
        ],
        "title": "BrandGlossaryItem",
        "type": "object"
      },
      "CreateBrandKitRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/brand-kits.",
        "properties": {
          "url": {
            "description": "Public website URL to build the brand kit from. HeyGen visits the site and imports the brand assets it finds there, including logos, colors and font files. By calling this endpoint you confirm you have the rights and licenses necessary to upload, store and use those assets in HeyGen.",
            "maxLength": 2048,
            "title": "Url",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name for the brand kit, up to 256 characters. Defaults to the brand name detected on the site, or its domain.",
            "title": "Name"
          }
        },
        "required": [
          "url"
        ],
        "title": "CreateBrandKitRequest",
        "type": "object"
      },
      "CreateBrandKitResponse": {
        "description": "Response for POST /v3/brand-kits.",
        "properties": {
          "brand_kit_id": {
            "description": "Unique identifier of the newly created brand kit.",
            "title": "Brand Kit Id",
            "type": "string"
          },
          "status": {
            "const": "loading",
            "description": "Assembly status, always 'loading' on creation: the kit exists and its id is usable immediately, but its assets are gathered in the background. Poll GET /v3/brand-kits/{brand_kit_id} until status is 'completed'.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "brand_kit_id",
          "status"
        ],
        "title": "CreateBrandKitResponse",
        "type": "object"
      },
      "BrandKitDetail": {
        "description": "A single brand kit with its colors, logos and fonts.\n\nA brand kit imported from a website is assembled in the background. While `status` is `loading`\nthe collections and role fields are provisional and may be empty or incomplete; the import has\nfinished contributing to them once `status` is `completed`. A kit whose import failed reports\n`error` and keeps whatever was assembled before the failure. A kit can still be edited in the\nHeyGen web app afterwards, so `completed` means the import is done, not that the kit is frozen.",
        "properties": {
          "brand_kit_id": {
            "description": "Unique brand kit identifier.",
            "title": "Brand Kit Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the brand kit.",
            "title": "Name",
            "type": "string"
          },
          "status": {
            "description": "Assembly status: 'loading' while the kit is still being built, 'completed' when it is ready, or 'error' if the import failed.",
            "enum": [
              "loading",
              "completed",
              "error"
            ],
            "title": "Status",
            "type": "string"
          },
          "colors": {
            "description": "Brand colors as hex values, e.g. '#FF5733'. A color playing a role may sit outside this list \u2014 see color_roles \u2014 so do not treat it as the full set of colors the kit references.",
            "items": {
              "type": "string"
            },
            "title": "Colors",
            "type": "array"
          },
          "color_roles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandKitColorRoles"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Which color plays which part. May be absent while the kit is still loading."
          },
          "logos": {
            "description": "Logos belonging to the brand kit.",
            "items": {
              "$ref": "#/components/schemas/BrandKitLogo"
            },
            "title": "Logos",
            "type": "array"
          },
          "logo_roles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandKitLogoRoles"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Which logo is the main one. May be absent while the kit is still loading."
          },
          "fonts": {
            "description": "Fonts belonging to the brand kit.",
            "items": {
              "$ref": "#/components/schemas/BrandKitFont"
            },
            "title": "Fonts",
            "type": "array"
          },
          "font_roles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontRoles"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Which font plays which typographic part. May be absent while the kit is still loading."
          }
        },
        "required": [
          "brand_kit_id",
          "name",
          "status"
        ],
        "title": "BrandKitDetail",
        "type": "object"
      },
      "BrandKitColorRoles": {
        "description": "Which color plays which part in the brand's visual system, as hex values.\n\nA role may name a color that is not present in `colors`: the palette lists the brand's core\nswatches, while a role such as `tertiary` can point at a supporting surface color outside them.",
        "properties": {
          "primary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary brand color.",
            "title": "Primary"
          },
          "secondary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Secondary brand color.",
            "title": "Secondary"
          },
          "tertiary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Tertiary brand color.",
            "title": "Tertiary"
          },
          "accent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Accent color, used for highlights and calls to action.",
            "title": "Accent"
          }
        },
        "title": "BrandKitColorRoles",
        "type": "object"
      },
      "BrandKitFont": {
        "description": "A font belonging to a brand kit.",
        "properties": {
          "font_id": {
            "description": "Unique font identifier. A font_roles entry usually names one of these, but see font_roles for when it does not.",
            "title": "Font Id",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font family name.",
            "title": "Name"
          }
        },
        "required": [
          "font_id"
        ],
        "title": "BrandKitFont",
        "type": "object"
      },
      "BrandKitFontRole": {
        "description": "A font assigned to one typographic role.",
        "properties": {
          "font_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Identifier of the assigned font.",
            "title": "Font Id"
          },
          "weight": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font weight, e.g. 400 for regular or 700 for bold.",
            "title": "Weight"
          }
        },
        "title": "BrandKitFontRole",
        "type": "object"
      },
      "BrandKitFontRoles": {
        "description": "Which font plays which typographic part.\n\nDeleting a font does not clear the role that named it, so a role's font_id can be absent from\n`fonts`. Match by id and handle the miss rather than assuming a lookup succeeds.",
        "properties": {
          "title_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontRole"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font for headings and titles."
          },
          "body_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontRole"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font for body copy."
          }
        },
        "title": "BrandKitFontRoles",
        "type": "object"
      },
      "BrandKitLogo": {
        "description": "A logo belonging to a brand kit.",
        "properties": {
          "logo_id": {
            "description": "Unique logo identifier. The logo named by logo_roles.primary is the brand's main logo.",
            "title": "Logo Id",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name of the logo.",
            "title": "Name"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the logo image. Absent if the logo has no stored file yet.",
            "title": "Url"
          }
        },
        "required": [
          "logo_id"
        ],
        "title": "BrandKitLogo",
        "type": "object"
      },
      "BrandKitLogoRoles": {
        "description": "Which logo is the brand's main one.\n\nDeleting a logo does not clear the role that named it, so this can reference a logo_id absent\nfrom `logos`. Match by id and handle the miss rather than assuming a lookup succeeds.",
        "properties": {
          "primary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Identifier of the primary logo. Names a logo_id in `logos` unless that logo has since been deleted.",
            "title": "Primary"
          }
        },
        "title": "BrandKitLogoRoles",
        "type": "object"
      },
      "UpdateBrandKitRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/brand-kits/{brand_kit_id}.\n\nEvery field is optional and omitting one leaves it unchanged. Sending a role object with no\nfields inside it (`{}`) clears that role, and a cleared role stays cleared \u2014 nothing recomputes\nover a role the caller has deliberately emptied.\n\nClearing is an empty object rather than `null`, and `null` is rejected outright, so each\nintention has exactly one spelling. Generated clients serialise request bodies with\n`exclude_none` and drop a `null` before sending, so honouring `null` as \"clear\" would clear the\nrole for a caller using raw HTTP and silently do nothing for a caller using our own SDK.",
        "properties": {
          "name": {
            "default": null,
            "description": "New display name for the brand kit, 1-256 characters. Leading and trailing whitespace is trimmed.",
            "maxLength": 256,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "color_roles": {
            "$ref": "#/components/schemas/UpdateBrandKitColorRoles",
            "default": null,
            "description": "Which color plays which part, as hex values. Replaces the stored assignment in full: a role you omit from this object is cleared, so send the roles you want to keep. Send `{}` to clear every color role.",
            "title": "Color Roles"
          },
          "logo_roles": {
            "$ref": "#/components/schemas/UpdateBrandKitLogoRoles",
            "default": null,
            "description": "Which logo is the brand's main one. Replaces the stored assignment in full, like color_roles, so omitting `primary` clears it. Send `{}` to clear the logo role.",
            "title": "Logo Roles"
          },
          "font_roles": {
            "$ref": "#/components/schemas/UpdateBrandKitFontRoles",
            "default": null,
            "description": "Which font plays which typographic part. Replaces the stored assignment in full, like color_roles.",
            "title": "Font Roles"
          }
        },
        "title": "UpdateBrandKitRequest",
        "type": "object"
      },
      "UpdateBrandKitColorRoles": {
        "additionalProperties": false,
        "description": "Color role assignment to write. Unknown keys are rejected.",
        "properties": {
          "primary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary brand color, as a hex value like '#FF5733'.",
            "title": "Primary"
          },
          "secondary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Secondary brand color, as a hex value.",
            "title": "Secondary"
          },
          "tertiary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Tertiary brand color, as a hex value.",
            "title": "Tertiary"
          },
          "accent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Accent color for highlights and calls to action, as a hex value.",
            "title": "Accent"
          }
        },
        "title": "UpdateBrandKitColorRoles",
        "type": "object"
      },
      "UpdateBrandKitFontRole": {
        "additionalProperties": false,
        "description": "One typographic role to write. Unknown keys are rejected.",
        "properties": {
          "font_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Identifier of the font to assign. Not required to appear in the kit's `fonts` list: a role may legitimately name a font variant that the list does not enumerate separately.",
            "title": "Font Id"
          },
          "weight": {
            "anyOf": [
              {
                "maximum": 1000,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font weight, 1-1000. E.g. 400 for regular or 700 for bold.",
            "title": "Weight"
          }
        },
        "title": "UpdateBrandKitFontRole",
        "type": "object"
      },
      "UpdateBrandKitFontRoles": {
        "additionalProperties": false,
        "description": "Typographic role assignment to write. Unknown keys are rejected.",
        "properties": {
          "title_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateBrandKitFontRole"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font for headings and titles."
          },
          "body_text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UpdateBrandKitFontRole"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font for body copy."
          }
        },
        "title": "UpdateBrandKitFontRoles",
        "type": "object"
      },
      "UpdateBrandKitLogoRoles": {
        "additionalProperties": false,
        "description": "Logo role assignment to write. Unknown keys are rejected.",
        "properties": {
          "primary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Identifier of the primary logo. Must be a logo_id belonging to this kit that has finished importing.",
            "title": "Primary"
          }
        },
        "title": "UpdateBrandKitLogoRoles",
        "type": "object"
      },
      "DeleteBrandKitResponse": {
        "description": "Response for DELETE /v3/brand-kits/{brand_kit_id}.",
        "properties": {
          "brand_kit_id": {
            "description": "Identifier of the deleted brand kit.",
            "title": "Brand Kit Id",
            "type": "string"
          }
        },
        "required": [
          "brand_kit_id"
        ],
        "title": "DeleteBrandKitResponse",
        "type": "object"
      },
      "BrandGlossaryDetail": {
        "description": "A single brand glossary with its full term list (GET /v3/brand-glossaries/{id}).",
        "properties": {
          "brand_glossary_id": {
            "description": "Unique brand glossary ID. Pass it as `brand_glossary_id` when creating a video or translation to apply this glossary.",
            "title": "Brand Glossary Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the brand glossary.",
            "title": "Name",
            "type": "string"
          },
          "created_at": {
            "description": "Creation timestamp (UTC).",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Last update timestamp (UTC).",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "terms": {
            "description": "Every term mapping in this glossary. Empty when the glossary has no terms yet, in which case applying it has no effect.",
            "items": {
              "$ref": "#/components/schemas/BrandGlossaryTerm"
            },
            "title": "Terms",
            "type": "array"
          },
          "do_not_translate_terms": {
            "default": null,
            "description": "Don't Translate rules in this glossary. Omitted when it has none.",
            "items": {
              "$ref": "#/components/schemas/DoNotTranslateEntry"
            },
            "title": "Do Not Translate Terms",
            "type": "array"
          },
          "forced_translations": {
            "default": null,
            "description": "Force Translate rules in this glossary. Omitted when it has none. If a term also appears in `do_not_translate_terms`, Don't Translate takes precedence without deleting its Force Translate rules.",
            "items": {
              "$ref": "#/components/schemas/ForcedTranslationEntry"
            },
            "title": "Forced Translations",
            "type": "array"
          }
        },
        "required": [
          "brand_glossary_id",
          "name",
          "created_at",
          "updated_at",
          "terms"
        ],
        "title": "BrandGlossaryDetail",
        "type": "object",
        "x-mcp-exclude-unset": true
      },
      "AllBrandGlossaryLanguages": {
        "additionalProperties": false,
        "description": "Apply the rule in every language.",
        "properties": {
          "scope": {
            "const": "all",
            "description": "Apply this rule in every language.",
            "title": "Scope",
            "type": "string"
          }
        },
        "required": [
          "scope"
        ],
        "title": "AllBrandGlossaryLanguages",
        "type": "object"
      },
      "BrandGlossaryTerm": {
        "description": "One glossary entry: a written term and how it should be spoken.",
        "properties": {
          "term": {
            "description": "The term as written in a script, matched case-insensitively.",
            "title": "Term",
            "type": "string"
          },
          "pronunciation": {
            "description": "Respelling handed to the speech synthesizer in place of `term` (for example 'hey-jen' for 'HeyGen'). Affects generated audio only \u2014 captions and subtitles keep the original `term` spelling.",
            "title": "Pronunciation",
            "type": "string"
          },
          "pronunciation_language": {
            "default": null,
            "description": "Language in which this pronunciation applies. Omit or use scope 'all' for all languages; null is invalid. Use scope 'specific' with a base language code such as 'fr', not a locale such as 'fr-FR'. A language-specific rule overrides an all-languages rule. Responses omit this field for all-languages rules.",
            "discriminator": {
              "mapping": {
                "all": "#/components/schemas/AllBrandGlossaryLanguages",
                "specific": "#/components/schemas/SpecificBrandGlossaryLanguage"
              },
              "propertyName": "scope"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AllBrandGlossaryLanguages"
              },
              {
                "$ref": "#/components/schemas/SpecificBrandGlossaryLanguage"
              }
            ],
            "title": "Pronunciation Language"
          },
          "ipa": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stored IPA pronunciation. Returned only when glossary IPA access is enabled.",
            "title": "Ipa"
          }
        },
        "required": [
          "term",
          "pronunciation"
        ],
        "title": "BrandGlossaryTerm",
        "type": "object"
      },
      "DoNotTranslateEntry": {
        "description": "One Don't Translate rule: a term kept untranslated when content is translated.",
        "properties": {
          "term": {
            "description": "A term to keep untranslated. When this glossary is used by a translation feature, each occurrence of the term \u2014 matched case-insensitively \u2014 is kept untranslated in every target language.",
            "title": "Term",
            "type": "string"
          }
        },
        "required": [
          "term"
        ],
        "title": "DoNotTranslateEntry",
        "type": "object"
      },
      "ForcedTranslationEntry": {
        "description": "One Force Translate rule: a term and the exact translation that replaces it.",
        "properties": {
          "term": {
            "description": "The term to replace, matched in the source text case-insensitively.",
            "title": "Term",
            "type": "string"
          },
          "translation": {
            "description": "The exact text used in place of `term` in the translated output for the selected target language scope. Inserted verbatim: grammatical inflection (case, gender, number) is not adapted to the surrounding sentence.",
            "title": "Translation",
            "type": "string"
          },
          "target_language": {
            "default": null,
            "description": "Target language in which this translation applies. Omit or use scope 'all' for all languages; null is invalid. Use scope 'specific' with a base language code such as 'fr', not a locale such as 'fr-FR'. A language-specific rule overrides an all-languages rule. Responses omit this field for all-languages rules.",
            "discriminator": {
              "mapping": {
                "all": "#/components/schemas/AllBrandGlossaryLanguages",
                "specific": "#/components/schemas/SpecificBrandGlossaryLanguage"
              },
              "propertyName": "scope"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AllBrandGlossaryLanguages"
              },
              {
                "$ref": "#/components/schemas/SpecificBrandGlossaryLanguage"
              }
            ],
            "title": "Target Language"
          }
        },
        "required": [
          "term",
          "translation"
        ],
        "title": "ForcedTranslationEntry",
        "type": "object"
      },
      "SpecificBrandGlossaryLanguage": {
        "additionalProperties": false,
        "description": "Apply the rule in one language.",
        "properties": {
          "scope": {
            "const": "specific",
            "description": "Apply this rule only in the specified language.",
            "title": "Scope",
            "type": "string"
          },
          "code": {
            "description": "Language code, such as 'en' or 'fr'. Locale codes such as 'en-US' are not accepted.",
            "maxLength": 32,
            "title": "Code",
            "type": "string"
          }
        },
        "required": [
          "scope",
          "code"
        ],
        "title": "SpecificBrandGlossaryLanguage",
        "type": "object"
      },
      "CreateBrandGlossaryRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/brand-glossaries.",
        "properties": {
          "name": {
            "description": "Display name for the glossary. Surrounding whitespace is removed, and the trimmed name must be 1-64 characters and unique within your workspace, compared without regard to case.",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "terms": {
            "default": [],
            "description": "Term-to-pronunciation mappings. Omit it, or pass an empty array, to create a glossary you fill in later.",
            "items": {
              "$ref": "#/components/schemas/BrandGlossaryTermWrite"
            },
            "title": "Terms",
            "type": "array"
          },
          "do_not_translate_terms": {
            "default": [],
            "description": "Terms to keep untranslated when this glossary is used by a translation feature. Omit it, or pass an empty array, to add none.",
            "items": {
              "$ref": "#/components/schemas/DoNotTranslateEntryWrite"
            },
            "title": "Do Not Translate Terms",
            "type": "array"
          },
          "forced_translations": {
            "default": [],
            "description": "Force Translate rules: terms translated into an exact replacement when this glossary is used by a translation feature. Omit it, or pass an empty array, to add none. If a term also appears in `do_not_translate_terms`, Don't Translate takes precedence without deleting its Force Translate rules.",
            "items": {
              "$ref": "#/components/schemas/ForcedTranslationEntryWrite"
            },
            "title": "Forced Translations",
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "title": "CreateBrandGlossaryRequest",
        "type": "object",
        "x-mcp-exclude-unset": true,
        "x-mcp-omit-invalid-nulls": true
      },
      "BrandGlossaryTermWrite": {
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "pronunciation"
            ]
          },
          {
            "properties": {
              "ipa": {
                "type": "string"
              }
            },
            "required": [
              "ipa"
            ]
          }
        ],
        "description": "One glossary entry as accepted on POST / PATCH: a written term and how it should be spoken.",
        "properties": {
          "term": {
            "description": "The term as written in a script, matched case-insensitively. Surrounding whitespace is removed and the trimmed value must be non-empty.",
            "minLength": 1,
            "title": "Term",
            "type": "string"
          },
          "pronunciation": {
            "description": "Respelling handed to the speech synthesizer in place of `term` (for example 'hey-jen' for 'HeyGen'). Affects generated audio only \u2014 captions and subtitles keep the original `term` spelling. Surrounding whitespace is removed and the trimmed value must be non-empty. May be omitted when IPA is supplied and glossary IPA access is enabled; a Respelling fallback is generated before saving. Conversion failure leaves the glossary unchanged. Null is not accepted.",
            "minLength": 1,
            "title": "Pronunciation",
            "type": "string"
          },
          "pronunciation_language": {
            "default": null,
            "description": "Language in which this pronunciation applies. Omit or use scope 'all' for all languages; null is invalid. Use scope 'specific' with a base language code such as 'fr', not a locale such as 'fr-FR'. A language-specific rule overrides an all-languages rule.",
            "discriminator": {
              "mapping": {
                "all": "#/components/schemas/AllBrandGlossaryLanguages",
                "specific": "#/components/schemas/SpecificBrandGlossaryLanguage"
              },
              "propertyName": "scope"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AllBrandGlossaryLanguages"
              },
              {
                "$ref": "#/components/schemas/SpecificBrandGlossaryLanguage"
              }
            ],
            "title": "Pronunciation Language"
          },
          "ipa": {
            "anyOf": [
              {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "IPA pronunciation, for example '/\u02c8\u00e6k.mi/'. Requires glossary IPA access. Supply pronunciation, IPA, or both. Null clears IPA when pronunciation is provided. Omission preserves saved IPA only when Respelling and language are unchanged. New or changed pronunciations prefer IPA on supported engines, with Respelling as the fallback. Unchanged pronunciations retain their saved internal preference.",
            "title": "Ipa"
          }
        },
        "required": [
          "term"
        ],
        "title": "BrandGlossaryTermWrite",
        "type": "object",
        "x-mcp-omit-invalid-nulls": true
      },
      "DoNotTranslateEntryWrite": {
        "additionalProperties": false,
        "description": "One Don't Translate rule as accepted on POST / PATCH bodies.",
        "properties": {
          "term": {
            "description": "A term to keep untranslated. When this glossary is used by a translation feature, each occurrence of the term \u2014 matched case-insensitively \u2014 is kept untranslated in every target language. Surrounding whitespace is removed and the trimmed value must be non-empty.",
            "minLength": 1,
            "title": "Term",
            "type": "string"
          }
        },
        "required": [
          "term"
        ],
        "title": "DoNotTranslateEntryWrite",
        "type": "object"
      },
      "ForcedTranslationEntryWrite": {
        "additionalProperties": false,
        "description": "One Force Translate rule as accepted on POST / PATCH bodies.",
        "properties": {
          "term": {
            "description": "The term to replace, matched in the source text case-insensitively. Surrounding whitespace is removed and the trimmed value must be non-empty.",
            "minLength": 1,
            "title": "Term",
            "type": "string"
          },
          "translation": {
            "description": "The exact text used in place of `term` in the translated output for the selected target language scope. Inserted verbatim: grammatical inflection (case, gender, number) is not adapted to the surrounding sentence. Surrounding whitespace is removed and the trimmed value must be non-empty.",
            "minLength": 1,
            "title": "Translation",
            "type": "string"
          },
          "target_language": {
            "default": null,
            "description": "Target language in which this translation applies. Omit or use scope 'all' for all languages; null is invalid. Use scope 'specific' with a base language code such as 'fr', not a locale such as 'fr-FR'. A language-specific rule overrides an all-languages rule. Responses omit this field for all-languages rules.",
            "discriminator": {
              "mapping": {
                "all": "#/components/schemas/AllBrandGlossaryLanguages",
                "specific": "#/components/schemas/SpecificBrandGlossaryLanguage"
              },
              "propertyName": "scope"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AllBrandGlossaryLanguages"
              },
              {
                "$ref": "#/components/schemas/SpecificBrandGlossaryLanguage"
              }
            ],
            "title": "Target Language"
          }
        },
        "required": [
          "term",
          "translation"
        ],
        "title": "ForcedTranslationEntryWrite",
        "type": "object",
        "x-mcp-omit-invalid-nulls": true
      },
      "UpdateBrandGlossaryRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/brand-glossaries/{brand_glossary_id}.\n\nEach field is replaced independently: a field you omit is left untouched, a field you send\nreplaces that value across all languages, and an empty array clears that list. To add a\nsingle entry, read the glossary, append to the list, and send the whole list back with every language field preserved.",
        "properties": {
          "name": {
            "default": null,
            "description": "New display name. Surrounding whitespace is removed, and the trimmed name must be 1-64 characters and unique within your workspace, compared without regard to case. Omit to keep the current name.",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "terms": {
            "default": null,
            "description": "Replacement term list across all languages. Preserve every entry's pronunciation_language when editing. Omit to leave the existing terms untouched, or pass an empty array to remove them all.",
            "items": {
              "$ref": "#/components/schemas/BrandGlossaryTermWrite"
            },
            "title": "Terms",
            "type": "array"
          },
          "do_not_translate_terms": {
            "default": null,
            "description": "Replacement Don't Translate list. Omit to leave the existing entries untouched, or pass an empty array to remove them all.",
            "items": {
              "$ref": "#/components/schemas/DoNotTranslateEntryWrite"
            },
            "title": "Do Not Translate Terms",
            "type": "array"
          },
          "forced_translations": {
            "default": null,
            "description": "Replacement Force Translate list across all languages. Preserve every entry's target_language when editing. Omit to leave the existing entries untouched, or pass an empty array to remove them all. Don't Translate takes precedence for overlapping terms without deleting their Force Translate rules.",
            "items": {
              "$ref": "#/components/schemas/ForcedTranslationEntryWrite"
            },
            "title": "Forced Translations",
            "type": "array"
          }
        },
        "title": "UpdateBrandGlossaryRequest",
        "type": "object",
        "x-mcp-exclude-unset": true,
        "x-mcp-omit-invalid-nulls": true
      },
      "DeleteBrandGlossaryResponse": {
        "description": "Response for DELETE /v3/brand-glossaries/{brand_glossary_id}.",
        "properties": {
          "brand_glossary_id": {
            "description": "Identifier of the deleted brand glossary.",
            "title": "Brand Glossary Id",
            "type": "string"
          }
        },
        "required": [
          "brand_glossary_id"
        ],
        "title": "DeleteBrandGlossaryResponse",
        "type": "object"
      },
      "BrandKitItem": {
        "description": "A brand kit in the listing response.",
        "properties": {
          "brand_kit_id": {
            "description": "Unique brand kit identifier. Pass to POST /v3/video-agents as brand_kit_id.",
            "title": "Brand Kit Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the brand kit.",
            "title": "Name",
            "type": "string"
          },
          "logo_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary brand logo URL (public CDN).",
            "title": "Logo Url"
          },
          "colors": {
            "description": "Brand colors as hex values (e.g., '#FF5733').",
            "items": {
              "type": "string"
            },
            "title": "Colors",
            "type": "array"
          }
        },
        "required": [
          "brand_kit_id",
          "name"
        ],
        "title": "BrandKitItem",
        "type": "object"
      },
      "CreateAvatarRequestBody": {
        "description": "Discriminated union for POST /v3/avatars request body.",
        "discriminator": {
          "mapping": {
            "digital_twin": "#/components/schemas/CreateDigitalTwinRequest",
            "photo": "#/components/schemas/CreatePhotoAvatarRequest",
            "prompt": "#/components/schemas/CreatePromptAvatarRequest"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/CreatePromptAvatarRequest"
          },
          {
            "$ref": "#/components/schemas/CreateDigitalTwinRequest"
          },
          {
            "$ref": "#/components/schemas/CreatePhotoAvatarRequest"
          }
        ],
        "title": "CreateAvatarRequestBody"
      },
      "CreateDigitalTwinRequest": {
        "properties": {
          "type": {
            "const": "digital_twin",
            "description": "Must be 'digital_twin' for digital twin avatars.",
            "title": "Type",
            "type": "string"
          },
          "name": {
            "description": "Name of the avatar.",
            "title": "Name",
            "type": "string"
          },
          "file": {
            "description": "Footage of the avatar \u2014 provide as {\"type\": \"url\", \"url\": \"https://...\"} or {\"type\": \"asset_id\", \"asset_id\": \"...\"}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "File"
          },
          "avatar_group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional identity you would like to attach the digital twin to. By default it will create a new identity.",
            "title": "Avatar Group Id"
          }
        },
        "required": [
          "type",
          "name",
          "file"
        ],
        "title": "CreateDigitalTwinRequest",
        "type": "object"
      },
      "CreatePhotoAvatarRequest": {
        "properties": {
          "type": {
            "const": "photo",
            "description": "Must be 'photo' for photo-based avatars.",
            "title": "Type",
            "type": "string"
          },
          "name": {
            "description": "Name of the avatar.",
            "title": "Name",
            "type": "string"
          },
          "file": {
            "description": "Photo asset of the avatar \u2014 provide as {\"type\": \"url\", \"url\": \"https://...\"} or {\"type\": \"asset_id\", \"asset_id\": \"...\"}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "File"
          },
          "avatar_group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional identity you would like to attach the photo avatar to. By default it will create a new identity.",
            "title": "Avatar Group Id"
          }
        },
        "required": [
          "type",
          "name",
          "file"
        ],
        "title": "CreatePhotoAvatarRequest",
        "type": "object"
      },
      "CreatePromptAvatarRequest": {
        "properties": {
          "type": {
            "const": "prompt",
            "description": "Must be 'prompt' for AI-generated avatars.",
            "title": "Type",
            "type": "string"
          },
          "name": {
            "description": "Name of the avatar.",
            "title": "Name",
            "type": "string"
          },
          "prompt": {
            "description": "Prompt for avatar generation.",
            "maxLength": 1000,
            "title": "Prompt",
            "type": "string"
          },
          "reference_images": {
            "anyOf": [
              {
                "items": {
                  "discriminator": {
                    "mapping": {
                      "asset_id": "#/components/schemas/AssetId",
                      "base64": "#/components/schemas/AssetBase64",
                      "url": "#/components/schemas/AssetUrl"
                    },
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssetUrl"
                    },
                    {
                      "$ref": "#/components/schemas/AssetId"
                    },
                    {
                      "$ref": "#/components/schemas/AssetBase64"
                    }
                  ]
                },
                "maxItems": 3,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reference images \u2014 each as {\"type\": \"url\", \"url\": \"https://...\"} or {\"type\": \"asset_id\", \"asset_id\": \"...\"}. Max 3.",
            "title": "Reference Images"
          },
          "avatar_group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional identity (group) to save the generated avatar to. By default a new identity is created. If avatar_id is also provided, it must belong to this group.",
            "title": "Avatar Group Id"
          },
          "avatar_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional avatar id to use as the visual reference for the generation. When provided without avatar_group_id, the new avatar is saved to the referenced avatar's group; when provided with avatar_group_id, the avatar must belong to that group and the result is saved there. The referenced avatar must exist and have a usable image, otherwise the request is rejected.",
            "title": "Avatar Id"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptAvatarAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Aspect ratio of the generated avatar image, e.g. '16:9', '9:16', '1:1'. 'auto' and omitting the field are equivalent: the generation model picks, matching the reference image's ratio when one is provided.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          }
        },
        "required": [
          "type",
          "name",
          "prompt"
        ],
        "title": "CreatePromptAvatarRequest",
        "type": "object"
      },
      "PromptAvatarAspectRatio": {
        "description": "Aspect ratios supported by prompt-avatar generation.",
        "enum": [
          "auto",
          "16:9",
          "9:16",
          "1:1",
          "4:5",
          "5:4"
        ],
        "title": "PromptAvatarAspectRatio",
        "type": "string"
      },
      "CreateAvatarResponse": {
        "properties": {
          "avatar_item": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarLookItem"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The avatar item."
          },
          "avatar_group": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarGroupItem"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The avatar group."
          }
        },
        "title": "CreateAvatarResponse",
        "type": "object"
      },
      "AvatarError": {
        "description": "Error details for a failed avatar creation.",
        "properties": {
          "code": {
            "description": "Machine-readable error code.",
            "examples": [
              "training_failed"
            ],
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Human-readable error description.",
            "examples": [
              "Footage duration must be between 15s and 600s"
            ],
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "AvatarError",
        "type": "object"
      },
      "AvatarGroupItem": {
        "description": "A single avatar group in the list response.\n\nGroups are containers for looks (outfits/styles). To determine avatar type\nand engine compatibility, fetch the looks via GET /v3/avatars/looks.",
        "properties": {
          "id": {
            "description": "Unique avatar group identifier.",
            "examples": [
              "ag_abc123"
            ],
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the avatar.",
            "examples": [
              "Anna"
            ],
            "title": "Name",
            "type": "string"
          },
          "preview_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the avatar preview image.",
            "examples": [
              "https://files.heygen.ai/avatar/anna_preview.jpg"
            ],
            "title": "Preview Image Url"
          },
          "preview_video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the avatar preview video.",
            "examples": [
              "https://files.heygen.ai/avatar/anna_preview.mp4"
            ],
            "title": "Preview Video Url"
          },
          "gender": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Gender of the avatar.",
            "examples": [
              "female"
            ],
            "title": "Gender"
          },
          "created_at": {
            "description": "Unix timestamp (seconds) when the avatar was created.",
            "examples": [
              1711929600
            ],
            "title": "Created At",
            "type": "integer"
          },
          "looks_count": {
            "description": "Number of looks (outfits/styles) available for this avatar.",
            "examples": [
              3
            ],
            "title": "Looks Count",
            "type": "integer"
          },
          "default_voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Default voice ID for this avatar.",
            "examples": [
              "1bd001e7e50f421d891986aad5c8bbd2"
            ],
            "title": "Default Voice Id"
          },
          "consent_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The consent status for the group. When null or omitted, no status is recorded; consent may still be required before video generation.",
            "examples": [
              "accepted"
            ],
            "title": "Consent Status"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarStatus"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Training status of the avatar group. Only present for private avatars.",
            "examples": [
              "completed"
            ]
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error details. Only present when status is 'failed'."
          }
        },
        "required": [
          "id",
          "name",
          "created_at",
          "looks_count"
        ],
        "title": "AvatarGroupItem",
        "type": "object"
      },
      "AvatarLookItem": {
        "description": "A single avatar look in the list response.\n\nThe ``id`` field is the look-level identifier to pass as ``avatar_id``\nto POST /v3/videos.",
        "properties": {
          "id": {
            "description": "Unique look identifier. Pass this as avatar_id to POST /v3/videos.",
            "examples": [
              "lk_abc123"
            ],
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the look.",
            "examples": [
              "Business Suit"
            ],
            "title": "Name",
            "type": "string"
          },
          "avatar_type": {
            "$ref": "#/components/schemas/AvatarLookType",
            "description": "Avatar type \u2014 determines engine and parameter compatibility.",
            "examples": [
              "photo_avatar"
            ]
          },
          "group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID of the avatar group this look belongs to.",
            "examples": [
              "ag_abc123"
            ],
            "title": "Group Id"
          },
          "preview_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the look preview image.",
            "examples": [
              "https://files.heygen.ai/look/business_preview.jpg"
            ],
            "title": "Preview Image Url"
          },
          "preview_video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the look preview video.",
            "examples": [
              "https://files.heygen.ai/look/business_preview.mp4"
            ],
            "title": "Preview Video Url"
          },
          "gender": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Gender of the avatar.",
            "examples": [
              "female"
            ],
            "title": "Gender"
          },
          "tags": {
            "description": "Tags associated with the look.",
            "examples": [
              [
                "business",
                "formal"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "default_voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Default voice ID for this look.",
            "examples": [
              "1bd001e7e50f421d891986aad5c8bbd2"
            ],
            "title": "Default Voice Id"
          },
          "supported_api_engines": {
            "description": "Engine values this look supports for POST /v3/videos. Possible values: 'avatar_v', 'avatar_iv', 'avatar_iii'.",
            "examples": [
              [
                "avatar_v",
                "avatar_iv",
                "avatar_iii"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Supported Api Engines",
            "type": "array"
          },
          "image_width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Native width of the look in pixels.",
            "examples": [
              1920
            ],
            "title": "Image Width"
          },
          "image_height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Native height of the look in pixels.",
            "examples": [
              1080
            ],
            "title": "Image Height"
          },
          "preferred_orientation": {
            "anyOf": [
              {
                "enum": [
                  "portrait",
                  "landscape",
                  "square"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Preferred orientation of the look: 'portrait', 'landscape', or 'square'.",
            "title": "Preferred Orientation"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarStatus"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Training status of the avatar look: 'processing', 'completed', or 'failed'. Only present for private avatars.",
            "examples": [
              "completed"
            ]
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error details. Only present when status is 'failed'."
          }
        },
        "required": [
          "id",
          "name",
          "avatar_type"
        ],
        "title": "AvatarLookItem",
        "type": "object"
      },
      "AvatarLookType": {
        "description": "Avatar look type \u2014 determines engine compatibility with POST /v3/videos.",
        "enum": [
          "studio_avatar",
          "digital_twin",
          "photo_avatar"
        ],
        "title": "AvatarLookType",
        "type": "string"
      },
      "AvatarStatus": {
        "description": "Training/creation status of an avatar group or look.",
        "enum": [
          "processing",
          "pending_consent",
          "failed",
          "completed"
        ],
        "title": "AvatarStatus",
        "type": "string"
      },
      "TextToSpeechRequest": {
        "additionalProperties": false,
        "description": "Request body for text-to-speech generation.",
        "properties": {
          "text": {
            "description": "Text to synthesize (1-5000 characters). Break tags must express time in seconds (for example, <break time=\"0.35s\"/>); millisecond values are not supported.",
            "maxLength": 5000,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "voice_id": {
            "description": "Voice ID from the voice catalog. The voice must be one the Starfish engine supports: a stock voice, a designed voice, or an instant clone. List them with GET /v3/voices?engine=starfish. A professional HeyGen Voice clone is synthesized by POST /v3/models/audio/tts instead.",
            "title": "Voice Id",
            "type": "string"
          },
          "input_type": {
            "default": "text",
            "description": "Type of the input: 'text' for plain text, 'ssml' for SSML markup. Defaults to 'text'.",
            "title": "Input Type",
            "type": "string"
          },
          "speed": {
            "default": 1.0,
            "description": "Speed multiplier (0.5-2.0).",
            "maximum": 2.0,
            "minimum": 0.5,
            "title": "Speed",
            "type": "number"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Base language code (e.g. 'en', 'pt', 'zh'). Optional \u2014 auto-detected from text when omitted.",
            "title": "Language"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "BCP-47 locale tag (e.g. 'en-US', 'pt-BR'). When set, language is inferred from locale.",
            "title": "Locale"
          }
        },
        "required": [
          "text",
          "voice_id"
        ],
        "title": "TextToSpeechRequest",
        "type": "object"
      },
      "TextToSpeechResponseData": {
        "description": "Response payload for text-to-speech generation.",
        "properties": {
          "audio_url": {
            "description": "URL of the generated audio file.",
            "examples": [
              "https://files.heygen.ai/audio/tts_abc123.mp3"
            ],
            "title": "Audio Url",
            "type": "string"
          },
          "duration": {
            "description": "Duration of the audio in seconds.",
            "examples": [
              4.5
            ],
            "title": "Duration",
            "type": "number"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unique identifier for this generation request.",
            "examples": [
              "req_abc123"
            ],
            "title": "Request Id"
          },
          "word_timestamps": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WordWithTimestamp"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Word-level timing data.",
            "title": "Word Timestamps"
          }
        },
        "required": [
          "audio_url",
          "duration"
        ],
        "title": "TextToSpeechResponseData",
        "type": "object"
      },
      "WordWithTimestamp": {
        "description": "Word-level timing data from TTS generation.",
        "properties": {
          "word": {
            "description": "The word.",
            "examples": [
              "Hello"
            ],
            "title": "Word",
            "type": "string"
          },
          "start": {
            "description": "Start time in seconds.",
            "examples": [
              0.0
            ],
            "title": "Start",
            "type": "number"
          },
          "end": {
            "description": "End time in seconds.",
            "examples": [
              0.35
            ],
            "title": "End",
            "type": "number"
          }
        },
        "required": [
          "word",
          "start",
          "end"
        ],
        "title": "WordWithTimestamp",
        "type": "object"
      },
      "AudioVoiceItem": {
        "description": "A single voice in the listing response.",
        "properties": {
          "voice_id": {
            "description": "Unique voice identifier.",
            "examples": [
              "1bd001e7e50f421d891986aad5c8bbd2"
            ],
            "title": "Voice Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the voice.",
            "examples": [
              "Sara"
            ],
            "title": "Name",
            "type": "string"
          },
          "language": {
            "description": "Primary language of the voice.",
            "examples": [
              "English"
            ],
            "title": "Language",
            "type": "string"
          },
          "gender": {
            "description": "Gender of the voice.",
            "examples": [
              "female"
            ],
            "title": "Gender",
            "type": "string"
          },
          "preview_audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to a short audio preview of the voice.",
            "examples": [
              "https://files.heygen.ai/voice/preview_sara.mp3"
            ],
            "title": "Preview Audio Url"
          },
          "support_pause": {
            "description": "Whether the voice supports SSML pause/break tags.",
            "examples": [
              true
            ],
            "title": "Support Pause",
            "type": "boolean"
          },
          "support_locale": {
            "description": "Whether the voice supports locale variants.",
            "examples": [
              true
            ],
            "title": "Support Locale",
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/AudioVoiceType",
            "description": "Whether this is a public or private voice.",
            "examples": [
              "public"
            ]
          }
        },
        "required": [
          "voice_id",
          "name",
          "language",
          "gender",
          "support_pause",
          "support_locale",
          "type"
        ],
        "title": "AudioVoiceItem",
        "type": "object"
      },
      "AudioVoiceType": {
        "enum": [
          "public",
          "private"
        ],
        "title": "AudioVoiceType",
        "type": "string"
      },
      "AudioSoundItem": {
        "description": "A single audio track in the catalog search response.",
        "properties": {
          "id": {
            "description": "Unique identifier for the audio track.",
            "examples": [
              "rev_abc123"
            ],
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the audio track.",
            "examples": [
              "Upbeat Lofi Loop"
            ],
            "title": "Name",
            "type": "string"
          },
          "description": {
            "description": "Semantic description the track was indexed under.",
            "examples": [
              "Jazz, happy, jazzy, upbeat, rhythmic"
            ],
            "title": "Description",
            "type": "string"
          },
          "audio_url": {
            "description": "Temporary pre-signed URL to download the audio file. Expires; do not cache long-term.",
            "examples": [
              "https://files.heygen.ai/audio/music_abc123.mp3"
            ],
            "title": "Audio Url",
            "type": "string"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Duration of the audio in seconds, when known.",
            "examples": [
              120.0
            ],
            "title": "Duration"
          },
          "peak_offset": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "For sound effects, seconds from clip start to the loudest RMS peak. Null for tracks without placement metadata.",
            "examples": [
              0.37
            ],
            "title": "Peak Offset"
          },
          "placement": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "For sound effects, suggested placement mode: 'hit', 'riser', or 'bed'. Null for tracks without placement metadata.",
            "examples": [
              "hit"
            ],
            "title": "Placement"
          },
          "score": {
            "description": "Semantic similarity score (0-1); higher means a closer match.",
            "examples": [
              0.83
            ],
            "title": "Score",
            "type": "number"
          },
          "type": {
            "$ref": "#/components/schemas/AudioContentType",
            "description": "Audio content type of this track.",
            "examples": [
              "music"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "audio_url",
          "score",
          "type"
        ],
        "title": "AudioSoundItem",
        "type": "object"
      },
      "AudioContentType": {
        "description": "Audio content type for catalog search. Each value maps to its own Pinecone namespace\n(see music_search._NAMESPACE_BY_TYPE).",
        "enum": [
          "music",
          "sound_effects"
        ],
        "title": "AudioContentType",
        "type": "string"
      },
      "CreateSpeechV3Request": {
        "additionalProperties": false,
        "properties": {
          "text": {
            "description": "Text to synthesize (1-5000 characters). Break tags must express time in seconds (for example, <break time=\"0.35s\"/>); millisecond values are not supported.",
            "maxLength": 5000,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "voice_id": {
            "description": "Voice ID from the voice catalog. Professional voice clones use model speech generation instead.",
            "title": "Voice Id",
            "type": "string"
          },
          "input_type": {
            "default": "text",
            "description": "Type of the input: 'text' for plain text, 'ssml' for SSML markup. Defaults to 'text'.",
            "title": "Input Type",
            "type": "string"
          },
          "speed": {
            "default": 1.0,
            "description": "Speed multiplier (0.5-2.0).",
            "maximum": 2.0,
            "minimum": 0.5,
            "title": "Speed",
            "type": "number"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Base language code (e.g. 'en', 'pt', 'zh'). Optional \u2014 auto-detected from text when omitted.",
            "title": "Language"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Locale tag (e.g. 'zh-HK') for engines that support regional variants. ElevenLabs does not support locale selection; use language instead.",
            "title": "Locale"
          },
          "force_regenerate": {
            "default": false,
            "description": "Bypass HeyGen's speech cache and request fresh synthesis. Normal speech quota applies. Defaults to false.",
            "title": "Force Regenerate",
            "type": "boolean",
            "x-mcp-omit-default": true
          },
          "engine": {
            "anyOf": [
              {
                "enum": [
                  "heygen_voice",
                  "starfish",
                  "orca",
                  "elevenlabs",
                  "elevenlabs_v3"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Speech engine override for this request only. Omit to use the voice's saved default, including your saved preference. HeyGen Voice is the saved default for most public voices. A missing or unsupported saved default, or an unsupported override, returns an error; engines are never silently substituted. Use 'heygen_voice' for HeyGen Voice; 'orca' remains accepted as its legacy alias. Responses retain 'orca' for compatibility. ElevenLabs model variants are selected through settings.model_id. The deprecated elevenlabs_v3 input is accepted and runs as elevenlabs with the voice's saved V3 model (eleven_v3 or eleven_v4) unless settings.model_id names one; responses report elevenlabs."
          },
          "settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ElevenLabsSpeechSettings"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Request-only ElevenLabs model settings. Applied after saved preferences; valid for elevenlabs or the deprecated elevenlabs_v3 compatibility engine."
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in this speech (for example, saying 'HeyGen' as 'hey-jen'). The glossary must belong to your workspace. `word_timestamps` keep the original wording of `text`. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "output_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreateSpeechV3OutputFormat"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Audio file format. Omit for an MP3 file at the speech engine's native sample rate. With output_format, the audio_url file extension names the encoding."
          }
        },
        "required": [
          "text",
          "voice_id"
        ],
        "title": "CreateSpeechV3Request",
        "type": "object"
      },
      "CreateSpeechV3OutputFormat": {
        "additionalProperties": false,
        "properties": {
          "encoding": {
            "description": "Audio encoding: mp3, or wav (signed little-endian PCM16).",
            "enum": [
              "mp3",
              "wav"
            ],
            "title": "Encoding",
            "type": "string"
          },
          "sample_rate_hertz": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Sample rate in Hz: 8000, 16000, 22050, 24000, 44100, or 48000. Defaults to 44100.",
            "title": "Sample Rate Hertz"
          },
          "bit_depth": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Bits per sample. wav accepts only 16, the default. Omit for mp3.",
            "title": "Bit Depth"
          },
          "num_channels": {
            "default": 1,
            "description": "Number of audio channels. Only 1 (mono) is supported.",
            "title": "Num Channels",
            "type": "integer"
          },
          "bitrate_bps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "MP3 bitrate in bits per second. Below 32000 Hz: 32000, 48000, or 64000 (default 64000). At 44100 or 48000 Hz: 64000, 96000, 128000, or 192000 (default 128000). Omit for wav.",
            "title": "Bitrate Bps"
          }
        },
        "required": [
          "encoding"
        ],
        "title": "CreateSpeechV3OutputFormat",
        "type": "object"
      },
      "ElevenLabsSpeechSettings": {
        "additionalProperties": false,
        "properties": {
          "model_id": {
            "description": "ElevenLabs model for this request only. Omit settings to retain the voice's saved model preference.",
            "enum": [
              "eleven_multilingual_v2",
              "eleven_flash_v2",
              "eleven_flash_v2_5",
              "eleven_turbo_v2_5",
              "eleven_v3",
              "eleven_v4"
            ],
            "title": "Model Id",
            "type": "string"
          }
        },
        "required": [
          "model_id"
        ],
        "title": "ElevenLabsSpeechSettings",
        "type": "object"
      },
      "CreateSpeechV3ResponseData": {
        "properties": {
          "audio_url": {
            "description": "URL of the generated audio file.",
            "examples": [
              "https://files.heygen.ai/audio/tts_abc123.mp3"
            ],
            "title": "Audio Url",
            "type": "string"
          },
          "duration": {
            "description": "Duration of the audio in seconds.",
            "examples": [
              4.5
            ],
            "title": "Duration",
            "type": "number"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unique identifier for this generation request.",
            "examples": [
              "req_abc123"
            ],
            "title": "Request Id"
          },
          "word_timestamps": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WordWithTimestamp"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Word-level timing data.",
            "title": "Word Timestamps"
          },
          "engine": {
            "$ref": "#/components/schemas/SpeechEngine",
            "description": "Engine selected for this speech generation."
          }
        },
        "required": [
          "audio_url",
          "duration",
          "engine"
        ],
        "title": "CreateSpeechV3ResponseData",
        "type": "object"
      },
      "SpeechEngine": {
        "enum": [
          "starfish",
          "orca",
          "elevenlabs",
          "elevenlabs_v3"
        ],
        "title": "SpeechEngine",
        "type": "string"
      },
      "DesignVoiceRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/voices \u2014 design a voice via semantic search.",
        "properties": {
          "prompt": {
            "description": "Natural language description of the desired voice (e.g., 'warm, confident female narrator').",
            "maxLength": 1000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "gender": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Filter by gender: 'male' or 'female'.",
            "title": "Gender"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "BCP-47 locale tag to filter by (e.g., 'en-US', 'pt-BR').",
            "title": "Locale"
          },
          "seed": {
            "default": 0,
            "description": "Controls which batch of results to return. seed=0 returns the top matches, seed=1 the next batch, etc. Same prompt + seed always returns the same voices.",
            "minimum": 0,
            "title": "Seed",
            "type": "integer"
          }
        },
        "required": [
          "prompt"
        ],
        "title": "DesignVoiceRequest",
        "type": "object"
      },
      "DesignVoiceResponseData": {
        "description": "Response payload for POST /v3/voices.",
        "properties": {
          "voices": {
            "description": "Matching voices for the given prompt, ordered by relevance.",
            "items": {
              "$ref": "#/components/schemas/AudioVoiceItem"
            },
            "title": "Voices",
            "type": "array"
          },
          "seed": {
            "description": "The seed used for this request. Increment to get different voices.",
            "title": "Seed",
            "type": "integer"
          }
        },
        "required": [
          "voices",
          "seed"
        ],
        "title": "DesignVoiceResponseData",
        "type": "object"
      },
      "VoiceV3Item": {
        "properties": {
          "voice_id": {
            "description": "Unique voice identifier.",
            "examples": [
              "1bd001e7e50f421d891986aad5c8bbd2"
            ],
            "title": "Voice Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the voice.",
            "examples": [
              "Sara"
            ],
            "title": "Name",
            "type": "string"
          },
          "language": {
            "description": "Primary language of the voice.",
            "examples": [
              "English"
            ],
            "title": "Language",
            "type": "string"
          },
          "gender": {
            "description": "Gender of the voice.",
            "examples": [
              "female"
            ],
            "title": "Gender",
            "type": "string"
          },
          "preview_audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to a short audio preview of the voice.",
            "examples": [
              "https://files.heygen.ai/voice/preview_sara.mp3"
            ],
            "title": "Preview Audio Url"
          },
          "support_pause": {
            "description": "Whether the voice supports SSML pause/break tags.",
            "examples": [
              true
            ],
            "title": "Support Pause",
            "type": "boolean"
          },
          "support_locale": {
            "description": "Whether the voice supports locale variants.",
            "examples": [
              true
            ],
            "title": "Support Locale",
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/AudioVoiceType",
            "description": "Whether this is a public or private voice.",
            "examples": [
              "public"
            ]
          },
          "default_engine": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpeechEngine"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Saved speech engine, including your preference. HeyGen Voice for most public voices. Null when no usable default is saved or the default is unavailable for speech."
          },
          "available_engines": {
            "description": "Engines this voice can use for speech generation after workspace plan and vendor restrictions. Language restrictions still apply.",
            "items": {
              "$ref": "#/components/schemas/SpeechEngine"
            },
            "title": "Available Engines",
            "type": "array"
          }
        },
        "required": [
          "voice_id",
          "name",
          "language",
          "gender",
          "support_pause",
          "support_locale",
          "type"
        ],
        "title": "VoiceV3Item",
        "type": "object"
      },
      "CreateVoiceCloneV3Request": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/voices/clone.",
        "properties": {
          "audio": {
            "description": "Audio file for voice cloning. Provide as {type: 'url', url: '...'}, {type: 'asset_id', asset_id: '...'}, or {type: 'base64', media_type: '...', data: '...'}.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Audio"
          },
          "voice_name": {
            "description": "Display name for the cloned voice. Up to 100 characters; names longer than 64 characters are stored truncated to 64.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Voice Name",
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Language hint for the voice (e.g., 'en', 'es'). Auto-detected if omitted.",
            "title": "Language"
          },
          "remove_background_noise": {
            "default": true,
            "description": "Remove background noise from the audio before cloning.",
            "title": "Remove Background Noise",
            "type": "boolean"
          }
        },
        "required": [
          "audio",
          "voice_name"
        ],
        "title": "CreateVoiceCloneV3Request",
        "type": "object"
      },
      "VoiceCloneCreateV3Response": {
        "description": "Response for POST /v3/voices/clone.",
        "properties": {
          "voice_clone_id": {
            "description": "Voice clone ID. Use GET /v3/voices/{voice_clone_id} to poll status.",
            "title": "Voice Clone Id",
            "type": "string"
          }
        },
        "required": [
          "voice_clone_id"
        ],
        "title": "VoiceCloneCreateV3Response",
        "type": "object"
      },
      "CreateAudioVoiceRequest": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CreateModelAudioVoiceRequest"
          },
          {
            "$ref": "#/components/schemas/CreateInstantAudioVoiceRequest"
          },
          {
            "$ref": "#/components/schemas/CreateDesignedAudioVoiceRequest"
          }
        ],
        "discriminator": {
          "mapping": {
            "design": "#/components/schemas/CreateDesignedAudioVoiceRequest",
            "instant": "#/components/schemas/CreateInstantAudioVoiceRequest",
            "professional": "#/components/schemas/CreateModelAudioVoiceRequest"
          },
          "propertyName": "mode"
        }
      },
      "CreateDesignedAudioVoiceRequest": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "description": "Describe the voice's age, tone, accent, and speaking style.",
            "maxLength": 500,
            "minLength": 20,
            "title": "Description",
            "type": "string"
          },
          "language": {
            "description": "Language code for the designed voice, such as en or ja.",
            "enum": [
              "ar",
              "be",
              "bg",
              "ca",
              "cs",
              "da",
              "de",
              "el",
              "en",
              "es",
              "fa",
              "fi",
              "fil",
              "fr",
              "he",
              "hi",
              "hr",
              "hu",
              "id",
              "it",
              "ja",
              "ko",
              "mk",
              "ms",
              "nl",
              "pl",
              "pt",
              "ro",
              "ru",
              "sk",
              "sl",
              "sr",
              "sv",
              "ta",
              "th",
              "tl",
              "tr",
              "uk",
              "vi",
              "zh"
            ],
            "type": "string"
          },
          "mode": {
            "const": "design",
            "description": "Use design to create a HeyGen voice from a description.",
            "title": "Mode",
            "type": "string"
          },
          "name": {
            "description": "Display name for the new voice.",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "image": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional JPEG, PNG, or WebP speaker image, supplied as an asset ID, public HTTPS URL, or base64. Conditions the HeyGen clone on the image.",
            "title": "Image"
          }
        },
        "required": [
          "description",
          "language",
          "mode",
          "name"
        ],
        "title": "CreateDesignedAudioVoiceRequest",
        "type": "object"
      },
      "CreateInstantAudioVoiceRequest": {
        "additionalProperties": false,
        "description": "Create one instant voice from a single recording.",
        "properties": {
          "mode": {
            "const": "instant",
            "title": "Mode",
            "type": "string"
          },
          "name": {
            "description": "Display name for the instant voice.",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "maxLength": 32,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Language code for the voice design. Omit to detect it from the recording.",
            "title": "Language"
          },
          "audio": {
            "description": "A list with exactly one source recording, supplied as an audio asset ID, public HTTPS URL, or base64 audio. Send a list even for one recording, for example [{\"type\": \"url\", \"url\": \"https://example.com/voice.mp3\"}].",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 1,
            "minItems": 1,
            "title": "Audio",
            "type": "array"
          },
          "remove_background_noise": {
            "default": true,
            "description": "Remove background noise from the source recording before cloning.",
            "title": "Remove Background Noise",
            "type": "boolean"
          },
          "gender": {
            "anyOf": [
              {
                "enum": [
                  "male",
                  "female"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Speaker gender for default-image selection. Omit to classify the recording.",
            "title": "Gender"
          },
          "age": {
            "anyOf": [
              {
                "enum": [
                  "young",
                  "old"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Speaker age group for default-image selection. Omit to classify the recording.",
            "title": "Age"
          },
          "similarity": {
            "default": "extra_high",
            "description": "How closely the designed voice follows the source recording.",
            "enum": [
              "medium",
              "high",
              "mel",
              "extra_high",
              "max"
            ],
            "title": "Similarity",
            "type": "string"
          },
          "image": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An image of the speaker in their setting, as a JPEG, PNG or WebP image asset ID, public HTTPS URL, or base64 image. The voice is conditioned on it, including the ambience its background suggests: a quiet room keeps the voice clean, a busy street adds matching background sound. Omit it to use a default image chosen from the speaker's gender and age. Cannot be combined with `gender` or `age`.",
            "title": "Image"
          }
        },
        "required": [
          "mode",
          "name",
          "audio"
        ],
        "title": "CreateInstantAudioVoiceRequest",
        "type": "object"
      },
      "CreateModelAudioVoiceRequest": {
        "additionalProperties": false,
        "description": "Create or retrain one model-backed audio voice.",
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/ModelAudioVoiceMode",
            "description": "Required voice operation mode. Use professional to create or retrain a professional voice."
          },
          "voice_id": {
            "anyOf": [
              {
                "maxLength": 64,
                "minLength": 1,
                "pattern": "^\\S+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Existing professional voice to retrain. Omit to create a new voice.",
            "title": "Voice Id"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 256,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name for a new voice. Ignored when `voice_id` is supplied; the existing name is retained.",
            "title": "Name"
          },
          "language": {
            "anyOf": [
              {
                "maxLength": 32,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary language code, such as `en`, for a new voice. Optional. When omitted, the language of each recording is detected during training. `language` is null until the voice is ACTIVE. Ignored when `voice_id` is supplied; the existing language is retained.",
            "title": "Language"
          },
          "audio": {
            "description": "Source recordings of the same speaker. Each item may be a public HTTPS URL, a HeyGen asset ID, or base64-encoded audio. The recordings must contain at least 20 minutes of audio and no more than 1.5 GB (1,500,000,000 bytes) in total.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 10,
            "minItems": 1,
            "title": "Audio",
            "type": "array"
          }
        },
        "required": [
          "mode",
          "audio"
        ],
        "title": "CreateModelAudioVoiceRequest",
        "type": "object"
      },
      "ModelAudioVoiceMode": {
        "description": "Supported audio-voice creation implementations.",
        "enum": [
          "professional"
        ],
        "title": "ModelAudioVoiceMode",
        "type": "string"
      },
      "CreateModelAudioVoiceResponse": {
        "additionalProperties": false,
        "description": "Identifier returned after voice creation or retraining is accepted.",
        "properties": {
          "voice_id": {
            "description": "Stable identifier to use when retrieving the voice and its training status.",
            "title": "Voice Id",
            "type": "string"
          }
        },
        "required": [
          "voice_id"
        ],
        "title": "CreateModelAudioVoiceResponse",
        "type": "object"
      },
      "CreateSpeechConversionRequest": {
        "additionalProperties": false,
        "properties": {
          "voice_id": {
            "description": "Identifier of the voice to speak in: a voice clone the caller's workspace owns.",
            "maxLength": 256,
            "minLength": 1,
            "title": "Voice Id",
            "type": "string"
          },
          "audio": {
            "description": "Source speech as a public HTTPS URL, an uploaded asset, or base64 audio. The duration limit is 300 seconds. Size limits: 32 MB by URL or 100 MB as an asset. Base64 audio has a 16 MB limit.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Audio"
          },
          "remove_background_noise": {
            "default": false,
            "description": "Remove background noise from the source before converting it. This adds latency.",
            "title": "Remove Background Noise",
            "type": "boolean"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional best-effort deterministic generation seed.",
            "title": "Seed"
          },
          "model_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpeechConversionModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The speech-to-speech model. `heygen-voice-sts-0` is the only one, and the default."
          }
        },
        "required": [
          "voice_id",
          "audio"
        ],
        "title": "CreateSpeechConversionRequest",
        "type": "object"
      },
      "SpeechConversionModel": {
        "description": "Speech-to-speech models: the same speech, spoken in another voice.",
        "enum": [
          "heygen-voice-sts-0"
        ],
        "title": "SpeechConversionModel",
        "type": "string"
      },
      "CreateSpeechConversionResponseData": {
        "properties": {
          "audio_url": {
            "description": "URL of the converted WAV audio file.",
            "title": "Audio Url",
            "type": "string"
          },
          "duration": {
            "description": "Audio duration in seconds. This matches the source duration.",
            "minimum": 0,
            "title": "Duration",
            "type": "number"
          }
        },
        "required": [
          "audio_url",
          "duration"
        ],
        "title": "CreateSpeechConversionResponseData",
        "type": "object"
      },
      "CreateSpeechRequest": {
        "additionalProperties": false,
        "example": {
          "language": "en",
          "text": "Hello from HeyGen Voice.",
          "voice_id": "<voice_id>"
        },
        "properties": {
          "end_user_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^\\S+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable, opaque end-user identifier in your application, scoped to the authenticated workspace. Use 1\u2013128 non-whitespace characters without personal information. Used for usage attribution and abuse investigation; does not change billing, authorization, or rate limits.",
            "title": "End User Id",
            "x-mcp-visible": false
          },
          "output_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpeechOutputFormat"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional audio output: encoding pcm (signed little-endian PCM16), mp3, ulaw, or alaw; mono only. sample_rate_hertz: 8000, 16000, 22050, 24000, 44100, or 48000 for pcm/mp3 (default 44100); ulaw/alaw require 8000 (default). MP3 bitrate_bps: 32000/48000/64000 below 32000 Hz (default 64000), or 64000/96000/128000/192000 at 44100/48000 Hz (default 128000). Omit for the existing WAV file or SSE stream of base64 WAV parts. When supplied, /tts/stream returns raw audio bytes and does not support with_timestamps."
          },
          "model": {
            "default": "heygen-voice-1",
            "description": "heygen-voice-1: instant and professional voices. heygen-voice-1-turbo: instant voices at lower latency. heygen-voice-1-turbo-free: instant voices without charge, subject to per-user limits and shared capacity. No latency or availability guarantee. Requests rejected by a limit or capacity check return HTTP 429. Timeouts and service failures can return HTTP 500.",
            "enum": [
              "heygen-voice-1",
              "heygen-voice-1-turbo",
              "heygen-voice-1-turbo-free"
            ],
            "title": "Model",
            "type": "string"
          },
          "voice_id": {
            "description": "Identifier of the voice used for speech synthesis.",
            "minLength": 1,
            "title": "Voice Id",
            "type": "string"
          },
          "text": {
            "description": "Text to synthesize. Instant voices accept caller-supplied IPA, such as <pron ipa=\"/\u02c8\u00e6kmi/\">Acme</pron>. Respelling cues are not supported. Unsupported IPA returns HTTP 400. Pronunciation requires an available pronunciation-capable model. Instant voices perform audio tags in square brackets, such as [laughs], [whispers], or [sad]; see https://developers.heygen.com/docs/voices/heygen-voice-speech#audio-tags for the supported tags. Bracketed text that is not a supported tag is usually not spoken; to have those words spoken, remove the square brackets. Professional voices do not perform audio tags. Professional voices accept <break time=\"Xs\"/> pauses (seconds, up to 5 per pause, e.g. <break time=\"0.5s\"/>); other SSML, and break tags for an instant voice clone, are not supported.",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "pronunciation_dictionary": {
            "anyOf": [
              {
                "additionalProperties": {
                  "maxLength": 512,
                  "minLength": 3,
                  "type": "string"
                },
                "maxProperties": 100,
                "propertyNames": {
                  "maxLength": 128,
                  "minLength": 1
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional term-to-IPA dictionary, such as {\"Acme\": \"/\u02c8\u00e6kmi/\"}. Use enclosing slashes for each IPA value. Matches whole terms without case sensitivity. Inline pronunciation takes precedence. Supports instant voices on heygen-voice-1 and heygen-voice-1-turbo when pronunciation is available. Omit expressiveness_boost to use 0.5, or supply a value from 0.0 to 1.0.",
            "title": "Pronunciation Dictionary"
          },
          "language": {
            "anyOf": [
              {
                "enum": [
                  "ar",
                  "be",
                  "bg",
                  "ca",
                  "cs",
                  "da",
                  "de",
                  "el",
                  "en",
                  "es",
                  "fa",
                  "fi",
                  "fr",
                  "he",
                  "hi",
                  "hr",
                  "hu",
                  "id",
                  "it",
                  "ja",
                  "ko",
                  "mk",
                  "ms",
                  "nl",
                  "pl",
                  "pt",
                  "ro",
                  "ru",
                  "sk",
                  "sl",
                  "sr",
                  "sv",
                  "ta",
                  "th",
                  "tl",
                  "tr",
                  "uk",
                  "vi",
                  "zh"
                ],
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Language of `text` as a lowercase ISO 639-1 code, such as `en` or `zh`. HeyGen Voice has no regional accents, so a regional tag such as `en-US` or `zh-HK` fails with `invalid_parameter`. Omit it to detect the language from `text`. A confident reading that matches the letters of `text` is used, and the request fails with `invalid_parameter` if HeyGen Voice does not speak that language. Otherwise the first of these that HeyGen Voice speaks is used: the language the voice was created in, if `text` is written in that language's script; a less certain reading that a second reading of `text` without its numbers and brand names agrees with; the usual language of the script `text` is mostly written in, such as English for Latin letters; and, only when that script has no usual language, the reading itself. If none of them applies, the request fails with `invalid_parameter`. The `Content-Language` response header names the language used.",
            "title": "Language"
          },
          "previous_request_ids": {
            "anyOf": [
              {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9_-]+$",
                  "type": "string"
                },
                "maxItems": 3,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Completed speech request IDs before this text, in playback order, up to three. Use X-Request-Id from completed batch or fully consumed streaming responses within two hours. Requests must use the same workspace, voice, and model. Instant clones only, including Turbo. Unavailable when speech retention is disabled. Only the last three seconds of context are used. Unavailable context falls back to normal synthesis.",
            "title": "Previous Request Ids",
            "x-mcp-visible": false
          },
          "next_request_ids": {
            "anyOf": [
              {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9_-]+$",
                  "type": "string"
                },
                "maxItems": 3,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Completed speech request IDs after this text, in playback order, up to three. Use X-Request-Id from completed batch or fully consumed streaming responses within two hours. Requests must use the same workspace, voice, and model. Instant clones only, including Turbo. Unavailable when speech retention is disabled. Only the first three seconds of context are used. Unavailable context falls back to normal synthesis.",
            "title": "Next Request Ids",
            "x-mcp-visible": false
          },
          "expressiveness_boost": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Expressiveness boost for instant voices, from 0.0 to 1.0. Omit for professional voices. Omitted values use 0.5 with pronunciation and 1.0 otherwise. The boost is not applied when text contains an audio tag other than [pause].",
            "title": "Expressiveness Boost",
            "x-mcp-default": null
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional best-effort deterministic generation seed for professional clones. Ignored for instant clones.",
            "title": "Seed"
          },
          "speed": {
            "anyOf": [
              {
                "maximum": 1.25,
                "minimum": 0.75,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Speech speed multiplier for professional clones. Ignored for instant clones, including Turbo.",
            "title": "Speed"
          },
          "pitch_shift": {
            "anyOf": [
              {
                "maximum": 4.0,
                "minimum": -4.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pitch shift in semitones for professional clones. Ignored for instant clones.",
            "title": "Pitch Shift"
          },
          "pitch_variance": {
            "anyOf": [
              {
                "maximum": 2.0,
                "minimum": 0.5,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pitch variation multiplier for professional clones; 1.0 preserves the voice default. Ignored for instant clones.",
            "title": "Pitch Variance"
          },
          "with_timestamps": {
            "default": false,
            "description": "Include character and word timings in the response.",
            "title": "With Timestamps",
            "type": "boolean",
            "x-mcp-visible": false
          }
        },
        "required": [
          "voice_id",
          "text"
        ],
        "title": "CreateSpeechRequest",
        "type": "object"
      },
      "SpeechOutputFormat": {
        "additionalProperties": false,
        "properties": {
          "encoding": {
            "enum": [
              "pcm",
              "mp3",
              "ulaw",
              "alaw"
            ],
            "title": "Encoding",
            "type": "string"
          },
          "sample_rate_hertz": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Sample Rate Hertz"
          },
          "bit_depth": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bit Depth"
          },
          "num_channels": {
            "default": 1,
            "title": "Num Channels",
            "type": "integer"
          },
          "bitrate_bps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bitrate Bps"
          }
        },
        "required": [
          "encoding"
        ],
        "title": "SpeechOutputFormat",
        "type": "object"
      },
      "CreateSpeechResponseData": {
        "properties": {
          "audio_url": {
            "description": "URL of the generated audio file.",
            "title": "Audio Url",
            "type": "string"
          },
          "duration": {
            "description": "Duration of the generated audio in seconds.",
            "minimum": 0,
            "title": "Duration",
            "type": "number"
          },
          "original_characters": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SpeechCharacterAlignment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Start and end time of each written character, without pronunciation tags, in seconds from the start of the audio. Present only when `with_timestamps` is true.",
            "title": "Original Characters",
            "x-mcp-visible": false
          },
          "original_words": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SpeechWordAlignment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Word timings from original_characters. Present only when with_timestamps is true. Unicode word boundaries determine the words. Punctuation-only and whitespace-only segments are excluded. Dictionary segmentation is not used for Chinese, Japanese, or Thai.",
            "title": "Original Words",
            "x-mcp-visible": false
          }
        },
        "required": [
          "audio_url",
          "duration"
        ],
        "title": "CreateSpeechResponseData",
        "type": "object"
      },
      "SpeechCharacterAlignment": {
        "properties": {
          "text": {
            "description": "Character represented by this alignment entry.",
            "maxLength": 1,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "start_time": {
            "description": "Character start time in seconds.",
            "minimum": 0,
            "title": "Start Time",
            "type": "number"
          },
          "end_time": {
            "description": "Character end time in seconds.",
            "minimum": 0,
            "title": "End Time",
            "type": "number"
          }
        },
        "required": [
          "text",
          "start_time",
          "end_time"
        ],
        "title": "SpeechCharacterAlignment",
        "type": "object"
      },
      "SpeechWordAlignment": {
        "properties": {
          "text": {
            "description": "Word text from the character alignment.",
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "start_time": {
            "description": "Earliest character start time, in seconds from the audio start.",
            "minimum": 0,
            "title": "Start Time",
            "type": "number"
          },
          "end_time": {
            "description": "Latest character end time, in seconds from the audio start.",
            "minimum": 0,
            "title": "End Time",
            "type": "number"
          }
        },
        "required": [
          "text",
          "start_time",
          "end_time"
        ],
        "title": "SpeechWordAlignment",
        "type": "object"
      },
      "StreamSpeechRequest": {
        "additionalProperties": false,
        "example": {
          "language": "en",
          "text": "Hello from HeyGen Voice.",
          "voice_id": "<voice_id>"
        },
        "properties": {
          "end_user_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^\\S+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable, opaque end-user identifier in your application, scoped to the authenticated workspace. Use 1\u2013128 non-whitespace characters without personal information. Used for usage attribution and abuse investigation; does not change billing, authorization, or rate limits.",
            "title": "End User Id",
            "x-mcp-visible": false
          },
          "output_format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpeechOutputFormat"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional audio output: encoding pcm (signed little-endian PCM16), mp3, ulaw, or alaw; mono only. sample_rate_hertz: 8000, 16000, 22050, 24000, 44100, or 48000 for pcm/mp3 (default 44100); ulaw/alaw require 8000 (default). MP3 bitrate_bps: 32000/48000/64000 below 32000 Hz (default 64000), or 64000/96000/128000/192000 at 44100/48000 Hz (default 128000). Omit for the existing WAV file or SSE stream of base64 WAV parts. When supplied, /tts/stream returns raw audio bytes and does not support with_timestamps."
          },
          "model": {
            "default": "heygen-voice-1",
            "description": "heygen-voice-1: instant and professional voices. heygen-voice-1-turbo: instant voices at lower latency. heygen-voice-1-turbo-free: instant voices without charge, subject to per-user limits and shared capacity. No latency or availability guarantee. Requests rejected by a limit or capacity check return HTTP 429. Timeouts and service failures can return HTTP 500.",
            "enum": [
              "heygen-voice-1",
              "heygen-voice-1-turbo",
              "heygen-voice-1-turbo-free"
            ],
            "title": "Model",
            "type": "string"
          },
          "voice_id": {
            "description": "Identifier of the voice used for speech synthesis.",
            "minLength": 1,
            "title": "Voice Id",
            "type": "string"
          },
          "text": {
            "description": "Text to synthesize. Instant voices accept caller-supplied IPA, such as <pron ipa=\"/\u02c8\u00e6kmi/\">Acme</pron>. Respelling cues are not supported. Unsupported IPA returns HTTP 400. Pronunciation requires an available pronunciation-capable model. Instant voices perform audio tags in square brackets, such as [laughs], [whispers], or [sad]; see https://developers.heygen.com/docs/voices/heygen-voice-speech#audio-tags for the supported tags. Bracketed text that is not a supported tag is usually not spoken; to have those words spoken, remove the square brackets. Professional voices do not perform audio tags. Professional voices accept <break time=\"Xs\"/> pauses (seconds, up to 5 per pause, e.g. <break time=\"0.5s\"/>); other SSML, and break tags for an instant voice clone, are not supported.",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "pronunciation_dictionary": {
            "anyOf": [
              {
                "additionalProperties": {
                  "maxLength": 512,
                  "minLength": 3,
                  "type": "string"
                },
                "maxProperties": 100,
                "propertyNames": {
                  "maxLength": 128,
                  "minLength": 1
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional term-to-IPA dictionary, such as {\"Acme\": \"/\u02c8\u00e6kmi/\"}. Use enclosing slashes for each IPA value. Matches whole terms without case sensitivity. Inline pronunciation takes precedence. Supports instant voices on heygen-voice-1 and heygen-voice-1-turbo when pronunciation is available. Omit expressiveness_boost to use 0.5, or supply a value from 0.0 to 1.0.",
            "title": "Pronunciation Dictionary"
          },
          "language": {
            "anyOf": [
              {
                "enum": [
                  "ar",
                  "be",
                  "bg",
                  "ca",
                  "cs",
                  "da",
                  "de",
                  "el",
                  "en",
                  "es",
                  "fa",
                  "fi",
                  "fr",
                  "he",
                  "hi",
                  "hr",
                  "hu",
                  "id",
                  "it",
                  "ja",
                  "ko",
                  "mk",
                  "ms",
                  "nl",
                  "pl",
                  "pt",
                  "ro",
                  "ru",
                  "sk",
                  "sl",
                  "sr",
                  "sv",
                  "ta",
                  "th",
                  "tl",
                  "tr",
                  "uk",
                  "vi",
                  "zh"
                ],
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Language of `text` as a lowercase ISO 639-1 code, such as `en` or `zh`. HeyGen Voice has no regional accents, so a regional tag such as `en-US` or `zh-HK` fails with `invalid_parameter`. Omit it to detect the language from `text`. A confident reading that matches the letters of `text` is used, and the request fails with `invalid_parameter` if HeyGen Voice does not speak that language. Otherwise the first of these that HeyGen Voice speaks is used: the language the voice was created in, if `text` is written in that language's script; a less certain reading that a second reading of `text` without its numbers and brand names agrees with; the usual language of the script `text` is mostly written in, such as English for Latin letters; and, only when that script has no usual language, the reading itself. If none of them applies, the request fails with `invalid_parameter`. The `Content-Language` response header names the language used.",
            "title": "Language"
          },
          "previous_request_ids": {
            "anyOf": [
              {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9_-]+$",
                  "type": "string"
                },
                "maxItems": 3,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Completed speech request IDs before this text, in playback order, up to three. Use X-Request-Id from completed batch or fully consumed streaming responses within two hours. Requests must use the same workspace, voice, and model. Instant clones only, including Turbo. Unavailable when speech retention is disabled. Only the last three seconds of context are used. Unavailable context falls back to normal synthesis.",
            "title": "Previous Request Ids",
            "x-mcp-visible": false
          },
          "next_request_ids": {
            "anyOf": [
              {
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9_-]+$",
                  "type": "string"
                },
                "maxItems": 3,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Completed speech request IDs after this text, in playback order, up to three. Use X-Request-Id from completed batch or fully consumed streaming responses within two hours. Requests must use the same workspace, voice, and model. Instant clones only, including Turbo. Unavailable when speech retention is disabled. Only the first three seconds of context are used. Unavailable context falls back to normal synthesis.",
            "title": "Next Request Ids",
            "x-mcp-visible": false
          },
          "expressiveness_boost": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Expressiveness boost for instant voices, from 0.0 to 1.0. Omit for professional voices. Omitted values use 0.5 with pronunciation and 1.0 otherwise. The boost is not applied when text contains an audio tag other than [pause].",
            "title": "Expressiveness Boost",
            "x-mcp-default": null
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional best-effort deterministic generation seed for professional clones. Ignored for instant clones.",
            "title": "Seed"
          },
          "speed": {
            "anyOf": [
              {
                "maximum": 1.25,
                "minimum": 0.75,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Speech speed multiplier for professional clones. Ignored for instant clones, including Turbo.",
            "title": "Speed"
          },
          "pitch_shift": {
            "anyOf": [
              {
                "maximum": 4.0,
                "minimum": -4.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pitch shift in semitones for professional clones. Ignored for instant clones.",
            "title": "Pitch Shift"
          },
          "pitch_variance": {
            "anyOf": [
              {
                "maximum": 2.0,
                "minimum": 0.5,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pitch variation multiplier for professional clones; 1.0 preserves the voice default. Ignored for instant clones.",
            "title": "Pitch Variance"
          },
          "with_timestamps": {
            "default": false,
            "description": "Include character and word timings after the audio.",
            "title": "With Timestamps",
            "type": "boolean"
          }
        },
        "required": [
          "voice_id",
          "text"
        ],
        "title": "StreamSpeechRequest",
        "type": "object"
      },
      "SpeechStreamEvent": {
        "description": "One JSON event carried by the speech SSE stream.",
        "discriminator": {
          "mapping": {
            "audio": "#/components/schemas/SpeechAudioEvent",
            "character_alignment": "#/components/schemas/SpeechCharacterAlignmentEvent",
            "error": "#/components/schemas/SpeechErrorEvent"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/SpeechAudioEvent"
          },
          {
            "$ref": "#/components/schemas/SpeechCharacterAlignmentEvent"
          },
          {
            "$ref": "#/components/schemas/SpeechErrorEvent"
          }
        ],
        "title": "SpeechStreamEvent"
      },
      "SpeechAudioEvent": {
        "properties": {
          "type": {
            "const": "audio",
            "description": "Event type.",
            "title": "Type",
            "type": "string"
          },
          "part_index": {
            "description": "Zero-based sequence number of this audio part.",
            "minimum": 0,
            "title": "Part Index",
            "type": "integer"
          },
          "audio": {
            "description": "Base64-encoded standalone WAV audio part.",
            "title": "Audio",
            "type": "string"
          }
        },
        "required": [
          "type",
          "part_index",
          "audio"
        ],
        "title": "SpeechAudioEvent",
        "type": "object"
      },
      "SpeechCharacterAlignmentEvent": {
        "properties": {
          "type": {
            "const": "character_alignment",
            "description": "Event type.",
            "title": "Type",
            "type": "string"
          },
          "original_characters": {
            "description": "Timings over the written text, without pronunciation tags.",
            "items": {
              "$ref": "#/components/schemas/SpeechCharacterAlignment"
            },
            "title": "Original Characters",
            "type": "array"
          },
          "normalized_characters": {
            "description": "Timings over the normalized text spoken by the model.",
            "items": {
              "$ref": "#/components/schemas/SpeechCharacterAlignment"
            },
            "title": "Normalized Characters",
            "type": "array"
          },
          "original_words": {
            "description": "Word timings from original_characters, with Unicode word boundaries.",
            "items": {
              "$ref": "#/components/schemas/SpeechWordAlignment"
            },
            "title": "Original Words",
            "type": "array"
          },
          "normalized_words": {
            "description": "Word timings from normalized_characters, with Unicode word boundaries.",
            "items": {
              "$ref": "#/components/schemas/SpeechWordAlignment"
            },
            "title": "Normalized Words",
            "type": "array"
          }
        },
        "required": [
          "type",
          "original_characters",
          "normalized_characters",
          "original_words",
          "normalized_words"
        ],
        "title": "SpeechCharacterAlignmentEvent",
        "type": "object"
      },
      "SpeechErrorEvent": {
        "properties": {
          "type": {
            "const": "error",
            "description": "Event type.",
            "title": "Type",
            "type": "string"
          },
          "detail": {
            "description": "Sanitized description of a failure that occurred after streaming began.",
            "title": "Detail",
            "type": "string"
          }
        },
        "required": [
          "type",
          "detail"
        ],
        "title": "SpeechErrorEvent",
        "type": "object"
      },
      "SpeechInputTokenData": {
        "properties": {
          "token": {
            "description": "Single-use credential for one input-streaming handshake, sent as `?token=`.",
            "title": "Token",
            "type": "string"
          },
          "expires_at": {
            "description": "When the token stops being accepted, if it has not been used.",
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "expires_in": {
            "description": "Seconds until `expires_at`.",
            "title": "Expires In",
            "type": "integer"
          }
        },
        "required": [
          "token",
          "expires_at",
          "expires_in"
        ],
        "title": "SpeechInputTokenData",
        "type": "object"
      },
      "ModelAudioVoiceResponse": {
        "additionalProperties": false,
        "description": "Customer-visible state of one model-backed audio voice.",
        "properties": {
          "voice_id": {
            "description": "Stable identifier for this voice.",
            "title": "Voice Id",
            "type": "string"
          },
          "mode": {
            "description": "`professional` for a professional voice clone, `instant` for an instant voice clone.",
            "enum": [
              "professional",
              "instant"
            ],
            "title": "Mode",
            "type": "string"
          },
          "name": {
            "description": "Display name of the voice.",
            "title": "Name",
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary language code of the voice. An instant clone created without one has none until its recording passes every check and the detected language is recorded, so a clone refused before that never gets one. A professional voice created without one has none until it is ACTIVE.",
            "title": "Language"
          },
          "gender": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelAudioVoiceGender"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice gender. Present in the public list when known."
          },
          "status": {
            "$ref": "#/components/schemas/VideoTTSVoiceStatus",
            "description": "Current lifecycle state: `PENDING`, `ACTIVE`, or `FAILED`."
          },
          "created_at": {
            "description": "Unix timestamp in seconds when the voice was created.",
            "title": "Created At",
            "type": "integer"
          },
          "failure_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoTTSVoiceFailureReason"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable failure code. Present only when `status` is `FAILED`."
          },
          "preview_audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to a WAV clip of this voice reading a short fixed preview script: in its language when a script exists for it, otherwise in English. Present only when `status` is `ACTIVE` and a clip exists. The URL can expire; read the voice again rather than storing it.",
            "title": "Preview Audio Url"
          }
        },
        "required": [
          "voice_id",
          "mode",
          "name",
          "status",
          "created_at"
        ],
        "title": "ModelAudioVoiceResponse",
        "type": "object"
      },
      "ModelAudioVoiceGender": {
        "description": "Voice gender.",
        "enum": [
          "male",
          "female"
        ],
        "title": "ModelAudioVoiceGender",
        "type": "string"
      },
      "VideoTTSVoiceFailureReason": {
        "description": "Stable failure codes persisted for terminal training failures.",
        "enum": [
          "INVALID_AUDIO",
          "INSUFFICIENT_AUDIO",
          "PREPROCESSING_FAILED",
          "TRAINING_FAILED",
          "DESIGN_FAILED",
          "ARTIFACT_VALIDATION_FAILED",
          "INTERNAL_ERROR"
        ],
        "title": "VideoTTSVoiceFailureReason",
        "type": "string"
      },
      "VideoTTSVoiceStatus": {
        "description": "Values persisted in ``video_tts_voices.status``.",
        "enum": [
          "PENDING",
          "ACTIVE",
          "FAILED"
        ],
        "title": "VideoTTSVoiceStatus",
        "type": "string"
      },
      "DeleteModelAudioVoiceResponse": {
        "additionalProperties": false,
        "description": "Confirmation returned after an audio voice is deleted.",
        "properties": {
          "status": {
            "const": "ok",
            "default": "ok",
            "description": "Always `ok` when the voice was deleted successfully.",
            "title": "Status",
            "type": "string"
          }
        },
        "title": "DeleteModelAudioVoiceResponse",
        "type": "object"
      },
      "VoiceDetailV3": {
        "description": "Response payload for GET /v3/voices/{voice_id}.",
        "properties": {
          "voice_id": {
            "description": "Unique voice identifier.",
            "title": "Voice Id",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name of the voice. Only present when the voice record exists.",
            "title": "Name"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary language of the voice. Only present when the voice record exists.",
            "title": "Language"
          },
          "gender": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Gender of the voice (e.g., 'male', 'female'). Only present when the voice record exists.",
            "title": "Gender"
          },
          "preview_audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to a short preview audio clip. Only present for completed voices.",
            "title": "Preview Audio Url"
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "processing",
                  "complete",
                  "failed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Clone status. Only present for cloned voices.",
            "title": "Status"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Only present when status is 'failed'.",
            "title": "Failure Message"
          },
          "support_pause": {
            "description": "Whether the voice supports SSML pause/break tags.",
            "title": "Support Pause",
            "type": "boolean"
          },
          "support_interactive_avatar": {
            "default": false,
            "description": "Whether the voice supports interactive avatar streaming.",
            "title": "Support Interactive Avatar",
            "type": "boolean"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the voice was created.",
            "title": "Created At"
          }
        },
        "required": [
          "voice_id",
          "support_pause"
        ],
        "title": "VoiceDetailV3",
        "type": "object"
      },
      "VoiceDeleteV3Response": {
        "description": "Response for DELETE /v3/voices/{voice_id}.",
        "properties": {
          "voice_id": {
            "description": "ID of the deleted voice.",
            "title": "Voice Id",
            "type": "string"
          }
        },
        "required": [
          "voice_id"
        ],
        "title": "VoiceDeleteV3Response",
        "type": "object"
      },
      "CreateAvatarVideoRequest": {
        "description": "Request body for POST /v2/videos \u2014 unified video creation.",
        "properties": {
          "avatar_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen avatar ID (photo avatar or video avatar). Mutually exclusive with image_url and image_asset_id.",
            "title": "Avatar Id"
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public URL of an image to animate. Mutually exclusive with avatar_id and image_asset_id.",
            "title": "Image Url"
          },
          "image_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded image. Mutually exclusive with avatar_id and image_url.",
            "title": "Image Asset Id"
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text script for the avatar to speak. Pair with voice_id, or omit voice_id when using avatar_id to use the avatar's default voice.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided, unless avatar_id is set (the avatar's default voice is used as fallback).",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public URL of an audio file to lip-sync. Mutually exclusive with script.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded audio file. Mutually exclusive with script.",
            "title": "Audio Asset Id"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output video resolution. `4k` is available for Avatar III digital twins and studio avatars."
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Output video aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. 'auto' preserves the source's aspect ratio (avatar source frames or uploaded image), short-edge anchored to the requested resolution and capped at the tier's long edge. Falls back to '16:9' when source dimensions can't be read.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Natural-language prompt controlling avatar body motion. Photo avatars only.",
            "title": "Motion Prompt"
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar expressiveness level: 'high', 'medium', or 'low'. Photo avatars only. Defaults to 'low' when omitted."
          },
          "remove_background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Remove the avatar background. Video avatars must be trained with matting enabled.",
            "title": "Remove Background"
          },
          "background": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BackgroundSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Background settings for the video."
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Output container. 'webm' returns a video with a transparent background (alpha channel); 'mp4' (default) returns a standard video. 'webm' requires an avatar that supports matting. When 'webm' is selected, any 'background' value is rejected and background removal is applied automatically \u2014 the caller does not need to set 'remove_background'."
          }
        },
        "title": "CreateAvatarVideoRequest",
        "type": "object"
      },
      "BackgroundSetting": {
        "description": "Background configuration for the generated video.",
        "properties": {
          "type": {
            "description": "Background type. 'color' uses a solid hex color; 'image' uses an image from url or asset_id.",
            "enum": [
              "color",
              "image"
            ],
            "title": "Type",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Hex color code (e.g. '#ff0000'). Required when type is 'color'.",
            "title": "Value"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the background image. Used when type is 'image'. Mutually exclusive with asset_id.",
            "title": "Url"
          },
          "asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of the background image. Used when type is 'image'. Mutually exclusive with url.",
            "title": "Asset Id"
          }
        },
        "required": [
          "type"
        ],
        "title": "BackgroundSetting",
        "type": "object"
      },
      "CaptionFileFormat": {
        "description": "Supported caption file output formats.",
        "enum": [
          "srt"
        ],
        "title": "CaptionFileFormat",
        "type": "string"
      },
      "CaptionSetting": {
        "description": "Caption generation settings for video creation.\n\nA sidecar subtitle file is always generated and returned via ``subtitle_url``\nin the chosen ``file_format``. When ``style`` is also set, captions are\nadditionally burned into the rendered video \u2014 the sidecar is still delivered.",
        "properties": {
          "file_format": {
            "$ref": "#/components/schemas/CaptionFileFormat",
            "default": "srt",
            "description": "Output format for the sidecar caption file."
          },
          "style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionStyle"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Visual style for burning captions into the rendered video. Omit for sidecar-only captions."
          }
        },
        "title": "CaptionSetting",
        "type": "object"
      },
      "CaptionStyle": {
        "description": "Visual style applied when burning captions into the rendered video.",
        "enum": [
          "default"
        ],
        "title": "CaptionStyle",
        "type": "string"
      },
      "ElevenLabsEngineSettings": {
        "description": "Engine-specific voice settings for ElevenLabs-backed voices.\n\nSupports model, stability, similarity_boost, style, and use_speaker_boost.\nWhen using eleven_v3 or eleven_v4, stability may be any value in [0.0, 1.0].",
        "properties": {
          "model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ElevenLabsModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The model ID to use for ElevenLabs."
          },
          "similarity_boost": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The similarity boost parameter for ElevenLabs.",
            "title": "Similarity Boost"
          },
          "stability": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The stability parameter for ElevenLabs.",
            "title": "Stability"
          },
          "style": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The style parameter for ElevenLabs.",
            "title": "Style"
          },
          "use_speaker_boost": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether to use speaker boost for ElevenLabs.",
            "title": "Use Speaker Boost"
          },
          "engine_type": {
            "const": "elevenlabs",
            "description": "Engine type discriminator. Must be 'elevenlabs' for ElevenLabs-backed voices.",
            "title": "Engine Type",
            "type": "string"
          }
        },
        "required": [
          "engine_type"
        ],
        "title": "ElevenLabsEngineSettings",
        "type": "object"
      },
      "ElevenLabsModel": {
        "description": "ElevenLabs model IDs exposed on the public API.\n\nOnly current models are included \u2014 deprecated models (monolingual_v1, multilingual_v1,\nturbo_v2) are not accepted.",
        "enum": [
          "eleven_multilingual_v2",
          "eleven_turbo_v2_5",
          "eleven_flash_v2_5",
          "eleven_v3",
          "eleven_v4"
        ],
        "title": "ElevenLabsModel",
        "type": "string"
      },
      "Expressiveness": {
        "description": "Avatar expressiveness level for photo avatars.",
        "enum": [
          "high",
          "medium",
          "low"
        ],
        "title": "Expressiveness",
        "type": "string"
      },
      "FishEngineSettings": {
        "description": "Engine-specific voice settings for Fish Audio-backed voices.\n\nInherits Fish's tuning fields (model, stability, similarity).",
        "properties": {
          "model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FishModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Fish Audio model version (default 's2.1-pro'). 's1' is deprecated and is retired on 2026-11-15; use 's2.1-pro'."
          },
          "stability": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stability parameter; higher is more consistent.",
            "title": "Stability"
          },
          "similarity": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Similarity parameter; how closely to match the source voice.",
            "title": "Similarity"
          },
          "engine_type": {
            "const": "fish",
            "description": "Engine type discriminator. Must be 'fish' for Fish Audio-backed voices.",
            "title": "Engine Type",
            "type": "string"
          }
        },
        "required": [
          "engine_type"
        ],
        "title": "FishEngineSettings",
        "type": "object"
      },
      "FishModel": {
        "description": "Fish Audio model version.",
        "enum": [
          "s1",
          "s2-pro",
          "s2.1-pro"
        ],
        "title": "FishModel",
        "type": "string"
      },
      "HeyGenVoiceEngineSettings": {
        "description": "Selects HeyGen Voice, including instant and professional clones; no tunable fields.\n\nA script in a language HeyGen Voice does not speak renders with ElevenLabs instead when the voice can use ElevenLabs; otherwise the video fails.",
        "properties": {
          "engine_type": {
            "description": "Engine type discriminator. 'heygen_voice' selects HeyGen Voice; 'orca' is accepted as its legacy alias.",
            "enum": [
              "heygen_voice",
              "orca"
            ],
            "title": "Engine Type",
            "type": "string"
          }
        },
        "required": [
          "engine_type"
        ],
        "title": "HeyGenVoiceEngineSettings",
        "type": "object"
      },
      "StarfishEngineSettings": {
        "description": "Engine selection without tunable settings.\n\nOnly selects the engine named by ``engine_type`` on voices that support multiple engines;\nomit engine settings to use the voice's saved default.",
        "properties": {
          "engine_type": {
            "const": "starfish",
            "description": "Engine type discriminator for this settings variant.",
            "title": "Engine Type",
            "type": "string"
          }
        },
        "required": [
          "engine_type"
        ],
        "title": "StarfishEngineSettings",
        "type": "object"
      },
      "VideoAspectRatio": {
        "description": "Output video aspect ratio.\n\n- ``16:9`` / ``9:16``: classic landscape / portrait.\n- ``4:5`` / ``5:4`` / ``1:1``: social-media-friendly ratios. Output is short-edge anchored to\n  the requested resolution (e.g. ``1080p`` 1:1 \u2192 1080x1080, ``1080p`` 4:5 \u2192 1080x1350).\n- ``auto``: preserve the source's aspect ratio. The dimensions are derived from the avatar's\n  source frames (``avatar_id``) or the uploaded image (``image_url`` / ``image_asset_id``),\n  short-edge anchored to the requested resolution and capped at the tier's long edge.\n  Falls back to ``16:9`` when source dimensions can't be read.",
        "enum": [
          "16:9",
          "9:16",
          "4:5",
          "5:4",
          "1:1",
          "auto"
        ],
        "title": "VideoAspectRatio",
        "type": "string"
      },
      "VideoOutputFormat": {
        "description": "Output container for the generated video.",
        "enum": [
          "mp4",
          "webm"
        ],
        "title": "VideoOutputFormat",
        "type": "string"
      },
      "VideoResolution": {
        "description": "Output video resolution.\n\n`4k` is available for Avatar III digital twins and studio avatars.",
        "enum": [
          "4k",
          "1080p",
          "720p"
        ],
        "title": "VideoResolution",
        "type": "string"
      },
      "VoiceSettingsInput": {
        "description": "Voice tuning parameters for text-to-speech.\n\nApplies only when 'script' + 'voice_id' are provided \u2014 not when audio_url/audio_asset_id\nis used (uploaded audio bypasses TTS).",
        "properties": {
          "speed": {
            "default": 1.0,
            "description": "Playback speed multiplier. 0.5 (half speed) to 1.5 (1.5x speed).",
            "maximum": 1.5,
            "minimum": 0.5,
            "title": "Speed",
            "type": "number"
          },
          "pitch": {
            "default": 0.0,
            "description": "Pitch adjustment in semitones. -50 to +50.",
            "maximum": 50.0,
            "minimum": -50.0,
            "title": "Pitch",
            "type": "number"
          },
          "volume": {
            "default": 1.0,
            "description": "Voice audio volume. 1.0 = full, 0.0 = silent. Useful when mixing spoken voice with background audio.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Volume",
            "type": "number"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Locale/accent hint for multi-lingual voices (e.g. 'en-US').",
            "title": "Locale"
          },
          "engine_settings": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "elevenlabs": "#/components/schemas/ElevenLabsEngineSettings",
                    "fish": "#/components/schemas/FishEngineSettings",
                    "heygen_voice": "#/components/schemas/HeyGenVoiceEngineSettings",
                    "orca": "#/components/schemas/HeyGenVoiceEngineSettings",
                    "starfish": "#/components/schemas/StarfishEngineSettings"
                  },
                  "propertyName": "engine_type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ElevenLabsEngineSettings"
                  },
                  {
                    "$ref": "#/components/schemas/FishEngineSettings"
                  },
                  {
                    "$ref": "#/components/schemas/StarfishEngineSettings"
                  },
                  {
                    "$ref": "#/components/schemas/HeyGenVoiceEngineSettings"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Engine-specific voice tuning, discriminated by 'engine_type'. Use the variant matching the engine backing the chosen voice (e.g. engine_type='elevenlabs' for ElevenLabs-backed voices, engine_type='heygen_voice' for HeyGen Voice). The request is rejected if the voice_id is not compatible with the selected engine. Omit to let the voice's engine be chosen at render time: a HeyGen Voice professional clone always renders with HeyGen Voice, while an instant clone usually does, but its script language, locale, or markup tags can select another engine.",
            "title": "Engine Settings"
          }
        },
        "title": "VoiceSettingsInput",
        "type": "object"
      },
      "CreateAvatarVideoResponse": {
        "properties": {
          "video_id": {
            "description": "Unique identifier for the created video.",
            "examples": [
              "v_abc123def456"
            ],
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "description": "Initial video status (e.g. 'waiting').",
            "examples": [
              "waiting"
            ],
            "title": "Status",
            "type": "string"
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Resolved output format for the video."
          }
        },
        "required": [
          "video_id",
          "status"
        ],
        "title": "CreateAvatarVideoResponse",
        "type": "object"
      },
      "VideoDetail": {
        "description": "Video resource returned by list and detail endpoints.\n\nIf ``output_language`` is present the video is a translated video;\notherwise it is a generated video.",
        "properties": {
          "id": {
            "description": "Unique video identifier",
            "examples": [
              "v_abc123def456"
            ],
            "title": "Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video title",
            "examples": [
              "My Generated Video"
            ],
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/VideoStatus",
            "description": "Current video status",
            "examples": [
              "completed"
            ]
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of creation",
            "examples": [
              1711929600
            ],
            "title": "Created At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when video generation finished",
            "examples": [
              1711930200
            ],
            "title": "Completed At"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL to download the video file",
            "examples": [
              "https://files.heygen.ai/video/abc123.mp4"
            ],
            "title": "Video Url"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to video thumbnail image",
            "examples": [
              "https://files.heygen.ai/thumb/abc123.jpg"
            ],
            "title": "Thumbnail Url"
          },
          "gif_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to animated GIF preview",
            "examples": [
              "https://files.heygen.ai/gif/abc123.gif"
            ],
            "title": "Gif Url"
          },
          "captioned_video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL to download the video file with captions burned in",
            "examples": [
              "https://files.heygen.ai/video/abc123_captioned.mp4"
            ],
            "title": "Captioned Video Url"
          },
          "subtitle_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL to download the SRT subtitle file",
            "examples": [
              "https://files.heygen.ai/srt/abc123.srt"
            ],
            "title": "Subtitle Url"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video duration in seconds",
            "examples": [
              30.5
            ],
            "title": "Duration"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID of containing folder",
            "examples": [
              "folder_abc123"
            ],
            "title": "Folder Id"
          },
          "output_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "BCP-47 output language code. Present only for translated videos.",
            "examples": [
              "en-US"
            ],
            "title": "Output Language"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Machine-readable failure reason. Only present when status is failed.",
            "examples": [
              "rendering_failed"
            ],
            "title": "Failure Code"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Human-readable failure description. Only present when status is failed.",
            "examples": [
              "Avatar rendering timed out"
            ],
            "title": "Failure Message"
          },
          "video_page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the video page in the HeyGen app",
            "examples": [
              "https://app.heygen.com/video/abc123"
            ],
            "title": "Video Page Url"
          },
          "delivery": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FileDeliveryStatus"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload status of each file sent to your own storage with output_upload. Present on the single-video GET when the request that created the video sent output_upload.",
            "title": "Delivery",
            "x-cli-visible": false,
            "x-mcp-visible": false
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "VideoDetail",
        "type": "object"
      },
      "DeliveryArtifact": {
        "enum": [
          "video",
          "captions",
          "thumbnail"
        ],
        "title": "DeliveryArtifact",
        "type": "string"
      },
      "DeliveryErrorCode": {
        "description": "The public reason a delivery failed, stored in ``video_deliveries.error_code`` and sent in webhooks.",
        "enum": [
          "upload_url_expired",
          "upload_rejected",
          "upload_target_not_found",
          "output_too_large",
          "provider_unavailable",
          "source_missing",
          "internal_error"
        ],
        "title": "DeliveryErrorCode",
        "type": "string"
      },
      "DeliveryStatus": {
        "enum": [
          "pending",
          "in_progress",
          "succeeded",
          "failed"
        ],
        "title": "DeliveryStatus",
        "type": "string"
      },
      "FileDeliveryStatus": {
        "properties": {
          "artifact": {
            "$ref": "#/components/schemas/DeliveryArtifact",
            "description": "Which file: video, captions or thumbnail."
          },
          "status": {
            "$ref": "#/components/schemas/DeliveryStatus",
            "description": "pending, in_progress, succeeded or failed. A file left unsent because its video failed to render reports failed (source_missing)."
          },
          "target_host": {
            "description": "Host of the upload URL the file goes to. The URL itself is never returned.",
            "title": "Target Host",
            "type": "string"
          },
          "size_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Bytes uploaded. Set when status is succeeded.",
            "title": "Size Bytes"
          },
          "error_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeliveryErrorCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the upload failed. Set when status is failed."
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the upload succeeded or failed.",
            "title": "Completed At"
          }
        },
        "required": [
          "artifact",
          "status",
          "target_host"
        ],
        "title": "FileDeliveryStatus",
        "type": "object"
      },
      "VideoStatus": {
        "enum": [
          "pending",
          "processing",
          "completed",
          "failed"
        ],
        "title": "VideoStatus",
        "type": "string"
      },
      "DeleteVideoResponse": {
        "properties": {
          "id": {
            "description": "ID of the deleted video",
            "examples": [
              "v_abc123def456"
            ],
            "title": "Id",
            "type": "string"
          },
          "deleted": {
            "default": true,
            "description": "Always true on success",
            "examples": [
              true
            ],
            "title": "Deleted",
            "type": "boolean"
          }
        },
        "required": [
          "id"
        ],
        "title": "DeleteVideoResponse",
        "type": "object"
      },
      "CreateVideoV3RequestBody": {
        "description": "Discriminated union for POST /v3/videos request body.",
        "discriminator": {
          "mapping": {
            "avatar": "#/components/schemas/CreateVideoFromAvatar",
            "cinematic_avatar": "#/components/schemas/CreateVideoFromCinematicAvatar",
            "image": "#/components/schemas/CreateVideoFromImage",
            "studio": "#/components/schemas/CreateVideoFromStudio"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/CreateVideoFromAvatar"
          },
          {
            "$ref": "#/components/schemas/CreateVideoFromImage"
          },
          {
            "$ref": "#/components/schemas/CreateVideoFromCinematicAvatar"
          },
          {
            "$ref": "#/components/schemas/CreateVideoFromStudio"
          }
        ],
        "title": "CreateVideoV3RequestBody"
      },
      "AvatarFit": {
        "description": "How the avatar is scaled to the output canvas.",
        "enum": [
          "contain",
          "cover"
        ],
        "title": "AvatarFit",
        "type": "string"
      },
      "AvatarIIIEngineConfig": {
        "additionalProperties": false,
        "description": "Avatar III engine configuration.\n\nA single engine value that resolves to the right product by the avatar's\nlook type (mirrors how ``avatar_iv`` already serves both photo and video\navatars):\n\n- video avatar looks (``digital_twin``, ``studio_avatar``) -> Digital Twin\n  (supports 4K)\n- ``photo_avatar`` look -> Photo Avatar (no 4K output)\n\nNot supported for raw image input (``type: \"image\"``).\n``motion_prompt`` and ``expressiveness`` are not supported with this engine.",
        "properties": {
          "type": {
            "const": "avatar_iii",
            "description": "Engine type discriminator. Must be 'avatar_iii'. Resolves to Digital Twin for video avatar looks (digital_twin, studio_avatar) and Photo Avatar for photo_avatar looks; not supported for raw image input. Check supported_api_engines on the avatar look to confirm eligibility.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "AvatarIIIEngineConfig",
        "type": "object"
      },
      "AvatarIVEngineConfig": {
        "additionalProperties": false,
        "description": "Avatar IV engine configuration (default behavior).",
        "properties": {
          "type": {
            "const": "avatar_iv",
            "description": "Engine type discriminator. Must be 'avatar_iv'.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "AvatarIVEngineConfig",
        "type": "object"
      },
      "AvatarVEngineConfig": {
        "additionalProperties": false,
        "description": "Avatar V engine configuration with cross-reference-driven animation.",
        "properties": {
          "type": {
            "const": "avatar_v",
            "description": "Engine type discriminator. Must be 'avatar_v'. Check supported_api_engines on the avatar look to confirm eligibility.",
            "title": "Type",
            "type": "string"
          },
          "reference_look_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional look to use as the animation reference. When provided, it must be a `digital_twin` look accessible to your workspace and in the same avatar group as `avatar_id` (`studio_avatar` and `photo_avatar` looks are rejected). When omitted, video avatars self-reference and photo avatars select from their group's eligible candidates, preferring digital twins (ready first, then processing / upgrading), then curated public studio looks. A photo avatar whose group has no eligible reference renders directly from its image without one; motion_prompt is rejected in that case. A non-public `digital_twin` reference, whether provided or selected automatically, must also satisfy its group's consent requirements.",
            "title": "Reference Look Id"
          },
          "more_blinking": {
            "default": false,
            "description": "Ask Avatar V for more natural blinking.",
            "title": "More Blinking",
            "type": "boolean"
          }
        },
        "required": [
          "type"
        ],
        "title": "AvatarVEngineConfig",
        "type": "object"
      },
      "AvatarVideoScene": {
        "additionalProperties": false,
        "description": "A whole-frame speaking scene backed by an avatar.",
        "properties": {
          "type": {
            "const": "avatar_video",
            "description": "Must be 'avatar_video' for an avatar speaking scene.",
            "title": "Type",
            "type": "string"
          },
          "input": {
            "$ref": "#/components/schemas/StudioAvatarInput",
            "description": "Scene source ('type': 'avatar'): an avatar_id plus one audio source. The avatar_id accepts any avatar look \u2014 video avatars and photo avatars alike (pass a photo avatar's look id to get a talking photo). The scene duration is derived server-side from the audio."
          }
        },
        "required": [
          "type",
          "input"
        ],
        "title": "AvatarVideoScene",
        "type": "object"
      },
      "CinematicAvatarModel": {
        "description": "Video model that renders a Cinematic Avatar shot.",
        "enum": [
          "seedance_2",
          "heygen_video_1"
        ],
        "title": "CinematicAvatarModel",
        "type": "string"
      },
      "CreateVideoFromAvatar": {
        "additionalProperties": false,
        "description": "Create a video from a HeyGen avatar (video or photo avatar).\n\nProvide an avatar_id to use a previously created avatar. Supports all\navatar types: studio_avatar, digital_twin, and photo_avatar. Optionally\nset ``engine`` to select Avatar V for eligible avatars; when omitted, the\nserver defaults to Avatar IV.",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created. Supported only for single-video creation; batch video items cannot set their own destination folder.",
            "title": "Folder Id"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output video resolution. Defaults to 720p. `4k` is available for Avatar III digital twins and studio avatars. For apps signed in with OAuth, such as MCP clients, the account's plan sets the maximum: 720p on Free, 1080p on Creator."
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Output video aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. 'auto' preserves the source's aspect ratio (avatar source frames or uploaded image), short-edge anchored to the requested resolution and capped at the tier's long edge. Falls back to '16:9' when source dimensions can't be read.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "fit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarFit"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the subject is fitted to the output canvas. 'cover' scales to fill the frame (may crop edges). 'contain' scales to fit entirely within the frame (may show background). When omitted, the server picks the best option based on the source and canvas orientations."
          },
          "background": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BackgroundSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Background settings for the video."
          },
          "remove_background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Remove the avatar background. Video avatars must be trained with matting enabled.",
            "title": "Remove Background"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "output_upload": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputUploadRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload the finished files straight into your own storage. Give a presigned PUT URL per file, for Amazon S3, Google Cloud Storage or Azure Blob Storage; HeyGen uploads each file when the video finishes. The outcome is reported by the video_delivery.success and video_delivery.fail webhooks. Available to enabled workspaces.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "watermark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom watermark image to overlay on the video (PNG or JPEG). Available to workspaces on an Enterprise web or API plan.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Output container. 'webm' returns a video with a transparent background (alpha channel); 'mp4' (default) returns a standard video. 'webm' requires an avatar that supports matting. When 'webm' is selected, any 'background' value is rejected and background removal is applied automatically \u2014 the caller does not need to set 'remove_background'."
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text script for the avatar to speak. Pair with voice_id, or omit voice_id when using avatar_id to use the avatar's default voice. Mutually exclusive with audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided, unless avatar_id is set (the avatar's default voice is used as fallback).",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public http(s) URL of an audio file to lip-sync. Mutually exclusive with script. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded audio file. Mutually exclusive with script.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          },
          "type": {
            "const": "avatar",
            "description": "Must be 'avatar' for avatar-based video creation.",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "description": "HeyGen avatar ID (video avatar or photo avatar look ID).",
            "title": "Avatar Id",
            "type": "string"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in generated speech (for example, saying 'HeyGen' as 'hey-jen'). Applies when the audio is synthesized from `script`; a caller-supplied `audio_url` or `audio_asset_id` is unaffected. Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Natural-language prompt controlling avatar body motion and hand gestures. Supported for photo avatars on either engine, and for video avatars when engine.type is 'avatar_v'. Rejected for video avatars on the default Avatar IV engine, and for photo avatars on 'avatar_v' when the avatar's group has no animation reference (no digital twin or curated reference look).",
            "title": "Motion Prompt"
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar expressiveness level. Photo avatars only. Defaults to 'low' when omitted. Avatar IV only; rejected when engine.type is 'avatar_v'."
          },
          "engine": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "avatar_iii": "#/components/schemas/AvatarIIIEngineConfig",
                    "avatar_iv": "#/components/schemas/AvatarIVEngineConfig",
                    "avatar_v": "#/components/schemas/AvatarVEngineConfig"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AvatarVEngineConfig"
                  },
                  {
                    "$ref": "#/components/schemas/AvatarIVEngineConfig"
                  },
                  {
                    "$ref": "#/components/schemas/AvatarIIIEngineConfig"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Engine configuration for video generation. Pass {\"type\": \"avatar_v\"} to enable cross-reference-driven animation for higher quality. Check supported_api_engines on the avatar look to confirm eligibility. Defaults to Avatar IV when omitted.",
            "title": "Engine"
          }
        },
        "required": [
          "type",
          "avatar_id"
        ],
        "title": "CreateVideoFromAvatar",
        "type": "object"
      },
      "CreateVideoFromCinematicAvatar": {
        "additionalProperties": false,
        "description": "Create a video from a text prompt plus avatar and asset references (Cinematic Avatar).\n\nCinematic Avatar generates a video from a natural-language ``prompt`` guided by\nreference content: one to three avatar looks and optional reference assets\n(images / videos / audio). Unlike the ``avatar`` and ``image`` modes there is\nno script or voice \u2014 motion and speech are driven entirely by the prompt and\nthe supplied references. The video model is chosen with ``model``.",
        "properties": {
          "type": {
            "const": "cinematic_avatar",
            "description": "Must be 'cinematic_avatar' for prompt-and-reference video creation.",
            "title": "Type",
            "type": "string"
          },
          "prompt": {
            "description": "Natural-language prompt describing the video to generate.",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "avatar_id": {
            "description": "Avatar look ID(s) used as visual references. Provide 1 to 3 look IDs.",
            "items": {
              "type": "string"
            },
            "title": "Avatar Id",
            "type": "array"
          },
          "model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CinematicAvatarModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video model that renders the shot. Omitted means 'seedance_2'. 'seedance_2' supports every aspect_ratio and resolution below. 'heygen_video_1' renders 16:9 or 9:16 at 720p, 5\u201315 seconds long; it accepts each reference asset_id once."
          },
          "references": {
            "anyOf": [
              {
                "items": {
                  "discriminator": {
                    "mapping": {
                      "asset_id": "#/components/schemas/AssetId",
                      "base64": "#/components/schemas/AssetBase64",
                      "url": "#/components/schemas/AssetUrl"
                    },
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssetUrl"
                    },
                    {
                      "$ref": "#/components/schemas/AssetId"
                    },
                    {
                      "$ref": "#/components/schemas/AssetBase64"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reference assets (images, videos, or audio) guiding the generation. Each accepts a URL, an asset_id, or inline base64. Combined limits: at most 3 videos and 9 images across avatars and references. 'heygen_video_1' also accepts at most 3 audio clips (avatar voices included), 12 references in total, and 15 seconds of reference video, each avatar counting 3 seconds.",
            "title": "References"
          },
          "aspect_ratio": {
            "default": "16:9",
            "description": "Output aspect ratio. Supported for cinematic_avatar: '16:9', '9:16', '1:1' ('heygen_video_1': '16:9', '9:16'). Defaults to '16:9'.",
            "enum": [
              "16:9",
              "9:16",
              "1:1"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "resolution": {
            "default": "720p",
            "description": "Output resolution. Supported for cinematic_avatar: '720p', '1080p' ('heygen_video_1': '720p'). Defaults to '720p'.",
            "enum": [
              "720p",
              "1080p"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "auto_duration": {
            "default": false,
            "description": "Renders the 10-second default with either model, the same as omitting duration. When true, omit duration.",
            "title": "Auto Duration",
            "type": "boolean"
          },
          "duration": {
            "anyOf": [
              {
                "maximum": 15,
                "minimum": 4,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video length in seconds (4\u201315; 5\u201315 for 'heygen_video_1'). Defaults to 10. Omit when auto_duration is true.",
            "title": "Duration"
          },
          "enhance_prompt": {
            "default": false,
            "description": "Enable server-side prompt enhancement.",
            "title": "Enhance Prompt",
            "type": "boolean"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created. Supported only for single-video creation; batch video items cannot set their own destination folder.",
            "title": "Folder Id"
          }
        },
        "required": [
          "type",
          "prompt",
          "avatar_id"
        ],
        "title": "CreateVideoFromCinematicAvatar",
        "type": "object"
      },
      "CreateVideoFromImage": {
        "additionalProperties": false,
        "description": "Create a lip-synced video from an image of a person.\n\nThe image must show a clearly visible, human-like face: a photo, or a realistic\nillustration of a person. Images without a detectable face are rejected with 400.\nFor non-human or stylized characters (mascots, animals, objects), use the\nimage_to_video or reference_to_video mode of POST /v3/models/videos instead.\n\nProvide an image via URL, asset ID, or inline base64. The image will be\nanimated with lip-sync to the provided audio or generated speech.",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created. Supported only for single-video creation; batch video items cannot set their own destination folder.",
            "title": "Folder Id"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output video resolution. Defaults to 720p. `4k` is available for Avatar III digital twins and studio avatars. For apps signed in with OAuth, such as MCP clients, the account's plan sets the maximum: 720p on Free, 1080p on Creator."
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Output video aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. 'auto' preserves the source's aspect ratio (avatar source frames or uploaded image), short-edge anchored to the requested resolution and capped at the tier's long edge. Falls back to '16:9' when source dimensions can't be read.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "fit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarFit"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the subject is fitted to the output canvas. 'cover' scales to fill the frame (may crop edges). 'contain' scales to fit entirely within the frame (may show background). When omitted, the server picks the best option based on the source and canvas orientations."
          },
          "background": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BackgroundSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Background settings for the video."
          },
          "remove_background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Remove the avatar background. Video avatars must be trained with matting enabled.",
            "title": "Remove Background"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "output_upload": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputUploadRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload the finished files straight into your own storage. Give a presigned PUT URL per file, for Amazon S3, Google Cloud Storage or Azure Blob Storage; HeyGen uploads each file when the video finishes. The outcome is reported by the video_delivery.success and video_delivery.fail webhooks. Available to enabled workspaces.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "watermark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom watermark image to overlay on the video (PNG or JPEG). Available to workspaces on an Enterprise web or API plan.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Output container. 'webm' returns a video with a transparent background (alpha channel); 'mp4' (default) returns a standard video. 'webm' requires an avatar that supports matting. When 'webm' is selected, any 'background' value is rejected and background removal is applied automatically \u2014 the caller does not need to set 'remove_background'."
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text script for the avatar to speak. Pair with voice_id, or omit voice_id when using avatar_id to use the avatar's default voice. Mutually exclusive with audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided, unless avatar_id is set (the avatar's default voice is used as fallback).",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public http(s) URL of an audio file to lip-sync. Mutually exclusive with script. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded audio file. Mutually exclusive with script.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          },
          "type": {
            "const": "image",
            "description": "Must be 'image' for image-based video creation.",
            "title": "Type",
            "type": "string"
          },
          "image": {
            "description": "Image to animate. Accepts URL, asset ID, or base64-encoded data.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Image"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in generated speech (for example, saying 'HeyGen' as 'hey-jen'). Applies when the audio is synthesized from `script`; a caller-supplied `audio_url` or `audio_asset_id` is unaffected. Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Natural-language prompt controlling avatar body motion. Photo avatars only.",
            "title": "Motion Prompt"
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar expressiveness level. Photo avatars only. Defaults to 'low' when omitted."
          }
        },
        "required": [
          "type",
          "image"
        ],
        "title": "CreateVideoFromImage",
        "type": "object"
      },
      "CreateVideoFromStudio": {
        "additionalProperties": false,
        "description": "Create a single video by composing an ordered list of whole-frame scenes.\n\nThe server owns layout and center-crops each scene to the global output\ncanvas. Output settings are global (one per request); a single video_id is\nreturned and rendering is all-or-nothing. MP4 only in v1 \u2014 the output\ncontainer is fixed and ``output_format`` is not exposed.",
        "properties": {
          "type": {
            "const": "studio",
            "description": "Must be 'studio' for scene-composition video creation.",
            "title": "Type",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created. Supported only for single-video creation; batch video items cannot set their own destination folder.",
            "title": "Folder Id"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Global output aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. Each scene is center-cropped to this canvas.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Global output video resolution. Defaults to 1080p. `4k` is available for Avatar III digital twins and studio avatars. For apps signed in with OAuth, such as MCP clients, the account's plan sets the maximum: 720p on Free, 1080p on Creator."
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in generated speech (for example, saying 'HeyGen' as 'hey-jen'). Applies to every scene whose audio is synthesized from a script; scenes that supply their own audio URL or audio asset are unaffected. Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "watermark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom watermark image to overlay on the video (PNG or JPEG). Available to workspaces on an Enterprise web or API plan.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "scenes": {
            "description": "Ordered list of whole-frame scenes to concatenate. Each scene is one of 'avatar_video', 'image', or 'video'. Must contain 1 to 50 scenes.",
            "items": {
              "discriminator": {
                "mapping": {
                  "avatar_video": "#/components/schemas/AvatarVideoScene",
                  "image": "#/components/schemas/ImageScene",
                  "video": "#/components/schemas/VideoScene"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AvatarVideoScene"
                },
                {
                  "$ref": "#/components/schemas/ImageScene"
                },
                {
                  "$ref": "#/components/schemas/VideoScene"
                }
              ]
            },
            "title": "Scenes",
            "type": "array"
          }
        },
        "required": [
          "type",
          "scenes"
        ],
        "title": "CreateVideoFromStudio",
        "type": "object"
      },
      "ImageScene": {
        "additionalProperties": false,
        "description": "A whole-frame still-image scene: either silent (held for ``duration``) or narrated.\n\nExactly one mode must be chosen:\n- silent: set ``duration`` (seconds) and no audio source.\n- narrated: set exactly one audio source (script + voice_id, audio_url, or\n  audio_asset_id) and omit ``duration`` \u2014 the scene length follows the audio.",
        "properties": {
          "type": {
            "const": "image",
            "description": "Must be 'image' for a still-image scene.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "description": "Still image to display. Accepts URL, asset ID, or base64-encoded data.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          },
          "duration": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "maximum": 300.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Silent mode: hold the still image for this many seconds. Mutually exclusive with any audio source. Must be > 0 and <= 300.",
            "title": "Duration"
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Narrated mode: text to speak over the image. Pair with voice_id. Mutually exclusive with duration/audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided.",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Narrated mode: public http(s) URL of an audio file to play over the image. Mutually exclusive with duration/script. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Narrated mode: HeyGen asset ID of an uploaded audio file. Mutually exclusive with duration/script.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          }
        },
        "required": [
          "type",
          "source"
        ],
        "title": "ImageScene",
        "type": "object"
      },
      "OutputUploadRequest": {
        "additionalProperties": false,
        "description": "Where the finished files go. Each file needs its own URL.",
        "properties": {
          "video": {
            "$ref": "#/components/schemas/UploadTargetRequest",
            "description": "Upload target for the finished video file."
          },
          "captions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadTargetRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload target for the caption file, when the video has captions."
          },
          "thumbnail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadTargetRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload target for the thumbnail image."
          }
        },
        "required": [
          "video"
        ],
        "title": "OutputUploadRequest",
        "type": "object"
      },
      "PlaybackInput": {
        "additionalProperties": false,
        "description": "Playback and audio capability for a video-clip scene.\n\n``mode`` controls how a narrated clip is reconciled to the voiceover-driven\nscene duration. ``volume`` must be between 0.0 and 1.0.",
        "properties": {
          "mode": {
            "anyOf": [
              {
                "enum": [
                  "freeze",
                  "loop",
                  "fit_to_scene"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How a narrated clip aligns to the voiceover-driven scene duration. 'freeze' plays once and holds the last frame; 'loop' repeats the clip; 'fit_to_scene' adjusts playback speed to exactly match the scene. Defaults to 'freeze' when omitted. Requires a video-scene voiceover.",
            "title": "Mode"
          },
          "volume": {
            "default": 1.0,
            "description": "Clip audio volume. 1.0 = source level (default), 0.0 = silent.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Volume",
            "type": "number"
          },
          "mute": {
            "default": false,
            "description": "If True, force the clip silent regardless of 'volume'.",
            "title": "Mute",
            "type": "boolean"
          }
        },
        "title": "PlaybackInput",
        "type": "object"
      },
      "StudioAvatarInput": {
        "additionalProperties": false,
        "description": "Avatar-driven source for an ``avatar_video`` studio scene.\n\nMirrors the standalone ``avatar`` creation mode (``CreateVideoFromAvatar``)\nminus the output settings, which are global on the studio request. An audio\nsource is required: exactly one of (script + voice_id), audio_url, or\naudio_asset_id.",
        "properties": {
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text script for the avatar to speak. Pair with voice_id, or omit voice_id when using avatar_id to use the avatar's default voice. Mutually exclusive with audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided, unless avatar_id is set (the avatar's default voice is used as fallback).",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public http(s) URL of an audio file to lip-sync. Mutually exclusive with script. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded audio file. Mutually exclusive with script.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          },
          "type": {
            "const": "avatar",
            "description": "Must be 'avatar' for an avatar-driven scene source.",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "description": "HeyGen avatar ID (video avatar or photo avatar look ID).",
            "title": "Avatar Id",
            "type": "string"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Natural-language prompt controlling avatar body motion and hand gestures. Supported for photo avatars on either engine, and for video avatars when engine.type is 'avatar_v'. Rejected for video avatars on the default Avatar IV engine, and for photo avatars on 'avatar_v' when the avatar's group has no animation reference (no digital twin or curated reference look).",
            "title": "Motion Prompt"
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar expressiveness level. Photo avatars only. Defaults to 'low' when omitted. Avatar IV only; rejected when engine.type is 'avatar_v'."
          },
          "engine": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "avatar_iii": "#/components/schemas/AvatarIIIEngineConfig",
                    "avatar_iv": "#/components/schemas/AvatarIVEngineConfig",
                    "avatar_v": "#/components/schemas/AvatarVEngineConfig"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AvatarVEngineConfig"
                  },
                  {
                    "$ref": "#/components/schemas/AvatarIVEngineConfig"
                  },
                  {
                    "$ref": "#/components/schemas/AvatarIIIEngineConfig"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Engine configuration for video generation. Pass {\"type\": \"avatar_v\"} to enable cross-reference-driven animation for higher quality. Check supported_api_engines on the avatar look to confirm eligibility. Defaults to Avatar IV when omitted.",
            "title": "Engine"
          },
          "background": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "color": "#/components/schemas/StudioColorBackgroundInput",
                    "image": "#/components/schemas/StudioImageBackgroundInput",
                    "video": "#/components/schemas/StudioVideoBackgroundInput"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/StudioColorBackgroundInput"
                  },
                  {
                    "$ref": "#/components/schemas/StudioImageBackgroundInput"
                  },
                  {
                    "$ref": "#/components/schemas/StudioVideoBackgroundInput"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional scene background composited behind the avatar. Pass {\"type\": \"color\", \"color\": \"#RRGGBB\"} for a solid color, or {\"type\": \"image\", \"source\": {...}} or {\"type\": \"video\", \"source\": {...}} with the same asset input image and video scenes take. Image and video backgrounds cover the frame; a video background is muted and loops for the whole scene.",
            "title": "Background"
          },
          "remove_background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Remove the avatar background. Video avatars must be trained with matting enabled.",
            "title": "Remove Background"
          }
        },
        "required": [
          "type",
          "avatar_id"
        ],
        "title": "StudioAvatarInput",
        "type": "object"
      },
      "StudioColorBackgroundInput": {
        "additionalProperties": false,
        "description": "Solid-color background for an ``avatar_video`` studio scene.",
        "properties": {
          "type": {
            "const": "color",
            "description": "Background type discriminator. Must be 'color'.",
            "title": "Type",
            "type": "string"
          },
          "color": {
            "description": "Background color as a 6-digit hex string, e.g. '#1a2b3c'.",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "title": "Color",
            "type": "string"
          }
        },
        "required": [
          "type",
          "color"
        ],
        "title": "StudioColorBackgroundInput",
        "type": "object"
      },
      "StudioImageBackgroundInput": {
        "additionalProperties": false,
        "description": "Image background for an ``avatar_video`` studio scene, scaled to cover the frame.\n\n``source`` is the same asset input an ``image`` scene takes, resolved the same way.",
        "properties": {
          "type": {
            "const": "image",
            "description": "Background type discriminator. Must be 'image'.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "description": "Background image, scaled to cover the frame. Accepts a URL or an asset ID; inline base64 is not supported for studio scenes.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          }
        },
        "required": [
          "type",
          "source"
        ],
        "title": "StudioImageBackgroundInput",
        "type": "object"
      },
      "StudioVideoBackgroundInput": {
        "additionalProperties": false,
        "description": "Video background for an ``avatar_video`` studio scene, scaled to cover the frame.\n\n``source`` is the same asset input a ``video`` scene takes, resolved the same way. The clip\nis muted so it never competes with the avatar's voice, and loops for the whole scene.",
        "properties": {
          "type": {
            "const": "video",
            "description": "Background type discriminator. Must be 'video'.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "description": "Background video, scaled to cover the frame, muted, and looped for the length of the scene. Accepts a URL or an asset ID; inline base64 is not supported for studio scenes.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          }
        },
        "required": [
          "type",
          "source"
        ],
        "title": "StudioVideoBackgroundInput",
        "type": "object"
      },
      "UploadTargetRequest": {
        "additionalProperties": false,
        "properties": {
          "url": {
            "description": "A presigned PUT URL for Amazon S3, Google Cloud Storage or Azure Blob Storage, signed for the object key this file should land at. It must stay valid for at least one hour; 24 hours or more is recommended, because the file is uploaded when the video finishes.",
            "maxLength": 4096,
            "title": "Url",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers the URL was signed with, sent exactly as given. Allowed: Content-Type, Content-MD5, Content-Disposition, Content-Encoding, Content-Language, Cache-Control, and x-amz-*, x-goog-* or x-ms-* headers.",
            "title": "Headers",
            "type": "object"
          }
        },
        "required": [
          "url"
        ],
        "title": "UploadTargetRequest",
        "type": "object"
      },
      "VideoScene": {
        "additionalProperties": false,
        "description": "A whole-frame scene backed by an existing video clip.\n\nOptional ``playback`` exposes the audio volume / mute capability; when\nomitted the clip plays at its source volume.\n\nFor optional voiceover / narration, supply at most one audio source\n(``script`` + ``voice_id``, ``audio_url``, or ``audio_asset_id``) \u2014 the *same*\naudio inputs a narrated ``image`` scene accepts. When present, the narration\ndrives the scene length and ``playback.mode`` controls whether the clip\nfreezes, loops, or changes speed to fit that duration. When omitted the clip\nplays full-length as before. The clip's own audio level is still governed by\n``playback`` (the two compose).",
        "properties": {
          "type": {
            "const": "video",
            "description": "Must be 'video' for a video-clip scene.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "description": "Video clip to include. Accepts URL, asset ID, or base64-encoded data.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          },
          "playback": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PlaybackInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional playback capability: narrated-clip alignment 'mode', audio 'volume' (0.0\u20131.0), and 'mute'. Omit to use freeze alignment and keep the clip's source volume."
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional voiceover: text to speak over the clip. Pair with voice_id. Mutually exclusive with audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided.",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional voiceover: public http(s) URL of an audio file to play over the clip. Mutually exclusive with script/audio_asset_id. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional voiceover: HeyGen asset ID of an uploaded audio file. Mutually exclusive with script/audio_url.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale) for a script voiceover."
          }
        },
        "required": [
          "type",
          "source"
        ],
        "title": "VideoScene",
        "type": "object"
      },
      "WatermarkInput": {
        "additionalProperties": false,
        "description": "Watermark configuration for video creation.",
        "properties": {
          "image": {
            "description": "Image asset to use as the watermark overlay (PNG or JPEG).",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Image"
          },
          "scale": {
            "default": 1.0,
            "description": "Scale multiplier for the watermark image. 1.0 renders at native size.",
            "exclusiveMinimum": 0.0,
            "maximum": 2.0,
            "title": "Scale",
            "type": "number"
          },
          "opacity": {
            "default": 1.0,
            "description": "Watermark opacity. 0.0 is fully transparent, 1.0 is fully opaque.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Opacity",
            "type": "number"
          },
          "placement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkPlacement"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Watermark placement. Defaults to bottom-right with standard margins when omitted."
          }
        },
        "required": [
          "image"
        ],
        "title": "WatermarkInput",
        "type": "object"
      },
      "WatermarkPlacement": {
        "additionalProperties": false,
        "description": "Watermark placement configuration.",
        "properties": {
          "position": {
            "$ref": "#/components/schemas/WatermarkPosition",
            "default": "bottom_right",
            "description": "Anchor corner for the watermark."
          },
          "offset_x": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": -1.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Fine-tune horizontal position. Fraction of frame width; 0.05 shifts 5% rightward, -0.05 shifts 5% leftward.",
            "title": "Offset X"
          },
          "offset_y": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": -1.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Fine-tune vertical position. Fraction of frame height; 0.05 shifts 5% downward, -0.05 shifts 5% upward.",
            "title": "Offset Y"
          }
        },
        "title": "WatermarkPlacement",
        "type": "object"
      },
      "WatermarkPosition": {
        "description": "Anchor corner for a custom watermark overlay.",
        "enum": [
          "top_left",
          "top_right",
          "bottom_left",
          "bottom_right"
        ],
        "title": "WatermarkPosition",
        "type": "string"
      },
      "CreateVideoV3Response": {
        "description": "POST /v3/videos response.",
        "properties": {
          "video_id": {
            "description": "Unique identifier for the created video.",
            "examples": [
              "v_abc123def456"
            ],
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "description": "Initial video status (e.g. 'waiting').",
            "examples": [
              "waiting"
            ],
            "title": "Status",
            "type": "string"
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Resolved output format for the video."
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Resolution the video renders at. Null for Avatar VI; absent for cinematic avatar videos."
          },
          "resolution_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Set when the video renders at a lower resolution than requested because the account's plan caps it, worded to pass on to the user.",
            "title": "Resolution Note"
          }
        },
        "required": [
          "video_id",
          "status"
        ],
        "title": "CreateVideoV3Response",
        "type": "object",
        "x-mcp-exclude-unset": true
      },
      "VideoScenesResponse": {
        "additionalProperties": false,
        "description": "The composite document: one video's context and every one of its scenes.",
        "properties": {
          "video_id": {
            "description": "The video these scenes belong to.",
            "title": "Video Id",
            "type": "string"
          },
          "edit_version": {
            "description": "Opaque version of the editor document returned by this request. Pass it unchanged when requesting an edit so the server can reject a document that changed before submission. This submission-time check does not lock the document while the asynchronous agent applies the edit.",
            "title": "Edit Version",
            "type": "string"
          },
          "video": {
            "$ref": "#/components/schemas/VideoContext",
            "description": "Video-level context for the scenes."
          },
          "scenes": {
            "description": "Every scene in the video, in the video's own order, which is playback order unless the video branches. Never paginated.",
            "items": {
              "$ref": "#/components/schemas/Scene"
            },
            "title": "Scenes",
            "type": "array"
          }
        },
        "required": [
          "video_id",
          "edit_version",
          "video"
        ],
        "title": "VideoScenesResponse",
        "type": "object"
      },
      "AudioScriptEntry": {
        "additionalProperties": false,
        "description": "Uploaded audio played as the scene's speech.",
        "properties": {
          "id": {
            "description": "Identifier of this script entry within the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "audio",
            "default": "audio",
            "description": "Script entry type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the audio. Present when the video records a link for this entry and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Audio Url"
          }
        },
        "required": [
          "id"
        ],
        "title": "AudioScriptEntry",
        "type": "object"
      },
      "AvatarElement": {
        "additionalProperties": false,
        "description": "An avatar performing the scene's speech.\n\nCarries what a v3 create request can set per avatar, so what is read back here is what can be\nsent back. Fields are added as callers need them, and a new one is not a breaking change.\n\nOutput resolution is a whole-video setting, reported on the video rather than per avatar.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "avatar",
            "default": "avatar",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "description": "The avatar look performing this scene.",
            "title": "Avatar Id",
            "type": "string"
          },
          "engine": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarEngineTier"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation engine for this avatar. Absent when the video does not record one and none can be determined."
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Expressiveness level. Absent when left at the default."
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Motion description authored for this avatar.",
            "title": "Motion Prompt"
          }
        },
        "required": [
          "id",
          "avatar_id"
        ],
        "title": "AvatarElement",
        "type": "object"
      },
      "AvatarEngineTier": {
        "description": "Avatar engine selection.",
        "enum": [
          "avatar_vi",
          "heygen-avatar-6-turbo",
          "avatar_v",
          "avatar_iv",
          "avatar_iii"
        ],
        "title": "AvatarEngineTier",
        "type": "string"
      },
      "ColorBackground": {
        "additionalProperties": false,
        "description": "A solid colour filling the frame behind the scene's elements.",
        "properties": {
          "type": {
            "const": "color",
            "default": "color",
            "description": "Background type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "color": {
            "description": "Hex colour, e.g. '#f6f6fc'.",
            "title": "Color",
            "type": "string"
          }
        },
        "required": [
          "color"
        ],
        "title": "ColorBackground",
        "type": "object"
      },
      "ContainerElement": {
        "additionalProperties": false,
        "description": "An element that holds other elements: a group, or a mask.\n\nA scene lists the container, not its contents, so a scene holding one group of five images\nlists a single element while five things render. Walking a scene's composition means recursing\ninto ``children``.\n\nA mask matters more here than a group: a group conveys linkage this response does not express,\nwhile a mask conveys clipping, so treating a masked image as a plain image asserts a\ncomposition that renders differently in kind.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The container's category, e.g. 'group' or 'mask'.",
            "title": "Type",
            "type": "string"
          },
          "children": {
            "description": "The elements this container holds, each described exactly as a top-level element would be.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AvatarElement"
                },
                {
                  "$ref": "#/components/schemas/ImageElement"
                },
                {
                  "$ref": "#/components/schemas/VideoElement"
                },
                {
                  "$ref": "#/components/schemas/TextElement"
                },
                {
                  "$ref": "#/components/schemas/PlaceholderElement"
                },
                {
                  "$ref": "#/components/schemas/ContainerElement"
                }
              ]
            },
            "title": "Children",
            "type": "array"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "ContainerElement",
        "type": "object"
      },
      "ImageBackground": {
        "additionalProperties": false,
        "description": "A whole-frame image.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "image",
            "default": "image",
            "description": "Background type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the image. Present when the video records a link for this background and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          }
        },
        "required": [
          "id"
        ],
        "title": "ImageBackground",
        "type": "object"
      },
      "ImageElement": {
        "additionalProperties": false,
        "description": "An image placed in the scene.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "image",
            "default": "image",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the image. Present when the video records a link for this element and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed; the element is still reported either way, so an image with no URL is one this read could not link to rather than an element this API does not describe. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          }
        },
        "required": [
          "id"
        ],
        "title": "ImageElement",
        "type": "object"
      },
      "PlaceholderElement": {
        "additionalProperties": false,
        "description": "An element this version names but does not describe.\n\nExists so a scene's ``elements`` array is never a filtered view presented as a complete one: a\ncaller iterating it sees every element the scene places. Carries exactly two fields: which\nelement this is, and what kind of thing it is.\n\n**Absence of content is not by itself proof that an element is undescribed.** A described\ncategory can serialize with nothing but an id and a type when every optional field happens to be\nunavailable, and one case is reachable today: an image with no usable link carries no ``url``,\nleaving ``{id, type}``. Read the ``type`` to tell them apart.\n``avatar``, ``image``, ``video`` and ``text`` are described, so a bare one of those is a described\nelement missing an optional value rather than an unexpanded node.\n\nThe ``id`` matters most here. Two masked elements in one scene are otherwise identical on the\nwire, so without it a caller can see that the scene places two things and nothing else about\neither.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The element's category. An **open set**: new values may be added, so treat an unrecognized one as an element to skip rather than an error. Several kinds of element can share one value, so a category says what an element is rather than naming a single underlying kind. Every value is permanent except 'other', which means 'a kind of element this API does not yet categorise' and may be replaced by a more specific category later.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "PlaceholderElement",
        "type": "object"
      },
      "Scene": {
        "additionalProperties": false,
        "description": "One scene, in the video's own order.\n\nThat is playback order for a linear video, which is the ordinary case. A branching video plays as\na walk over branch targets instead, so its scenes are still all here and still ordered, but the\norder is not the sequence a viewer sees. Branching is not otherwise described by this version.\n\nThe three content fields split by the role a thing plays rather than by its kind:\n``background`` fills the frame, ``elements`` are placed within it, ``script`` carries\nthe speech delivered over it. The background is visual too, so ``elements`` means \"the\nones the scene places\", not \"the visual ones\".",
        "properties": {
          "id": {
            "description": "Identifier of this scene within the video.",
            "title": "Id",
            "type": "string"
          },
          "background": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "color": "#/components/schemas/ColorBackground",
                    "image": "#/components/schemas/ImageBackground",
                    "video": "#/components/schemas/VideoBackground"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ColorBackground"
                  },
                  {
                    "$ref": "#/components/schemas/ImageBackground"
                  },
                  {
                    "$ref": "#/components/schemas/VideoBackground"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What fills the frame behind this scene's elements.",
            "title": "Background"
          },
          "elements": {
            "description": "Every element this scene places, in the video's own order.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AvatarElement"
                },
                {
                  "$ref": "#/components/schemas/ImageElement"
                },
                {
                  "$ref": "#/components/schemas/VideoElement"
                },
                {
                  "$ref": "#/components/schemas/TextElement"
                },
                {
                  "$ref": "#/components/schemas/PlaceholderElement"
                },
                {
                  "$ref": "#/components/schemas/ContainerElement"
                }
              ]
            },
            "title": "Elements",
            "type": "array"
          },
          "script": {
            "description": "This scene's audio sources in order, each one synthesized speech, uploaded audio, or a silence. The create API's per-scene `script` is narrower: it is the text of a single one of these entries.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TextScriptEntry"
                },
                {
                  "$ref": "#/components/schemas/AudioScriptEntry"
                },
                {
                  "$ref": "#/components/schemas/SilenceScriptEntry"
                }
              ]
            },
            "title": "Script",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "Scene",
        "type": "object"
      },
      "ScriptVoiceSettings": {
        "additionalProperties": false,
        "description": "The voice tuning applied to this script.\n\nA value here can fall outside the range the create API accepts, so validating it against a\ncreate request's schema will reject videos it should accept.",
        "properties": {
          "speed": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Playback speed multiplier.",
            "title": "Speed"
          },
          "pitch": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pitch adjustment in semitones.",
            "title": "Pitch"
          },
          "volume": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice audio volume. 1.0 = full, 0.0 = silent.",
            "title": "Volume"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Locale/accent hint for multi-lingual voices (e.g. 'en-US').",
            "title": "Locale"
          },
          "engine_settings": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "elevenlabs": "#/components/schemas/ElevenLabsEngineSettings",
                    "fish": "#/components/schemas/FishEngineSettings",
                    "starfish": "#/components/schemas/StarfishEngineSettings"
                  },
                  "propertyName": "engine_type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ElevenLabsEngineSettings"
                  },
                  {
                    "$ref": "#/components/schemas/FishEngineSettings"
                  },
                  {
                    "$ref": "#/components/schemas/StarfishEngineSettings"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The engine this line is set to use and its tuning, discriminated by 'engine_type'. Present only when that engine is elevenlabs, fish or starfish; absent for any other engine and when the server picks one, except that a line carrying ElevenLabs tuning with no engine set reports elevenlabs.",
            "title": "Engine Settings"
          }
        },
        "title": "ScriptVoiceSettings",
        "type": "object"
      },
      "SilenceScriptEntry": {
        "additionalProperties": false,
        "description": "A held silence, with no words spoken over the scene.",
        "properties": {
          "id": {
            "description": "Identifier of this script entry within the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "silence",
            "default": "silence",
            "description": "Script entry type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How long the silence is held, in seconds. Absent where the number does not describe what renders \u2014 on a scene whose video clip plays in full, the clip's own length governs the scene.",
            "title": "Duration"
          }
        },
        "required": [
          "id"
        ],
        "title": "SilenceScriptEntry",
        "type": "object"
      },
      "TextElement": {
        "additionalProperties": false,
        "description": "On-screen text, plain or styled, reported as the text it displays.\n\nStyling (font, size, colour, alignment) is not described: like geometry, it would need a\ncontract this response does not have. Styled text is flattened to its characters with one\nnewline between paragraphs, which is exactly the text a template variable is matched against.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "text",
            "default": "text",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "text": {
            "description": "The text as displayed. Paragraphs of styled text are joined with newlines.",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "title": "TextElement",
        "type": "object"
      },
      "TextScriptEntry": {
        "additionalProperties": false,
        "description": "Synthesized speech: a script delivered by a voice.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this script entry within the video. Not to be parsed, sorted, or assumed to encode anything. The same id under two scenes means one entry is shared between them: its text belongs to both, and concatenating both scenes' scripts would synthesize the shared words twice.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "text",
            "default": "text",
            "description": "Script entry type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "text": {
            "description": "The script, verbatim, including inline markup. Empty when the scene was left unfinished.",
            "title": "Text",
            "type": "string"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The voice delivering this script.",
            "title": "Voice Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScriptVoiceSettings"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning applied to this script."
          },
          "trim_to_speech": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Deprecated and ignored: the narration is kept whole, without trimming silence, whatever this says.",
            "title": "Trim To Speech"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "title": "TextScriptEntry",
        "type": "object"
      },
      "VideoBackground": {
        "additionalProperties": false,
        "description": "A whole-frame video clip.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "video",
            "default": "video",
            "description": "Background type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the clip. Present when the video records a link for this background and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          },
          "playback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the clip is reconciled to the scene. Same values as a video element's playback.",
            "title": "Playback"
          },
          "trim": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoTrim"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seconds trimmed from each end of the clip."
          },
          "volume": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Clip audio volume. 1.0 = source level, 0.0 = silent.",
            "title": "Volume"
          },
          "speed_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Playback speed multiplier. 2.0 = twice as fast.",
            "title": "Speed Multiplier"
          }
        },
        "required": [
          "id"
        ],
        "title": "VideoBackground",
        "type": "object"
      },
      "VideoCaption": {
        "additionalProperties": false,
        "description": "Whether the video involves captions.",
        "properties": {
          "enabled": {
            "description": "Whether captions are enabled for this video.",
            "title": "Enabled",
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "title": "VideoCaption",
        "type": "object"
      },
      "VideoContext": {
        "additionalProperties": false,
        "description": "Video-level facts needed to make sense of the scenes.",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The video's current title. Editor saves update it.",
            "title": "Title"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The video's aspect ratio."
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The video's output resolution, in the same values a create request accepts. Absent when the video's size matches none of them, which is a size a create request could not have asked for and cannot reproduce."
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoCaption"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption configuration for the video."
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary applied to this video's speech.",
            "title": "Brand Glossary Id"
          }
        },
        "title": "VideoContext",
        "type": "object"
      },
      "VideoElement": {
        "additionalProperties": false,
        "description": "A video clip placed in the scene.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "video",
            "default": "video",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the clip. Present when the video records a link for this element and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          },
          "playback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the clip is reconciled to the scene: 'freeze' holds the last frame, 'loop' repeats it, 'fit_to_scene' changes speed to match, 'full_video' plays it whole and drives the scene's length.",
            "title": "Playback"
          },
          "trim": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoTrim"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seconds trimmed from each end of the clip."
          },
          "volume": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Clip audio volume. 1.0 = source level, 0.0 = silent.",
            "title": "Volume"
          },
          "speed_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Playback speed multiplier. 2.0 = twice as fast.",
            "title": "Speed Multiplier"
          }
        },
        "required": [
          "id"
        ],
        "title": "VideoElement",
        "type": "object"
      },
      "VideoTrim": {
        "additionalProperties": false,
        "description": "Seconds trimmed from each end of a clip.",
        "properties": {
          "start_offset": {
            "description": "Seconds trimmed from the start of the clip.",
            "title": "Start Offset",
            "type": "number"
          },
          "end_offset": {
            "description": "Seconds trimmed from the end of the clip.",
            "title": "End Offset",
            "type": "number"
          }
        },
        "required": [
          "start_offset",
          "end_offset"
        ],
        "title": "VideoTrim",
        "type": "object"
      },
      "RedeliveryRequest": {
        "additionalProperties": false,
        "properties": {
          "output_upload": {
            "$ref": "#/components/schemas/RedeliveryTargets",
            "description": "Fresh upload targets for the files to upload again."
          }
        },
        "required": [
          "output_upload"
        ],
        "title": "RedeliveryRequest",
        "type": "object"
      },
      "RedeliveryTargets": {
        "additionalProperties": false,
        "description": "Fresh upload targets for files of a finished video. Send at least one; each replaces that file's previous target.",
        "properties": {
          "video": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadTargetRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload target for the finished video file."
          },
          "captions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadTargetRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload target for the caption file. The video must have captions."
          },
          "thumbnail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadTargetRequest"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload target for the thumbnail image."
          }
        },
        "title": "RedeliveryTargets",
        "type": "object"
      },
      "RedeliveryResponse": {
        "properties": {
          "video_id": {
            "description": "The video whose files are being uploaded.",
            "title": "Video Id",
            "type": "string"
          },
          "delivery": {
            "description": "Upload status of each of the video's files, including the ones just requested.",
            "items": {
              "$ref": "#/components/schemas/FileDeliveryStatus"
            },
            "title": "Delivery",
            "type": "array"
          }
        },
        "required": [
          "video_id",
          "delivery"
        ],
        "title": "RedeliveryResponse",
        "type": "object"
      },
      "EditVideoRequest": {
        "additionalProperties": false,
        "description": "Edit an existing video's scenes and re-render it, keeping its video_id.",
        "properties": {
          "edit_version": {
            "description": "The edit_version from the scenes read you are editing from. The edit is refused if the video changed since. The video refuses edits while it renders, and the render updates its document, so after the render finishes, read the scenes again for the next edit.",
            "minLength": 1,
            "title": "Edit Version",
            "type": "string"
          },
          "scenes": {
            "default": null,
            "description": "Field edits to existing scenes, one entry per scene that changes, at most 1000, and at most 10000 script entries and elements in total. Scenes not listed are unchanged. Applied before any action in 'actions'. A scene sent back from the scenes read with nothing changed changes nothing; when no scene sent changes anything and 'actions' is absent, the request is refused with a 400 at 'scenes' rather than re-rendered unchanged.",
            "items": {
              "$ref": "#/components/schemas/ScenePatch"
            },
            "maxItems": 1000,
            "minItems": 1,
            "title": "Scenes",
            "type": "array"
          },
          "actions": {
            "default": null,
            "description": "Scene inserts, deletions and reordering, applied in order after the field edits in 'scenes' and before the render, at most 1000 actions and 50 inserts, whose image scenes' set durations total at most 1800s. The video must keep at least one scene, and an edit cannot grow it past 50 scenes: a video that already has more can be edited, but not grown. Anything the scenes read shows as a field is changed through 'scenes', never here.",
            "items": {
              "discriminator": {
                "mapping": {
                  "delete_scene": "#/components/schemas/DeleteSceneAction",
                  "insert_scene": "#/components/schemas/InsertSceneAction",
                  "set_scene_order": "#/components/schemas/SetSceneOrderAction"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/InsertSceneAction"
                },
                {
                  "$ref": "#/components/schemas/DeleteSceneAction"
                },
                {
                  "$ref": "#/components/schemas/SetSceneOrderAction"
                }
              ]
            },
            "maxItems": 1000,
            "minItems": 1,
            "title": "Actions",
            "type": "array"
          },
          "callback_url": {
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url",
            "type": "string"
          },
          "callback_id": {
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id",
            "type": "string"
          }
        },
        "required": [
          "edit_version"
        ],
        "title": "EditVideoRequest",
        "type": "object"
      },
      "AudioLinePatch": {
        "additionalProperties": false,
        "description": "Changes to one uploaded-audio entry of a scene's script.",
        "properties": {
          "id": {
            "description": "The id of this script entry, from the scene's 'script' in the scenes read.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "audio",
            "description": "Must be 'audio', matching the stored entry's type.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "default": null,
            "description": "Replacement media: a URL, an uploaded asset id, or base64-encoded data. This is the only way to change the media. The read-back 'url' is not a replacement: send it unchanged or leave it out.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          },
          "audio_url": {
            "default": null,
            "description": "The URL as the scenes read returned it, accepted so a copied entry can be sent back. It is never an edit: it is not compared with the stored media, and no URL sent here changes it. Use 'source' to replace the media.",
            "title": "Audio Url",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "AudioLinePatch",
        "type": "object"
      },
      "AvatarElementPatch": {
        "additionalProperties": false,
        "description": "Changes to one avatar element.\n\nA change to `engine`, `expressiveness` or `motion_prompt` is refused with `edit_not_supported` when the avatar\nshares its scene with another avatar, or when the video would be left with avatars of different kinds (photo or\nvideo avatar) or engines.",
        "properties": {
          "id": {
            "description": "The id of this element, from the scenes read. An element inside a group or mask is addressed here by its own id; do not nest it under its container.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "avatar",
            "description": "Must be 'avatar', matching the stored element's type.",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "default": null,
            "description": "The avatar look to perform this scene.",
            "minLength": 1,
            "title": "Avatar Id",
            "type": "string"
          },
          "engine": {
            "default": null,
            "description": "Generation engine for this avatar, as the create API takes it: {'type': 'avatar_iv'}, {'type': 'avatar_v', 'reference_look_id': ...} or {'type': 'avatar_iii'}. Moving an avatar onto or off Avatar III, `more_blinking`, and any engine, expressiveness or motion_prompt change to an expressive or Avatar VI avatar or one created with `more_blinking`, are refused with edit_not_supported. A switch without motion_prompt leaves the avatar with no prompt, as create would. The engine string the scenes read returns ('avatar_vi', 'heygen-avatar-6-turbo', 'avatar_v', 'avatar_iv', 'avatar_iii') is also accepted, only unchanged, so a copied entry can be sent back; it changes nothing. A different string is refused: send the object to change the engine.",
            "discriminator": {
              "mapping": {
                "avatar_iii": "#/components/schemas/AvatarIIIEngineConfig",
                "avatar_iv": "#/components/schemas/AvatarIVEngineConfig",
                "avatar_v": "#/components/schemas/AvatarVEngineConfig"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AvatarVEngineConfig"
              },
              {
                "$ref": "#/components/schemas/AvatarIVEngineConfig"
              },
              {
                "$ref": "#/components/schemas/AvatarIIIEngineConfig"
              }
            ],
            "title": "Engine"
          },
          "expressiveness": {
            "$ref": "#/components/schemas/Expressiveness",
            "default": null,
            "description": "Expressiveness level. A value unchanged from the scenes read is no change, except beside an 'engine' object, since an engine switch sets expressiveness and motion_prompt from the request alone."
          },
          "motion_prompt": {
            "default": null,
            "description": "Motion description for this avatar. A value unchanged from the scenes read is no change, except beside an 'engine' object, since an engine switch sets expressiveness and motion_prompt from the request alone.",
            "minLength": 1,
            "title": "Motion Prompt",
            "type": "string"
          },
          "clear": {
            "default": null,
            "description": "Fields to empty: 'expressiveness' returns it to the default, 'motion_prompt' removes the prompt.",
            "items": {
              "enum": [
                "expressiveness",
                "motion_prompt"
              ],
              "type": "string"
            },
            "minItems": 1,
            "title": "Clear",
            "type": "array"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "AvatarElementPatch",
        "type": "object"
      },
      "ColorBackgroundPatch": {
        "additionalProperties": false,
        "description": "A solid colour background.",
        "properties": {
          "type": {
            "const": "color",
            "description": "'color'.",
            "title": "Type",
            "type": "string"
          },
          "color": {
            "description": "Hex colour, e.g. '#1a2b3c'.",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "title": "Color",
            "type": "string"
          }
        },
        "required": [
          "type",
          "color"
        ],
        "title": "ColorBackgroundPatch",
        "type": "object"
      },
      "DeleteSceneAction": {
        "additionalProperties": false,
        "description": "Remove an existing scene.",
        "properties": {
          "type": {
            "const": "delete_scene",
            "description": "'delete_scene'.",
            "title": "Type",
            "type": "string"
          },
          "scene_id": {
            "description": "The id of the scene to remove, from the scenes read.",
            "minLength": 1,
            "title": "Scene Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "scene_id"
        ],
        "title": "DeleteSceneAction",
        "type": "object"
      },
      "ImageBackgroundPatch": {
        "additionalProperties": false,
        "description": "A whole-frame image background.",
        "properties": {
          "type": {
            "const": "image",
            "description": "'image'.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "description": "The image: a URL, an uploaded asset id, or base64-encoded data.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          }
        },
        "required": [
          "type",
          "source"
        ],
        "title": "ImageBackgroundPatch",
        "type": "object"
      },
      "ImageElementPatch": {
        "additionalProperties": false,
        "description": "Changes to one image placed in the scene, listed under the scene's `elements` in the read. Not the scene's backdrop.",
        "properties": {
          "id": {
            "description": "The id of this element, from the scenes read. An element inside a group or mask is addressed here by its own id; do not nest it under its container.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "image",
            "description": "Must be 'image', matching the stored element's type.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "default": null,
            "description": "Replacement media: a URL, an uploaded asset id, or base64-encoded data. This is the only way to change the media. The read-back 'url' is not a replacement: send it unchanged or leave it out.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          },
          "url": {
            "default": null,
            "description": "The URL as the scenes read returned it, accepted so a copied entry can be sent back. It is never an edit: it is not compared with the stored media, and no URL sent here changes it. Use 'source' to replace the media.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "ImageElementPatch",
        "type": "object"
      },
      "InsertSceneAction": {
        "additionalProperties": false,
        "description": "Add a new scene, described in the same vocabulary as a studio create request.",
        "properties": {
          "type": {
            "const": "insert_scene",
            "description": "'insert_scene'.",
            "title": "Type",
            "type": "string"
          },
          "ref": {
            "description": "A name you choose for the new scene, unique within this request. Later actions in the same request refer to the new scene by it, and the response maps it to the scene's id.",
            "minLength": 1,
            "title": "Ref",
            "type": "string"
          },
          "after_scene_id": {
            "default": null,
            "description": "Insert after this scene: an existing scene id or the ref of a scene inserted earlier in this request.",
            "minLength": 1,
            "title": "After Scene Id",
            "type": "string"
          },
          "before_scene_id": {
            "default": null,
            "description": "Insert before this scene: an existing scene id or the ref of a scene inserted earlier in this request.",
            "minLength": 1,
            "title": "Before Scene Id",
            "type": "string"
          },
          "scene": {
            "description": "The new scene's content, in the same form as a scene in a studio create request.",
            "discriminator": {
              "mapping": {
                "avatar_video": "#/components/schemas/AvatarVideoScene",
                "image": "#/components/schemas/ImageScene",
                "video": "#/components/schemas/VideoScene"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AvatarVideoScene"
              },
              {
                "$ref": "#/components/schemas/ImageScene"
              },
              {
                "$ref": "#/components/schemas/VideoScene"
              }
            ],
            "title": "Scene"
          }
        },
        "required": [
          "type",
          "ref",
          "scene"
        ],
        "title": "InsertSceneAction",
        "type": "object"
      },
      "ScenePatch": {
        "additionalProperties": false,
        "description": "Field edits to one existing scene. Only what changes is sent.",
        "properties": {
          "id": {
            "description": "The scene's id, from the scenes read.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "background": {
            "default": null,
            "description": "The scene's backdrop: the one colour, image or clip behind everything else, exactly what the scenes read shows as this scene's 'background'. A clip or image the read lists under 'elements' is changed through 'elements', never here, even when it fills the frame. A different 'type' from the current background replaces it; the same 'type' changes only the fields sent. An image or clip background copied from the scenes read, its 'id' and 'url' included, is accepted and changes nothing while that 'id' is still the scene's background; once it is not, the copy is refused. 'id' and 'url' never replace the media: send 'source'.",
            "discriminator": {
              "mapping": {
                "color": "#/components/schemas/ColorBackgroundPatch",
                "image": "#/components/schemas/ImageBackgroundPatch",
                "video": "#/components/schemas/VideoBackgroundPatch"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/ColorBackgroundPatch"
              },
              {
                "$ref": "#/components/schemas/ImageBackgroundPatch"
              },
              {
                "$ref": "#/components/schemas/VideoBackgroundPatch"
              }
            ],
            "title": "Background"
          },
          "script": {
            "default": null,
            "description": "Changes to this scene's script entries, one per entry that changes, at most 1000. Entries not listed are unchanged. An entry may be sent back as the scenes read returned it: each value unchanged from the read is no change, and an entry left with nothing else to change changes nothing. An empty list, as the read returns for a scene with none, is no change.",
            "items": {
              "discriminator": {
                "mapping": {
                  "audio": "#/components/schemas/AudioLinePatch",
                  "silence": "#/components/schemas/SilenceLinePatch",
                  "text": "#/components/schemas/TextLinePatch"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/TextLinePatch"
                },
                {
                  "$ref": "#/components/schemas/AudioLinePatch"
                },
                {
                  "$ref": "#/components/schemas/SilenceLinePatch"
                }
              ]
            },
            "maxItems": 1000,
            "minItems": 1,
            "title": "Script",
            "type": "array"
          },
          "elements": {
            "default": null,
            "description": "Changes to what the scene places in front of its backdrop: the avatars, images and clips the scenes read lists under this scene's 'elements', including those inside groups and masks, each addressed by its own id. One entry per element that changes, at most 1000; elements not listed are unchanged. An entry may be sent back as the scenes read returned it: each value unchanged from the read is no change, and an entry left with nothing else to change changes nothing. An empty list, as the read returns for a scene with none, is no change.",
            "items": {
              "discriminator": {
                "mapping": {
                  "avatar": "#/components/schemas/AvatarElementPatch",
                  "image": "#/components/schemas/ImageElementPatch",
                  "video": "#/components/schemas/VideoElementPatch"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AvatarElementPatch"
                },
                {
                  "$ref": "#/components/schemas/ImageElementPatch"
                },
                {
                  "$ref": "#/components/schemas/VideoElementPatch"
                }
              ]
            },
            "maxItems": 1000,
            "minItems": 1,
            "title": "Elements",
            "type": "array"
          },
          "clear": {
            "default": null,
            "description": "Fields to empty: 'background' removes the scene's background.",
            "items": {
              "const": "background",
              "type": "string"
            },
            "minItems": 1,
            "title": "Clear",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "ScenePatch",
        "type": "object"
      },
      "SetSceneOrderAction": {
        "additionalProperties": false,
        "description": "Put the scenes in a new order.",
        "properties": {
          "type": {
            "const": "set_scene_order",
            "description": "'set_scene_order'.",
            "title": "Type",
            "type": "string"
          },
          "scene_ids": {
            "description": "Every scene the video will have, in the new order: existing scene ids and refs of scenes inserted in this request, each exactly once, leaving out deleted scenes. Leaving a scene out does not delete it; it is refused.",
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "title": "Scene Ids",
            "type": "array"
          }
        },
        "required": [
          "type",
          "scene_ids"
        ],
        "title": "SetSceneOrderAction",
        "type": "object"
      },
      "SilenceLinePatch": {
        "additionalProperties": false,
        "description": "Changes to one held silence in a scene's script.",
        "properties": {
          "id": {
            "description": "The id of this script entry, from the scene's 'script' in the scenes read.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "silence",
            "description": "Must be 'silence', matching the stored entry's type.",
            "title": "Type",
            "type": "string"
          },
          "duration": {
            "default": null,
            "description": "How long the silence is held, in seconds.",
            "exclusiveMinimum": 0.0,
            "maximum": 300.0,
            "title": "Duration",
            "type": "number"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "SilenceLinePatch",
        "type": "object"
      },
      "TextLinePatch": {
        "additionalProperties": false,
        "description": "Changes to one synthesized-speech entry of a scene's script.",
        "properties": {
          "id": {
            "description": "The id of this script entry, from the scene's 'script' in the scenes read.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "text",
            "description": "Must be 'text', matching the stored entry's type.",
            "title": "Type",
            "type": "string"
          },
          "text": {
            "default": null,
            "description": "The entry's new text, stored as sent apart from spacing around pause marks, inline markup included. It replaces the whole entry, so formatting the old text had is dropped; the voice and its language are kept. The scene is re-synthesized. Text unchanged from the scenes read is no change, and is not re-synthesized.",
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "voice_id": {
            "default": null,
            "description": "The voice to deliver this entry. Every text entry in a scene must end up with the same voice, so to change a scene's voice, set it on each of the scene's text entries.",
            "minLength": 1,
            "title": "Voice Id",
            "type": "string"
          },
          "voice_settings": {
            "$ref": "#/components/schemas/TextVoiceSettingsPatch",
            "default": null,
            "description": "The settings that go with 'voice_id'. Every text entry in a scene must carry the same ones. When every text entry of the scene that sends 'voice_id' and 'voice_settings' sends them unchanged from the scenes read, they are no voice change; once one entry changes them, every entry that sends them carries the change, an entry already on the new voice included. Entries read with different 'speed' or 'volume' must be sent with the same values to change the scene's voice."
          },
          "trim_to_speech": {
            "default": null,
            "description": "Deprecated and ignored. Accepted only exactly as the scenes read returned it, so a copied entry can be sent back unchanged. A different value is refused with edit_not_supported.",
            "title": "Trim To Speech",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "TextLinePatch",
        "type": "object"
      },
      "TextVoiceSettingsPatch": {
        "additionalProperties": false,
        "description": "The voice settings a scene's text entries move to with their new voice.\n\nA voice change resets each entry's pitch; ``speed`` and ``volume`` keep the entry's own value when\nomitted. Bounds are the create API's, so an edit takes exactly the range a new video does.",
        "properties": {
          "engine_settings": {
            "default": null,
            "description": "The engine to speak with and its tuning, discriminated by 'engine_type'. Required to change the voice or its settings: the server never picks an engine for an edit. Not needed when every text entry of the scene that sends 'voice_id' and 'voice_settings' sends them unchanged from the scenes read, which is no voice change.",
            "discriminator": {
              "mapping": {
                "elevenlabs": "#/components/schemas/ElevenLabsEngineSettings",
                "fish": "#/components/schemas/FishEngineSettings",
                "starfish": "#/components/schemas/StarfishEngineSettings"
              },
              "propertyName": "engine_type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/ElevenLabsEngineSettings"
              },
              {
                "$ref": "#/components/schemas/FishEngineSettings"
              },
              {
                "$ref": "#/components/schemas/StarfishEngineSettings"
              }
            ],
            "title": "Engine Settings"
          },
          "locale": {
            "default": null,
            "description": "Accent for the new voice (e.g. 'zh-HK'). Accepted only where the engine and model speak it for the entry's language. An empty string, which the scenes read returns for an entry with no accent set, is taken as leaving it out.",
            "title": "Locale",
            "type": "string"
          },
          "speed": {
            "default": null,
            "description": "Playback speed multiplier. 0.5 (half speed) to 1.5 (1.5x speed). Omit to keep the entry's own.",
            "maximum": 1.5,
            "minimum": 0.5,
            "title": "Speed",
            "type": "number"
          },
          "volume": {
            "default": null,
            "description": "Voice audio volume. 1.0 = full, 0.0 = silent. Omit to keep the entry's own.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Volume",
            "type": "number"
          },
          "pitch": {
            "default": null,
            "description": "The entry's pitch in semitones, exactly as the scenes read returned it. Pitch cannot be edited: it is accepted only unchanged, so a copied entry can be sent back, and a voice change still resets it. A different value is refused with edit_not_supported.",
            "title": "Pitch",
            "type": "number"
          }
        },
        "title": "TextVoiceSettingsPatch",
        "type": "object"
      },
      "TrimPatch": {
        "additionalProperties": false,
        "description": "Seconds trimmed from each end of a clip.",
        "properties": {
          "start_offset": {
            "description": "Seconds trimmed from the start of the clip.",
            "minimum": 0.0,
            "title": "Start Offset",
            "type": "number"
          },
          "end_offset": {
            "description": "Seconds trimmed from the end of the clip.",
            "minimum": 0.0,
            "title": "End Offset",
            "type": "number"
          }
        },
        "required": [
          "start_offset",
          "end_offset"
        ],
        "title": "TrimPatch",
        "type": "object"
      },
      "VideoBackgroundPatch": {
        "additionalProperties": false,
        "description": "A whole-frame video background.",
        "properties": {
          "type": {
            "const": "video",
            "description": "'video'.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "default": null,
            "description": "The clip. Required when the scene's background is not already a video; omit it to keep the current clip.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          },
          "playback": {
            "default": null,
            "description": "How the clip is reconciled to the scene: 'freeze' holds the last frame, 'loop' repeats it, 'fit_to_scene' changes speed to match, 'full_video' plays it whole and drives the scene's length.",
            "enum": [
              "freeze",
              "loop",
              "fit_to_scene",
              "full_video"
            ],
            "title": "Playback",
            "type": "string"
          },
          "trim": {
            "$ref": "#/components/schemas/TrimPatch",
            "default": null,
            "description": "Seconds trimmed from each end of the clip."
          },
          "volume": {
            "default": null,
            "description": "Clip audio volume. 1.0 = source level, 0.0 = silent.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Volume",
            "type": "number"
          },
          "speed_multiplier": {
            "default": null,
            "description": "Playback speed multiplier. 2.0 = twice as fast.",
            "exclusiveMinimum": 0.0,
            "maximum": 100.0,
            "title": "Speed Multiplier",
            "type": "number"
          },
          "clear": {
            "default": null,
            "description": "Fields to empty: 'trim' plays the clip untrimmed.",
            "items": {
              "const": "trim",
              "type": "string"
            },
            "minItems": 1,
            "title": "Clear",
            "type": "array"
          }
        },
        "required": [
          "type"
        ],
        "title": "VideoBackgroundPatch",
        "type": "object"
      },
      "VideoElementPatch": {
        "additionalProperties": false,
        "description": "Changes to one video clip placed in the scene, listed under the scene's `elements` in the read. Not the scene's backdrop.",
        "properties": {
          "id": {
            "description": "The id of this element, from the scenes read. An element inside a group or mask is addressed here by its own id; do not nest it under its container.",
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "video",
            "description": "Must be 'video', matching the stored element's type.",
            "title": "Type",
            "type": "string"
          },
          "source": {
            "default": null,
            "description": "Replacement media: a URL, an uploaded asset id, or base64-encoded data. This is the only way to change the media. The read-back 'url' is not a replacement: send it unchanged or leave it out.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Source"
          },
          "url": {
            "default": null,
            "description": "The URL as the scenes read returned it, accepted so a copied entry can be sent back. It is never an edit: it is not compared with the stored media, and no URL sent here changes it. Use 'source' to replace the media.",
            "title": "Url",
            "type": "string"
          },
          "playback": {
            "default": null,
            "description": "How the clip is reconciled to the scene: 'freeze' holds the last frame, 'loop' repeats it, 'fit_to_scene' changes speed to match, 'full_video' plays it whole and drives the scene's length.",
            "enum": [
              "freeze",
              "loop",
              "fit_to_scene",
              "full_video"
            ],
            "title": "Playback",
            "type": "string"
          },
          "trim": {
            "$ref": "#/components/schemas/TrimPatch",
            "default": null,
            "description": "Seconds trimmed from each end of the clip."
          },
          "volume": {
            "default": null,
            "description": "Clip audio volume. 1.0 = source level, 0.0 = silent.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Volume",
            "type": "number"
          },
          "speed_multiplier": {
            "default": null,
            "description": "Playback speed multiplier. 2.0 = twice as fast.",
            "exclusiveMinimum": 0.0,
            "maximum": 100.0,
            "title": "Speed Multiplier",
            "type": "number"
          },
          "clear": {
            "default": null,
            "description": "Fields to empty: 'trim' plays the clip untrimmed.",
            "items": {
              "const": "trim",
              "type": "string"
            },
            "minItems": 1,
            "title": "Clear",
            "type": "array"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "VideoElementPatch",
        "type": "object"
      },
      "EditVideoResponse": {
        "description": "The render this edit started.",
        "properties": {
          "video_id": {
            "description": "The edited video. Unchanged by the edit.",
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VideoStatus",
            "description": "The video's status, 'pending' once the render has started."
          },
          "version_id": {
            "description": "The version this render creates, as Studio's version history lists it.",
            "title": "Version Id",
            "type": "string"
          },
          "inserted_scenes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/InsertedScene"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The ids given to scenes this request inserted.",
            "title": "Inserted Scenes"
          }
        },
        "required": [
          "video_id",
          "status",
          "version_id"
        ],
        "title": "EditVideoResponse",
        "type": "object"
      },
      "InsertedScene": {
        "description": "The id a scene inserted by this request was given.",
        "properties": {
          "ref": {
            "description": "The ref the request gave the scene.",
            "title": "Ref",
            "type": "string"
          },
          "scene_id": {
            "description": "The new scene's id, as later scenes reads return it.",
            "title": "Scene Id",
            "type": "string"
          }
        },
        "required": [
          "ref",
          "scene_id"
        ],
        "title": "InsertedScene",
        "type": "object"
      },
      "TemplateListItemV3": {
        "description": "Template summary returned by the list endpoint.",
        "properties": {
          "id": {
            "description": "Unique template identifier",
            "examples": [
              "77e650952c024c6188a35e23e7088617"
            ],
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Template name",
            "examples": [
              "Quarterly Update"
            ],
            "title": "Name",
            "type": "string"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the template thumbnail image",
            "title": "Thumbnail Url"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Template aspect ratio",
            "examples": [
              "16:9"
            ],
            "title": "Aspect Ratio"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of creation",
            "examples": [
              1711929600
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of last update",
            "examples": [
              1711929600
            ],
            "title": "Updated At"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "TemplateListItemV3",
        "type": "object"
      },
      "CreateTemplateV3Request": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/templates.",
        "properties": {
          "video_id": {
            "description": "ID of a video in your workspace to turn into a template. The video must have been generated with POST /v3/videos or saved in the HeyGen editor; its draft becomes the template's starting point.",
            "examples": [
              "7c1f0b2e3d4a4f5e8a9b0c1d2e3f4a5b"
            ],
            "minLength": 1,
            "title": "Video Id",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Template name. Defaults to the source video's title.",
            "examples": [
              "Q4 outreach"
            ],
            "title": "Name"
          }
        },
        "required": [
          "video_id"
        ],
        "title": "CreateTemplateV3Request",
        "type": "object"
      },
      "TemplateDetailV3": {
        "description": "Template detail: its variable schema, the July scene summary and, for authoring workspaces, its composition.",
        "properties": {
          "id": {
            "description": "Unique template identifier",
            "examples": [
              "77e650952c024c6188a35e23e7088617"
            ],
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Template name",
            "examples": [
              "Quarterly Update"
            ],
            "title": "Name",
            "type": "string"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the template thumbnail image",
            "title": "Thumbnail Url"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Template aspect ratio",
            "examples": [
              "16:9"
            ],
            "title": "Aspect Ratio"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of creation",
            "examples": [
              1711929600
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of last update",
            "examples": [
              1711929600
            ],
            "title": "Updated At"
          },
          "variables": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "audio": "#/components/schemas/TemplateAudioVariable",
                  "character": "#/components/schemas/TemplateCharacterVariable",
                  "image": "#/components/schemas/TemplateImageVariable",
                  "text": "#/components/schemas/TemplateTextVariable",
                  "video": "#/components/schemas/TemplateVideoVariable",
                  "voice": "#/components/schemas/TemplateVoiceVariable"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/TemplateTextVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateImageVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateVideoVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateAudioVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateCharacterVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateVoiceVariable"
                }
              ]
            },
            "description": "Variables defined in the template with their current default values, keyed by variable name",
            "title": "Variables",
            "type": "object"
          },
          "source_video_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video the template was created from, when known. Present only for workspaces with access to the template authoring API.",
            "title": "Source Video Id"
          },
          "edit_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque version of the template returned by this request. Every save of the template's draft or variable set changes it, whether through PUT /v3/templates/{template_id}/variables or the HeyGen editor; renaming or deleting the template does not. Send it back as expected_edit_version on PUT /v3/templates/{template_id}/variables to detect concurrent edits. Present only for workspaces with access to the template authoring API.",
            "examples": [
              "3"
            ],
            "title": "Edit Version"
          },
          "scene_ids": {
            "description": "Scene IDs in template order, as POST /v3/templates/{template_id} accepts them",
            "items": {
              "type": "string"
            },
            "title": "Scene Ids",
            "type": "array"
          },
          "scenes": {
            "deprecated": true,
            "description": "Per-scene summary: the scene id, its script text and the variables it uses. Deprecated in favour of composition, which describes each scene in the same shape as GET /v3/videos/{video_id}/scenes; kept until a published sunset.",
            "items": {
              "$ref": "#/components/schemas/TemplateSceneV3"
            },
            "title": "Scenes",
            "type": "array"
          },
          "composition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemplateComposition"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The template's scenes and cross-scene audio tracks in the shape GET /v3/videos/{video_id}/scenes uses, with each node carrying the variable types it can be bound to (bindable_as), the variable bound to it (variable) and the text variables in its {{placeholders}} (text_variables). Present only for workspaces with access to the template authoring API, and omitted when the template's draft cannot be read."
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "TemplateDetailV3",
        "type": "object"
      },
      "TemplateAudioScriptEntry": {
        "additionalProperties": false,
        "description": "Uploaded audio; an audio variable replaces the recording.",
        "properties": {
          "id": {
            "description": "Identifier of this script entry within the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "audio",
            "default": "audio",
            "description": "Script entry type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the audio. Present when the video records a link for this entry and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Audio Url"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateAudioScriptEntry",
        "type": "object"
      },
      "TemplateAudioVariable": {
        "additionalProperties": false,
        "description": "Replaces an audio placeholder in the template.",
        "properties": {
          "type": {
            "const": "audio",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "asset": {
            "description": "Audio to place. Accepts url, asset_id, or base64 input.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Asset"
          }
        },
        "required": [
          "type",
          "asset"
        ],
        "title": "TemplateAudioVariable",
        "type": "object"
      },
      "TemplateAvatarElement": {
        "additionalProperties": false,
        "description": "An avatar element; a character variable replaces its look.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "avatar",
            "default": "avatar",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "description": "The avatar look performing this scene.",
            "title": "Avatar Id",
            "type": "string"
          },
          "engine": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarEngineTier"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation engine for this avatar. Absent when the video does not record one and none can be determined."
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Expressiveness level. Absent when left at the default."
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Motion description authored for this avatar.",
            "title": "Motion Prompt"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id",
          "avatar_id"
        ],
        "title": "TemplateAvatarElement",
        "type": "object"
      },
      "TemplateBackgroundAudio": {
        "additionalProperties": false,
        "description": "A music or sound-effect track that plays across scenes; an audio variable replaces it.",
        "properties": {
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          },
          "id": {
            "description": "Opaque identifier of this track within the template. Stable for the life of the template.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "audio",
            "default": "audio",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the track. Present when the template records a link and, if that link is signed, it is not at or near its deadline. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateBackgroundAudio",
        "type": "object"
      },
      "TemplateCharacterVariable": {
        "additionalProperties": false,
        "description": "Replaces an avatar or talking-photo placeholder in the template.\n\nThe look is ``avatar_id``, the name every other v3 surface uses for it. Two older names for the\nsame value were published before it and integrations were built against them, so both are still\naccepted on input and echoed on output, marked deprecated, until a published sunset. A client\nwritten against any edition of the docs keeps working.",
        "properties": {
          "type": {
            "const": "character",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar look ID to place; any avatar look, including talking photos. Same IDs as GET /v3/avatars/looks and as avatar_id on a scene's avatar element. Whether the look is an avatar or a talking photo is inferred from the look itself.",
            "examples": [
              "Abigail_expressive_2024112501"
            ],
            "title": "Avatar Id"
          },
          "avatar_look_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "deprecated": true,
            "description": "Deprecated alias of avatar_id. Accepted on input and returned with the same value; send avatar_id.",
            "title": "Avatar Look Id"
          },
          "character_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "deprecated": true,
            "description": "Deprecated alias of avatar_id. Accepted on input and returned with the same value; send avatar_id.",
            "title": "Character Id"
          },
          "character_type": {
            "anyOf": [
              {
                "enum": [
                  "avatar",
                  "talking_photo"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "deprecated": true,
            "description": "Deprecated. Ignored on input: whether the look is an avatar or a talking photo is inferred from the look itself. Returned as the kind recorded on the template.",
            "title": "Character Type"
          }
        },
        "required": [
          "type"
        ],
        "title": "TemplateCharacterVariable",
        "type": "object"
      },
      "TemplateComposition": {
        "additionalProperties": false,
        "description": "What the template is made of, in the vocabulary of GET /v3/videos/{video_id}/scenes.",
        "properties": {
          "scenes": {
            "description": "Scenes in template order, each in the video-scenes shape plus bindings.",
            "items": {
              "$ref": "#/components/schemas/TemplateScene"
            },
            "title": "Scenes",
            "type": "array"
          },
          "background_audio": {
            "description": "Music and sound-effect tracks that play across scenes, with what an audio variable can replace.",
            "items": {
              "$ref": "#/components/schemas/TemplateBackgroundAudio"
            },
            "title": "Background Audio",
            "type": "array"
          }
        },
        "title": "TemplateComposition",
        "type": "object"
      },
      "TemplateContainerElement": {
        "additionalProperties": false,
        "description": "A group or mask; nothing binds to the container itself, its children carry their own bindings.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The container's category, e.g. 'group' or 'mask'.",
            "title": "Type",
            "type": "string"
          },
          "children": {
            "description": "The elements this container holds, each described exactly as a top-level element would be.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TemplateAvatarElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateImageElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateVideoElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateTextElement"
                },
                {
                  "$ref": "#/components/schemas/PlaceholderElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateContainerElement"
                }
              ]
            },
            "title": "Children",
            "type": "array"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "TemplateContainerElement",
        "type": "object"
      },
      "TemplateImageBackground": {
        "additionalProperties": false,
        "description": "A frame-filling image; an image variable replaces it.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "image",
            "default": "image",
            "description": "Background type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the image. Present when the video records a link for this background and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateImageBackground",
        "type": "object"
      },
      "TemplateImageElement": {
        "additionalProperties": false,
        "description": "An image element; an image variable replaces its picture.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "image",
            "default": "image",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the image. Present when the video records a link for this element and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed; the element is still reported either way, so an image with no URL is one this read could not link to rather than an element this API does not describe. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateImageElement",
        "type": "object"
      },
      "TemplateImageVariable": {
        "additionalProperties": false,
        "description": "Replaces an image placeholder in the template.",
        "properties": {
          "type": {
            "const": "image",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "asset": {
            "description": "Image to place. Accepts url, asset_id, or base64 input.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Asset"
          },
          "fit": {
            "default": "contain",
            "description": "How the image fits the element's box. Omit it on a template created from a video with POST /v3/templates to keep that video's framing: a background fills the frame, a placed image fits inside its box. On a template built in the HeyGen editor the default is contain.",
            "enum": [
              "cover",
              "contain",
              "crop",
              "none"
            ],
            "title": "Fit",
            "type": "string"
          }
        },
        "required": [
          "type",
          "asset"
        ],
        "title": "TemplateImageVariable",
        "type": "object"
      },
      "TemplateScene": {
        "additionalProperties": false,
        "description": "One scene of the template, in template order, with what a variable can bind to in it.",
        "properties": {
          "id": {
            "description": "Identifier of this scene within the video.",
            "title": "Id",
            "type": "string"
          },
          "background": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "color": "#/components/schemas/ColorBackground",
                    "image": "#/components/schemas/TemplateImageBackground",
                    "video": "#/components/schemas/TemplateVideoBackground"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ColorBackground"
                  },
                  {
                    "$ref": "#/components/schemas/TemplateImageBackground"
                  },
                  {
                    "$ref": "#/components/schemas/TemplateVideoBackground"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What fills the frame behind this scene's elements.",
            "title": "Background"
          },
          "elements": {
            "description": "Every element this scene places, in the template's own order.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TemplateAvatarElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateImageElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateVideoElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateTextElement"
                },
                {
                  "$ref": "#/components/schemas/PlaceholderElement"
                },
                {
                  "$ref": "#/components/schemas/TemplateContainerElement"
                }
              ]
            },
            "title": "Elements",
            "type": "array"
          },
          "script": {
            "description": "This scene's audio sources in order, each one synthesized speech, uploaded audio, or a silence.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TemplateTextScriptEntry"
                },
                {
                  "$ref": "#/components/schemas/TemplateAudioScriptEntry"
                },
                {
                  "$ref": "#/components/schemas/SilenceScriptEntry"
                }
              ]
            },
            "title": "Script",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateScene",
        "type": "object"
      },
      "TemplateSceneV3": {
        "description": "A scene defined in the template.",
        "properties": {
          "scene_id": {
            "description": "Scene ID, usable in the generate request's scene_ids",
            "title": "Scene Id",
            "type": "string"
          },
          "script": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Scene script text, with variable placeholders unreplaced",
            "title": "Script"
          },
          "variables": {
            "description": "Variables used in this scene",
            "items": {
              "$ref": "#/components/schemas/TemplateSceneVariableRef"
            },
            "title": "Variables",
            "type": "array"
          }
        },
        "required": [
          "scene_id"
        ],
        "title": "TemplateSceneV3",
        "type": "object"
      },
      "TemplateSceneVariableRef": {
        "description": "A variable used within a scene.",
        "properties": {
          "name": {
            "description": "Variable name, matching a key in the template's variables",
            "title": "Name",
            "type": "string"
          },
          "variable_type": {
            "description": "Variable type: text, image, video, audio, character, or voice",
            "title": "Variable Type",
            "type": "string"
          }
        },
        "required": [
          "name",
          "variable_type"
        ],
        "title": "TemplateSceneVariableRef",
        "type": "object"
      },
      "TemplateTextElement": {
        "additionalProperties": false,
        "description": "An on-screen text element; text variables fill its {{placeholders}}.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "text",
            "default": "text",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "text": {
            "description": "The text as displayed. Paragraphs of styled text are joined with newlines.",
            "title": "Text",
            "type": "string"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "title": "TemplateTextElement",
        "type": "object"
      },
      "TemplateTextScriptEntry": {
        "additionalProperties": false,
        "description": "Synthesized speech; a voice variable replaces its voice, text variables fill its {{placeholders}}.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this script entry within the video. Not to be parsed, sorted, or assumed to encode anything. The same id under two scenes means one entry is shared between them: its text belongs to both, and concatenating both scenes' scripts would synthesize the shared words twice.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "text",
            "default": "text",
            "description": "Script entry type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "text": {
            "description": "The script, verbatim, including inline markup. Empty when the scene was left unfinished.",
            "title": "Text",
            "type": "string"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The voice delivering this script.",
            "title": "Voice Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScriptVoiceSettings"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning applied to this script."
          },
          "trim_to_speech": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Deprecated and ignored: the narration is kept whole, without trimming silence, whatever this says.",
            "title": "Trim To Speech"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "title": "TemplateTextScriptEntry",
        "type": "object"
      },
      "TemplateTextVariable": {
        "additionalProperties": false,
        "description": "Replaces a text placeholder in the template.",
        "properties": {
          "type": {
            "const": "text",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "content": {
            "description": "Replacement text content. May be empty in GET responses (unfilled template default); must be non-empty when generating.",
            "maxLength": 10000,
            "title": "Content",
            "type": "string"
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "TemplateTextVariable",
        "type": "object"
      },
      "TemplateVideoBackground": {
        "additionalProperties": false,
        "description": "A frame-filling clip; a video variable replaces it.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "video",
            "default": "video",
            "description": "Background type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the clip. Present when the video records a link for this background and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          },
          "playback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the clip is reconciled to the scene. Same values as a video element's playback.",
            "title": "Playback"
          },
          "trim": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoTrim"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seconds trimmed from each end of the clip."
          },
          "volume": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Clip audio volume. 1.0 = source level, 0.0 = silent.",
            "title": "Volume"
          },
          "speed_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Playback speed multiplier. 2.0 = twice as fast.",
            "title": "Speed Multiplier"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateVideoBackground",
        "type": "object"
      },
      "TemplateVideoElement": {
        "additionalProperties": false,
        "description": "A video element; a video variable replaces its clip.",
        "properties": {
          "id": {
            "description": "Opaque identifier of this element within the video. Not to be parsed, sorted, or assumed to encode anything. Stable across edits and across regeneration of the video.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "const": "video",
            "default": "video",
            "description": "Element type discriminator.",
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of the clip. Present when the video records a link for this element and, if that link is signed, it is not at or near its deadline. Absent when no link is recorded, or the only recorded link has lapsed. Only the deadline is checked, so a present URL is not a promise that it resolves: it may name an object that has since moved, or a host the customer supplied. Signed links expire, so download what you need rather than storing the URL.",
            "title": "Url"
          },
          "playback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the clip is reconciled to the scene: 'freeze' holds the last frame, 'loop' repeats it, 'fit_to_scene' changes speed to match, 'full_video' plays it whole and drives the scene's length.",
            "title": "Playback"
          },
          "trim": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoTrim"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seconds trimmed from each end of the clip."
          },
          "volume": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Clip audio volume. 1.0 = source level, 0.0 = silent.",
            "title": "Volume"
          },
          "speed_multiplier": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Playback speed multiplier. 2.0 = twice as fast.",
            "title": "Speed Multiplier"
          },
          "bindable_as": {
            "description": "Variable types that can be bound to this node.",
            "items": {
              "enum": [
                "text",
                "image",
                "video",
                "audio",
                "character",
                "voice"
              ],
              "type": "string"
            },
            "title": "Bindable As",
            "type": "array"
          },
          "variable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Name of the image, video, audio, character or voice variable bound to this node, if any.",
            "title": "Variable"
          },
          "text_variables": {
            "description": "Text variable names appearing as {{placeholders}} in this node's text, in order of first appearance.",
            "items": {
              "type": "string"
            },
            "title": "Text Variables",
            "type": "array"
          }
        },
        "required": [
          "id"
        ],
        "title": "TemplateVideoElement",
        "type": "object"
      },
      "TemplateVideoVariable": {
        "additionalProperties": false,
        "description": "Replaces a video placeholder in the template.",
        "properties": {
          "type": {
            "const": "video",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "asset": {
            "description": "Video to place. Accepts url, asset_id, or base64 input.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Asset"
          },
          "fit": {
            "default": "contain",
            "description": "How the video fits the element's box. Omit it on a template created from a video with POST /v3/templates to keep that video's framing: a background fills the frame, a placed clip fits inside its box. On a template built in the HeyGen editor the default is contain.",
            "enum": [
              "cover",
              "contain",
              "crop",
              "none"
            ],
            "title": "Fit",
            "type": "string"
          },
          "play_style": {
            "default": "loop",
            "description": "Playback behavior when the video is shorter than the scene",
            "enum": [
              "fit_to_scene",
              "freeze",
              "loop",
              "once",
              "full_video"
            ],
            "title": "Play Style",
            "type": "string"
          },
          "volume": {
            "default": 1.0,
            "description": "Audio volume of the video track, 0.0 (muted) to 1.0",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Volume",
            "type": "number"
          }
        },
        "required": [
          "type",
          "asset"
        ],
        "title": "TemplateVideoVariable",
        "type": "object"
      },
      "TemplateVoiceVariable": {
        "additionalProperties": false,
        "description": "Overrides the voice used by a script placeholder in the template.",
        "properties": {
          "type": {
            "const": "voice",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "voice_id": {
            "description": "Voice ID used for text-to-speech",
            "minLength": 1,
            "title": "Voice Id",
            "type": "string"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional voice locale, e.g. 'en-US'. A region-qualified locale is stored in its canonical spelling ('en-us' becomes 'en-US'); any other value is stored as sent.",
            "title": "Locale"
          }
        },
        "required": [
          "type",
          "voice_id"
        ],
        "title": "TemplateVoiceVariable",
        "type": "object"
      },
      "UpdateTemplateV3Request": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/templates/{template_id}.",
        "properties": {
          "name": {
            "description": "New template name",
            "examples": [
              "Q4 outreach v2"
            ],
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "UpdateTemplateV3Request",
        "type": "object"
      },
      "DeleteTemplateV3Response": {
        "description": "Response body for DELETE /v3/templates/{template_id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted template",
            "examples": [
              "77e650952c024c6188a35e23e7088617"
            ],
            "title": "Id",
            "type": "string"
          },
          "deleted": {
            "default": true,
            "description": "Always true on success",
            "examples": [
              true
            ],
            "title": "Deleted",
            "type": "boolean"
          }
        },
        "required": [
          "id"
        ],
        "title": "DeleteTemplateV3Response",
        "type": "object"
      },
      "SetTemplateVariablesV3Request": {
        "additionalProperties": false,
        "description": "Request body for PUT /v3/templates/{template_id}/variables.\n\nFull replacement: the body is the complete variable set after the call. A variable that\nexists on the template but is missing here is removed.",
        "properties": {
          "expected_edit_version": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The template's edit_version from your last GET. When given, the update is rejected with 409 stale_edit_version if the template changed since. Omit to overwrite unconditionally.",
            "examples": [
              "3"
            ],
            "title": "Expected Edit Version"
          },
          "variables": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "audio": "#/components/schemas/TemplateAudioBinding",
                  "character": "#/components/schemas/TemplateCharacterBinding",
                  "image": "#/components/schemas/TemplateImageBinding",
                  "text": "#/components/schemas/TemplateTextBinding",
                  "video": "#/components/schemas/TemplateVideoBinding",
                  "voice": "#/components/schemas/TemplateVoiceBinding"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/TemplateTextBinding"
                },
                {
                  "$ref": "#/components/schemas/TemplateCharacterBinding"
                },
                {
                  "$ref": "#/components/schemas/TemplateVoiceBinding"
                },
                {
                  "$ref": "#/components/schemas/TemplateImageBinding"
                },
                {
                  "$ref": "#/components/schemas/TemplateVideoBinding"
                },
                {
                  "$ref": "#/components/schemas/TemplateAudioBinding"
                }
              ]
            },
            "description": "The complete variable set, keyed by variable name (letters, digits, underscores; must start with a letter or underscore; at most 64 characters). An empty object removes every variable.",
            "examples": [
              {
                "company": {
                  "match": "Acme",
                  "type": "text"
                },
                "first_name": {
                  "element_ids": [
                    "t81c0d4b"
                  ],
                  "match": "John",
                  "type": "text"
                },
                "hero_image": {
                  "element_id": "i77e5f60",
                  "type": "image"
                },
                "narration_voice": {
                  "element_id": "t81c0d4b",
                  "type": "voice"
                },
                "presenter": {
                  "element_id": "a3f9c2e1",
                  "type": "character"
                }
              }
            ],
            "title": "Variables",
            "type": "object"
          }
        },
        "required": [
          "variables"
        ],
        "title": "SetTemplateVariablesV3Request",
        "type": "object"
      },
      "TemplateAudioBinding": {
        "additionalProperties": false,
        "description": "Bind an audio variable to an uploaded-audio script element, background audio, or sound effect.",
        "properties": {
          "type": {
            "const": "audio",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "element_id": {
            "description": "ID of the composition node to bind: an element, a script entry, a scene background or a background_audio track, as listed with its bindable_as under composition in GET /v3/templates/{template_id}; must be an audio, background_audio, or sound_effect element",
            "minLength": 1,
            "title": "Element Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "element_id"
        ],
        "title": "TemplateAudioBinding",
        "type": "object"
      },
      "TemplateCharacterBinding": {
        "additionalProperties": false,
        "description": "Bind a character variable to an avatar element.",
        "properties": {
          "type": {
            "const": "character",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "element_id": {
            "description": "ID of the composition node to bind: an element, a script entry, a scene background or a background_audio track, as listed with its bindable_as under composition in GET /v3/templates/{template_id}; must be an avatar element",
            "minLength": 1,
            "title": "Element Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "element_id"
        ],
        "title": "TemplateCharacterBinding",
        "type": "object"
      },
      "TemplateImageBinding": {
        "additionalProperties": false,
        "description": "Bind an image variable to an image element or image background.",
        "properties": {
          "type": {
            "const": "image",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "element_id": {
            "description": "ID of the composition node to bind: an element, a script entry, a scene background or a background_audio track, as listed with its bindable_as under composition in GET /v3/templates/{template_id}; must be an image or background_image element",
            "minLength": 1,
            "title": "Element Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "element_id"
        ],
        "title": "TemplateImageBinding",
        "type": "object"
      },
      "TemplateTextBinding": {
        "additionalProperties": false,
        "description": "Declare a text variable.\n\nWith ``match``, every occurrence of that exact text in the template's script and on-screen\ntext becomes a ``{{name}}`` placeholder and the matched text becomes the default. Without\n``match``, the template must already contain ``{{name}}`` placeholders (from the editor or an\nearlier call) and they are kept.",
        "properties": {
          "type": {
            "const": "text",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "match": {
            "anyOf": [
              {
                "maxLength": 10000,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Exact, case-sensitive text to turn into this variable. Every occurrence in the template's script and on-screen text becomes a {{name}} placeholder and the text becomes the variable's default. Omit to keep {{name}} placeholders the template already contains.",
            "examples": [
              "Acme"
            ],
            "title": "Match"
          },
          "element_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Limit match to these script (tts), text, or richtext elements. Defaults to every element that carries text. Only meaningful together with match.",
            "title": "Element Ids"
          }
        },
        "required": [
          "type"
        ],
        "title": "TemplateTextBinding",
        "type": "object"
      },
      "TemplateVideoBinding": {
        "additionalProperties": false,
        "description": "Bind a video variable to a video element or video background.",
        "properties": {
          "type": {
            "const": "video",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "element_id": {
            "description": "ID of the composition node to bind: an element, a script entry, a scene background or a background_audio track, as listed with its bindable_as under composition in GET /v3/templates/{template_id}; must be a video or background_video element",
            "minLength": 1,
            "title": "Element Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "element_id"
        ],
        "title": "TemplateVideoBinding",
        "type": "object"
      },
      "TemplateVoiceBinding": {
        "additionalProperties": false,
        "description": "Bind a voice variable to a script element.",
        "properties": {
          "type": {
            "const": "voice",
            "description": "Variable type discriminator",
            "title": "Type",
            "type": "string"
          },
          "element_id": {
            "description": "ID of the composition node to bind: an element, a script entry, a scene background or a background_audio track, as listed with its bindable_as under composition in GET /v3/templates/{template_id}; must be a tts script element",
            "minLength": 1,
            "title": "Element Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "element_id"
        ],
        "title": "TemplateVoiceBinding",
        "type": "object"
      },
      "GenerateFromTemplateV3Request": {
        "description": "Request body for POST /v3/templates/{template_id}.",
        "properties": {
          "variables": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "audio": "#/components/schemas/TemplateAudioVariable",
                  "character": "#/components/schemas/TemplateCharacterVariable",
                  "image": "#/components/schemas/TemplateImageVariable",
                  "text": "#/components/schemas/TemplateTextVariable",
                  "video": "#/components/schemas/TemplateVideoVariable",
                  "voice": "#/components/schemas/TemplateVoiceVariable"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/TemplateTextVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateImageVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateVideoVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateAudioVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateCharacterVariable"
                },
                {
                  "$ref": "#/components/schemas/TemplateVoiceVariable"
                }
              ]
            },
            "description": "Template variable replacements, keyed by the variable name defined in the template. Supply every text variable you want filled: an omitted text variable is not substituted, so its literal `{{variable_name}}` placeholder remains in the text it is bound to, whether that is a spoken script or an on-screen text element. Omitting an image, video, audio, character or voice variable is safe and keeps the value the template already holds. The defaults returned by `GET /v3/templates/{template_id}` are the template's current values, not fallbacks applied at generation time.",
            "title": "Variables",
            "type": "object"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title for the generated video",
            "title": "Title"
          },
          "caption": {
            "default": false,
            "description": "Whether to burn captions into the video",
            "title": "Caption",
            "type": "boolean"
          },
          "subtitles": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemplateSubtitleSettings"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Subtitle style settings. Implies captions when provided."
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque ID echoed back in webhook events for this video",
            "title": "Callback Id"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL called with the video result in addition to registered webhook endpoints",
            "title": "Callback Url"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created. Supported only for single-video creation; batch video items cannot set their own destination folder.",
            "title": "Folder Id"
          },
          "brand_voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "deprecated": true,
            "description": "Legacy field name for `brand_glossary_id`. Both are accepted and resolve to the same workspace record. Prefer `brand_glossary_id`.",
            "title": "Brand Voice Id"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary controlling how custom terms are pronounced in generated speech. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "dimension": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemplateVideoDimension"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output resolution override. Must match the template's aspect ratio."
          },
          "fps": {
            "default": 25.0,
            "description": "Output frame rate. One of 25, 30, or 60.",
            "title": "Fps",
            "type": "number"
          },
          "scene_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Scene IDs to render, in order (repeats allowed). Scenes must already exist in the template; the API can select, reorder, and repeat scenes but cannot create new ones. Omit to render all scenes in template order.",
            "title": "Scene Ids"
          },
          "reorder_music": {
            "default": true,
            "description": "When true (default), background audio tracks move with their scenes. When false, tracks stay pinned to layout positions.",
            "title": "Reorder Music",
            "type": "boolean"
          },
          "keep_text_vertically_centered": {
            "default": false,
            "description": "When true, replaced text elements are vertically re-centered based on their rendered height",
            "title": "Keep Text Vertically Centered",
            "type": "boolean"
          },
          "include_gif": {
            "default": false,
            "description": "Whether to include a GIF preview in the webhook payload",
            "title": "Include Gif",
            "type": "boolean"
          },
          "enable_sharing": {
            "default": false,
            "description": "Whether the generated video's share page is publicly accessible",
            "title": "Enable Sharing",
            "type": "boolean"
          }
        },
        "required": [
          "variables"
        ],
        "title": "GenerateFromTemplateV3Request",
        "type": "object"
      },
      "TemplateSubtitlePosition": {
        "additionalProperties": false,
        "description": "Subtitle position override.",
        "properties": {
          "x": {
            "default": 0.0,
            "description": "Horizontal subtitle position",
            "title": "X",
            "type": "number"
          },
          "y": {
            "default": 0.0,
            "description": "Vertical subtitle position",
            "title": "Y",
            "type": "number"
          }
        },
        "title": "TemplateSubtitlePosition",
        "type": "object"
      },
      "TemplateSubtitleSettings": {
        "additionalProperties": false,
        "description": "Output subtitle style settings (mirrors the /v3/videos subtitles input).",
        "properties": {
          "preset_name": {
            "description": "Subtitle preset name, e.g. 'classic', 'bold', 'bright'",
            "title": "Preset Name",
            "type": "string"
          },
          "alignment": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 2,
            "description": "Subtitle alignment",
            "title": "Alignment"
          },
          "disable_highlight": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": false,
            "description": "Override the preset's word-highlight style",
            "title": "Disable Highlight"
          },
          "font_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Font size override for the preset",
            "title": "Font Size"
          },
          "position": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TemplateSubtitlePosition"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Subtitle position override"
          }
        },
        "required": [
          "preset_name"
        ],
        "title": "TemplateSubtitleSettings",
        "type": "object"
      },
      "TemplateVideoDimension": {
        "additionalProperties": false,
        "description": "Output resolution override. Must keep the template's aspect ratio.",
        "properties": {
          "width": {
            "description": "Output video width in pixels (even number, 128-4096)",
            "maximum": 4096,
            "minimum": 128,
            "title": "Width",
            "type": "integer"
          },
          "height": {
            "description": "Output video height in pixels (even number, 128-4096)",
            "maximum": 4096,
            "minimum": 128,
            "title": "Height",
            "type": "integer"
          }
        },
        "required": [
          "width",
          "height"
        ],
        "title": "TemplateVideoDimension",
        "type": "object"
      },
      "CreateBackgroundRemovalRequest": {
        "additionalProperties": false,
        "properties": {
          "video": {
            "description": "Input video to remove the background from (url, asset_id, or base64).",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Video"
          },
          "layers": {
            "description": "Output layers to return. Any of: 'foreground' (subject on a transparent background), 'mask' (grayscale alpha matte), 'background' (the scene with the subject removed). Defaults to all three.",
            "items": {
              "type": "string"
            },
            "title": "Layers",
            "type": "array"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional human-readable title for the job.",
            "title": "Title"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client-provided idempotency key \u2014 *the* idempotency mechanism for this endpoint. Re-sending the same `request_id` returns the *original* job (same `id`, same `status`, same charge) instead of creating a new one \u2014 the dedup is over (`space_id`, `request_id`), not over the response body, so a duplicate `request_id` with different content still collides on the original job. The HTTP `Idempotency-Key` header is *not* honored here; pick a per-content `request_id` if you need per-content dedup.",
            "title": "Request Id"
          }
        },
        "required": [
          "video"
        ],
        "title": "CreateBackgroundRemovalRequest",
        "type": "object"
      },
      "BackgroundRemovalJob": {
        "properties": {
          "id": {
            "description": "Background removal job id. Use it to poll GET /v3/background-removals/{id}.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "description": "Job status: 'pending' | 'processing' | 'completed' | 'failed' | 'deleted'.",
            "title": "Status",
            "type": "string"
          },
          "layers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Map of produced layer name to a presigned download URL. Populated once status is 'completed'.",
            "title": "Layers",
            "type": "object"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Processed video duration in seconds.",
            "title": "Duration"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp (seconds) when the job was created.",
            "title": "Created At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp (seconds) when the job completed. Present once completed.",
            "title": "Completed At"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure reason. Present only when status is 'failed'.",
            "title": "Error"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "BackgroundRemovalJob",
        "type": "object"
      },
      "BackgroundRemovalDeleteResponse": {
        "properties": {
          "id": {
            "description": "The deleted background removal job id.",
            "title": "Id",
            "type": "string"
          },
          "deleted": {
            "description": "Always true on success.",
            "title": "Deleted",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "deleted"
        ],
        "title": "BackgroundRemovalDeleteResponse",
        "type": "object"
      },
      "CreateModelTranscriptionRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "const": "heygen-asr-1",
            "description": "Transcription model to run.",
            "title": "Model",
            "type": "string"
          },
          "audio": {
            "description": "WAV or MP3 audio: inline base64 up to 16 MiB, or an accessible uploaded audio asset ID up to 32 MiB.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetBase64"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Audio"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Supported ISO 639-1 or ISO 639-3 language code; detected when omitted.",
            "title": "Language"
          },
          "diarize": {
            "default": true,
            "description": "Include recording-level speaker labels.",
            "title": "Diarize",
            "type": "boolean"
          }
        },
        "required": [
          "model",
          "audio"
        ],
        "title": "CreateModelTranscriptionRequest",
        "type": "object"
      },
      "ModelTranscriptionResponse": {
        "additionalProperties": true,
        "properties": {
          "request_id": {
            "minLength": 1,
            "title": "Request Id",
            "type": "string"
          },
          "model": {
            "$ref": "#/components/schemas/TranscriptionModel"
          },
          "text": {
            "title": "Text",
            "type": "string"
          },
          "language_code": {
            "title": "Language Code",
            "type": "string"
          },
          "language_probability": {
            "maximum": 1,
            "minimum": 0,
            "title": "Language Probability",
            "type": "number"
          },
          "num_speakers": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Absent when diarization was disabled.",
            "title": "Num Speakers"
          },
          "words": {
            "items": {
              "$ref": "#/components/schemas/TranscriptionEntry"
            },
            "title": "Words",
            "type": "array"
          },
          "usage": {
            "$ref": "#/components/schemas/TranscriptionUsage"
          }
        },
        "required": [
          "request_id",
          "model",
          "text",
          "language_code",
          "language_probability",
          "words",
          "usage"
        ],
        "title": "ModelTranscriptionResponse",
        "type": "object"
      },
      "TranscriptionEntry": {
        "properties": {
          "text": {
            "title": "Text",
            "type": "string"
          },
          "start": {
            "minimum": 0,
            "title": "Start",
            "type": "number"
          },
          "end": {
            "minimum": 0,
            "title": "End",
            "type": "number"
          },
          "type": {
            "enum": [
              "word",
              "spacing",
              "audio_event"
            ],
            "title": "Type",
            "type": "string"
          },
          "speaker_id": {
            "anyOf": [
              {
                "pattern": "^speaker_[0-9]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Speaker Id"
          },
          "logprob": {
            "title": "Logprob",
            "type": "number"
          }
        },
        "required": [
          "text",
          "start",
          "end",
          "type",
          "logprob"
        ],
        "title": "TranscriptionEntry",
        "type": "object"
      },
      "TranscriptionModel": {
        "enum": [
          "heygen-asr-1"
        ],
        "title": "TranscriptionModel",
        "type": "string"
      },
      "TranscriptionUsage": {
        "properties": {
          "duration_seconds": {
            "description": "Decoded audio duration used for billing.",
            "exclusiveMinimum": 0,
            "title": "Duration Seconds",
            "type": "number"
          },
          "api_credits": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "API credits charged, rounded up to the wallet's smallest unit; omitted when the HyperFrames plan paid.",
            "title": "Api Credits"
          },
          "usd_per_audio_hour": {
            "description": "USD rate per decoded audio hour, before API-credit conversion and rounding.",
            "title": "Usd Per Audio Hour",
            "type": "string"
          },
          "pricing_version": {
            "title": "Pricing Version",
            "type": "string"
          }
        },
        "required": [
          "duration_seconds",
          "usd_per_audio_hour",
          "pricing_version"
        ],
        "title": "TranscriptionUsage",
        "type": "object"
      },
      "TranscriptionCreateRequest": {
        "discriminator": {
          "mapping": {
            "scribe-v2": "#/components/schemas/ScribeV2TranscriptionRequest"
          },
          "propertyName": "model"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ScribeV2TranscriptionRequest"
          }
        ]
      },
      "ScribeV2TranscriptionRequest": {
        "additionalProperties": false,
        "description": "A transcription by `scribe-v2`.",
        "properties": {
          "audio": {
            "description": "The audio or video file to transcribe, as a url, an asset_id or inline base64.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Audio"
          },
          "model": {
            "const": "scribe-v2",
            "description": "Transcription model.",
            "title": "Model",
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "pattern": "^[a-z]{2,3}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Spoken language as a lowercase ISO 639 code, such as `en`. Detected from the audio when omitted.",
            "title": "Language"
          },
          "word_timestamps": {
            "default": true,
            "description": "Return per-word timings in each segment.",
            "title": "Word Timestamps",
            "type": "boolean"
          },
          "diarize": {
            "default": true,
            "description": "Label speakers. Audio is limited to 10 minutes with this on and 30 minutes with it off.",
            "title": "Diarize",
            "type": "boolean"
          },
          "num_speakers": {
            "anyOf": [
              {
                "maximum": 32,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Expected number of speakers; only valid with `diarize` true.",
            "title": "Num Speakers"
          }
        },
        "required": [
          "audio",
          "model"
        ],
        "title": "ScribeV2TranscriptionRequest",
        "type": "object"
      },
      "TranscriptionResponse": {
        "properties": {
          "id": {
            "description": "Transcription identifier, for reading the transcription again.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/TranscriptionStatus",
            "description": "`completed` once the transcript is ready. Callers should read `status` rather than assume the POST finished it."
          },
          "model": {
            "const": "scribe-v2",
            "description": "The transcription model that produced the transcript.",
            "title": "Model",
            "type": "string"
          },
          "created_at": {
            "description": "Request creation time as Unix seconds.",
            "title": "Created At",
            "type": "integer"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Detected or requested language; present once completed.",
            "title": "Language"
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Length of the transcribed audio; present once completed.",
            "title": "Duration Seconds"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Full transcript; present once completed.",
            "title": "Text"
          },
          "segments": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TranscriptionSegment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Transcript segments; present once completed.",
            "title": "Segments"
          },
          "failure_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TranscriptionFailureCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Machine-readable failure reason. Only present when status is failed."
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Human-readable failure description. Only present when status is failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status",
          "model",
          "created_at"
        ],
        "title": "TranscriptionResponse",
        "type": "object"
      },
      "TranscriptionFailureCode": {
        "enum": [
          "invalid_input",
          "vendor_unavailable",
          "vendor_timeout",
          "ai_vendor_access_restricted",
          "internal_error",
          "insufficient_credit",
          "api_key_required",
          "rate_limited"
        ],
        "title": "TranscriptionFailureCode",
        "type": "string"
      },
      "TranscriptionSegment": {
        "properties": {
          "speaker": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Absent when `diarize` was false.",
            "title": "Speaker"
          },
          "start": {
            "description": "Start time in seconds.",
            "title": "Start",
            "type": "number"
          },
          "end": {
            "description": "End time in seconds.",
            "title": "End",
            "type": "number"
          },
          "text": {
            "description": "The segment's text.",
            "title": "Text",
            "type": "string"
          },
          "words": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TranscriptionWord"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Present when `word_timestamps` was true.",
            "title": "Words"
          }
        },
        "required": [
          "start",
          "end",
          "text"
        ],
        "title": "TranscriptionSegment",
        "type": "object"
      },
      "TranscriptionStatus": {
        "enum": [
          "pending",
          "completed",
          "failed"
        ],
        "title": "TranscriptionStatus",
        "type": "string"
      },
      "TranscriptionWord": {
        "properties": {
          "word": {
            "description": "The word as spoken, with any attached punctuation.",
            "title": "Word",
            "type": "string"
          },
          "start": {
            "description": "Start time in seconds.",
            "title": "Start",
            "type": "number"
          },
          "end": {
            "description": "End time in seconds.",
            "title": "End",
            "type": "number"
          },
          "speaker": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Absent when `diarize` was false.",
            "title": "Speaker"
          }
        },
        "required": [
          "word",
          "start",
          "end"
        ],
        "title": "TranscriptionWord",
        "type": "object"
      },
      "MusicCreateRequest": {
        "description": "Discriminated union for POST /v3/audio/music request body, keyed on `model`.",
        "discriminator": {
          "mapping": {
            "lyria-3-pro": "#/components/schemas/LyriaMusicRequest"
          },
          "propertyName": "model"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/LyriaMusicRequest"
          }
        ],
        "title": "MusicCreateRequest"
      },
      "LyriaMusicRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "const": "lyria-3-pro",
            "description": "Music model. Each model accepts its own options.",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What the track should sound like: genre, mood, instruments, use.",
            "maxLength": 4000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "duration_seconds": {
            "description": "Target length: 30, 60, 120 or 180. A longer render is cut to this length with a fade-out; a shorter one is kept as is.",
            "title": "Duration Seconds",
            "type": "integer"
          },
          "bpm": {
            "anyOf": [
              {
                "maximum": 180,
                "minimum": 60,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Target tempo in beats per minute.",
            "title": "Bpm"
          },
          "intensity": {
            "anyOf": [
              {
                "maximum": 5,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Energy from 1 (ambient) to 5 (peak).",
            "title": "Intensity"
          },
          "instrumental": {
            "default": false,
            "description": "No vocals. Cannot be combined with `lyrics`.",
            "title": "Instrumental",
            "type": "boolean"
          },
          "lyrics": {
            "anyOf": [
              {
                "maxLength": 3000,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Lyrics to sing verbatim. Untagged text is split into verses on blank lines. Written by the model when omitted.",
            "title": "Lyrics"
          }
        },
        "required": [
          "model",
          "prompt",
          "duration_seconds"
        ],
        "title": "LyriaMusicRequest",
        "type": "object"
      },
      "MusicResponse": {
        "properties": {
          "id": {
            "description": "The music job id; read it again with GET /v3/audio/music/{id}.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/MusicStatus",
            "description": "`completed` or `failed`; `pending` only while the creating request is still running."
          },
          "model": {
            "const": "lyria-3-pro",
            "description": "The music model that generated the track.",
            "title": "Model",
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix seconds.",
            "title": "Created At"
          },
          "requested_duration_seconds": {
            "description": "The target length the request asked for.",
            "title": "Requested Duration Seconds",
            "type": "integer"
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The measured length of the file; present once completed.",
            "title": "Duration Seconds"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Time-limited download URL of the mp3; present once completed. Read the job again for a fresh URL.",
            "title": "Audio Url"
          },
          "format": {
            "anyOf": [
              {
                "const": "mp3",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Audio format; present once completed.",
            "title": "Format"
          },
          "failure_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MusicFailureCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the job failed; present once failed."
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A customer-safe explanation; present once failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status",
          "model",
          "requested_duration_seconds"
        ],
        "title": "MusicResponse",
        "type": "object"
      },
      "MusicFailureCode": {
        "enum": [
          "invalid_input",
          "content_policy_violation",
          "vendor_unavailable",
          "vendor_timeout",
          "ai_vendor_access_restricted",
          "insufficient_credit",
          "api_key_required",
          "internal_error"
        ],
        "title": "MusicFailureCode",
        "type": "string"
      },
      "MusicStatus": {
        "enum": [
          "pending",
          "completed",
          "failed"
        ],
        "title": "MusicStatus",
        "type": "string"
      },
      "AudioAnalysisRequest": {
        "additionalProperties": false,
        "description": "The JSON body referencing a finalized audio asset.",
        "properties": {
          "version": {
            "const": 1,
            "description": "Contract version. Only 1 exists.",
            "title": "Version",
            "type": "integer"
          },
          "capabilities": {
            "description": "What to analyze: any of `beats`, `downbeats`, `sections`, `describe`, each at most once.",
            "items": {
              "enum": [
                "beats",
                "downbeats",
                "sections",
                "describe"
              ],
              "type": "string"
            },
            "maxItems": 4,
            "minItems": 1,
            "title": "Capabilities",
            "type": "array"
          },
          "audio": {
            "$ref": "#/components/schemas/AssetId",
            "description": "A readable, finalized audio asset containing 16-bit PCM WAV, at most 32 MB and 10 minutes."
          }
        },
        "required": [
          "version",
          "capabilities",
          "audio"
        ],
        "title": "AudioAnalysisRequest",
        "type": "object"
      },
      "AudioAnalysisResponse": {
        "properties": {
          "version": {
            "const": 1,
            "description": "Contract version.",
            "title": "Version",
            "type": "integer"
          },
          "source": {
            "description": "The model that answered.",
            "title": "Source",
            "type": "string"
          },
          "time_resolution_seconds": {
            "description": "The audio frame the model hears. Its times are estimates no finer than this, and usually coarser; snap them to a measured beat grid before cutting to them.",
            "title": "Time Resolution Seconds",
            "type": "number"
          },
          "beats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudioAnalysisTimes"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Beat times. Absent when not asked for or not answered."
          },
          "downbeats": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudioAnalysisDownbeats"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Bar starts. Absent when not asked for or not answered."
          },
          "sections": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudioAnalysisSections"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Song sections. Absent when not asked for or not answered."
          },
          "describe": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudioAnalysisDescribe"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the audio is. Absent when not asked for or not answered."
          }
        },
        "required": [
          "version",
          "source",
          "time_resolution_seconds"
        ],
        "title": "AudioAnalysisResponse",
        "type": "object"
      },
      "AudioAnalysisDescribe": {
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "One or two sentences describing the audio.",
            "title": "Text"
          },
          "tags": {
            "description": "Tags, strongest first.",
            "items": {
              "$ref": "#/components/schemas/AudioAnalysisTag"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "tags"
        ],
        "title": "AudioAnalysisDescribe",
        "type": "object"
      },
      "AudioAnalysisDownbeats": {
        "properties": {
          "times": {
            "description": "Times of the first beat of each bar, in seconds from the start of the uploaded audio, ascending.",
            "items": {
              "type": "number"
            },
            "title": "Times",
            "type": "array"
          },
          "meter": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Beats per bar, when the model named one.",
            "title": "Meter"
          }
        },
        "required": [
          "times"
        ],
        "title": "AudioAnalysisDownbeats",
        "type": "object"
      },
      "AudioAnalysisSections": {
        "properties": {
          "spans": {
            "description": "Sections in order of their start.",
            "items": {
              "$ref": "#/components/schemas/AudioAnalysisSpan"
            },
            "title": "Spans",
            "type": "array"
          }
        },
        "required": [
          "spans"
        ],
        "title": "AudioAnalysisSections",
        "type": "object"
      },
      "AudioAnalysisSpan": {
        "properties": {
          "start": {
            "description": "Start of the section, in seconds from the start of the uploaded audio.",
            "title": "Start",
            "type": "number"
          },
          "end": {
            "description": "End of the section, in seconds from the start of the uploaded audio.",
            "title": "End",
            "type": "number"
          },
          "label": {
            "description": "What the section is, as the model named it, e.g. `intro`, `verse`, `chorus`.",
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "start",
          "end",
          "label"
        ],
        "title": "AudioAnalysisSpan",
        "type": "object"
      },
      "AudioAnalysisTag": {
        "properties": {
          "label": {
            "description": "A short tag, e.g. a genre, a mood or an instrument.",
            "title": "Label",
            "type": "string"
          },
          "score": {
            "description": "How strongly the model holds the tag, from 0 to 1. The model's own estimate, not a calibrated probability.",
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "label",
          "score"
        ],
        "title": "AudioAnalysisTag",
        "type": "object"
      },
      "AudioAnalysisTimes": {
        "properties": {
          "times": {
            "description": "Times in seconds from the start of the uploaded audio, ascending.",
            "items": {
              "type": "number"
            },
            "title": "Times",
            "type": "array"
          }
        },
        "required": [
          "times"
        ],
        "title": "AudioAnalysisTimes",
        "type": "object"
      },
      "StemsCreateRequest": {
        "additionalProperties": false,
        "description": "POST /v3/audio/stems request body.",
        "properties": {
          "version": {
            "const": 1,
            "description": "Contract version. Only 1 exists.",
            "title": "Version",
            "type": "integer"
          },
          "audio": {
            "$ref": "#/components/schemas/AssetId",
            "description": "A readable, finalized audio asset, at most 60 minutes."
          }
        },
        "required": [
          "version",
          "audio"
        ],
        "title": "StemsCreateRequest",
        "type": "object"
      },
      "StemsResponse": {
        "properties": {
          "id": {
            "description": "The stems job id; read it again with GET /v3/audio/stems/{id}.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/StemsStatus",
            "description": "`completed` or `failed`; `pending` only while the creating request is still running."
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix seconds.",
            "title": "Created At"
          },
          "duration_seconds": {
            "description": "The length of the audio separated, which is what the job is charged for.",
            "title": "Duration Seconds",
            "type": "number"
          },
          "stems": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/StemFile"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "One file per stem, each the full length of the audio; present once completed.",
            "title": "Stems"
          },
          "failure_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StemsFailureCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the job failed; present once failed."
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A customer-safe explanation; present once failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status",
          "duration_seconds"
        ],
        "title": "StemsResponse",
        "type": "object"
      },
      "StemFile": {
        "properties": {
          "name": {
            "description": "`vocals`, `drums`, `bass`, `guitar`, `piano` or `other`.",
            "title": "Name",
            "type": "string"
          },
          "url": {
            "description": "Time-limited download URL of the stem's mp3. Read the job again for a fresh URL.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "name",
          "url"
        ],
        "title": "StemFile",
        "type": "object"
      },
      "StemsFailureCode": {
        "enum": [
          "invalid_input",
          "vendor_unavailable",
          "vendor_timeout",
          "ai_vendor_access_restricted",
          "insufficient_credit",
          "api_key_required",
          "internal_error"
        ],
        "title": "StemsFailureCode",
        "type": "string"
      },
      "StemsStatus": {
        "enum": [
          "pending",
          "completed",
          "failed"
        ],
        "title": "StemsStatus",
        "type": "string"
      },
      "VideoAnalysisRequest": {
        "discriminator": {
          "mapping": {
            "gemini-3.8-flash": "#/components/schemas/Gemini38FlashVideoAnalysisRequest",
            "gemini-4-argon": "#/components/schemas/Gemini4ArgonVideoAnalysisRequest"
          },
          "propertyName": "model"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/Gemini38FlashVideoAnalysisRequest"
          },
          {
            "$ref": "#/components/schemas/Gemini4ArgonVideoAnalysisRequest"
          }
        ]
      },
      "Gemini38FlashVideoAnalysisRequest": {
        "additionalProperties": false,
        "description": "Gemini 3.8 Flash.",
        "properties": {
          "model": {
            "const": "gemini-3.8-flash",
            "description": "Video analysis model.",
            "title": "Model",
            "type": "string"
          },
          "video": {
            "description": "The video to analyze, as a public url, an uploaded asset_id or inline base64. At most 180 seconds, and 50 MB by url or asset_id or 16 MB as base64.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Video"
          },
          "prompt": {
            "description": "What to find out about the video, in your own words. 1 to 8000 characters.",
            "maxLength": 8000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "response_schema": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A JSON Schema (draft 2020-12) with root `\"type\": \"object\"`, at most 16 KB and nested at most 32 levels deep. Every `$ref` must point inside the schema; `$id`, `$anchor`, dynamic references and `patternProperties` are not accepted, and `format` is not checked. When given, the answer is a JSON object that validates against it; when omitted, the answer is text.",
            "title": "Response Schema"
          },
          "max_output_tokens": {
            "default": 8192,
            "description": "The most tokens the model may write, its thinking included. A JSON answer cut off by this cap fails.",
            "maximum": 32768,
            "minimum": 1,
            "title": "Max Output Tokens",
            "type": "integer"
          }
        },
        "required": [
          "model",
          "video",
          "prompt"
        ],
        "title": "Gemini38FlashVideoAnalysisRequest",
        "type": "object"
      },
      "Gemini4ArgonVideoAnalysisRequest": {
        "additionalProperties": false,
        "description": "Gemini 4 Argon.",
        "properties": {
          "model": {
            "const": "gemini-4-argon",
            "description": "Video analysis model.",
            "title": "Model",
            "type": "string"
          },
          "video": {
            "description": "The video to analyze, as a public url, an uploaded asset_id or inline base64. At most 180 seconds, and 50 MB by url or asset_id or 16 MB as base64.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Video"
          },
          "prompt": {
            "description": "What to find out about the video, in your own words. 1 to 8000 characters.",
            "maxLength": 8000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "response_schema": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A JSON Schema (draft 2020-12) with root `\"type\": \"object\"`, at most 16 KB and nested at most 32 levels deep. Every `$ref` must point inside the schema; `$id`, `$anchor`, dynamic references and `patternProperties` are not accepted, and `format` is not checked. When given, the answer is a JSON object that validates against it; when omitted, the answer is text.",
            "title": "Response Schema"
          },
          "max_output_tokens": {
            "default": 8192,
            "description": "The most tokens the model may write, its thinking included. A JSON answer cut off by this cap fails.",
            "maximum": 32768,
            "minimum": 1,
            "title": "Max Output Tokens",
            "type": "integer"
          }
        },
        "required": [
          "model",
          "video",
          "prompt"
        ],
        "title": "Gemini4ArgonVideoAnalysisRequest",
        "type": "object"
      },
      "JsonValue": {},
      "VideoAnalysisResponse": {
        "properties": {
          "id": {
            "description": "Analysis identifier; read it again with GET /v3/video-analyses/{id}.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VideoAnalysisStatus",
            "description": "`completed` with its output, `failed` with a failure code, else `pending` or `processing`."
          },
          "model": {
            "description": "The model the analysis runs on.",
            "enum": [
              "gemini-3.8-flash",
              "gemini-4-argon"
            ],
            "title": "Model",
            "type": "string"
          },
          "created_at": {
            "description": "Request creation time as Unix seconds.",
            "title": "Created At",
            "type": "integer"
          },
          "duration_seconds": {
            "description": "Length of the analyzed video in seconds, measured before the analysis starts.",
            "title": "Duration Seconds",
            "type": "number"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the analysis completed or failed, as Unix seconds.",
            "title": "Completed At"
          },
          "output": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "json": "#/components/schemas/VideoAnalysisJsonOutput",
                    "text": "#/components/schemas/VideoAnalysisTextOutput"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/VideoAnalysisTextOutput"
                  },
                  {
                    "$ref": "#/components/schemas/VideoAnalysisJsonOutput"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The answer; present once completed.",
            "title": "Output"
          },
          "usage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAnalysisUsage"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the model read and wrote; present once completed."
          },
          "failure_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAnalysisFailureCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the analysis failed; present once failed. A failed analysis is never charged, including `output_not_json` (the answer was not JSON matching `response_schema`, or was cut off at `max_output_tokens`), `no_answer` and `vendor_timeout`."
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A customer-safe explanation; present once failed. It never contains any of the model's answer.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status",
          "model",
          "created_at",
          "duration_seconds"
        ],
        "title": "VideoAnalysisResponse",
        "type": "object"
      },
      "VideoAnalysisFailureCode": {
        "enum": [
          "video_too_long",
          "video_unreadable",
          "invalid_input",
          "content_policy_violation",
          "output_not_json",
          "no_answer",
          "ai_vendor_access_restricted",
          "vendor_timeout",
          "vendor_unavailable",
          "insufficient_credit",
          "internal_error"
        ],
        "title": "VideoAnalysisFailureCode",
        "type": "string"
      },
      "VideoAnalysisJsonOutput": {
        "properties": {
          "type": {
            "const": "json",
            "default": "json",
            "description": "The answer is JSON that validates against the request's `response_schema`.",
            "title": "Type",
            "type": "string"
          },
          "json": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "description": "The model's answer.",
            "title": "Json",
            "type": "object"
          }
        },
        "required": [
          "json"
        ],
        "title": "VideoAnalysisJsonOutput",
        "type": "object"
      },
      "VideoAnalysisStatus": {
        "enum": [
          "pending",
          "processing",
          "completed",
          "failed"
        ],
        "title": "VideoAnalysisStatus",
        "type": "string"
      },
      "VideoAnalysisTextOutput": {
        "properties": {
          "type": {
            "const": "text",
            "default": "text",
            "description": "The answer is text: no `response_schema` was given.",
            "title": "Type",
            "type": "string"
          },
          "text": {
            "description": "The model's answer.",
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "title": "VideoAnalysisTextOutput",
        "type": "object"
      },
      "VideoAnalysisUsage": {
        "properties": {
          "input_tokens": {
            "description": "Tokens the model read: the prompt, the sampled video frames and its audio.",
            "title": "Input Tokens",
            "type": "integer"
          },
          "output_tokens": {
            "description": "Tokens the model wrote, its thinking included.",
            "title": "Output Tokens",
            "type": "integer"
          }
        },
        "required": [
          "input_tokens",
          "output_tokens"
        ],
        "title": "VideoAnalysisUsage",
        "type": "object"
      },
      "MCPVideoTranslateCreateRequest": {
        "additionalProperties": false,
        "description": "Request body for creating a video translation job via the MCP server.",
        "properties": {
          "video_url": {
            "description": "URL of the source video to translate",
            "title": "Video Url",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title for the translation job",
            "title": "Title"
          },
          "output_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Single target language name (e.g. 'Spanish'). Mutually exclusive with output_languages.",
            "title": "Output Language"
          },
          "output_languages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Multiple target language names for batch translation. Mutually exclusive with output_language.",
            "title": "Output Languages"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom audio URL for audio dubbing",
            "title": "Audio Url"
          },
          "input_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Source language name, e.g. 'English' (auto-detected if omitted)",
            "title": "Input Language"
          },
          "translate_audio_only": {
            "default": false,
            "description": "Only translate audio, keep original video",
            "title": "Translate Audio Only",
            "type": "boolean",
            "x-mcp-visible": false
          },
          "speaker_num": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of speakers (improves speaker separation)",
            "title": "Speaker Num"
          },
          "mode": {
            "default": "speed",
            "description": "Translation quality mode: 'speed' (faster) or 'precision' (higher quality, uses avatar inference)",
            "enum": [
              "speed",
              "precision"
            ],
            "title": "Mode",
            "type": "string"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL for completion notifications",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID included in webhook payload",
            "title": "Callback Id"
          },
          "enable_caption": {
            "default": false,
            "deprecated": true,
            "description": "Deprecated and ignored: captions are always generated; whether to display them is a download-side choice.",
            "title": "Enable Caption",
            "type": "boolean"
          },
          "keep_the_same_format": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Preserve the source video's encoding specs (resolution, bitrate). Defaults to True for enterprise/team/pro API users with audio_url.",
            "title": "Keep The Same Format"
          },
          "enable_dynamic_duration": {
            "default": true,
            "description": "Allow dynamic duration adjustment",
            "title": "Enable Dynamic Duration",
            "type": "boolean"
          },
          "disable_music_track": {
            "default": false,
            "description": "Remove background music",
            "title": "Disable Music Track",
            "type": "boolean"
          },
          "enable_speech_enhancement": {
            "default": false,
            "description": "Enhance speech quality",
            "title": "Enable Speech Enhancement",
            "type": "boolean"
          },
          "enable_watermark": {
            "default": false,
            "description": "Add watermark to output",
            "title": "Enable Watermark",
            "type": "boolean"
          },
          "start_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Start time in seconds for partial translation",
            "title": "Start Time"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "End time in seconds for partial translation",
            "title": "End Time"
          },
          "brand_voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID for custom term translations. The legacy field name for `brand_glossary_id` \u2014 both are accepted and resolve to the same workspace record. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Voice Id"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID for custom term translations (e.g. translate 'Reformer' as 'Pilates equipment', not 'political activist'). Alias for the legacy `brand_voice_id` field. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "stock_voice_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StockVoiceConfig"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Use a preset stock voice for the translation instead of recreating the original speaker's voice. By default, Video Translation clones the original speaker so the result sounds like them; with this enabled, the translation is spoken by a natural preset voice optimized for clear pronunciation and accent in the target language (the result will not sound like the original speaker). Enterprise feature, available for selected accounts and languages by request \u2014 contact your HeyGen account team."
          },
          "srt_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom subtitle file URL.",
            "title": "Srt Url"
          },
          "srt_role": {
            "anyOf": [
              {
                "enum": [
                  "input",
                  "output"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Which video the SRT applies to. Used with srt_url.",
            "title": "Srt Role"
          },
          "fps_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Frame rate mode: 'vfr', 'cfr', or 'passthrough'. Only valid with audio_url.",
            "title": "Fps Mode"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created.",
            "title": "Folder Id"
          }
        },
        "required": [
          "video_url"
        ],
        "title": "MCPVideoTranslateCreateRequest",
        "type": "object"
      },
      "StockVoiceConfig": {
        "additionalProperties": false,
        "description": "Stock-voice options for a video translation request.\n\nUse a preset HeyGen voice for the translation instead of recreating the original\nspeaker's voice. Enterprise feature, available for selected accounts and languages\nby request. See the ``stock_voice_config`` request field for usage.",
        "properties": {
          "use_stock_voice": {
            "default": false,
            "description": "Set to true to use a preset stock voice instead of cloning the original speaker.",
            "title": "Use Stock Voice",
            "type": "boolean"
          },
          "preferred_stock_voice_ids": {
            "description": "Optional. Pin specific stock voice IDs to draw from. If omitted, the target language's default stock-voice pool is used.",
            "items": {
              "type": "string"
            },
            "title": "Preferred Stock Voice Ids",
            "type": "array"
          }
        },
        "title": "StockVoiceConfig",
        "type": "object"
      },
      "VideoTranslateCreateResponse": {
        "properties": {
          "video_translate_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              "vt_abc123"
            ],
            "title": "Video Translate Id"
          },
          "video_translate_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              [
                "vt_abc123",
                "vt_def456"
              ]
            ],
            "title": "Video Translate Ids"
          }
        },
        "title": "VideoTranslateCreateResponse",
        "type": "object"
      },
      "ListTargetLanguageResponse": {
        "properties": {
          "languages": {
            "examples": [
              [
                "en",
                "es",
                "fr",
                "de",
                "ja",
                "zh"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          }
        },
        "required": [
          "languages"
        ],
        "title": "ListTargetLanguageResponse",
        "type": "object"
      },
      "VideoTranslateCaptionGetResponse": {
        "properties": {
          "caption_url": {
            "examples": [
              "https://files.heygen.ai/captions/abc123.srt"
            ],
            "title": "Caption Url",
            "type": "string"
          }
        },
        "required": [
          "caption_url"
        ],
        "title": "VideoTranslateCaptionGetResponse",
        "type": "object"
      },
      "CreateVideoTranslationRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/video-translations.",
        "properties": {
          "video": {
            "description": "Source video \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Video"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title for the translation job",
            "title": "Title"
          },
          "output_languages": {
            "description": "Target language names (e.g. 'Chinese (Cantonese, Traditional)', 'Spanish (Spain)', 'English'). Use GET /v3/video-translations/languages for valid values. Use one for single translation, multiple for batch.",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "title": "Output Languages",
            "type": "array",
            "x-mcp-schema": {
              "description": "Target language names, e.g. 'English', 'Spanish', 'Hindi'. Use a name from the available_on_current_plan field of GET /v3/video-translations/languages. Most premium dialect voices have a region in brackets (e.g. 'Hindi (India)') and aren't on the free plan, so prefer the plain name unless the user asked for a specific accent. Use one for single translation, multiple for batch."
            }
          },
          "audio": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom audio for dubbing \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "title": "Audio"
          },
          "input_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Source language name, e.g. 'English' (auto-detected if omitted)",
            "title": "Input Language",
            "x-mcp-visible": false
          },
          "translate_audio_only": {
            "default": false,
            "description": "Only translate audio, keep original video",
            "title": "Translate Audio Only",
            "type": "boolean"
          },
          "speaker_num": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of speakers (improves speaker separation)",
            "title": "Speaker Num"
          },
          "mode": {
            "$ref": "#/components/schemas/VideoTranslationMode",
            "default": "speed",
            "description": "Translation quality mode: 'speed' (faster) or 'precision' (higher quality, uses avatar inference)"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL for completion notifications",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID included in webhook payload",
            "title": "Callback Id"
          },
          "output_uploads": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/OutputUploadRequest"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload each translated video's files straight into your own storage, keyed by a language from output_languages. Give a presigned PUT URL per file, for Amazon S3, Google Cloud Storage or Azure Blob Storage; HeyGen uploads each file when that language finishes. Languages without an entry are not uploaded. Not available with audio input or in batches. Available to enabled workspaces.",
            "title": "Output Uploads",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "enable_caption": {
            "default": false,
            "deprecated": true,
            "description": "Deprecated and ignored: captions are always generated; whether to display them is a download-side choice.",
            "title": "Enable Caption",
            "type": "boolean"
          },
          "keep_the_same_format": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Preserve the source video's encoding specs (resolution, bitrate).",
            "title": "Keep The Same Format"
          },
          "enable_dynamic_duration": {
            "default": true,
            "description": "Allow dynamic duration adjustment",
            "title": "Enable Dynamic Duration",
            "type": "boolean"
          },
          "disable_music_track": {
            "default": false,
            "description": "Remove background music",
            "title": "Disable Music Track",
            "type": "boolean"
          },
          "enable_speech_enhancement": {
            "default": false,
            "description": "Enhance speech quality",
            "title": "Enable Speech Enhancement",
            "type": "boolean"
          },
          "enable_watermark": {
            "default": false,
            "description": "Add watermark to output",
            "title": "Enable Watermark",
            "type": "boolean"
          },
          "start_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Start time in seconds for partial translation",
            "title": "Start Time"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "End time in seconds for partial translation",
            "title": "End Time"
          },
          "brand_voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "deprecated": true,
            "description": "Brand glossary ID for custom term translations. Legacy field name for `brand_glossary_id` \u2014 both are accepted and resolve to the same workspace record. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Voice Id"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID for custom term translations (e.g. translate 'Reformer' as the Pilates equipment, not 'political activist'). Alias for the legacy `brand_voice_id` field. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "stock_voice_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StockVoiceConfig"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Use a preset stock voice for the translation instead of recreating the original speaker's voice. By default, Video Translation clones the original speaker so the result sounds like them; with this enabled, the translation is spoken by a natural preset voice optimized for clear pronunciation and accent in the target language (the result will not sound like the original speaker). Enterprise feature, available for selected accounts and languages by request \u2014 contact your HeyGen account team.",
            "x-mcp-visible": false
          },
          "srt": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom subtitle file \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}.",
            "title": "Srt"
          },
          "srt_role": {
            "anyOf": [
              {
                "enum": [
                  "input",
                  "output"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Which video the subtitle applies to: 'input' (source) or 'output' (translated).",
            "title": "Srt Role"
          },
          "fps_mode": {
            "anyOf": [
              {
                "enum": [
                  "vfr",
                  "cfr",
                  "passthrough"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Frame rate mode for the output video. 'vfr' = variable frame rate, 'cfr' = constant frame rate, 'passthrough' = match the source. Only takes effect when a custom 'audio' track is provided.",
            "title": "Fps Mode"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created.",
            "title": "Folder Id"
          }
        },
        "required": [
          "video",
          "output_languages"
        ],
        "title": "CreateVideoTranslationRequest",
        "type": "object"
      },
      "VideoTranslationMode": {
        "enum": [
          "speed",
          "precision"
        ],
        "title": "VideoTranslationMode",
        "type": "string"
      },
      "VideoTranslationCreateResponse": {
        "description": "Response for POST /v3/video-translations.",
        "properties": {
          "video_translation_ids": {
            "description": "Video translation IDs, one per target language",
            "items": {
              "type": "string"
            },
            "title": "Video Translation Ids",
            "type": "array"
          },
          "warnings": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Changes made to the request before it was accepted, e.g. a target language replaced by the one the plan includes",
            "title": "Warnings"
          }
        },
        "required": [
          "video_translation_ids"
        ],
        "title": "VideoTranslationCreateResponse",
        "type": "object"
      },
      "VideoTranslationDetail": {
        "description": "Detailed video translation resource.",
        "properties": {
          "id": {
            "description": "Unique video translation identifier",
            "title": "Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title of the translation job",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/VideoTranslationStatus",
            "description": "Current status of the translation"
          },
          "output_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Target language code",
            "title": "Output Language"
          },
          "input_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Detected or specified source language code",
            "title": "Input Language"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video duration in seconds",
            "title": "Duration"
          },
          "translate_audio_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether only the audio was translated, keeping the original video",
            "title": "Translate Audio Only"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the translated video. Only present when status is completed.",
            "title": "Video Url"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the translated audio. Only present when status is completed.",
            "title": "Audio Url"
          },
          "srt_caption_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the SRT caption file. Present when status is completed.",
            "title": "Srt Caption Url"
          },
          "vtt_caption_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the VTT caption file. Present when status is completed.",
            "title": "Vtt Caption Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client-provided callback ID",
            "title": "Callback Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the translation was created",
            "title": "Created At"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Only present when status is failed.",
            "title": "Failure Message"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Machine-readable failure reason. Only present when status is failed and the failure has a code.",
            "examples": [
              "hf_usage_exhausted"
            ],
            "title": "Failure Code"
          },
          "delivery": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FileDeliveryStatus"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Upload status of each file sent to your own storage for this language with output_uploads. Present on the single-translation GET when the request sent output_uploads for this language.",
            "title": "Delivery",
            "x-cli-visible": false,
            "x-mcp-visible": false
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "VideoTranslationDetail",
        "type": "object"
      },
      "VideoTranslationStatus": {
        "enum": [
          "pending",
          "running",
          "completed",
          "failed"
        ],
        "title": "VideoTranslationStatus",
        "type": "string"
      },
      "UpdateVideoTranslationRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/video-translations/{id}.",
        "properties": {
          "title": {
            "description": "New title for the video translation",
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "title": "UpdateVideoTranslationRequest",
        "type": "object"
      },
      "VideoTranslationDeleteResponse": {
        "description": "Response for DELETE /v3/video-translations/{id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted video translation",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "VideoTranslationDeleteResponse",
        "type": "object"
      },
      "VideoTranslationLanguagesResponse": {
        "description": "Response for GET /v3/video-translations/languages.",
        "properties": {
          "languages": {
            "description": "List of supported target language names",
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "available_on_current_plan": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Target language names the caller's current plan can use. Names with a region in brackets (e.g. 'Hindi (India)') are premium dialect voices and appear here only on plans that include them. Null if the plan could not be resolved.",
            "title": "Available On Current Plan"
          }
        },
        "required": [
          "languages"
        ],
        "title": "VideoTranslationLanguagesResponse",
        "type": "object"
      },
      "CreateProofreadRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/video-translations/proofreads.",
        "properties": {
          "video": {
            "description": "Source video \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Video"
          },
          "output_languages": {
            "description": "Target language codes. Use one for single proofread, multiple for batch.",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "title": "Output Languages",
            "type": "array"
          },
          "title": {
            "description": "Title for the proofread job",
            "title": "Title",
            "type": "string"
          },
          "brand_voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "deprecated": true,
            "description": "Brand glossary ID for custom term translations. Legacy field name for `brand_glossary_id` \u2014 both are accepted and resolve to the same workspace record. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Voice Id"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID for custom term translations (e.g. translate 'Reformer' as 'Pilates equipment', not 'political activist'). Alias for the legacy `brand_voice_id` field. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "speaker_num": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of speakers (improves speaker separation)",
            "title": "Speaker Num"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created.",
            "title": "Folder Id"
          },
          "enable_video_stretching": {
            "default": false,
            "description": "Allow dynamic duration adjustment",
            "title": "Enable Video Stretching",
            "type": "boolean"
          },
          "disable_music_track": {
            "default": false,
            "description": "Remove background music",
            "title": "Disable Music Track",
            "type": "boolean"
          },
          "enable_speech_enhancement": {
            "default": false,
            "description": "Enhance speech quality",
            "title": "Enable Speech Enhancement",
            "type": "boolean"
          },
          "srt": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Initial SRT file \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "title": "Srt"
          },
          "mode": {
            "$ref": "#/components/schemas/VideoTranslationMode",
            "default": "speed",
            "description": "Translation quality mode: 'speed' (faster) or 'precision' (higher quality)"
          },
          "keep_the_same_format": {
            "default": false,
            "description": "Preserve the source video's encoding specs (resolution, bitrate)",
            "title": "Keep The Same Format",
            "type": "boolean"
          }
        },
        "required": [
          "video",
          "output_languages",
          "title"
        ],
        "title": "CreateProofreadRequest",
        "type": "object"
      },
      "CreateProofreadResponse": {
        "description": "Response for POST /v3/video-translations/proofreads.",
        "properties": {
          "proofread_ids": {
            "description": "Proofread IDs, one per target language",
            "items": {
              "type": "string"
            },
            "title": "Proofread Ids",
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ProofreadStatus",
            "description": "Initial status (always processing)"
          }
        },
        "required": [
          "proofread_ids",
          "status"
        ],
        "title": "CreateProofreadResponse",
        "type": "object"
      },
      "ProofreadStatus": {
        "enum": [
          "processing",
          "completed",
          "failed"
        ],
        "title": "ProofreadStatus",
        "type": "string"
      },
      "ProofreadDetail": {
        "description": "Detailed proofread resource.",
        "properties": {
          "id": {
            "description": "Unique proofread identifier",
            "title": "Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title of the proofread job",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/ProofreadStatus",
            "description": "Current status"
          },
          "output_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Target language code",
            "title": "Output Language"
          },
          "input_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Detected or specified source language code",
            "title": "Input Language"
          },
          "submitted_for_review": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the proofread has been submitted for review",
            "title": "Submitted For Review"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the proofread was created",
            "title": "Created At"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Only present when status is failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "ProofreadDetail",
        "type": "object"
      },
      "ProofreadDeleteResponse": {
        "description": "Response for DELETE /v3/video-translations/proofreads/{id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted proofread session",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "ProofreadDeleteResponse",
        "type": "object"
      },
      "DownloadSRTResponse": {
        "description": "Response for GET /v3/video-translations/proofreads/{id}/srt.",
        "properties": {
          "srt_url": {
            "description": "Presigned URL to download the edited SRT file",
            "title": "Srt Url",
            "type": "string"
          },
          "original_srt_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned URL for the original SRT file (if provided at creation)",
            "title": "Original Srt Url"
          }
        },
        "required": [
          "srt_url"
        ],
        "title": "DownloadSRTResponse",
        "type": "object"
      },
      "UploadSRTRequest": {
        "additionalProperties": false,
        "description": "Request body for PUT /v3/video-translations/proofreads/{id}/srt.",
        "properties": {
          "srt": {
            "description": "SRT file \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Srt"
          }
        },
        "required": [
          "srt"
        ],
        "title": "UploadSRTRequest",
        "type": "object"
      },
      "GenerateVideoRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/video-translations/proofreads/{id}/generate.",
        "properties": {
          "captions": {
            "default": false,
            "deprecated": true,
            "description": "Deprecated and ignored: captions are always generated; whether to display them is a download-side choice.",
            "title": "Captions",
            "type": "boolean"
          },
          "translate_audio_only": {
            "default": false,
            "description": "Only translate audio, keep original video",
            "title": "Translate Audio Only",
            "type": "boolean"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID included in webhook payload",
            "title": "Callback Id"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL for completion notifications",
            "title": "Callback Url"
          }
        },
        "title": "GenerateVideoRequest",
        "type": "object"
      },
      "GenerateVideoResponse": {
        "description": "Response for POST /v3/video-translations/proofreads/{id}/generate.",
        "properties": {
          "video_translation_id": {
            "description": "Video translation ID \u2014 use GET /v3/video-translations/{id} to poll status",
            "title": "Video Translation Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ProofreadStatus",
            "description": "Initial status (always processing)"
          }
        },
        "required": [
          "video_translation_id",
          "status"
        ],
        "title": "GenerateVideoResponse",
        "type": "object"
      },
      "CreateLipsyncRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/lipsyncs.",
        "properties": {
          "video": {
            "description": "Source video \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Video"
          },
          "audio": {
            "description": "Replacement audio \u2014 provide as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Audio"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title for the lipsync job",
            "title": "Title"
          },
          "mode": {
            "$ref": "#/components/schemas/VideoTranslationMode",
            "default": "speed",
            "description": "Quality mode: 'speed' (faster) or 'precision' (higher quality, uses avatar inference)"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL for completion notifications",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID included in webhook payload",
            "title": "Callback Id"
          },
          "enable_caption": {
            "default": false,
            "deprecated": true,
            "description": "Deprecated and ignored: captions are always generated; whether to display them is a download-side choice.",
            "title": "Enable Caption",
            "type": "boolean"
          },
          "keep_the_same_format": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Preserve the source video's encoding specs (resolution, bitrate).",
            "title": "Keep The Same Format"
          },
          "enable_dynamic_duration": {
            "default": true,
            "description": "Allow dynamic duration adjustment",
            "title": "Enable Dynamic Duration",
            "type": "boolean"
          },
          "disable_music_track": {
            "default": false,
            "description": "Remove background music",
            "title": "Disable Music Track",
            "type": "boolean"
          },
          "enable_speech_enhancement": {
            "default": false,
            "description": "Enhance speech quality",
            "title": "Enable Speech Enhancement",
            "type": "boolean"
          },
          "enable_watermark": {
            "default": false,
            "description": "Add watermark to output",
            "title": "Enable Watermark",
            "type": "boolean"
          },
          "start_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Start time in seconds for partial lipsync",
            "title": "Start Time"
          },
          "end_time": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "End time in seconds for partial lipsync",
            "title": "End Time"
          },
          "fps_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Frame rate mode: 'vfr', 'cfr', or 'passthrough'.",
            "title": "Fps Mode"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID in the caller's workspace, for example one returned by POST /v3/folders. Omit, pass null, or pass an empty string to place the result at the workspace root. The id must name a folder that is not in the trash and that the caller can write to. Assets library folders are accepted, but the HeyGen app files only assets in them, so a result placed there may not appear in the Assets library view. An unknown id, a folder in another workspace, a project of another kind such as a brand kit, or a trashed folder is rejected with 404 before anything is created.",
            "title": "Folder Id"
          }
        },
        "required": [
          "video",
          "audio"
        ],
        "title": "CreateLipsyncRequest",
        "type": "object"
      },
      "LipsyncCreateResponse": {
        "description": "Response for POST /v3/lipsyncs.",
        "properties": {
          "lipsync_id": {
            "description": "Lipsync ID \u2014 use GET /v3/lipsyncs/{id} to poll status",
            "title": "Lipsync Id",
            "type": "string"
          }
        },
        "required": [
          "lipsync_id"
        ],
        "title": "LipsyncCreateResponse",
        "type": "object"
      },
      "LipsyncDetail": {
        "description": "Detailed lipsync resource.",
        "properties": {
          "id": {
            "description": "Unique lipsync identifier",
            "title": "Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title of the lipsync job",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/VideoTranslationStatus",
            "description": "Current status"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video duration in seconds",
            "title": "Duration"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the output video. Only present when status is completed.",
            "title": "Video Url"
          },
          "caption_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the SRT caption file. Only present when completed.",
            "title": "Caption Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client-provided callback ID",
            "title": "Callback Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the lipsync was created",
            "title": "Created At"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Only present when status is failed.",
            "title": "Failure Message"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Machine-readable failure reason. Only present when status is failed and the failure has a code.",
            "examples": [
              "hf_usage_exhausted"
            ],
            "title": "Failure Code"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "LipsyncDetail",
        "type": "object"
      },
      "UpdateLipsyncRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/lipsyncs/{id}.",
        "properties": {
          "title": {
            "description": "New title for the lipsync",
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "title": "UpdateLipsyncRequest",
        "type": "object"
      },
      "LipsyncDeleteResponse": {
        "description": "Response for DELETE /v3/lipsyncs/{id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted lipsync",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "LipsyncDeleteResponse",
        "type": "object"
      },
      "CreateHyperframesRenderRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/hyperframes/renders.",
        "properties": {
          "project": {
            "description": "HyperFrames composition .zip \u2014 provide as {type: 'url', url: '...'}, {type: 'asset_id', asset_id: '...'} (pre-uploaded via POST /v3/assets), or {type: 'base64', media_type: 'application/zip', data: '...'}. Zip must contain index.html at the root (or the path you set in `composition`).",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Project"
          },
          "fps": {
            "anyOf": [
              {
                "maximum": 240,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": 30,
            "description": "Output frames per second. Defaults to 30 if not provided.",
            "title": "Fps"
          },
          "quality": {
            "default": "standard",
            "description": "Render quality preset; higher quality is slower.",
            "enum": [
              "draft",
              "standard",
              "high"
            ],
            "title": "Quality",
            "type": "string"
          },
          "format": {
            "default": "mp4",
            "description": "Output container/codec.",
            "enum": [
              "mp4",
              "webm",
              "mov"
            ],
            "title": "Format",
            "type": "string"
          },
          "crf": {
            "anyOf": [
              {
                "maximum": 63,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Overrides the quality preset's constant rate factor (lower is higher quality and a larger file). Integer 0-51 for mp4, 0-63 for webm; ignored for mov. Omit to use the preset's CRF.",
            "title": "Crf"
          },
          "max_bitrate": {
            "anyOf": [
              {
                "pattern": "^[0-9]+(\\.[0-9]+)?[kKmMgG]?$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caps the video bitrate, in bits per second with an optional k, M or G suffix (e.g. '40M' or '12000k'). Bounds the file size of high-quality renders. mp4 only. Omit for no cap.",
            "title": "Max Bitrate"
          },
          "buffer_size": {
            "anyOf": [
              {
                "pattern": "^[0-9]+(\\.[0-9]+)?[kKmMgG]?$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Rate-control buffer for `max_bitrate`, same form (e.g. '80M'). A larger buffer lets short peaks exceed the cap. Requires `max_bitrate`; defaults to twice `max_bitrate`.",
            "title": "Buffer Size"
          },
          "resolution": {
            "$ref": "#/components/schemas/HyperframesResolution",
            "default": "1080p",
            "description": "Output resolution tier. Defaults to '1080p'. Pass '4k' for 4K renders."
          },
          "aspect_ratio": {
            "$ref": "#/components/schemas/HyperframesAspectRatio",
            "default": "16:9",
            "description": "Output aspect ratio. Defaults to '16:9' (landscape). Pass '9:16' for portrait or '1:1' for square."
          },
          "composition": {
            "anyOf": [
              {
                "maxLength": 512,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Entry HTML file relative to the project root (e.g. compositions/intro.html). Defaults to index.html when omitted.",
            "title": "Composition"
          },
          "variables": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional overrides for the composition's data-composition-variables. Use this to parameterise a single composition across multiple renders.",
            "title": "Variables"
          },
          "title": {
            "anyOf": [
              {
                "maxLength": 500,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Free-text label for the render; echoed back in detail responses.",
            "title": "Title"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque client tracking ID, echoed back in webhook payloads.",
            "title": "Callback Id"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Per-request HTTPS webhook URL the render fires when it terminates.",
            "title": "Callback Url"
          },
          "reverse_session_id": {
            "anyOf": [
              {
                "pattern": "^rvs_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The `rvs_` session id from POST /v1/hyperframes/reverse/start when this render belongs to a reverse-any-video run. Recorded with the render for product analytics; it changes nothing about how the render runs.",
            "title": "Reverse Session Id"
          }
        },
        "required": [
          "project"
        ],
        "title": "CreateHyperframesRenderRequest",
        "type": "object"
      },
      "HyperframesAspectRatio": {
        "description": "Output aspect ratio.\n\nSupported ratios are ``16:9`` (landscape), ``9:16`` (portrait), and\n``1:1`` (square).",
        "enum": [
          "16:9",
          "9:16",
          "1:1"
        ],
        "title": "HyperframesAspectRatio",
        "type": "string"
      },
      "HyperframesResolution": {
        "description": "Output resolution tier.",
        "enum": [
          "1080p",
          "4k"
        ],
        "title": "HyperframesResolution",
        "type": "string"
      },
      "CreateHyperframesRenderResponse": {
        "description": "Response for POST /v3/hyperframes/renders.",
        "properties": {
          "render_id": {
            "description": "HyperFrames render identifier \u2014 poll GET /v3/hyperframes/renders/{render_id} for status.",
            "title": "Render Id",
            "type": "string"
          }
        },
        "required": [
          "render_id"
        ],
        "title": "CreateHyperframesRenderResponse",
        "type": "object"
      },
      "HyperframesRenderDetail": {
        "description": "Detailed HyperFrames render resource.",
        "properties": {
          "render_id": {
            "description": "Unique render identifier.",
            "title": "Render Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/HyperframesRenderStatus",
            "description": "Current lifecycle state."
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-supplied free-text label.",
            "title": "Title"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-supplied client tracking ID.",
            "title": "Callback Id"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the rendered video. Present only when status is 'completed'.",
            "title": "Video Url"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned download URL for the auto-generated thumbnail.",
            "title": "Thumbnail Url"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video duration in seconds; null until completed.",
            "title": "Duration"
          },
          "fps": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Frames per second the render was created at.",
            "title": "Fps"
          },
          "quality": {
            "anyOf": [
              {
                "enum": [
                  "draft",
                  "standard",
                  "high"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Render quality preset.",
            "title": "Quality"
          },
          "format": {
            "description": "Output container/codec.",
            "enum": [
              "mp4",
              "webm",
              "mov"
            ],
            "title": "Format",
            "type": "string"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HyperframesResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Resolution tier, if one was set."
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HyperframesAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Aspect ratio, if one was set."
          },
          "composition": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Composition entry file path.",
            "title": "Composition"
          },
          "reference_background": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HyperframesReferenceBackground"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The renderer's computed background of the composition root at its first frame: kind 'solid' with an opaque `rgb` ([r, g, b], 0-255), 'none' when the composition declares no background paint, 'unsupported_non_solid' for a gradient or image, or 'unknown' when the renderer could not establish one. Absent for renders that did not report it."
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the render was created.",
            "title": "Created At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp when the render terminated. Null until status is 'completed' or 'failed'.",
            "title": "Completed At"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Present only when status is 'failed'.",
            "title": "Failure Message"
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why billing refused a finished render: 'hf_usage_exhausted', 'hf_subscription_required' or 'api_key_required', for which nothing was charged and the render can be sent again on a HeyGen API key; or 'usage_limit_reached', when a usage limit a workspace admin set (the API key's credit limit or the member's usage limit) was reached; sending the render again does not help until the limit is raised or resets, and `failure_message` is the limit's own message; or 'chunk_frames_exceed_timeout_at_max_chunks', when the render is too long to export at its size (even split into the most cloud parts allowed, it would still take longer than the time limit): sending it again fails the same way until it is shortened or rendered at a lower resolution or frame rate, and `failure_message` says so; or 'output_resolution_unfit', when the composition's size cannot render at the requested resolution (it is not a whole-number multiple of a frame of that resolution in its shape): sending it again fails the same way until the composition is resized or rendered at 1080p, and `failure_message` says why; or 'PLAN_TOO_LARGE', when the render's working files exceed the size limit: shorten the composition, lower the frame rate or split the render into smaller segments, and `failure_message` gives the sizes. Present only when status is 'failed' for one of these reasons.",
            "title": "Failure Code"
          }
        },
        "required": [
          "render_id",
          "status",
          "format"
        ],
        "title": "HyperframesRenderDetail",
        "type": "object"
      },
      "HyperframesReferenceBackground": {
        "additionalProperties": false,
        "description": "The renderer's computed background of the composition root; `rgb` is present only for kind `solid`.",
        "properties": {
          "kind": {
            "enum": [
              "solid",
              "none",
              "unsupported_non_solid",
              "unknown"
            ],
            "title": "Kind",
            "type": "string"
          },
          "rgb": {
            "anyOf": [
              {
                "maxItems": 3,
                "minItems": 3,
                "prefixItems": [
                  {
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  }
                ],
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Rgb"
          }
        },
        "required": [
          "kind"
        ],
        "title": "HyperframesReferenceBackground",
        "type": "object"
      },
      "HyperframesRenderStatus": {
        "description": "Lifecycle status of a HyperFrames render.",
        "enum": [
          "queued",
          "rendering",
          "completed",
          "failed"
        ],
        "title": "HyperframesRenderStatus",
        "type": "string"
      },
      "DeleteHyperframesRenderResponse": {
        "description": "Response for DELETE /v3/hyperframes/renders/{render_id}.",
        "properties": {
          "render_id": {
            "description": "ID of the deleted render.",
            "title": "Render Id",
            "type": "string"
          }
        },
        "required": [
          "render_id"
        ],
        "title": "DeleteHyperframesRenderResponse",
        "type": "object"
      },
      "CustomAgentListResponse": {
        "description": "200 response body for GET /v3/custom-agents.",
        "properties": {
          "agents": {
            "items": {
              "$ref": "#/components/schemas/CustomAgentDetail"
            },
            "title": "Agents",
            "type": "array"
          }
        },
        "required": [
          "agents"
        ],
        "title": "CustomAgentListResponse",
        "type": "object"
      },
      "CustomAgentDetail": {
        "description": "One registered custom agent.",
        "properties": {
          "id": {
            "description": "Agent id used in the URL path (e.g. `chiron`).",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Human-readable name.",
            "title": "Name",
            "type": "string"
          },
          "description": {
            "description": "What the agent produces.",
            "title": "Description",
            "type": "string"
          },
          "workflow_type": {
            "description": "Internal Temporal workflow type executed for this agent.",
            "title": "Workflow Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "workflow_type"
        ],
        "title": "CustomAgentDetail",
        "type": "object"
      },
      "CustomAgentVideoCreateRequest": {
        "description": "Body for POST /v3/custom-agents/{agent_id}/videos.\n\nScreenshots, the screen recording, and Orchard's product heroes are referenced by asset id: upload\nvia `POST /v3/assets/direct-uploads`, then pass the `asset_id`. A presenter clip is referenced by\nthe id of a completed video. The remaining media (still, wallpaper, presenter background) are passed\nas URLs. This endpoint does NOT accept multipart file uploads.",
        "properties": {
          "topic": {
            "description": "What the video should be about.",
            "maxLength": 512,
            "minLength": 1,
            "title": "Topic",
            "type": "string"
          },
          "lane": {
            "anyOf": [
              {
                "enum": [
                  "mac",
                  "iphone",
                  "watch"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Device lane. Agent infers from the topic when omitted.",
            "title": "Lane"
          },
          "wallpaper": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "`neo-green` / `neo-purple` / `neo-pink` / `wwdc26`, or a user-supplied HTTP(S) URL.",
            "title": "Wallpaper"
          },
          "avatar_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen avatar id for the on-camera presenter.",
            "title": "Avatar Id"
          },
          "avatar_still_url": {
            "anyOf": [
              {
                "maxLength": 1024,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of a still image (from `/v3/assets/direct-uploads`) for talking-photo inference.",
            "title": "Avatar Still Url"
          },
          "voice_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice id for narration (HeyGen or ElevenLabs).",
            "title": "Voice Id"
          },
          "watch_model": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Watch lane only: `<size> <finish> + <band>` selector.",
            "title": "Watch Model"
          },
          "script": {
            "anyOf": [
              {
                "maxLength": 4096,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Verbatim voice-over script; agent generates one when omitted.",
            "title": "Script"
          },
          "screen_recording_asset_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Asset id of a screen-recording video in your space, from `POST /v3/assets/direct-uploads`.",
            "title": "Screen Recording Asset Id"
          },
          "screenshot_asset_ids": {
            "anyOf": [
              {
                "items": {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 8,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Ordered list of image asset ids in your space, from `POST /v3/assets/direct-uploads`. The agent views each in list order via `view_image` and authors one beat per screenshot in that order. Cap 8. When set, takes priority over `screen_recording_asset_id` and the curated `capture_screen` reference library for beats it covers. For Orchard these are the product hero plates, one per numbered update in list order.",
            "title": "Screenshot Asset Ids"
          },
          "presenter_background_url": {
            "anyOf": [
              {
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of an image to composite behind the matted avatar.",
            "title": "Presenter Background Url"
          },
          "presenter_background_video_url": {
            "anyOf": [
              {
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL of a looping video to composite behind the matted avatar.",
            "title": "Presenter Background Video Url"
          },
          "roll_video_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Id of a completed video in your space (for example one created with `POST /v3/videos`) to use as the presenter (aroll) clip. When set, the agent uses it directly and skips avatar generation.",
            "title": "Roll Video Id"
          },
          "density": {
            "anyOf": [
              {
                "enum": [
                  "simple",
                  "dense",
                  "hybrid"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Orchard density lane. `simple` = Apple's rhythm (presenter full-frame); `dense` = heroes + demos; `hybrid` = b-roll/product on the top half + presenter on the bottom half plus a corner FaceTime-style PiP tile, choreographing full -> split -> full -> back-to-split -> pip across four updates. Defaults to simple. Orchard's per-update product hero plates are supplied via the shared `screenshot_asset_ids` field.",
            "title": "Density"
          },
          "framing": {
            "anyOf": [
              {
                "enum": [
                  "showcase",
                  "split",
                  "presenter"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pomona opening framing. `showcase` = full-screen device under the lockup (the house opening); `split` = the 50/50, device in the top band and presenter in the bottom band; `presenter` = full-screen presenter. Only the OPENING framing \u2014 the film moves between all three by slide-morph. Defaults to showcase.",
            "title": "Framing"
          }
        },
        "required": [
          "topic"
        ],
        "title": "CustomAgentVideoCreateRequest",
        "type": "object"
      },
      "CustomAgentVideoCreateResponse": {
        "description": "202 response body for POST /v3/custom-agents/{agent_id}/videos.",
        "properties": {
          "video_id": {
            "description": "Opaque id; poll GET /v3/custom-agents/videos/{video_id}.",
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "default": "RUNNING",
            "description": "Initial workflow status.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "video_id"
        ],
        "title": "CustomAgentVideoCreateResponse",
        "type": "object"
      },
      "CustomAgentVideoStatusResponse": {
        "description": "200 response body for GET /v3/custom-agents/videos/{video_id}.",
        "properties": {
          "video_id": {
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "description": "RUNNING | COMPLETED | FAILED | CANCELED | TIMED_OUT | TERMINATED.",
            "title": "Status",
            "type": "string"
          },
          "output_video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned MP4 URL when status=COMPLETED.",
            "title": "Output Video Url"
          },
          "output_snapshot_s3_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Agent workspace snapshot (debug/replay).",
            "title": "Output Snapshot S3 Uri"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Error"
          }
        },
        "required": [
          "video_id",
          "status"
        ],
        "title": "CustomAgentVideoStatusResponse",
        "type": "object"
      },
      "CustomAgentVideoEditRequest": {
        "description": "Body for POST /v3/custom-agents/videos/{video_id}/edits.\n\n`video_id` (in the path) is the source video to edit; it is self-identifying, so the agent is\nresolved from its workflow type and no agent_id is needed. `user_input` is the natural-language\nedit instruction the agent applies to the source video's prior composition.",
        "properties": {
          "user_input": {
            "description": "What to change about the source video.",
            "maxLength": 4096,
            "minLength": 1,
            "title": "User Input",
            "type": "string"
          }
        },
        "required": [
          "user_input"
        ],
        "title": "CustomAgentVideoEditRequest",
        "type": "object"
      },
      "UserInfoResponse": {
        "properties": {
          "username": {
            "examples": [
              "user_abc123"
            ],
            "title": "Username",
            "type": "string"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "examples": [
              "user@example.com"
            ],
            "title": "Email"
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "examples": [
              "Jane"
            ],
            "title": "First Name"
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "examples": [
              "Doe"
            ],
            "title": "Last Name"
          },
          "billing_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              "wallet"
            ]
          },
          "wallet": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WalletInfo"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "subscription": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SubscriptionInfo"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "usage_based": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UsageBasedInfo"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "required": [
          "username",
          "email",
          "first_name",
          "last_name"
        ],
        "title": "UserInfoResponse",
        "type": "object"
      },
      "AutoReloadInfo": {
        "properties": {
          "enabled": {
            "examples": [
              true
            ],
            "title": "Enabled",
            "type": "boolean"
          },
          "threshold_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              10.0
            ],
            "title": "Threshold Usd"
          },
          "amount_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              50.0
            ],
            "title": "Amount Usd"
          }
        },
        "required": [
          "enabled"
        ],
        "title": "AutoReloadInfo",
        "type": "object"
      },
      "BillingType": {
        "description": "Discriminator for billing fields.  Exactly one of wallet / subscription /\nusage_based is populated depending on this value.\n- wallet: prepaid balance in USD (or credits for Enterprise), API key auth\n- subscription: per-pool credit balances, OAuth integration apps\n- usage_based: metered billing with optional spending cap",
        "enum": [
          "wallet",
          "subscription",
          "usage_based"
        ],
        "title": "BillingType",
        "type": "string"
      },
      "CreditPool": {
        "properties": {
          "remaining": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              500
            ],
            "title": "Remaining"
          },
          "resets_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              "2024-05-01T00:00:00Z"
            ],
            "title": "Resets At"
          }
        },
        "title": "CreditPool",
        "type": "object"
      },
      "SubscriptionCredits": {
        "properties": {
          "premium_credits": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditPool"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "add_on_credits": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditPool"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "title": "SubscriptionCredits",
        "type": "object"
      },
      "SubscriptionInfo": {
        "properties": {
          "plan": {
            "$ref": "#/components/schemas/SubscriptionTier",
            "examples": [
              "team"
            ]
          },
          "credits": {
            "$ref": "#/components/schemas/SubscriptionCredits"
          }
        },
        "required": [
          "plan",
          "credits"
        ],
        "title": "SubscriptionInfo",
        "type": "object"
      },
      "SubscriptionTier": {
        "enum": [
          "free",
          "starter",
          "creator",
          "pro",
          "team",
          "enterprise",
          "business_plus"
        ],
        "title": "SubscriptionTier",
        "type": "string"
      },
      "UsageBasedInfo": {
        "properties": {
          "spending_current_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              42.5
            ],
            "title": "Spending Current Usd"
          },
          "spending_cap_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              100.0
            ],
            "title": "Spending Cap Usd"
          },
          "included_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              4444.0
            ],
            "title": "Included Credits"
          },
          "remaining_credits": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              4426.9
            ],
            "title": "Remaining Credits"
          }
        },
        "title": "UsageBasedInfo",
        "type": "object"
      },
      "WalletCurrency": {
        "enum": [
          "usd",
          "credits"
        ],
        "title": "WalletCurrency",
        "type": "string"
      },
      "WalletInfo": {
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/WalletCurrency",
            "examples": [
              "usd"
            ]
          },
          "remaining_balance": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "examples": [
              125.5
            ],
            "title": "Remaining Balance"
          },
          "auto_reload": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoReloadInfo"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "required": [
          "currency"
        ],
        "title": "WalletInfo",
        "type": "object"
      },
      "CurrentAPIKeyResponse": {
        "properties": {
          "key_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Stable identifier for this key, matching the key_id shown in the dashboard. Null for legacy keys issued before key identifiers existed.",
            "title": "Key Id"
          },
          "key_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Human-readable name assigned to this API key.",
            "title": "Key Name"
          },
          "status": {
            "const": "active",
            "description": "Current key status. A successful response always means the key is active.",
            "title": "Status",
            "type": "string"
          },
          "scope_mode": {
            "description": "Permission mode applied to this key: full access, read-only access, or an explicit custom allowlist.",
            "enum": [
              "full",
              "read_only",
              "custom"
            ],
            "title": "Scope Mode",
            "type": "string"
          },
          "scopes": {
            "description": "Permission grants held by this key, always present and never empty. Custom keys list their explicit grants. Full-access keys report the wildcard '*:*' and read-only keys report '*:read'; both wildcards also cover permissions added to the catalog after the key was issued, which an expanded list could not express. Match these against an operation's x-heygen-required-scopes in the published OpenAPI spec to decide whether this key may call it.",
            "items": {
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          },
          "created_at": {
            "description": "UTC timestamp when this key was created.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "UTC timestamp when this key was last edited.",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "UTC expiration timestamp, or null when this key never expires.",
            "title": "Expires At"
          },
          "expires_in_seconds": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whole seconds until expiration, or null when this key never expires.",
            "title": "Expires In Seconds"
          }
        },
        "required": [
          "key_id",
          "key_name",
          "status",
          "scope_mode",
          "scopes",
          "created_at",
          "updated_at",
          "expires_at",
          "expires_in_seconds"
        ],
        "title": "CurrentAPIKeyResponse",
        "type": "object"
      },
      "RequestLogEntry": {
        "properties": {
          "request_id": {
            "description": "The call's request ID, as returned in the X-HeyGen-Request-Id header.",
            "title": "Request Id",
            "type": "string"
          },
          "created_at": {
            "description": "When the call was received, Unix seconds.",
            "title": "Created At",
            "type": "integer"
          },
          "method": {
            "description": "HTTP method. Only write calls are recorded: POST, PUT, PATCH and DELETE.",
            "title": "Method",
            "type": "string"
          },
          "endpoint": {
            "description": "The route template, never the concrete URL; UNKNOWN for an unregistered route.",
            "title": "Endpoint",
            "type": "string"
          },
          "status_code": {
            "description": "HTTP status of the response.",
            "title": "Status Code",
            "type": "integer"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The error code of a failed call.",
            "title": "Error Code"
          },
          "latency_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Time to respond, in milliseconds.",
            "title": "Latency Ms"
          },
          "auth_method": {
            "description": "How the call was authenticated.",
            "enum": [
              "api_key",
              "oauth",
              "mcp",
              "cli"
            ],
            "title": "Auth Method",
            "type": "string"
          },
          "api_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestApiKey"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The API key used; null for a call without one."
          },
          "project": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The key's project tag when the call was made.",
            "title": "Project"
          },
          "environment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The key's environment tag when the call was made.",
            "title": "Environment"
          },
          "job": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestLogJob"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job the call was charged for; null when it charged none."
          },
          "charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RequestLogCharge"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the call was charged; null when no charge is recorded."
          },
          "charge_recorded": {
            "description": "Whether charges were being recorded when the call was made. When false, a null charge means unknown, not free.",
            "title": "Charge Recorded",
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "created_at",
          "method",
          "endpoint",
          "status_code",
          "auth_method",
          "charge_recorded"
        ],
        "title": "RequestLogEntry",
        "type": "object"
      },
      "JobStatusParam": {
        "enum": [
          "pending",
          "processing",
          "completed",
          "failed"
        ],
        "title": "JobStatusParam",
        "type": "string"
      },
      "RequestApiKey": {
        "properties": {
          "id": {
            "description": "The API key ID.",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The key's name; null when its key record no longer exists.",
            "title": "Name"
          },
          "suffix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The last characters of the key.",
            "title": "Suffix"
          }
        },
        "required": [
          "id"
        ],
        "title": "RequestApiKey",
        "type": "object"
      },
      "RequestLogCharge": {
        "properties": {
          "amount": {
            "description": "Charged in the pool most was charged to, in unit.",
            "title": "Amount",
            "type": "number"
          },
          "unit": {
            "description": "\"credits\", or \"minutes\" for the plan_credit pool of a video-minutes plan.",
            "title": "Unit",
            "type": "string"
          },
          "amount_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Dollar value; set only when every charge of the pool has a list-rate or metered dollar value.",
            "title": "Amount Usd"
          },
          "refunded": {
            "description": "Whether any of the call's charges was refunded, in full or in part.",
            "title": "Refunded",
            "type": "boolean"
          },
          "other_pools": {
            "description": "Other pools the call charged; never added into amount.",
            "title": "Other Pools",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "unit",
          "refunded",
          "other_pools"
        ],
        "title": "RequestLogCharge",
        "type": "object"
      },
      "RequestLogJob": {
        "properties": {
          "id": {
            "description": "The job the call was charged for, for example a video ID.",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The job's type: video, video_translate, avatar_iv_video, ...",
            "title": "Type",
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobStatusParam"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The job's state now, not when the call was made. Null when the job's type has no status reader, the job was deleted, or the read failed. A job that finishes inside its own call (speech, images, music, transcription) reports failed, with no failure_code, once the call is refunded, even if its output was delivered."
          },
          "failure_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the job failed, in the product's own code; set only when status is failed.",
            "title": "Failure Code"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "RequestLogJob",
        "type": "object"
      },
      "UsageRow": {
        "properties": {
          "budget_group_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "group_by=api_key: the budget group; a regenerated key and the keys it replaced share one. Null for a tag grouping.",
            "title": "Budget Group Id"
          },
          "api_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UsageApiKey"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "group_by=api_key: the group's key; null when no key record is left."
          },
          "tag": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The value the row groups under, for every group_by but api_key. project and environment: the tag stamped on the charges; \"\" means an untagged key or a charge made before tags were recorded. product: the item type charged (for example hf_image), an opaque, stable identifier, not display text; label carries the display name. endpoint: the route template (/v3/videos/{video_id}), HTTP methods combined; UNKNOWN for a call whose route was not resolved. channel: the sign-in method (api_key, mcp, cli, or oauth). For endpoint and channel, \"\" means no request-log row matched within the join window, 7 days before the range start to 1 hour after its end: a refund or late charge whose request was logged earlier, or a call the request log does not record. Null for group_by=api_key.",
            "title": "Tag"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "group_by=product: the product's name. Null otherwise and for an unnamed product.",
            "title": "Label"
          },
          "day": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "bucket=day: the UTC day's start, Unix seconds. Null otherwise.",
            "title": "Day"
          },
          "hour": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "bucket=hour: the UTC hour's start, Unix seconds. Null otherwise.",
            "title": "Hour"
          },
          "recorded_since": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Per-key spend is recorded from this instant, Unix seconds; spend before it is in no row. Null when the recording start is not configured.",
            "title": "Recorded Since"
          },
          "pools": {
            "description": "Spend per credit pool and unit; a tag's plan_credit pool can appear twice when its keys pay in credits and in minutes. Entries are never added together.",
            "items": {
              "$ref": "#/components/schemas/UsagePool"
            },
            "title": "Pools",
            "type": "array"
          }
        },
        "required": [
          "pools"
        ],
        "title": "UsageRow",
        "type": "object"
      },
      "UsageApiKey": {
        "properties": {
          "id": {
            "description": "The key the budget group is shown as: its original key while live, else a live key of the group.",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The key's name.",
            "title": "Name"
          },
          "suffix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The last characters of the key.",
            "title": "Suffix"
          },
          "is_deleted": {
            "description": "Whether that key is deleted, which happens when no key of the group is live.",
            "title": "Is Deleted",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "is_deleted"
        ],
        "title": "UsageApiKey",
        "type": "object"
      },
      "UsagePool": {
        "properties": {
          "pool": {
            "description": "The credit pool: \"api\", \"plan_credit\" or \"generative_credit\".",
            "title": "Pool",
            "type": "string"
          },
          "unit": {
            "description": "The unit of charged and refunded: \"credits\", or \"minutes\" for the plan_credit pool of a video-minutes plan.",
            "title": "Unit",
            "type": "string"
          },
          "charged": {
            "description": "Amount charged, in unit.",
            "title": "Charged",
            "type": "number"
          },
          "refunded": {
            "description": "Amount refunded, in unit, counted on the day of the refund.",
            "title": "Refunded",
            "type": "number"
          },
          "charge_count": {
            "description": "Charges counted; refunds are not counted.",
            "title": "Charge Count",
            "type": "integer"
          }
        },
        "required": [
          "pool",
          "unit",
          "charged",
          "refunded",
          "charge_count"
        ],
        "title": "UsagePool",
        "type": "object"
      },
      "CreateWorkflowExecutionRequest": {
        "additionalProperties": false,
        "description": "Request body for single-workflow execution via POST /v1/workflows/executions.",
        "properties": {
          "workflow_type": {
            "description": "The workflow type to execute (e.g., 'GenerateImageNode', 'GenerateVideoNode')",
            "title": "Workflow Type",
            "type": "string"
          },
          "input": {
            "additionalProperties": true,
            "description": "Workflow-specific input matching the workflow's input schema",
            "title": "Input",
            "type": "object"
          }
        },
        "required": [
          "workflow_type",
          "input"
        ],
        "title": "CreateWorkflowExecutionRequest",
        "type": "object"
      },
      "WorkflowExecutionResponse": {
        "description": "Response after submitting a workflow execution (POST /v1/workflows/executions).",
        "properties": {
          "execution_id": {
            "description": "The execution ID to poll for results",
            "examples": [
              "exec_abc123def456"
            ],
            "title": "Execution Id",
            "type": "string"
          },
          "status": {
            "default": "submitted",
            "description": "Initial status of the submission",
            "examples": [
              "submitted"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "execution_id"
        ],
        "title": "WorkflowExecutionResponse",
        "type": "object"
      },
      "CreateGraphExecutionRequest": {
        "additionalProperties": false,
        "description": "Request body for multi-workflow graph execution via POST /v1/workflows/graph-executions.",
        "properties": {
          "workflows": {
            "description": "Workflows to execute as a DAG",
            "items": {
              "$ref": "#/components/schemas/WorkflowRequestEntry"
            },
            "maxItems": 20,
            "minItems": 1,
            "title": "Workflows",
            "type": "array"
          }
        },
        "required": [
          "workflows"
        ],
        "title": "CreateGraphExecutionRequest",
        "type": "object"
      },
      "WorkflowRequestEntry": {
        "additionalProperties": false,
        "description": "A single workflow within a multi-workflow graph submission.",
        "properties": {
          "type": {
            "description": "The workflow type (e.g., 'TTSNode', 'TrimVideoNode')",
            "title": "Type",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier for this workflow within the graph",
            "title": "Id",
            "type": "string"
          },
          "parent": {
            "description": "IDs of parent workflows this depends on",
            "items": {
              "type": "string"
            },
            "title": "Parent",
            "type": "array"
          },
          "input": {
            "additionalProperties": true,
            "description": "Workflow-specific input. Use NodeRef objects to reference parent outputs.",
            "title": "Input",
            "type": "object"
          }
        },
        "required": [
          "type",
          "id",
          "input"
        ],
        "title": "WorkflowRequestEntry",
        "type": "object"
      },
      "WorkflowExecutionDetailResponse": {
        "description": "Response for polling a workflow execution (GET /v1/workflows/executions/<execution_id>).",
        "properties": {
          "execution_id": {
            "description": "The execution ID",
            "examples": [
              "exec_abc123def456"
            ],
            "title": "Execution Id",
            "type": "string"
          },
          "status": {
            "description": "Execution status: submitted | running | completed | failed | not_found",
            "examples": [
              "completed"
            ],
            "title": "Status",
            "type": "string"
          },
          "output": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Workflow output when completed (single-workflow executions)",
            "examples": [
              {
                "url": "https://files.heygen.ai/output.mp4"
              }
            ],
            "title": "Output"
          },
          "outputs": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "All workflow outputs keyed by workflow ID (multi-workflow graph executions)",
            "examples": [
              {
                "node_1": {
                  "url": "https://files.heygen.ai/output.mp4"
                }
              }
            ],
            "title": "Outputs"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowExecutionError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error details when failed"
          }
        },
        "required": [
          "execution_id",
          "status"
        ],
        "title": "WorkflowExecutionDetailResponse",
        "type": "object"
      },
      "WorkflowExecutionError": {
        "description": "Structured error detail for a workflow execution.",
        "properties": {
          "code": {
            "description": "Machine-readable error code",
            "examples": [
              "workflow_timeout"
            ],
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Human-readable error message",
            "examples": [
              "Workflow execution timed out after 300s"
            ],
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "WorkflowExecutionError",
        "type": "object"
      },
      "WorkflowCatalogEntry": {
        "description": "Schema information for a single exposed workflow.",
        "properties": {
          "workflow_type": {
            "description": "The workflow type identifier",
            "examples": [
              "GenerateVideoNode"
            ],
            "title": "Workflow Type",
            "type": "string"
          },
          "name": {
            "description": "Human-readable name",
            "examples": [
              "Generate Video"
            ],
            "title": "Name",
            "type": "string"
          },
          "description": {
            "description": "What this workflow does",
            "examples": [
              "Generate a video from text and avatar"
            ],
            "title": "Description",
            "type": "string"
          },
          "category": {
            "description": "Workflow category: content_ai, media_generation, utility",
            "examples": [
              "content_ai"
            ],
            "title": "Category",
            "type": "string"
          },
          "input_schema": {
            "additionalProperties": true,
            "description": "JSON Schema for the workflow's input",
            "examples": [
              {
                "properties": {
                  "text": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ],
            "title": "Input Schema",
            "type": "object"
          },
          "output_schema": {
            "additionalProperties": true,
            "description": "JSON Schema for the workflow's output",
            "examples": [
              {
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            ],
            "title": "Output Schema",
            "type": "object"
          }
        },
        "required": [
          "workflow_type",
          "name",
          "description",
          "category",
          "input_schema",
          "output_schema"
        ],
        "title": "WorkflowCatalogEntry",
        "type": "object"
      },
      "UpdateAvatarGroupRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/avatars/{group_id}.",
        "properties": {
          "default_voice_id": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID to set as the avatar's default voice, replacing the current one. The voice is also linked to the avatar group if it was not already. Accepts any voice available to your workspace, including imported voice clones. Only supported for avatars you own.",
            "examples": [
              "1bd001e7e50f421d891986aad5c8bbd2"
            ],
            "title": "Default Voice Id"
          }
        },
        "title": "UpdateAvatarGroupRequest",
        "type": "object"
      },
      "CreateAvatarConsentRequest": {
        "description": "Request body for POST /v3/avatars/{group_id}/consent.",
        "properties": {
          "reroute_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Callback URL where the user is redirected after completing consent. Defaults to HeyGen's consent completion page.",
            "title": "Reroute Url"
          },
          "consent_text": {
            "anyOf": [
              {
                "maxLength": 1000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom consent text rendered on the consent page in place of the default HeyGen text. Available as a premium option for select Enterprise customers \u2014 e.g. to display co-branded language like \"I, (Name), hereby allow HeyGen and {Company} to use footage of me...\". Plain text only; rendered as text (not HTML). The characters `<` and `>` are rejected to prevent stored-HTML injection. To request access, please contact our support team.",
            "title": "Consent Text",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "consent_video": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pre-recorded consent video to submit directly instead of visiting the browser consent page \u2014 provide as {\"type\": \"url\", \"url\": \"https://...\"} or {\"type\": \"asset_id\", \"asset_id\": \"...\"}. When supplied, no consent URL is returned and the video is submitted immediately for review; reroute_url and consent_text do not apply and cannot be combined with this field. Available only to enterprise API customers \u2014 contact support to request access.",
            "title": "Consent Video",
            "x-cli-visible": false,
            "x-mcp-visible": false
          }
        },
        "title": "CreateAvatarConsentRequest",
        "type": "object"
      },
      "CreateAvatarConsentResponse": {
        "description": "Response body for POST /v3/avatars/{group_id}/consent.",
        "properties": {
          "avatar_group": {
            "$ref": "#/components/schemas/AvatarGroupItem",
            "description": "The avatar group associated with this consent."
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the consent page. The link expires 24 hours after creation and is valid for one successful consent submission. A recording submitted after expiry fails and the group stays in pending consent status, and an expired link cannot be revived, so create a new consent link if the subject has not recorded within 24 hours. Omitted when consent_video was submitted directly.",
            "title": "Url"
          }
        },
        "required": [
          "avatar_group"
        ],
        "title": "CreateAvatarConsentResponse",
        "type": "object"
      },
      "AvatarGroupDeleteResponse": {
        "description": "Response for DELETE /v3/avatars/{group_id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted avatar group.",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "AvatarGroupDeleteResponse",
        "type": "object"
      },
      "CreateAvatarLooksRequestBody": {
        "description": "Request body for POST /v3/avatars/looks.",
        "discriminator": {
          "mapping": {
            "look_pack": "#/components/schemas/CreateLookPackLooksRequest",
            "template": "#/components/schemas/CreateTemplateLooksRequest"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/CreateLookPackLooksRequest"
          },
          {
            "$ref": "#/components/schemas/CreateTemplateLooksRequest"
          }
        ],
        "title": "CreateAvatarLooksRequestBody"
      },
      "CreateLookPackLooksRequest": {
        "additionalProperties": false,
        "description": "Generate a Look Pack's looks into the avatar an existing look belongs to.",
        "properties": {
          "type": {
            "const": "look_pack",
            "description": "Generation method. 'look_pack' applies a Look Pack template.",
            "title": "Type",
            "type": "string"
          },
          "reference_look_id": {
            "description": "An existing avatar look used as the identity reference. The new looks are added to its avatar.",
            "maxLength": 128,
            "minLength": 1,
            "title": "Reference Look Id",
            "type": "string"
          },
          "template_id": {
            "description": "The Look Pack template to apply: a public template, or an enterprise custom pack assigned to your workspace.",
            "maxLength": 128,
            "minLength": 1,
            "title": "Template Id",
            "type": "string"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LookPackAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio, '16:9' by default. Generation is always 16:9; '9:16' center-crops the delivered frames to portrait as the final step."
          }
        },
        "required": [
          "type",
          "reference_look_id",
          "template_id"
        ],
        "title": "CreateLookPackLooksRequest",
        "type": "object"
      },
      "CreateTemplateLooksRequest": {
        "additionalProperties": false,
        "description": "Restyle an existing avatar look into a single look template; the results are added to its avatar.",
        "properties": {
          "type": {
            "const": "template",
            "description": "Generation method. 'template' restyles the reference look into a single look template, producing two looks in the template's aspect ratio.",
            "title": "Type",
            "type": "string"
          },
          "reference_look_id": {
            "description": "An existing avatar look used as the identity reference. The new looks are added to its avatar.",
            "maxLength": 128,
            "minLength": 1,
            "title": "Reference Look Id",
            "type": "string"
          },
          "template_id": {
            "description": "The single look template to apply: a public template, or an enterprise custom template assigned to your workspace. A Look Pack is applied with type 'look_pack' instead.",
            "maxLength": 128,
            "minLength": 1,
            "title": "Template Id",
            "type": "string"
          }
        },
        "required": [
          "type",
          "reference_look_id",
          "template_id"
        ],
        "title": "CreateTemplateLooksRequest",
        "type": "object"
      },
      "LookPackAspectRatio": {
        "enum": [
          "16:9",
          "9:16"
        ],
        "title": "LookPackAspectRatio",
        "type": "string"
      },
      "CreateAvatarLooksResponse": {
        "description": "Response for POST /v3/avatars/looks.",
        "properties": {
          "group_id": {
            "description": "The avatar group the looks were added to. Pass it as the group_id filter of GET /v3/avatars/looks to list them all.",
            "title": "Group Id",
            "type": "string"
          },
          "looks": {
            "description": "The new looks, one per generated image, in output order.",
            "items": {
              "$ref": "#/components/schemas/CreatedLookRef"
            },
            "title": "Looks",
            "type": "array"
          }
        },
        "required": [
          "group_id",
          "looks"
        ],
        "title": "CreateAvatarLooksResponse",
        "type": "object"
      },
      "CreatedLookRef": {
        "properties": {
          "id": {
            "description": "ID of a new look. Poll GET /v3/avatars/looks/{id}: its status stays 'processing' until it is either 'completed' (preview available, and the id is usable as avatar_id for POST /v3/videos) or 'failed' (see its error).",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "CreatedLookRef",
        "type": "object"
      },
      "LookTemplateItem": {
        "description": "One template the caller may pass as ``template_id`` to POST /v3/avatars/looks.",
        "properties": {
          "id": {
            "description": "Template identifier. Pass it as template_id to POST /v3/avatars/looks, with the type this item reports.",
            "examples": [
              "5a8e6be843ee4321a014946bf62aa322"
            ],
            "title": "Id",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/LookTemplateType",
            "description": "The type to send on POST /v3/avatars/looks to apply this template.",
            "examples": [
              "look_pack"
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name of the template.",
            "examples": [
              "Modern Corporate"
            ],
            "title": "Name"
          },
          "gender": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LookTemplateGender"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Gender the template's looks are built for. Null when the template suits any avatar.",
            "examples": [
              "female"
            ]
          },
          "preview_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Cover image for the template, showing what the generated looks resemble.",
            "examples": [
              "https://resource2.heygen.ai/avatar_remix_template/modern_corporate_female/profile.png"
            ],
            "title": "Preview Image Url"
          },
          "looks_count": {
            "description": "How many looks applying this template generates. A Look Pack's size varies by pack; a single look template generates two.",
            "examples": [
              5
            ],
            "title": "Looks Count",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "type",
          "looks_count"
        ],
        "title": "LookTemplateItem",
        "type": "object"
      },
      "LookTemplateGender": {
        "description": "Gender a template's curated looks are built for.",
        "enum": [
          "male",
          "female"
        ],
        "title": "LookTemplateGender",
        "type": "string"
      },
      "LookTemplateType": {
        "description": "What a template is, named by the ``type`` that applies it on POST /v3/avatars/looks.\n\nDeliberately NOT the ``avatar_remix_templates.template_type`` wire values ('pack' / 'single'):\nthe whole point of the listing is that the value you read is the value you send back.",
        "enum": [
          "look_pack",
          "template"
        ],
        "title": "LookTemplateType",
        "type": "string"
      },
      "UpdateAvatarLookRequest": {
        "description": "Request body for PATCH /v3/avatars/looks/<look_id>.",
        "properties": {
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "New display name for the look.",
            "title": "Name"
          }
        },
        "title": "UpdateAvatarLookRequest",
        "type": "object"
      },
      "AvatarLookDeleteResponse": {
        "description": "Response for DELETE /v3/avatars/looks/{look_id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted avatar look.",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "AvatarLookDeleteResponse",
        "type": "object"
      },
      "WebhookEventTypeItem": {
        "description": "A webhook event type with its description.",
        "properties": {
          "event_type": {
            "description": "The event type identifier, e.g. 'avatar_video.success'.",
            "examples": [
              "avatar_video.success"
            ],
            "title": "Event Type",
            "type": "string"
          },
          "description": {
            "description": "Human-readable description of when this event fires.",
            "examples": [
              "Fired when an avatar video completes rendering successfully."
            ],
            "title": "Description",
            "type": "string"
          }
        },
        "required": [
          "event_type",
          "description"
        ],
        "title": "WebhookEventTypeItem",
        "type": "object"
      },
      "WebhookEndpointResponse": {
        "description": "A registered webhook endpoint.",
        "properties": {
          "endpoint_id": {
            "description": "Unique identifier for this webhook endpoint.",
            "examples": [
              "ep_abc123def456"
            ],
            "title": "Endpoint Id",
            "type": "string"
          },
          "url": {
            "description": "The URL that receives webhook POST requests.",
            "examples": [
              "https://example.com/webhook"
            ],
            "title": "Url",
            "type": "string"
          },
          "events": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Event types this endpoint subscribes to. Null means all events.",
            "examples": [
              [
                "avatar_video.success",
                "avatar_video.fail"
              ]
            ],
            "title": "Events"
          },
          "status": {
            "description": "Endpoint status: 'enabled' or 'disabled'.",
            "examples": [
              "enabled"
            ],
            "title": "Status",
            "type": "string"
          },
          "created_at": {
            "description": "ISO 8601 timestamp when the endpoint was created.",
            "examples": [
              "2024-04-01T12:00:00Z"
            ],
            "title": "Created At",
            "type": "string"
          },
          "secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The signing secret for verifying webhook payloads. Only returned on create and rotate-secret.",
            "examples": [
              "whsec_abc123def456"
            ],
            "title": "Secret"
          }
        },
        "required": [
          "endpoint_id",
          "url",
          "status",
          "created_at"
        ],
        "title": "WebhookEndpointResponse",
        "type": "object"
      },
      "CreateWebhookEndpointRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/webhooks/endpoints.",
        "properties": {
          "url": {
            "description": "Publicly accessible HTTPS URL that will receive webhook POST requests.",
            "title": "Url",
            "type": "string"
          },
          "events": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WebhookEventType"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Event types to subscribe to. Omit or set to null to receive all events.",
            "title": "Events"
          },
          "entity_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional entity ID to scope this endpoint to a specific resource (e.g. a personalized video project).",
            "title": "Entity Id"
          }
        },
        "required": [
          "url"
        ],
        "title": "CreateWebhookEndpointRequest",
        "type": "object"
      },
      "WebhookEventType": {
        "enum": [
          "avatar_video.success",
          "avatar_video.fail",
          "avatar_video_gif.success",
          "avatar_video_gif.fail",
          "video_translate.success",
          "video_translate.fail",
          "video_translate.preflight.validation_failed",
          "video_translate.preflight.download_failed",
          "personalized_video",
          "instant_avatar.success",
          "instant_avatar.fail",
          "photo_avatar_generation.success",
          "photo_avatar_generation.fail",
          "photo_avatar_train.success",
          "photo_avatar_train.fail",
          "photo_avatar_add_motion.success",
          "photo_avatar_add_motion.fail",
          "proofread_creation.success",
          "proofread_creation.fail",
          "live_avatar.success",
          "live_avatar.fail",
          "avatar_video_caption.success",
          "avatar_video_caption.fail",
          "video_agent.success",
          "video_agent.fail",
          "hyperframes_video.success",
          "hyperframes_video.fail",
          "ai_clipping.success",
          "ai_clipping.fail",
          "filler_word_removal.success",
          "filler_word_removal.fail",
          "podcast.success",
          "podcast.fail",
          "batch.finished",
          "video_generation.success",
          "video_generation.fail",
          "video_delivery.success",
          "video_delivery.fail"
        ],
        "title": "WebhookEventType",
        "type": "string"
      },
      "UpdateWebhookEndpointRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/webhooks/endpoints/{endpoint_id}.",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "New URL for the endpoint. Must be publicly accessible HTTPS.",
            "title": "Url"
          },
          "events": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WebhookEventType"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "New list of event types to subscribe to. Replaces the existing list.",
            "title": "Events"
          }
        },
        "title": "UpdateWebhookEndpointRequest",
        "type": "object"
      },
      "RotateSecretResponseData": {
        "description": "Response from rotating a webhook endpoint's signing secret.",
        "properties": {
          "endpoint_id": {
            "description": "The endpoint whose secret was rotated.",
            "examples": [
              "ep_abc123def456"
            ],
            "title": "Endpoint Id",
            "type": "string"
          },
          "secret": {
            "description": "The new signing secret. Store it securely \u2014 it will not be shown again.",
            "examples": [
              "whsec_new_abc123def456"
            ],
            "title": "Secret",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id",
          "secret"
        ],
        "title": "RotateSecretResponseData",
        "type": "object"
      },
      "WebhookEventResponse": {
        "description": "A delivered webhook event.",
        "properties": {
          "event_id": {
            "description": "Unique identifier for this event delivery.",
            "examples": [
              "evt_abc123def456"
            ],
            "title": "Event Id",
            "type": "string"
          },
          "event_type": {
            "description": "The event type, e.g. 'avatar_video.success'.",
            "examples": [
              "avatar_video.success"
            ],
            "title": "Event Type",
            "type": "string"
          },
          "event_data": {
            "additionalProperties": true,
            "description": "The event payload data.",
            "examples": [
              {
                "status": "completed",
                "video_id": "v_abc123"
              }
            ],
            "title": "Event Data",
            "type": "object"
          },
          "created_at": {
            "description": "ISO 8601 timestamp when the event was created.",
            "examples": [
              "2024-04-01T12:00:00Z"
            ],
            "title": "Created At",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "event_type",
          "event_data",
          "created_at"
        ],
        "title": "WebhookEventResponse",
        "type": "object"
      },
      "CreateFolderV3Request": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/folders.",
        "properties": {
          "name": {
            "description": "Folder name, 1-256 characters. Sibling folders may share a name.",
            "examples": [
              "Module 3 - Deploying to production"
            ],
            "maxLength": 256,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "parent_id": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID of the folder to create this one in. Omit, pass null, or pass an empty string to create it at the workspace root. The parent must be a folder in the caller's workspace, of a kind this endpoint creates, that is not in the trash. Assets library folders are flat and cannot hold folders.",
            "examples": [
              "7c1f0b2e3d4a4f5e8a9b0c1d2e3f4a5b"
            ],
            "title": "Parent Id"
          },
          "type": {
            "$ref": "#/components/schemas/CreatableFolderTypeV3",
            "default": "mixed",
            "description": "Kind of folder. 'mixed' is what the HeyGen web app's New folder action creates; 'video_translate' is what the Video Translate page creates. Folders the Assets library creates have kind 'asset'; they cannot be created or nested under here. Every kind is accepted as a folder_id destination on POST /v3/videos, POST /v3/video-translations and the other routes that take one, but the HeyGen app files only assets in an 'asset' folder, so a render placed in one may not appear in the Assets library view."
          }
        },
        "required": [
          "name"
        ],
        "title": "CreateFolderV3Request",
        "type": "object"
      },
      "CreatableFolderTypeV3": {
        "description": "The kinds POST /v3/folders creates, and the kinds a parent_id may name.\n\nAssets library folders ('asset') are created in the HeyGen app; existing ones are accepted as a\nfolder_id destination and returned by GET /v3/folders/{folder_id}.",
        "enum": [
          "mixed",
          "video",
          "video_translate"
        ],
        "title": "CreatableFolderTypeV3",
        "type": "string"
      },
      "FolderV3": {
        "description": "A folder in the caller's workspace.",
        "properties": {
          "folder_id": {
            "description": "Unique folder identifier. Pass as folder_id to POST /v3/videos or POST /v3/video-translations. A folder of type 'mixed', 'video' or 'video_translate' may also be passed as parent_id to POST /v3/folders; 'asset' folders are flat.",
            "title": "Folder Id",
            "type": "string"
          },
          "name": {
            "description": "Folder name.",
            "title": "Name",
            "type": "string"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ID of the containing folder. Absent for a folder at the workspace root.",
            "title": "Parent Id"
          },
          "type": {
            "$ref": "#/components/schemas/FolderTypeV3",
            "description": "Kind of folder; see the type field of POST /v3/folders."
          },
          "is_trash": {
            "description": "Whether the folder is in the trash.",
            "title": "Is Trash",
            "type": "boolean"
          },
          "created_at": {
            "description": "Unix timestamp (seconds) when the folder was created.",
            "examples": [
              1711929600
            ],
            "title": "Created At",
            "type": "integer"
          },
          "updated_at": {
            "description": "Unix timestamp (seconds) when the folder was last updated.",
            "examples": [
              1711929600
            ],
            "title": "Updated At",
            "type": "integer"
          },
          "creator_username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Username of the workspace member who created the folder.",
            "title": "Creator Username"
          }
        },
        "required": [
          "folder_id",
          "name",
          "type",
          "is_trash",
          "created_at",
          "updated_at"
        ],
        "title": "FolderV3",
        "type": "object"
      },
      "FolderTypeV3": {
        "description": "The kinds of folder this API knows: what GET returns and what a folder_id destination may name.\n\nThese are the kinds the HeyGen app's New folder actions create. Brand kits and batch parents are\nnot folders, so an id that resolves to one is reported as not found. Only 'mixed', 'video' and\n'video_translate' folders may be a parent_id; 'asset' folders are flat.",
        "enum": [
          "mixed",
          "video",
          "video_translate",
          "asset"
        ],
        "title": "FolderTypeV3",
        "type": "string"
      },
      "AssetSearchItem": {
        "discriminator": {
          "mapping": {
            "icon": "#/components/schemas/IconAssetItem",
            "image": "#/components/schemas/ImageAssetItem"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/ImageAssetItem"
          },
          {
            "$ref": "#/components/schemas/IconAssetItem"
          }
        ]
      },
      "IconAssetItem": {
        "description": "An icon result \u2014 typically a transparent vector cutout.",
        "properties": {
          "id": {
            "description": "Opaque identifier for this search result.",
            "examples": [
              "9f8a3c1bd4e2f6a7.png"
            ],
            "title": "Id",
            "type": "string"
          },
          "url": {
            "description": "Direct URL to the asset. For the current public-library results this is a stable, long-lived URL.",
            "examples": [
              "https://static.example.com/assets/9f8a3c1bd4e2f6a7.png"
            ],
            "title": "Url",
            "type": "string"
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pixel width, when known.",
            "examples": [
              1024
            ],
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pixel height, when known.",
            "examples": [
              768
            ],
            "title": "Height"
          },
          "orientation": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "'landscape', 'portrait', or 'square', when known.",
            "examples": [
              "landscape"
            ],
            "title": "Orientation"
          },
          "is_transparent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the asset has visible transparency (e.g. an icon or cut-out), when known.",
            "examples": [
              true
            ],
            "title": "Is Transparent"
          },
          "type": {
            "const": "icon",
            "default": "icon",
            "description": "Result type discriminator. Always 'icon'.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url"
        ],
        "title": "IconAssetItem",
        "type": "object"
      },
      "ImageAssetItem": {
        "description": "A photographic image result.",
        "properties": {
          "id": {
            "description": "Opaque identifier for this search result.",
            "examples": [
              "9f8a3c1bd4e2f6a7.png"
            ],
            "title": "Id",
            "type": "string"
          },
          "url": {
            "description": "Direct URL to the asset. For the current public-library results this is a stable, long-lived URL.",
            "examples": [
              "https://static.example.com/assets/9f8a3c1bd4e2f6a7.png"
            ],
            "title": "Url",
            "type": "string"
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pixel width, when known.",
            "examples": [
              1024
            ],
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pixel height, when known.",
            "examples": [
              768
            ],
            "title": "Height"
          },
          "orientation": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "'landscape', 'portrait', or 'square', when known.",
            "examples": [
              "landscape"
            ],
            "title": "Orientation"
          },
          "is_transparent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the asset has visible transparency (e.g. an icon or cut-out), when known.",
            "examples": [
              true
            ],
            "title": "Is Transparent"
          },
          "type": {
            "const": "image",
            "default": "image",
            "description": "Result type discriminator. Always 'image'.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "url"
        ],
        "title": "ImageAssetItem",
        "type": "object"
      },
      "UploadAssetV3Response": {
        "description": "Response from uploading an asset via POST /v3/assets.",
        "properties": {
          "asset_id": {
            "description": "Unique asset identifier for use in other endpoints like POST /v3/video-agents",
            "title": "Asset Id",
            "type": "string"
          },
          "url": {
            "description": "Public URL of the uploaded asset",
            "title": "Url",
            "type": "string"
          },
          "mime_type": {
            "description": "Detected MIME type of the file",
            "title": "Mime Type",
            "type": "string"
          },
          "size_bytes": {
            "description": "File size in bytes",
            "title": "Size Bytes",
            "type": "integer"
          }
        },
        "required": [
          "asset_id",
          "url",
          "mime_type",
          "size_bytes"
        ],
        "title": "UploadAssetV3Response",
        "type": "object"
      },
      "GetAssetV3Response": {
        "description": "Response payload for GET /v3/assets/{asset_id} and items of GET /v3/assets.",
        "properties": {
          "id": {
            "description": "Unique asset identifier.",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Display name of the asset \u2014 the original filename for API uploads.",
            "title": "Name",
            "type": "string"
          },
          "type": {
            "description": "Asset file type (e.g. 'image', 'video', 'audio', 'font').",
            "title": "Type",
            "type": "string"
          },
          "owner": {
            "description": "Username of the asset owner.",
            "title": "Owner",
            "type": "string"
          },
          "space_id": {
            "description": "Identifier of the space the asset belongs to.",
            "title": "Space Id",
            "type": "string"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Identifier of the folder the asset is stored in. Null if the asset is at the space root.",
            "title": "Folder Id"
          },
          "uploaded_at": {
            "description": "Unix timestamp (seconds) of when the asset was uploaded.",
            "title": "Uploaded At",
            "type": "integer"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Publicly accessible URL for the asset. Null if no URL can be generated.",
            "title": "Url"
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "owner",
          "space_id",
          "uploaded_at"
        ],
        "title": "GetAssetV3Response",
        "type": "object"
      },
      "DeleteAssetV3Response": {
        "description": "Response for DELETE /v3/assets/{asset_id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted asset.",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "DeleteAssetV3Response",
        "type": "object"
      },
      "CreateAssetUploadRequest": {
        "description": "Request to begin a presigned direct-to-S3 upload (POST /v3/assets/direct-uploads).",
        "properties": {
          "filename": {
            "description": "Original filename for reference/metadata. The stored object's extension is derived from content_type.",
            "title": "Filename",
            "type": "string"
          },
          "content_type": {
            "description": "Declared MIME type (e.g. 'video/mp4', 'image/png', 'audio/mpeg', 'application/pdf', 'application/zip'). Verified against the stored bytes at completion.",
            "title": "Content Type",
            "type": "string"
          },
          "size_bytes": {
            "description": "Exact byte size of the file. Signed into the upload URL so it cannot be exceeded.",
            "title": "Size Bytes",
            "type": "integer"
          },
          "checksum_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional SHA256 of the file as hex. When provided, S3 enforces it on upload.",
            "title": "Checksum Sha256"
          },
          "multipart": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Ask for an upload in parts. Honoured for files over 16 MiB of a type that is checked on upload; otherwise the response is the usual single PUT. S3 does not enforce checksum_sha256 on an upload in parts.",
            "title": "Multipart",
            "x-mcp-visible": false
          }
        },
        "required": [
          "filename",
          "content_type",
          "size_bytes"
        ],
        "title": "CreateAssetUploadRequest",
        "type": "object"
      },
      "CreateAssetUploadResponse": {
        "description": "Presigned upload instructions.",
        "properties": {
          "asset_id": {
            "description": "Reusable asset identifier. Becomes usable after POST /v3/assets/{asset_id}/complete.",
            "title": "Asset Id",
            "type": "string"
          },
          "upload_url": {
            "description": "Presigned S3 URL. PUT the raw file bytes here.",
            "title": "Upload Url",
            "type": "string"
          },
          "upload_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers that must be sent verbatim on the PUT request.",
            "title": "Upload Headers",
            "type": "object"
          },
          "expires_in_seconds": {
            "description": "Seconds until the upload URL expires.",
            "title": "Expires In Seconds",
            "type": "integer"
          },
          "max_bytes": {
            "description": "Maximum allowed upload size in bytes for this content type: 2 GiB (2,147,483,648 bytes) per video or audio file and for application/zip project archives; 200 MiB (209,715,200 bytes) for other files.",
            "title": "Max Bytes",
            "type": "integer"
          },
          "status": {
            "const": "pending_upload",
            "description": "Upload lifecycle status. Always 'pending_upload' here.",
            "title": "Status",
            "type": "string"
          },
          "multipart": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MultipartUploadPlan"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Present when the upload is in parts: upload_url is then empty, and part URLs come from POST /v3/assets/{asset_id}/parts."
          }
        },
        "required": [
          "asset_id",
          "upload_url",
          "upload_headers",
          "expires_in_seconds",
          "max_bytes",
          "status"
        ],
        "title": "CreateAssetUploadResponse",
        "type": "object"
      },
      "MultipartUploadPlan": {
        "description": "How an upload in parts is cut.",
        "properties": {
          "multipart_upload_id": {
            "description": "Retain it: every call about the parts names it.",
            "title": "Multipart Upload Id",
            "type": "string"
          },
          "part_size_bytes": {
            "description": "Size of every part but the last.",
            "title": "Part Size Bytes",
            "type": "integer"
          },
          "part_count": {
            "description": "Number of parts, numbered from 1.",
            "title": "Part Count",
            "type": "integer"
          }
        },
        "required": [
          "multipart_upload_id",
          "part_size_bytes",
          "part_count"
        ],
        "title": "MultipartUploadPlan",
        "type": "object"
      },
      "CompleteAssetUploadRequest": {
        "description": "Finalize a presigned upload (POST /v3/assets/{asset_id}/complete).",
        "properties": {
          "checksum_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional SHA256 (hex) cross-check.",
            "title": "Checksum Sha256"
          },
          "multipart_upload_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "For an upload in parts: from the create response.",
            "title": "Multipart Upload Id",
            "x-mcp-visible": false
          },
          "parts": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CompletedPart"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "For an upload in parts: every part with the ETag S3 answered. They are joined, then checked like a single PUT.",
            "title": "Parts",
            "x-mcp-visible": false
          }
        },
        "title": "CompleteAssetUploadRequest",
        "type": "object"
      },
      "CompletedPart": {
        "description": "A part to join at completion.",
        "properties": {
          "part_number": {
            "maximum": 10000,
            "minimum": 1,
            "title": "Part Number",
            "type": "integer"
          },
          "etag": {
            "description": "ETag S3 answered for the part.",
            "title": "Etag",
            "type": "string"
          }
        },
        "required": [
          "part_number",
          "etag"
        ],
        "title": "CompletedPart",
        "type": "object"
      },
      "CompleteAssetUploadResponse": {
        "description": "Result of finalizing an upload.",
        "properties": {
          "asset_id": {
            "description": "The reusable asset identifier.",
            "title": "Asset Id",
            "type": "string"
          },
          "url": {
            "description": "Public URL of the finalized asset.",
            "title": "Url",
            "type": "string"
          },
          "mime_type": {
            "description": "MIME type detected from the stored bytes.",
            "title": "Mime Type",
            "type": "string"
          },
          "size_bytes": {
            "description": "Size of the stored object in bytes.",
            "title": "Size Bytes",
            "type": "integer"
          },
          "status": {
            "const": "processing",
            "description": "Asset status, e.g. 'processing'.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "asset_id",
          "url",
          "mime_type",
          "size_bytes",
          "status"
        ],
        "title": "CompleteAssetUploadResponse",
        "type": "object"
      },
      "MintPartUrlsRequest": {
        "additionalProperties": false,
        "description": "Presigned URLs for these parts (POST /v3/assets/{asset_id}/parts).",
        "properties": {
          "multipart_upload_id": {
            "description": "From the create response.",
            "maxLength": 2048,
            "minLength": 1,
            "title": "Multipart Upload Id",
            "type": "string"
          },
          "part_numbers": {
            "description": "Part numbers, from 1, at most the plan's part_count.",
            "items": {
              "type": "integer"
            },
            "maxItems": 200,
            "minItems": 1,
            "title": "Part Numbers",
            "type": "array"
          }
        },
        "required": [
          "multipart_upload_id",
          "part_numbers"
        ],
        "title": "MintPartUrlsRequest",
        "type": "object"
      },
      "MintPartUrlsResponse": {
        "description": "Presigned part URLs.",
        "properties": {
          "parts": {
            "items": {
              "$ref": "#/components/schemas/PartUrl"
            },
            "title": "Parts",
            "type": "array"
          },
          "expires_in_seconds": {
            "description": "Seconds until the part URLs expire. Ask again for a part whose URL ran out.",
            "title": "Expires In Seconds",
            "type": "integer"
          }
        },
        "required": [
          "parts",
          "expires_in_seconds"
        ],
        "title": "MintPartUrlsResponse",
        "type": "object"
      },
      "PartUrl": {
        "description": "Where to PUT one part.",
        "properties": {
          "part_number": {
            "description": "Part number, from 1.",
            "title": "Part Number",
            "type": "integer"
          },
          "upload_url": {
            "description": "Presigned S3 URL. PUT exactly this part's bytes here; its length is signed.",
            "title": "Upload Url",
            "type": "string"
          }
        },
        "required": [
          "part_number",
          "upload_url"
        ],
        "title": "PartUrl",
        "type": "object"
      },
      "ListUploadedPartsResponse": {
        "description": "The parts already stored, so an interrupted upload sends only the rest.",
        "properties": {
          "parts": {
            "items": {
              "$ref": "#/components/schemas/UploadedPart"
            },
            "title": "Parts",
            "type": "array"
          }
        },
        "required": [
          "parts"
        ],
        "title": "ListUploadedPartsResponse",
        "type": "object"
      },
      "UploadedPart": {
        "description": "A part S3 already holds.",
        "properties": {
          "part_number": {
            "title": "Part Number",
            "type": "integer"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "etag": {
            "title": "Etag",
            "type": "string"
          }
        },
        "required": [
          "part_number",
          "size_bytes",
          "etag"
        ],
        "title": "UploadedPart",
        "type": "object"
      },
      "AbortAssetUploadResponse": {
        "description": "Result of giving up an upload in parts.",
        "properties": {
          "asset_id": {
            "description": "The asset identifier of the abandoned upload.",
            "title": "Asset Id",
            "type": "string"
          },
          "status": {
            "const": "aborted",
            "description": "Always 'aborted'.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "asset_id",
          "status"
        ],
        "title": "AbortAssetUploadResponse",
        "type": "object"
      },
      "GetSessionResponse": {
        "description": "Response from getting a video agent session.",
        "properties": {
          "session_id": {
            "description": "Session ID",
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "description": "Session status. If a generate session pauses for input before creating its reserved video, the session is waiting_for_input while the reserved video is failed. A chat session is also waiting_for_input when the agent has stopped for the user's reply and nothing is rendering; video_id may then name a video whose render never started, so wait on this status rather than on that video.",
            "enum": [
              "thinking",
              "waiting_for_input",
              "reviewing",
              "generating",
              "completed",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "progress": {
            "default": 0,
            "description": "Progress 0-100",
            "title": "Progress",
            "type": "integer"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LLM-generated session title",
            "title": "Title"
          },
          "video_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video ID once generation starts",
            "title": "Video Id"
          },
          "created_at": {
            "description": "Unix timestamp of session creation",
            "title": "Created At",
            "type": "integer"
          },
          "messages": {
            "description": "Most recent visible messages (max 40, newest-first)",
            "items": {
              "$ref": "#/components/schemas/SessionMessage"
            },
            "title": "Messages",
            "type": "array"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error details when a failed session has a specific, caller-actionable reason (e.g. a billing paywall). Absent for generic failures with no surfaced reason. `context_limit_exceeded` means the conversation has grown too long for the agent to continue: the session accepts no more messages, so start a new one. It is reported even when the session's last video is still generating or completed."
          }
        },
        "required": [
          "session_id",
          "status",
          "created_at"
        ],
        "title": "GetSessionResponse",
        "type": "object"
      },
      "SessionError": {
        "description": "Error details for a failed video agent session: a machine-readable code plus a\nhuman-readable message.",
        "properties": {
          "code": {
            "description": "Machine-readable error code.",
            "examples": [
              "free_tier_quota_exceeded",
              "paid_tier_quota_exceeded"
            ],
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Human-readable error description.",
            "examples": [
              "You've reached your plan's video generation quota. Upgrade your plan to continue generating videos."
            ],
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "SessionError",
        "type": "object"
      },
      "SessionMessage": {
        "description": "Simplified chat message for external consumers.",
        "properties": {
          "role": {
            "description": "Message author: 'user' or 'model'",
            "title": "Role",
            "type": "string"
          },
          "content": {
            "description": "Message text content",
            "title": "Content",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SessionMessageType",
            "description": "Message type: text, resource, or error"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of message creation",
            "title": "Created At"
          },
          "resource_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Resource IDs referenced in this message",
            "title": "Resource Ids"
          }
        },
        "required": [
          "role",
          "content",
          "type"
        ],
        "title": "SessionMessage",
        "type": "object"
      },
      "SessionMessageType": {
        "description": "Public message types exposed to external consumers.",
        "enum": [
          "text",
          "resource",
          "error"
        ],
        "title": "SessionMessageType",
        "type": "string"
      },
      "SendMessageRequest": {
        "additionalProperties": false,
        "anyOf": [
          {
            "properties": {
              "message": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "message"
            ]
          },
          {
            "properties": {
              "edit_plan": {
                "minItems": 1,
                "type": "array"
              }
            },
            "required": [
              "edit_plan"
            ]
          }
        ],
        "description": "One conversational or scene-edit turn in an existing Video Agent session.",
        "properties": {
          "message": {
            "default": "",
            "description": "Text message to the agent. Required when edit_plan is omitted; may be omitted or empty when edit_plan is provided.",
            "maxLength": 10000,
            "title": "Message",
            "type": "string"
          },
          "avatar_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Override avatar for this message",
            "title": "Avatar Id"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Override voice for this message",
            "title": "Voice Id"
          },
          "brand_kit_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand kit ID to apply for this message. In enterprise workspaces with a locked brand policy, only the workspace default brand kit is accepted.",
            "title": "Brand Kit Id"
          },
          "files": {
            "anyOf": [
              {
                "items": {
                  "discriminator": {
                    "mapping": {
                      "asset_id": "#/components/schemas/AssetId",
                      "base64": "#/components/schemas/AssetBase64",
                      "url": "#/components/schemas/AssetUrl"
                    },
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssetUrl"
                    },
                    {
                      "$ref": "#/components/schemas/AssetId"
                    },
                    {
                      "$ref": "#/components/schemas/AssetBase64"
                    }
                  ]
                },
                "maxItems": 20,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional file attachments (max 20 files)",
            "title": "Files"
          },
          "edit_plan": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/VideoAgentSceneEdit"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Scene-scoped natural-language edits to validate and submit atomically. Required when message is omitted or empty.",
            "title": "Edit Plan"
          }
        },
        "title": "SendMessageRequest",
        "type": "object"
      },
      "VideoAgentSceneEdit": {
        "additionalProperties": false,
        "description": "A public scene edit tied to the editor snapshot that supplied its scene ID.",
        "properties": {
          "scene_id": {
            "description": "Scene ID returned by GET /v3/videos/{scene_snapshot_video_id}/scenes",
            "maxLength": 255,
            "minLength": 1,
            "title": "Scene Id",
            "type": "string"
          },
          "text": {
            "description": "Natural-language change to apply to this scene",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Text",
            "type": "string"
          },
          "scene_snapshot_video_id": {
            "description": "Video ID whose GET /v3/videos/{video_id}/scenes response supplied this scene ID",
            "minLength": 1,
            "title": "Scene Snapshot Video Id",
            "type": "string"
          },
          "edit_version": {
            "description": "Opaque edit version returned with that video snapshot",
            "maxLength": 64,
            "minLength": 64,
            "pattern": "^[0-9a-f]{64}$",
            "title": "Edit Version",
            "type": "string"
          }
        },
        "required": [
          "scene_id",
          "text",
          "scene_snapshot_video_id",
          "edit_version"
        ],
        "title": "VideoAgentSceneEdit",
        "type": "object"
      },
      "SendMessageResponse": {
        "description": "Response from submitting a turn to a session.",
        "properties": {
          "session_id": {
            "description": "Session ID",
            "title": "Session Id",
            "type": "string"
          },
          "run_id": {
            "description": "Run ID for this message processing",
            "title": "Run Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LLM-generated session title",
            "title": "Title"
          },
          "video_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Current working draft video ID for an edit turn; poll GET /v3/videos/{video_id} for status",
            "title": "Video Id"
          }
        },
        "required": [
          "session_id",
          "run_id"
        ],
        "title": "SendMessageResponse",
        "type": "object"
      },
      "SessionResource": {
        "description": "Simplified session resource for external consumers.",
        "properties": {
          "resource_id": {
            "description": "Resource identifier",
            "title": "Resource Id",
            "type": "string"
          },
          "resource_type": {
            "description": "Resource type: image, video, draft, avatar, voice, etc.",
            "title": "Resource Type",
            "type": "string"
          },
          "source_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Source: generated or user_uploaded",
            "title": "Source Type"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Primary media URL",
            "title": "Url"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Thumbnail URL",
            "title": "Thumbnail Url"
          },
          "preview_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Preview URL",
            "title": "Preview Url"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp of resource creation",
            "title": "Created At"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Type-specific metadata",
            "title": "Metadata"
          },
          "blueprint": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionBlueprint"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The video plan the agent asks the user to approve. Present only when `resource_type` is `blueprint`."
          }
        },
        "required": [
          "resource_id",
          "resource_type"
        ],
        "title": "SessionResource",
        "type": "object"
      },
      "SessionBlueprint": {
        "description": "The video plan, as the agent will produce it once approved.",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Planned video title",
            "title": "Title"
          },
          "concept": {
            "description": "Theme, approach and overall direction of the video",
            "title": "Concept",
            "type": "string"
          },
          "style": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Visual style and script tone",
            "title": "Style"
          },
          "orientation": {
            "description": "`portrait` or `landscape`",
            "title": "Orientation",
            "type": "string"
          },
          "language": {
            "description": "Target language",
            "title": "Language",
            "type": "string"
          },
          "captions": {
            "description": "Whether captions are included",
            "title": "Captions",
            "type": "boolean"
          },
          "include_narrator": {
            "description": "Whether a narrator appears on camera",
            "title": "Include Narrator",
            "type": "boolean"
          },
          "include_voice": {
            "description": "Whether the video has voiceover narration",
            "title": "Include Voice",
            "type": "boolean"
          },
          "include_brand_kit": {
            "description": "Whether the video follows a brand kit",
            "title": "Include Brand Kit",
            "type": "boolean"
          },
          "narrator_resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Session resource ID of the planned narrator",
            "title": "Narrator Resource Id"
          },
          "voice_resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Session resource ID of the planned voice",
            "title": "Voice Resource Id"
          },
          "brand_kit_resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Session resource ID of the planned brand kit",
            "title": "Brand Kit Resource Id"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Extra requirements the agent recorded",
            "title": "Notes"
          },
          "total_duration": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Planned length in seconds",
            "title": "Total Duration"
          },
          "scenes": {
            "description": "Planned scenes, in order",
            "items": {
              "$ref": "#/components/schemas/SessionBlueprintScene"
            },
            "title": "Scenes",
            "type": "array"
          }
        },
        "required": [
          "concept",
          "orientation",
          "language",
          "captions",
          "include_narrator",
          "include_voice",
          "include_brand_kit",
          "scenes"
        ],
        "title": "SessionBlueprint",
        "type": "object"
      },
      "SessionBlueprintScene": {
        "description": "One planned scene.",
        "properties": {
          "title": {
            "description": "Short label for the scene",
            "title": "Title",
            "type": "string"
          },
          "start_time": {
            "description": "Start time in seconds",
            "title": "Start Time",
            "type": "integer"
          },
          "end_time": {
            "description": "End time in seconds",
            "title": "End Time",
            "type": "integer"
          },
          "scene_type": {
            "description": "`a_roll` (narrator on camera) or `b_roll` (footage or images)",
            "title": "Scene Type",
            "type": "string"
          },
          "visual": {
            "description": "What the scene shows",
            "title": "Visual",
            "type": "string"
          },
          "script": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Exact words spoken in the scene, or null for a silent scene",
            "title": "Script"
          },
          "is_cinematic": {
            "description": "Whether the scene uses the cinematic generation pipeline",
            "title": "Is Cinematic",
            "type": "boolean"
          }
        },
        "required": [
          "title",
          "start_time",
          "end_time",
          "scene_type",
          "visual",
          "is_cinematic"
        ],
        "title": "SessionBlueprintScene",
        "type": "object"
      },
      "StopSessionRequest": {
        "additionalProperties": false,
        "description": "Request body for stopping a session (empty \u2014 no fields required).",
        "properties": {},
        "title": "StopSessionRequest",
        "type": "object"
      },
      "StopSessionResponse": {
        "description": "Response from stopping a session.",
        "properties": {
          "session_id": {
            "description": "Session ID",
            "title": "Session Id",
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ],
        "title": "StopSessionResponse",
        "type": "object"
      },
      "AiClippingDetail": {
        "description": "Full job resource returned by Get, List, and webhook payloads.",
        "properties": {
          "id": {
            "description": "Unique job identifier.",
            "title": "Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title.",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus",
            "description": "Job lifecycle status."
          },
          "input_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Detected or supplied source language code.",
            "title": "Input Language"
          },
          "source_duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Duration of the source video in seconds.",
            "title": "Source Duration"
          },
          "output_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HighlightOutputSettings"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Currently omitted from Get, List, and webhook responses."
          },
          "clips": {
            "description": "Produced clips. Empty until the job's first clip is rendered.",
            "items": {
              "$ref": "#/components/schemas/Clip"
            },
            "title": "Clips",
            "type": "array"
          },
          "progress": {
            "default": 0,
            "description": "Approximate progress (0-100). 100 when all clips completed. GET /v3/ai-clipping/{id} returns live in-flight progress; the list endpoint reports a coarse value (0 until completed, then 100). Poll the single-get endpoint for granular progress.",
            "maximum": 100,
            "minimum": 0,
            "title": "Progress",
            "type": "integer"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client-provided callback ID.",
            "title": "Callback Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp (seconds) of job creation.",
            "title": "Created At"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Only present when status=failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "AiClippingDetail",
        "type": "object"
      },
      "CaptionStylePreset": {
        "description": "Available caption style presets.",
        "enum": [
          "subtle_gray",
          "shadow_mint",
          "subtle_cyan",
          "stamp_red",
          "retro_gold",
          "block_dark",
          "racing",
          "modern_dark",
          "modern_boxed",
          "chunky",
          "clean",
          "shadow_lime",
          "tag_yellow",
          "pop_purple",
          "spotlight",
          "outline_classic",
          "exotic",
          "golden",
          "simple",
          "pop_single",
          "energy",
          "bold",
          "elegant",
          "neon_pink"
        ],
        "title": "CaptionStylePreset",
        "type": "string"
      },
      "Clip": {
        "description": "A single produced clip. Returned inline inside AiClippingDetail.",
        "properties": {
          "id": {
            "description": "Unique clip identifier.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ClipStatus",
            "description": "Per-clip status."
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Final clip duration in seconds. Null until status=completed.",
            "title": "Duration Seconds"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OutputAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Clip aspect ratio. Null until status=completed."
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Model-generated clip title.",
            "title": "Title"
          },
          "virality_score": {
            "anyOf": [
              {
                "maximum": 100,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Model-predicted virality score (0-100). Null until status=completed.",
            "title": "Virality Score"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned thumbnail URL. Null until status=completed.",
            "title": "Thumbnail Url"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned MP4 download URL. Null until status=completed.",
            "title": "Video Url"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Per-clip failure description. Currently always null.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "Clip",
        "type": "object"
      },
      "ClipStatus": {
        "description": "Per-clip lifecycle. A job can produce N clips, each completing separately.",
        "enum": [
          "pending",
          "completed",
          "failed"
        ],
        "title": "ClipStatus",
        "type": "string"
      },
      "HighlightOutputSettings": {
        "additionalProperties": false,
        "description": "Configuration for the clips the job will produce.",
        "properties": {
          "duration_types": {
            "description": "One or more target clip length bands. Each produced clip is matched to one of the selected bands.",
            "items": {
              "$ref": "#/components/schemas/OutputDuration"
            },
            "maxItems": 4,
            "minItems": 1,
            "title": "Duration Types",
            "type": "array"
          },
          "aspect_ratio": {
            "$ref": "#/components/schemas/OutputAspectRatio",
            "default": "portrait",
            "description": "Aspect ratio for all produced clips. Default 'portrait' (9:16, social-ready)."
          },
          "captions": {
            "default": true,
            "description": "Burn captions into the clips. Set false to disable.",
            "title": "Captions",
            "type": "boolean"
          },
          "caption_style": {
            "$ref": "#/components/schemas/CaptionStylePreset",
            "default": "outline_classic",
            "description": "Named caption style preset (e.g. 'outline_classic', 'bold'). Defaults to 'outline_classic'. Null or unrecognized values fall back to the default."
          },
          "prompt": {
            "anyOf": [
              {
                "maxLength": 500,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional editorial guidance for the highlight model. Max 500 characters.",
            "title": "Prompt"
          }
        },
        "title": "HighlightOutputSettings",
        "type": "object"
      },
      "JobStatus": {
        "description": "Public job lifecycle.",
        "enum": [
          "pending",
          "running",
          "completed",
          "failed",
          "cancelled"
        ],
        "title": "JobStatus",
        "type": "string"
      },
      "OutputAspectRatio": {
        "description": "Output aspect ratio for produced clips.",
        "enum": [
          "landscape",
          "portrait",
          "square"
        ],
        "title": "OutputAspectRatio",
        "type": "string"
      },
      "OutputDuration": {
        "description": "Target clip length band: 30 = 20-30s, 60 = 30-60s, 180 = 60-120s, long = over 120s.",
        "enum": [
          "30",
          "60",
          "180",
          "long"
        ],
        "title": "OutputDuration",
        "type": "string"
      },
      "DeleteAiClippingResponse": {
        "description": "Response for DELETE /v3/ai-clipping/{id}.",
        "properties": {
          "id": {
            "description": "ID of the deleted AI clip job.",
            "title": "Id",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "title": "DeleteAiClippingResponse",
        "type": "object"
      },
      "CreateAiClippingRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/ai-clipping.",
        "properties": {
          "video": {
            "description": "Source video. Either a URL or an asset_id from POST /v3/assets.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Video"
          },
          "title": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Title for the job. Defaults to the source video's title if omitted.",
            "title": "Title"
          },
          "input_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ISO-639-1 source language code (e.g. 'en', 'es'). Omit for auto-detect.",
            "title": "Input Language"
          },
          "output_settings": {
            "$ref": "#/components/schemas/HighlightOutputSettings",
            "description": "Configuration for the produced clips (duration mix, aspect ratio, captions, etc.)."
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HTTPS URL to receive per-job webhook callbacks. Mirrors /v3/video-translations callback_url. Per-job callback_url deliveries are NOT HMAC-signed: authenticate them by verifying TLS and matching the echoed callback_id, and do not trust an unverified body. To receive a signed payload, register a webhook endpoint with a secret (the signature header is sent only to registered endpoints).",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque client identifier echoed verbatim in webhook payloads. Mirrors /v3/video-translations callback_id.",
            "title": "Callback Id"
          }
        },
        "required": [
          "video"
        ],
        "title": "CreateAiClippingRequest",
        "type": "object"
      },
      "CreateAiClippingResponse": {
        "description": "Response for POST /v3/ai-clipping. Mirrors the v3 single-ID create shape.",
        "properties": {
          "ai_clipping_id": {
            "description": "Unique job identifier. Use with all other endpoints.",
            "title": "Ai Clipping Id",
            "type": "string"
          }
        },
        "required": [
          "ai_clipping_id"
        ],
        "title": "CreateAiClippingResponse",
        "type": "object"
      },
      "CreateFillerWordRemovalRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/filler-word-removals.",
        "properties": {
          "video": {
            "description": "Source video to clean. Either a URL or an asset_id from POST /v3/assets.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              }
            ],
            "title": "Video"
          },
          "title": {
            "anyOf": [
              {
                "maxLength": 255,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the job. Defaults to 'Filler Removal' if omitted.",
            "title": "Title"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HTTPS URL to receive per-job webhook callbacks (filler_word_removal.success / filler_word_removal.fail). Delivery is best-effort with limited retries \u2014 poll GET /v3/filler-word-removals/{id} as the source of truth (a terminal GET may precede its webhook). Per-job callback_url deliveries are NOT HMAC-signed: authenticate them by verifying TLS and matching the echoed callback_id, and do not trust an unverified body. To receive a signed payload, register a webhook endpoint with a secret via /v3/webhooks/endpoints.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque client identifier echoed verbatim in webhook payloads.",
            "title": "Callback Id"
          }
        },
        "required": [
          "video"
        ],
        "title": "CreateFillerWordRemovalRequest",
        "type": "object"
      },
      "CreateFillerWordRemovalResponse": {
        "description": "Response for POST /v3/filler-word-removals. Mirrors the v3 single-ID create shape.",
        "properties": {
          "filler_word_removal_id": {
            "description": "Unique job identifier. Use with GET /v3/filler-word-removals/{id}.",
            "title": "Filler Word Removal Id",
            "type": "string"
          }
        },
        "required": [
          "filler_word_removal_id"
        ],
        "title": "CreateFillerWordRemovalResponse",
        "type": "object"
      },
      "FillerWordRemovalDetail": {
        "description": "Full job resource returned by GET /v3/filler-word-removals/{id}.\n\nInvariant: ``status=completed`` always carries a ``video_url`` \u2014 when the\nrun changes nothing (no filler cuts and no silence trims) the output is a\nbyte-copy of the original and the charge is auto-refunded, so polling\nscripts never need a special no-op branch. Note ``num_cuts`` counts filler\nsegments only; a run may report ``num_cuts=0`` yet still be billed when it\ntrimmed long silences (``reduction_pct > 0``).",
        "properties": {
          "id": {
            "description": "Unique job identifier.",
            "title": "Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title.",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/FillerWordRemovalDetailJobStatus",
            "description": "Job lifecycle status."
          },
          "progress": {
            "default": 0,
            "description": "Approximate progress (0-100). 100 when completed.",
            "maximum": 100,
            "minimum": 0,
            "title": "Progress",
            "type": "integer"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned MP4 download URL of the cleaned video. Present when status=completed. Expires \u2014 re-fetch this endpoint for a fresh link.",
            "title": "Video Url"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Presigned thumbnail URL. Only present when status=completed and a thumbnail was generated.",
            "title": "Thumbnail Url"
          },
          "original_duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Duration of the source video in seconds. Present when status=completed.",
            "title": "Original Duration"
          },
          "output_duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Duration of the cleaned video in seconds. Present when status=completed.",
            "title": "Output Duration"
          },
          "num_cuts": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Number of filler segments removed (silence-only trims are not counted \u2014 compare reduction_pct). The charge auto-refunds only when the run changed nothing at all. Present when status=completed.",
            "title": "Num Cuts"
          },
          "reduction_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Percentage of the source duration removed. Present when status=completed.",
            "title": "Reduction Pct"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client-provided callback ID echoed from the create request.",
            "title": "Callback Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp (seconds) of job creation.",
            "title": "Created At"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Only present when status=failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "title": "FillerWordRemovalDetail",
        "type": "object"
      },
      "FillerWordRemovalDetailJobStatus": {
        "description": "Public job lifecycle.",
        "enum": [
          "pending",
          "running",
          "completed",
          "failed"
        ],
        "title": "JobStatus",
        "type": "string"
      },
      "CreateVideoBatchRequest": {
        "additionalProperties": false,
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name for the batch, shown in the HeyGen app.",
            "title": "Title"
          },
          "folder_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination folder ID for the batch container. The videos remain grouped inside the newly created batch; the batch itself is placed in this folder. Omit, pass null, or pass an empty string to place the batch at the workspace root.",
            "title": "Folder Id"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL invoked once when every item in the batch reaches a terminal state.",
            "title": "Callback Url"
          },
          "videos": {
            "description": "Video creation requests (avatar / image / cinematic_avatar). Set folder_id once on the batch request, not on individual videos. Max 100 per batch.",
            "items": {
              "discriminator": {
                "mapping": {
                  "avatar": "#/components/schemas/CreateBatchVideoFromAvatar",
                  "cinematic_avatar": "#/components/schemas/CreateBatchVideoFromCinematicAvatar",
                  "image": "#/components/schemas/CreateBatchVideoFromImage",
                  "studio": "#/components/schemas/CreateBatchVideoFromStudio"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CreateBatchVideoFromAvatar"
                },
                {
                  "$ref": "#/components/schemas/CreateBatchVideoFromImage"
                },
                {
                  "$ref": "#/components/schemas/CreateBatchVideoFromCinematicAvatar"
                },
                {
                  "$ref": "#/components/schemas/CreateBatchVideoFromStudio"
                }
              ]
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Videos",
            "type": "array"
          }
        },
        "required": [
          "videos"
        ],
        "title": "CreateVideoBatchRequest",
        "type": "object"
      },
      "CreateBatchVideoFromAvatar": {
        "additionalProperties": false,
        "description": "Create a video from a HeyGen avatar (video or photo avatar).\n\nProvide an avatar_id to use a previously created avatar. Supports all\navatar types: studio_avatar, digital_twin, and photo_avatar. Optionally\nset ``engine`` to select Avatar V for eligible avatars; when omitted, the\nserver defaults to Avatar IV.",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output video resolution. Defaults to 720p. `4k` is available for Avatar III digital twins and studio avatars. For apps signed in with OAuth, such as MCP clients, the account's plan sets the maximum: 720p on Free, 1080p on Creator."
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Output video aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. 'auto' preserves the source's aspect ratio (avatar source frames or uploaded image), short-edge anchored to the requested resolution and capped at the tier's long edge. Falls back to '16:9' when source dimensions can't be read.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "fit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarFit"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the subject is fitted to the output canvas. 'cover' scales to fill the frame (may crop edges). 'contain' scales to fit entirely within the frame (may show background). When omitted, the server picks the best option based on the source and canvas orientations."
          },
          "background": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BackgroundSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Background settings for the video."
          },
          "remove_background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Remove the avatar background. Video avatars must be trained with matting enabled.",
            "title": "Remove Background"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "watermark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom watermark image to overlay on the video (PNG or JPEG). Available to workspaces on an Enterprise web or API plan.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Output container. 'webm' returns a video with a transparent background (alpha channel); 'mp4' (default) returns a standard video. 'webm' requires an avatar that supports matting. When 'webm' is selected, any 'background' value is rejected and background removal is applied automatically \u2014 the caller does not need to set 'remove_background'."
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text script for the avatar to speak. Pair with voice_id, or omit voice_id when using avatar_id to use the avatar's default voice. Mutually exclusive with audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided, unless avatar_id is set (the avatar's default voice is used as fallback).",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public http(s) URL of an audio file to lip-sync. Mutually exclusive with script. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded audio file. Mutually exclusive with script.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          },
          "type": {
            "const": "avatar",
            "description": "Must be 'avatar' for avatar-based video creation.",
            "title": "Type",
            "type": "string"
          },
          "avatar_id": {
            "description": "HeyGen avatar ID (video avatar or photo avatar look ID).",
            "title": "Avatar Id",
            "type": "string"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in generated speech (for example, saying 'HeyGen' as 'hey-jen'). Applies when the audio is synthesized from `script`; a caller-supplied `audio_url` or `audio_asset_id` is unaffected. Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Natural-language prompt controlling avatar body motion and hand gestures. Supported for photo avatars on either engine, and for video avatars when engine.type is 'avatar_v'. Rejected for video avatars on the default Avatar IV engine, and for photo avatars on 'avatar_v' when the avatar's group has no animation reference (no digital twin or curated reference look).",
            "title": "Motion Prompt"
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar expressiveness level. Photo avatars only. Defaults to 'low' when omitted. Avatar IV only; rejected when engine.type is 'avatar_v'."
          },
          "engine": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "avatar_iii": "#/components/schemas/AvatarIIIEngineConfig",
                    "avatar_iv": "#/components/schemas/AvatarIVEngineConfig",
                    "avatar_v": "#/components/schemas/AvatarVEngineConfig"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AvatarVEngineConfig"
                  },
                  {
                    "$ref": "#/components/schemas/AvatarIVEngineConfig"
                  },
                  {
                    "$ref": "#/components/schemas/AvatarIIIEngineConfig"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Engine configuration for video generation. Pass {\"type\": \"avatar_v\"} to enable cross-reference-driven animation for higher quality. Check supported_api_engines on the avatar look to confirm eligibility. Defaults to Avatar IV when omitted.",
            "title": "Engine"
          }
        },
        "required": [
          "type",
          "avatar_id"
        ],
        "title": "CreateBatchVideoFromAvatar",
        "type": "object"
      },
      "CreateBatchVideoFromCinematicAvatar": {
        "additionalProperties": false,
        "description": "Create a video from a text prompt plus avatar and asset references (Cinematic Avatar).\n\nCinematic Avatar generates a video from a natural-language ``prompt`` guided by\nreference content: one to three avatar looks and optional reference assets\n(images / videos / audio). Unlike the ``avatar`` and ``image`` modes there is\nno script or voice \u2014 motion and speech are driven entirely by the prompt and\nthe supplied references. The video model is chosen with ``model``.",
        "properties": {
          "type": {
            "const": "cinematic_avatar",
            "description": "Must be 'cinematic_avatar' for prompt-and-reference video creation.",
            "title": "Type",
            "type": "string"
          },
          "prompt": {
            "description": "Natural-language prompt describing the video to generate.",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "avatar_id": {
            "description": "Avatar look ID(s) used as visual references. Provide 1 to 3 look IDs.",
            "items": {
              "type": "string"
            },
            "title": "Avatar Id",
            "type": "array"
          },
          "model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CinematicAvatarModel"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video model that renders the shot. Omitted means 'seedance_2'. 'seedance_2' supports every aspect_ratio and resolution below. 'heygen_video_1' renders 16:9 or 9:16 at 720p, 5\u201315 seconds long; it accepts each reference asset_id once."
          },
          "references": {
            "anyOf": [
              {
                "items": {
                  "discriminator": {
                    "mapping": {
                      "asset_id": "#/components/schemas/AssetId",
                      "base64": "#/components/schemas/AssetBase64",
                      "url": "#/components/schemas/AssetUrl"
                    },
                    "propertyName": "type"
                  },
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssetUrl"
                    },
                    {
                      "$ref": "#/components/schemas/AssetId"
                    },
                    {
                      "$ref": "#/components/schemas/AssetBase64"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reference assets (images, videos, or audio) guiding the generation. Each accepts a URL, an asset_id, or inline base64. Combined limits: at most 3 videos and 9 images across avatars and references. 'heygen_video_1' also accepts at most 3 audio clips (avatar voices included), 12 references in total, and 15 seconds of reference video, each avatar counting 3 seconds.",
            "title": "References"
          },
          "aspect_ratio": {
            "default": "16:9",
            "description": "Output aspect ratio. Supported for cinematic_avatar: '16:9', '9:16', '1:1' ('heygen_video_1': '16:9', '9:16'). Defaults to '16:9'.",
            "enum": [
              "16:9",
              "9:16",
              "1:1"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "resolution": {
            "default": "720p",
            "description": "Output resolution. Supported for cinematic_avatar: '720p', '1080p' ('heygen_video_1': '720p'). Defaults to '720p'.",
            "enum": [
              "720p",
              "1080p"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "auto_duration": {
            "default": false,
            "description": "Renders the 10-second default with either model, the same as omitting duration. When true, omit duration.",
            "title": "Auto Duration",
            "type": "boolean"
          },
          "duration": {
            "anyOf": [
              {
                "maximum": 15,
                "minimum": 4,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video length in seconds (4\u201315; 5\u201315 for 'heygen_video_1'). Defaults to 10. Omit when auto_duration is true.",
            "title": "Duration"
          },
          "enhance_prompt": {
            "default": false,
            "description": "Enable server-side prompt enhancement.",
            "title": "Enhance Prompt",
            "type": "boolean"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          }
        },
        "required": [
          "type",
          "prompt",
          "avatar_id"
        ],
        "title": "CreateBatchVideoFromCinematicAvatar",
        "type": "object"
      },
      "CreateBatchVideoFromImage": {
        "additionalProperties": false,
        "description": "Create a lip-synced video from an image of a person.\n\nThe image must show a clearly visible, human-like face: a photo, or a realistic\nillustration of a person. Images without a detectable face are rejected with 400.\nFor non-human or stylized characters (mascots, animals, objects), use the\nimage_to_video or reference_to_video mode of POST /v3/models/videos instead.\n\nProvide an image via URL, asset ID, or inline base64. The image will be\nanimated with lip-sync to the provided audio or generated speech.",
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output video resolution. Defaults to 720p. `4k` is available for Avatar III digital twins and studio avatars. For apps signed in with OAuth, such as MCP clients, the account's plan sets the maximum: 720p on Free, 1080p on Creator."
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Output video aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. 'auto' preserves the source's aspect ratio (avatar source frames or uploaded image), short-edge anchored to the requested resolution and capped at the tier's long edge. Falls back to '16:9' when source dimensions can't be read.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "fit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvatarFit"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How the subject is fitted to the output canvas. 'cover' scales to fill the frame (may crop edges). 'contain' scales to fit entirely within the frame (may show background). When omitted, the server picks the best option based on the source and canvas orientations."
          },
          "background": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BackgroundSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Background settings for the video."
          },
          "remove_background": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Remove the avatar background. Video avatars must be trained with matting enabled.",
            "title": "Remove Background"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "watermark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom watermark image to overlay on the video (PNG or JPEG). Available to workspaces on an Enterprise web or API plan.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "output_format": {
            "$ref": "#/components/schemas/VideoOutputFormat",
            "default": "mp4",
            "description": "Output container. 'webm' returns a video with a transparent background (alpha channel); 'mp4' (default) returns a standard video. 'webm' requires an avatar that supports matting. When 'webm' is selected, any 'background' value is rejected and background removal is applied automatically \u2014 the caller does not need to set 'remove_background'."
          },
          "script": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text script for the avatar to speak. Pair with voice_id, or omit voice_id when using avatar_id to use the avatar's default voice. Mutually exclusive with audio_url/audio_asset_id.",
            "title": "Script"
          },
          "voice_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice ID for text-to-speech. Required when script is provided, unless avatar_id is set (the avatar's default voice is used as fallback).",
            "title": "Voice Id"
          },
          "audio_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Public http(s) URL of an audio file to lip-sync. Mutually exclusive with script. Not a local or sandbox path (/mnt/data/..., file://); upload it and pass audio_asset_id.",
            "title": "Audio Url"
          },
          "audio_asset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HeyGen asset ID of an uploaded audio file. Mutually exclusive with script.",
            "title": "Audio Asset Id"
          },
          "voice_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VoiceSettingsInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Voice tuning parameters (speed, pitch, locale)."
          },
          "type": {
            "const": "image",
            "description": "Must be 'image' for image-based video creation.",
            "title": "Type",
            "type": "string"
          },
          "image": {
            "description": "Image to animate. Accepts URL, asset ID, or base64-encoded data.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Image"
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in generated speech (for example, saying 'HeyGen' as 'hey-jen'). Applies when the audio is synthesized from `script`; a caller-supplied `audio_url` or `audio_asset_id` is unaffected. Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Natural-language prompt controlling avatar body motion. Photo avatars only.",
            "title": "Motion Prompt"
          },
          "expressiveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Expressiveness"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Avatar expressiveness level. Photo avatars only. Defaults to 'low' when omitted."
          }
        },
        "required": [
          "type",
          "image"
        ],
        "title": "CreateBatchVideoFromImage",
        "type": "object"
      },
      "CreateBatchVideoFromStudio": {
        "additionalProperties": false,
        "description": "Create a single video by composing an ordered list of whole-frame scenes.\n\nThe server owns layout and center-crops each scene to the global output\ncanvas. Output settings are global (one per request); a single video_id is\nreturned and rendering is all-or-nothing. MP4 only in v1 \u2014 the output\ncontainer is fixed and ``output_format`` is not exposed.",
        "properties": {
          "type": {
            "const": "studio",
            "description": "Must be 'studio' for scene-composition video creation.",
            "title": "Type",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display title for the video in the HeyGen dashboard.",
            "title": "Title"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoAspectRatio"
              },
              {
                "type": "null"
              }
            ],
            "default": "16:9",
            "description": "Global output aspect ratio. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', 'auto'. Defaults to '16:9'. Each scene is center-cropped to this canvas.",
            "x-cli-default": "auto",
            "x-mcp-default": "auto"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoResolution"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Global output video resolution. Defaults to 1080p. `4k` is available for Avatar III digital twins and studio avatars. For apps signed in with OAuth, such as MCP clients, the account's plan sets the maximum: 720p on Free, 1080p on Creator."
          },
          "brand_glossary_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Brand glossary ID controlling how custom terms are pronounced in generated speech (for example, saying 'HeyGen' as 'hey-jen'). Applies to every scene whose audio is synthesized from a script; scenes that supply their own audio URL or audio asset are unaffected. Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.",
            "title": "Brand Glossary Id"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification when the video is ready.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptionSetting"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caption generation settings. A sidecar subtitle file is always returned via subtitle_url; set 'style' to additionally burn captions into the rendered video."
          },
          "watermark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WatermarkInput"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Custom watermark image to overlay on the video (PNG or JPEG). Available to workspaces on an Enterprise web or API plan.",
            "x-cli-visible": false,
            "x-mcp-visible": false
          },
          "scenes": {
            "description": "Ordered list of whole-frame scenes to concatenate. Each scene is one of 'avatar_video', 'image', or 'video'. Must contain 1 to 50 scenes.",
            "items": {
              "discriminator": {
                "mapping": {
                  "avatar_video": "#/components/schemas/AvatarVideoScene",
                  "image": "#/components/schemas/ImageScene",
                  "video": "#/components/schemas/VideoScene"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AvatarVideoScene"
                },
                {
                  "$ref": "#/components/schemas/ImageScene"
                },
                {
                  "$ref": "#/components/schemas/VideoScene"
                }
              ]
            },
            "title": "Scenes",
            "type": "array"
          }
        },
        "required": [
          "type",
          "scenes"
        ],
        "title": "CreateBatchVideoFromStudio",
        "type": "object"
      },
      "CreateVideoBatchResponse": {
        "properties": {
          "batch_id": {
            "description": "Identifier of the created batch. Poll GET /v3/videos/batches/{batch_id} for progress.",
            "title": "Batch Id",
            "type": "string"
          }
        },
        "required": [
          "batch_id"
        ],
        "title": "CreateVideoBatchResponse",
        "type": "object"
      },
      "VideoBatchDetail": {
        "properties": {
          "batch_id": {
            "description": "Batch identifier.",
            "title": "Batch Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Batch display name.",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/BatchStatus",
            "description": "Aggregate batch status derived from item states."
          },
          "total_items": {
            "description": "Number of items submitted in this batch.",
            "title": "Total Items",
            "type": "integer"
          },
          "counts_by_status": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Item counts keyed by item status.",
            "title": "Counts By Status",
            "type": "object"
          },
          "created_at": {
            "description": "Batch creation time as a unix timestamp.",
            "title": "Created At",
            "type": "integer"
          },
          "items": {
            "description": "One page of batch items ordered by item_index.",
            "items": {
              "$ref": "#/components/schemas/VideoBatchItem"
            },
            "title": "Items",
            "type": "array"
          },
          "has_more": {
            "description": "Whether more items exist beyond this page.",
            "title": "Has More",
            "type": "boolean"
          },
          "next_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque cursor for the next page of items.",
            "title": "Next Token"
          }
        },
        "required": [
          "batch_id",
          "status",
          "total_items",
          "counts_by_status",
          "created_at",
          "items",
          "has_more"
        ],
        "title": "VideoBatchDetail",
        "type": "object"
      },
      "BatchItemStatus": {
        "enum": [
          "queued",
          "processing",
          "completed",
          "failed"
        ],
        "title": "BatchItemStatus",
        "type": "string"
      },
      "BatchStatus": {
        "enum": [
          "processing",
          "completed",
          "failed"
        ],
        "title": "BatchStatus",
        "type": "string"
      },
      "VideoBatchItem": {
        "properties": {
          "item_index": {
            "description": "Zero-based position of this item in the submitted videos array.",
            "title": "Item Index",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/BatchItemStatus",
            "description": "Item status: queued | processing | completed | failed."
          },
          "video_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video id, present once the underlying video has been created.",
            "title": "Video Id"
          },
          "error": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure details when status is failed.",
            "title": "Error"
          }
        },
        "required": [
          "item_index",
          "status"
        ],
        "title": "VideoBatchItem",
        "type": "object"
      },
      "VideoStatusEntry": {
        "properties": {
          "video_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video id. Null for batch items whose video has not been created yet.",
            "title": "Video Id"
          },
          "status": {
            "description": "Video status (same values as GET /v1/video_status.get), or not_found for unknown/unowned ids.",
            "title": "Status",
            "type": "string"
          },
          "error": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure details when status is failed.",
            "title": "Error"
          },
          "batch_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Set for entries expanded from a batch_id.",
            "title": "Batch Id"
          },
          "item_index": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Set for entries expanded from a batch_id, to correlate items without a video_id yet.",
            "title": "Item Index"
          }
        },
        "required": [
          "status"
        ],
        "title": "VideoStatusEntry",
        "type": "object"
      },
      "CreateVideoTranslationBatchRequest": {
        "additionalProperties": false,
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name for the batch, shown in the HeyGen app.",
            "title": "Title"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL invoked once when every item in the batch reaches a terminal state.",
            "title": "Callback Url"
          },
          "video_translations": {
            "description": "Video-translation payloads, identical in shape to POST /v3/video-translations. A single entry targeting multiple output_languages expands to one batch item per language; the expanded item count is capped at 100.",
            "items": {
              "$ref": "#/components/schemas/CreateVideoTranslationRequest"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Video Translations",
            "type": "array"
          }
        },
        "required": [
          "video_translations"
        ],
        "title": "CreateVideoTranslationBatchRequest",
        "type": "object"
      },
      "CreateVideoTranslationBatchResponse": {
        "properties": {
          "batch_id": {
            "description": "Identifier of the created batch. Poll GET /v3/video-translations/batches/{batch_id} for progress.",
            "title": "Batch Id",
            "type": "string"
          }
        },
        "required": [
          "batch_id"
        ],
        "title": "CreateVideoTranslationBatchResponse",
        "type": "object"
      },
      "CreateLipsyncBatchRequest": {
        "additionalProperties": false,
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name for the batch, shown in the HeyGen app.",
            "title": "Title"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL invoked once when every item in the batch reaches a terminal state.",
            "title": "Callback Url"
          },
          "lipsyncs": {
            "description": "Lipsync payloads, identical in shape to POST /v3/lipsyncs. Each entry becomes exactly one batch item (no expansion); the item count is capped at 100.",
            "items": {
              "$ref": "#/components/schemas/CreateLipsyncRequest"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Lipsyncs",
            "type": "array"
          }
        },
        "required": [
          "lipsyncs"
        ],
        "title": "CreateLipsyncBatchRequest",
        "type": "object"
      },
      "CreateLipsyncBatchResponse": {
        "properties": {
          "batch_id": {
            "description": "Identifier of the created batch. Poll GET /v3/lipsyncs/batches/{batch_id} for progress.",
            "title": "Batch Id",
            "type": "string"
          }
        },
        "required": [
          "batch_id"
        ],
        "title": "CreateLipsyncBatchResponse",
        "type": "object"
      },
      "CreateAssetUploadBatchRequest": {
        "additionalProperties": false,
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Display name for the batch, shown in the HeyGen app.",
            "title": "Title"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reserved. Asset completion does not emit a webhook.",
            "title": "Callback Url"
          },
          "files": {
            "description": "Files to presign, same shape as POST /v3/assets/direct-uploads. Max 100 per batch.",
            "items": {
              "$ref": "#/components/schemas/AssetUploadItem"
            },
            "maxItems": 100,
            "minItems": 1,
            "title": "Files",
            "type": "array"
          }
        },
        "required": [
          "files"
        ],
        "title": "CreateAssetUploadBatchRequest",
        "type": "object"
      },
      "AssetUploadItem": {
        "additionalProperties": false,
        "description": "One requested file in a create-upload-batch call.",
        "properties": {
          "filename": {
            "description": "Original filename for reference/metadata. The stored object's extension is derived from content_type.",
            "title": "Filename",
            "type": "string"
          },
          "content_type": {
            "description": "Declared MIME type (e.g. 'video/mp4', 'image/png', 'audio/mpeg', 'application/pdf'). Verified against the stored bytes when the batch is completed.",
            "title": "Content Type",
            "type": "string"
          },
          "size_bytes": {
            "description": "Exact byte size of the file, signed into the upload URL. Maximum: 2 GiB (2,147,483,648 bytes) for video, audio and application/zip project archives; 200 MiB (209,715,200 bytes) for other files.",
            "title": "Size Bytes",
            "type": "integer"
          },
          "checksum_sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional SHA256 of the file as hex. When provided, S3 enforces it on upload.",
            "title": "Checksum Sha256"
          }
        },
        "required": [
          "filename",
          "content_type",
          "size_bytes"
        ],
        "title": "AssetUploadItem",
        "type": "object"
      },
      "CreateAssetUploadBatchResponse": {
        "properties": {
          "batch_id": {
            "description": "Identifier of the created batch. Pass to POST /v3/assets/complete/batches once all files are uploaded.",
            "title": "Batch Id",
            "type": "string"
          },
          "items": {
            "description": "One presigned upload slot per requested file, in the submitted order.",
            "items": {
              "$ref": "#/components/schemas/AssetUploadBatchItem"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "batch_id",
          "items"
        ],
        "title": "CreateAssetUploadBatchResponse",
        "type": "object"
      },
      "AssetUploadBatchItem": {
        "description": "One issued presigned upload slot in the create response.",
        "properties": {
          "asset_id": {
            "description": "Reusable asset identifier. Becomes usable after POST /v3/assets/complete/batches finalizes the batch.",
            "title": "Asset Id",
            "type": "string"
          },
          "upload_url": {
            "description": "Presigned S3 URL. PUT the raw file bytes here.",
            "title": "Upload Url",
            "type": "string"
          },
          "upload_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers that must be sent verbatim on the PUT request.",
            "title": "Upload Headers",
            "type": "object"
          },
          "expires_in_seconds": {
            "description": "Seconds until the upload URL expires.",
            "title": "Expires In Seconds",
            "type": "integer"
          },
          "max_bytes": {
            "description": "Maximum allowed upload size in bytes for this content type: 2 GiB (2,147,483,648 bytes) per video or audio file and for application/zip project archives; 200 MiB (209,715,200 bytes) for other files.",
            "title": "Max Bytes",
            "type": "integer"
          },
          "status": {
            "const": "pending_upload",
            "description": "Upload lifecycle status. Always 'pending_upload' here.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "asset_id",
          "upload_url",
          "upload_headers",
          "expires_in_seconds",
          "max_bytes",
          "status"
        ],
        "title": "AssetUploadBatchItem",
        "type": "object"
      },
      "CompleteAssetBatchRequest": {
        "additionalProperties": false,
        "description": "Finalize every uploaded file in a batch (POST /v3/assets/complete/batches).",
        "properties": {
          "batch_id": {
            "description": "Identifier returned by POST /v3/assets/direct-uploads/batches.",
            "title": "Batch Id",
            "type": "string"
          }
        },
        "required": [
          "batch_id"
        ],
        "title": "CompleteAssetBatchRequest",
        "type": "object"
      },
      "CompleteAssetBatchResponse": {
        "properties": {
          "batch_id": {
            "description": "Identifier of the batch being finalized. Poll GET /v3/assets/batches/{batch_id} for progress.",
            "title": "Batch Id",
            "type": "string"
          }
        },
        "required": [
          "batch_id"
        ],
        "title": "CompleteAssetBatchResponse",
        "type": "object"
      },
      "CreatePodcastRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/podcasts.",
        "properties": {
          "topic": {
            "anyOf": [
              {
                "maxLength": 4000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Free-text topic / angle / instructions for the conversation. Provide `topic`, `source_files`, or both.",
            "title": "Topic"
          },
          "source_files": {
            "description": "Grounding documents (PDF/image/video) the script is built from. Provide each as {type: 'url', url: '...'} or {type: 'asset_id', asset_id: '...'}. Provide `topic`, `source_files`, or both.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                }
              ]
            },
            "maxItems": 5,
            "title": "Source Files",
            "type": "array"
          },
          "host_avatar_id": {
            "description": "Avatar id for the host.",
            "minLength": 1,
            "title": "Host Avatar Id",
            "type": "string"
          },
          "guest_avatar_id": {
            "description": "Avatar id for the guest.",
            "minLength": 1,
            "title": "Guest Avatar Id",
            "type": "string"
          },
          "host_voice_id": {
            "description": "Voice id for the host. List voices via GET /v3/voices.",
            "minLength": 1,
            "title": "Host Voice Id",
            "type": "string"
          },
          "guest_voice_id": {
            "description": "Voice id for the guest. List voices via GET /v3/voices.",
            "minLength": 1,
            "title": "Guest Voice Id",
            "type": "string"
          },
          "layout": {
            "default": "landscape",
            "description": "Output aspect ratio: 'landscape' (16:9) or 'portrait' (9:16).",
            "enum": [
              "landscape",
              "portrait"
            ],
            "title": "Layout",
            "type": "string"
          },
          "duration": {
            "default": "auto",
            "description": "Target spoken length. 'auto' lets the generator pick the length.",
            "enum": [
              "auto",
              "1min",
              "2min",
              "3min",
              "5min"
            ],
            "title": "Duration",
            "type": "string"
          },
          "instructions": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Free-form scene/studio instructions (e.g. setting, tone). Used verbatim to describe the studio when set.",
            "title": "Instructions"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional webhook URL. When set, HeyGen POSTs a notification here when the podcast reaches a terminal state (completed or failed), so you don't have to poll GET /v3/podcasts/{podcast_id}.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload so you can correlate the callback with this request.",
            "title": "Callback Id"
          }
        },
        "required": [
          "host_avatar_id",
          "guest_avatar_id",
          "host_voice_id",
          "guest_voice_id"
        ],
        "title": "CreatePodcastRequest",
        "type": "object"
      },
      "PodcastCreateResponse": {
        "description": "Response for POST /v3/podcasts.",
        "properties": {
          "podcast_id": {
            "description": "Podcast id. Use GET /v3/podcasts/{podcast_id} to poll status.",
            "title": "Podcast Id",
            "type": "string"
          },
          "status": {
            "description": "Status of the created podcast \u2014 'processing' while it generates. Poll GET /v3/podcasts/{podcast_id} for updates.",
            "enum": [
              "processing",
              "completed",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "podcast_id",
          "status"
        ],
        "title": "PodcastCreateResponse",
        "type": "object"
      },
      "PodcastDetail": {
        "description": "Response payload for GET /v3/podcasts/{podcast_id} and list items.",
        "properties": {
          "podcast_id": {
            "description": "Unique podcast identifier.",
            "title": "Podcast Id",
            "type": "string"
          },
          "status": {
            "description": "Current status: processing, completed, or failed.",
            "enum": [
              "processing",
              "completed",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generated podcast title. Present once the script is generated.",
            "title": "Title"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the finished podcast video. Present only when status is 'completed'.",
            "title": "Video Url"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "URL to the podcast thumbnail. Present only when status is 'completed'.",
            "title": "Thumbnail Url"
          },
          "duration": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Video duration in seconds. Present only when status is 'completed'.",
            "title": "Duration"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Error description. Present only when status is 'failed'.",
            "title": "Failure Message"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix timestamp (seconds) when the podcast was created.",
            "title": "Created At"
          }
        },
        "required": [
          "podcast_id",
          "status"
        ],
        "title": "PodcastDetail",
        "type": "object"
      },
      "PodcastDeleteResponse": {
        "description": "Response for DELETE /v3/podcasts/{podcast_id} \u2014 an empty object on success.",
        "properties": {},
        "title": "PodcastDeleteResponse",
        "type": "object"
      },
      "CreateWorkflowRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/workflows.",
        "properties": {
          "name": {
            "description": "Human-readable workflow name (unique per space). Creating a workflow with a name that already exists in this space fails with 409 conflict.",
            "maxLength": 256,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "product_graph": {
            "$ref": "#/components/schemas/WorkflowProductGraph",
            "description": "Complete product graph. Validated and compiled before anything is created; a graph that fails validation returns 422 graph_invalid and creates nothing. On success the graph is published as immutable version 1 and the workflow becomes active."
          },
          "meta": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional caller-supplied metadata stored with the workflow.",
            "title": "Meta"
          }
        },
        "required": [
          "name",
          "product_graph"
        ],
        "title": "CreateWorkflowRequest",
        "type": "object"
      },
      "GraphListBinding": {
        "additionalProperties": false,
        "description": "Composes a JSON list from nested bindings; valid only for a `json` port.",
        "properties": {
          "kind": {
            "const": "list",
            "default": "list",
            "title": "Kind",
            "type": "string"
          },
          "items": {
            "description": "List items, each bound independently.",
            "items": {
              "discriminator": {
                "mapping": {
                  "list": "#/components/schemas/GraphListBinding",
                  "literal": "#/components/schemas/GraphLiteralBinding",
                  "node_output": "#/components/schemas/GraphNodeOutputBinding",
                  "object": "#/components/schemas/GraphObjectBinding",
                  "run_input": "#/components/schemas/GraphRunInputBinding"
                },
                "propertyName": "kind"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/GraphLiteralBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphNodeOutputBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphRunInputBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphObjectBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphListBinding"
                }
              ]
            },
            "title": "Items",
            "type": "array"
          }
        },
        "title": "GraphListBinding",
        "type": "object"
      },
      "GraphLiteralBinding": {
        "additionalProperties": false,
        "description": "Binds an input port to a fixed JSON value authored in the graph.",
        "properties": {
          "kind": {
            "const": "literal",
            "default": "literal",
            "title": "Kind",
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/JsonValue",
            "default": null,
            "description": "The literal JSON value bound to the port; type-checked against the port at publish."
          }
        },
        "title": "GraphLiteralBinding",
        "type": "object"
      },
      "GraphNodeOutputBinding": {
        "additionalProperties": false,
        "description": "Binds an input port to another node's output port.",
        "properties": {
          "kind": {
            "const": "node_output",
            "default": "node_output",
            "title": "Kind",
            "type": "string"
          },
          "node_id": {
            "description": "Id of the node whose output feeds this port.",
            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
            "title": "Node Id",
            "type": "string"
          },
          "port": {
            "description": "Output port name on that node.",
            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
            "title": "Port",
            "type": "string"
          }
        },
        "required": [
          "node_id",
          "port"
        ],
        "title": "GraphNodeOutputBinding",
        "type": "object"
      },
      "GraphObjectBinding": {
        "additionalProperties": false,
        "description": "Composes a JSON object from nested bindings; valid only for a `json` port.",
        "properties": {
          "kind": {
            "const": "object",
            "default": "object",
            "title": "Kind",
            "type": "string"
          },
          "fields": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "list": "#/components/schemas/GraphListBinding",
                  "literal": "#/components/schemas/GraphLiteralBinding",
                  "node_output": "#/components/schemas/GraphNodeOutputBinding",
                  "object": "#/components/schemas/GraphObjectBinding",
                  "run_input": "#/components/schemas/GraphRunInputBinding"
                },
                "propertyName": "kind"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/GraphLiteralBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphNodeOutputBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphRunInputBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphObjectBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphListBinding"
                }
              ]
            },
            "description": "Object fields, each bound independently.",
            "title": "Fields",
            "type": "object"
          }
        },
        "title": "GraphObjectBinding",
        "type": "object"
      },
      "GraphRunInputBinding": {
        "additionalProperties": false,
        "description": "Binds an input port to a declared workflow input supplied at run start.",
        "properties": {
          "kind": {
            "const": "run_input",
            "default": "run_input",
            "title": "Kind",
            "type": "string"
          },
          "name": {
            "description": "Name of the declared workflow input.",
            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "GraphRunInputBinding",
        "type": "object"
      },
      "WorkflowGraphInputDecl": {
        "additionalProperties": false,
        "description": "Declares one workflow input supplied when a run starts.",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/WorkflowValueType",
            "description": "Type of the value this input carries."
          },
          "required": {
            "default": true,
            "description": "Whether every run must supply this input.",
            "title": "Required",
            "type": "boolean"
          },
          "default": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonValue"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Value a run uses when it leaves this input out; null or absent means none. Setting one makes the input optional, so `required` must be false. Must match `type`; for `image`, `audio` and `video` it must be an asset id. Checked on publish."
          }
        },
        "required": [
          "type"
        ],
        "title": "WorkflowGraphInputDecl",
        "type": "object"
      },
      "WorkflowGraphNode": {
        "additionalProperties": false,
        "description": "One authored node. `type`/`variant` select a node type from the node-type catalog.",
        "properties": {
          "id": {
            "description": "Node id, unique within the graph.",
            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "Node family, as listed by the node-type catalog.",
            "title": "Type",
            "type": "string"
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Variant within the family; omit for a single-variant family.",
            "title": "Variant"
          },
          "config": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "description": "Authored configuration, validated against the node type's config schema.",
            "title": "Config",
            "type": "object"
          },
          "depends_on": {
            "description": "Ids of nodes that must complete before this one, beyond binding-implied edges.",
            "items": {
              "type": "string"
            },
            "title": "Depends On",
            "type": "array"
          },
          "bindings": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "list": "#/components/schemas/GraphListBinding",
                  "literal": "#/components/schemas/GraphLiteralBinding",
                  "node_output": "#/components/schemas/GraphNodeOutputBinding",
                  "object": "#/components/schemas/GraphObjectBinding",
                  "run_input": "#/components/schemas/GraphRunInputBinding"
                },
                "propertyName": "kind"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/GraphLiteralBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphNodeOutputBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphRunInputBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphObjectBinding"
                },
                {
                  "$ref": "#/components/schemas/GraphListBinding"
                }
              ]
            },
            "description": "Where each input port's value comes from, keyed by port name.",
            "title": "Bindings",
            "type": "object"
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "WorkflowGraphNode",
        "type": "object"
      },
      "WorkflowGraphOutputDecl": {
        "additionalProperties": false,
        "description": "Declares one workflow output: the node output surfaced as a run result.",
        "properties": {
          "node_id": {
            "description": "Id of the node producing this output.",
            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
            "title": "Node Id",
            "type": "string"
          },
          "port": {
            "description": "Output port name on that node.",
            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
            "title": "Port",
            "type": "string"
          }
        },
        "required": [
          "node_id",
          "port"
        ],
        "title": "WorkflowGraphOutputDecl",
        "type": "object"
      },
      "WorkflowProductGraph": {
        "additionalProperties": false,
        "description": "An authored workflow product graph: nodes, their bindings, and the run-level inputs/outputs.",
        "properties": {
          "schema_version": {
            "description": "Graph schema version; currently \"1.0.0\".",
            "title": "Schema Version",
            "type": "string"
          },
          "inputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkflowGraphInputDecl"
            },
            "description": "Workflow inputs supplied at run start, keyed by input name.",
            "title": "Inputs",
            "type": "object"
          },
          "nodes": {
            "description": "Nodes in the graph.",
            "items": {
              "$ref": "#/components/schemas/WorkflowGraphNode"
            },
            "title": "Nodes",
            "type": "array"
          },
          "outputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkflowGraphOutputDecl"
            },
            "description": "Node outputs surfaced as run results, keyed by output name.",
            "title": "Outputs",
            "type": "object"
          }
        },
        "required": [
          "schema_version"
        ],
        "title": "WorkflowProductGraph",
        "type": "object"
      },
      "WorkflowValueType": {
        "description": "Type of a value flowing through a workflow: a run input, a port, or an output.",
        "enum": [
          "text",
          "json",
          "video",
          "image",
          "audio",
          "avatar"
        ],
        "title": "WorkflowValueType",
        "type": "string"
      },
      "WorkflowDefinitionResponse": {
        "description": "Response body for a single workflow definition (mutable draft).",
        "properties": {
          "id": {
            "description": "Workflow definition id (def_\u2026).",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Workflow name.",
            "title": "Name",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WorkflowDefinitionStatus",
            "description": "Lifecycle status of the workflow definition."
          },
          "draft_revision": {
            "description": "Monotonic draft revision; supply as expected_revision when updating the draft.",
            "title": "Draft Revision",
            "type": "integer"
          },
          "draft_product_graph": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowProductGraphView"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Current mutable draft graph, if any."
          },
          "meta": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-supplied metadata stored with the workflow, if any.",
            "title": "Meta"
          },
          "latest_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowVersionRef"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The version this request published. Present on POST /v3/workflows responses (the version 1 the create published); omitted on read endpoints."
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "draft_revision"
        ],
        "title": "WorkflowDefinitionResponse",
        "type": "object"
      },
      "WorkflowDefinitionStatus": {
        "enum": [
          "draft",
          "active",
          "archived"
        ],
        "title": "WorkflowDefinitionStatus",
        "type": "string"
      },
      "WorkflowProductGraphView": {
        "additionalProperties": false,
        "description": "The same graph shape as stored and returned on read surfaces.\n\nA separate schema from the request-side graph so the published contract can describe what a\nstored graph may contain (including node types that are no longer available for new\nauthoring) independently of what a new request may submit.",
        "properties": {
          "schema_version": {
            "description": "Graph schema version; currently \"1.0.0\".",
            "title": "Schema Version",
            "type": "string"
          },
          "inputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkflowGraphInputDecl"
            },
            "description": "Workflow inputs supplied at run start, keyed by input name.",
            "title": "Inputs",
            "type": "object"
          },
          "nodes": {
            "description": "Nodes in the graph.",
            "items": {
              "$ref": "#/components/schemas/WorkflowGraphNode"
            },
            "title": "Nodes",
            "type": "array"
          },
          "outputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkflowGraphOutputDecl"
            },
            "description": "Node outputs surfaced as run results, keyed by output name.",
            "title": "Outputs",
            "type": "object"
          }
        },
        "required": [
          "schema_version"
        ],
        "title": "WorkflowProductGraphView",
        "type": "object"
      },
      "WorkflowVersionRef": {
        "description": "Compact reference to a published workflow version.",
        "properties": {
          "id": {
            "description": "Version id (dwv_\u2026).",
            "title": "Id",
            "type": "string"
          },
          "version_number": {
            "description": "Monotonic version number within the workflow.",
            "title": "Version Number",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "version_number"
        ],
        "title": "WorkflowVersionRef",
        "type": "object"
      },
      "WorkflowDefinitionListItem": {
        "description": "Compact per-item shape for GET /v3/workflows list responses.",
        "properties": {
          "id": {
            "description": "Workflow definition id.",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Workflow name.",
            "title": "Name",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/WorkflowDefinitionStatus",
            "description": "Lifecycle status."
          },
          "draft_revision": {
            "description": "Current draft revision.",
            "title": "Draft Revision",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "draft_revision"
        ],
        "title": "WorkflowDefinitionListItem",
        "type": "object"
      },
      "UpdateWorkflowDraftRequest": {
        "additionalProperties": false,
        "description": "Request body for PATCH /v3/workflows/{workflow_id}.",
        "properties": {
          "product_graph": {
            "$ref": "#/components/schemas/WorkflowProductGraph",
            "description": "New draft product graph. Structure is validated on submission; graph semantics (node types, bindings, outputs) are validated at publish."
          },
          "expected_revision": {
            "description": "draft_revision the client last read; the update is rejected (409) if stale.",
            "minimum": 0,
            "title": "Expected Revision",
            "type": "integer"
          }
        },
        "required": [
          "product_graph",
          "expected_revision"
        ],
        "title": "UpdateWorkflowDraftRequest",
        "type": "object"
      },
      "PublishVersionRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/workflows/{workflow_id}/versions.",
        "properties": {
          "product_graph": {
            "$ref": "#/components/schemas/WorkflowProductGraph",
            "description": "Complete product graph to publish as the next immutable version. The stored draft is not read or modified; a graph identical to the latest published version returns that version (200) instead of creating a new one."
          }
        },
        "required": [
          "product_graph"
        ],
        "title": "PublishVersionRequest",
        "type": "object"
      },
      "WorkflowVersionResponse": {
        "description": "Response body for a single immutable, compiled workflow version.",
        "properties": {
          "id": {
            "description": "Version id (dwv_\u2026).",
            "title": "Id",
            "type": "string"
          },
          "definition_id": {
            "description": "Parent workflow definition id.",
            "title": "Definition Id",
            "type": "string"
          },
          "version_number": {
            "description": "Monotonic version number within the definition.",
            "title": "Version Number",
            "type": "integer"
          },
          "checksum": {
            "description": "Deterministic checksum of the frozen graph + plan.",
            "title": "Checksum",
            "type": "string"
          },
          "compiler_version": {
            "description": "Compiler version that produced the plan.",
            "title": "Compiler Version",
            "type": "string"
          },
          "adapter_manifest_digest": {
            "description": "Digest of the per-node adapter-version manifest.",
            "title": "Adapter Manifest Digest",
            "type": "string"
          },
          "product_graph": {
            "$ref": "#/components/schemas/WorkflowProductGraphView",
            "description": "Frozen authored product graph."
          },
          "plan_summary": {
            "description": "Compact per-node summary of the compiled plan (no internal node dumps).",
            "items": {
              "$ref": "#/components/schemas/CompiledNodeSummary"
            },
            "title": "Plan Summary",
            "type": "array"
          }
        },
        "required": [
          "id",
          "definition_id",
          "version_number",
          "checksum",
          "compiler_version",
          "adapter_manifest_digest",
          "product_graph",
          "plan_summary"
        ],
        "title": "WorkflowVersionResponse",
        "type": "object"
      },
      "CompiledNodeSummary": {
        "description": "Compact per-node summary of a compiled execution plan (no internal node dumps).",
        "properties": {
          "node_id": {
            "description": "Node id within the graph.",
            "title": "Node Id",
            "type": "string"
          },
          "family": {
            "description": "Node family, as authored in the product graph.",
            "title": "Family",
            "type": "string"
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Variant within the family; null for a single-variant family.",
            "title": "Variant"
          },
          "contract_version": {
            "description": "NodeType contract version pinned in the plan.",
            "title": "Contract Version",
            "type": "string"
          },
          "adapter_version": {
            "description": "Adapter version pinned for this node.",
            "title": "Adapter Version",
            "type": "string"
          },
          "parents": {
            "description": "Upstream node ids this node depends on.",
            "items": {
              "type": "string"
            },
            "title": "Parents",
            "type": "array"
          }
        },
        "required": [
          "node_id",
          "family",
          "contract_version",
          "adapter_version"
        ],
        "title": "CompiledNodeSummary",
        "type": "object"
      },
      "WorkflowVersionListItem": {
        "description": "Compact per-item shape for GET /v3/workflows/{id}/versions list responses.",
        "properties": {
          "id": {
            "description": "Version id.",
            "title": "Id",
            "type": "string"
          },
          "version_number": {
            "description": "Version number.",
            "title": "Version Number",
            "type": "integer"
          },
          "checksum": {
            "description": "Plan checksum.",
            "title": "Checksum",
            "type": "string"
          }
        },
        "required": [
          "id",
          "version_number",
          "checksum"
        ],
        "title": "WorkflowVersionListItem",
        "type": "object"
      },
      "NodeTypeCatalogResponse": {
        "description": "Response body for GET /v3/workflows/node-types.",
        "properties": {
          "families": {
            "description": "Node-type families, grouped and sorted by family name. Variants with lifecycle 'available' can be authored in new graphs; 'deprecated' variants are listed only so existing graphs stay readable.",
            "items": {
              "$ref": "#/components/schemas/NodeTypeFamilyEntry"
            },
            "title": "Families",
            "type": "array"
          }
        },
        "required": [
          "families"
        ],
        "title": "NodeTypeCatalogResponse",
        "type": "object"
      },
      "NodeTypeFamilyEntry": {
        "description": "A node-type family and its listed variants.",
        "properties": {
          "family": {
            "description": "Family identifier, as authored in a product graph node's `type`.",
            "title": "Family",
            "type": "string"
          },
          "display_name": {
            "description": "Human-readable family name.",
            "title": "Display Name",
            "type": "string"
          },
          "variants": {
            "description": "Variants in this family, sorted by variant name (a single-variant family's lone null-variant entry sorts first).",
            "items": {
              "$ref": "#/components/schemas/NodeTypeVariantEntry"
            },
            "title": "Variants",
            "type": "array"
          }
        },
        "required": [
          "family",
          "display_name",
          "variants"
        ],
        "title": "NodeTypeFamilyEntry",
        "type": "object"
      },
      "NodeTypeLifecycle": {
        "description": "Lifecycle of a listed node-type variant.",
        "enum": [
          "available",
          "deprecated"
        ],
        "title": "NodeTypeLifecycle",
        "type": "string"
      },
      "NodeTypePortEntry": {
        "description": "A single input or output port on a node-type variant.",
        "properties": {
          "name": {
            "description": "Port name.",
            "title": "Name",
            "type": "string"
          },
          "type": {
            "description": "Port data type.",
            "title": "Type",
            "type": "string"
          },
          "required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Whether the port is required. Null for an output port.",
            "title": "Required"
          },
          "description": {
            "description": "Human-readable port description.",
            "title": "Description",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "description"
        ],
        "title": "NodeTypePortEntry",
        "type": "object"
      },
      "NodeTypeVariantEntry": {
        "description": "A single listed variant within a node-type family.\n\nDeliberately has no `type_id`/`availability` fields at all \u2014 this DTO is the external\nsurface, which never exposes either. Validating a listing dump against this shape is what\nguarantees no internal key can reach the response, not a dump-time exclusion filter.",
        "properties": {
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Variant name within the family. Null for a single-variant family.",
            "title": "Variant"
          },
          "display_name": {
            "description": "Human-readable variant name.",
            "title": "Display Name",
            "type": "string"
          },
          "description": {
            "description": "Human-readable variant description.",
            "title": "Description",
            "type": "string"
          },
          "category": {
            "description": "UI grouping category.",
            "title": "Category",
            "type": "string"
          },
          "config_schema": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "description": "JSON schema describing this variant's config.",
            "title": "Config Schema",
            "type": "object"
          },
          "input_ports": {
            "description": "Input ports this variant accepts.",
            "items": {
              "$ref": "#/components/schemas/NodeTypePortEntry"
            },
            "title": "Input Ports",
            "type": "array"
          },
          "output_ports": {
            "description": "Output ports this variant produces.",
            "items": {
              "$ref": "#/components/schemas/NodeTypePortEntry"
            },
            "title": "Output Ports",
            "type": "array"
          },
          "contract_version": {
            "description": "Version of this variant's authoring contract (config schema and ports).",
            "title": "Contract Version",
            "type": "string"
          },
          "lifecycle": {
            "$ref": "#/components/schemas/NodeTypeLifecycle",
            "description": "Whether this variant can be used in new graphs (available) or is listed only so existing graphs stay readable (deprecated)."
          }
        },
        "required": [
          "variant",
          "display_name",
          "description",
          "category",
          "config_schema",
          "input_ports",
          "output_ports",
          "contract_version",
          "lifecycle"
        ],
        "title": "NodeTypeVariantEntry",
        "type": "object"
      },
      "CreateWorkflowRunRequest": {
        "additionalProperties": false,
        "description": "Request body for POST /v3/workflow-runs.",
        "properties": {
          "workflow_id": {
            "description": "Workflow to run.",
            "title": "Workflow Id",
            "type": "string"
          },
          "version_number": {
            "anyOf": [
              {
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Published version to run. Omit to run the latest published version, resolved once when the request's Idempotency-Key is first accepted; the response reports the exact version_number the run is pinned to.",
            "title": "Version Number"
          },
          "inputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "description": "Values for the version's declared run inputs. Validated against the frozen plan. Media inputs accept an asset id (a bare string, or {\"type\": \"asset_id\", \"asset_id\": ...}), a publicly accessible HTTPS source ({\"type\": \"url\", \"url\": ...}), or bounded inline content ({\"type\": \"base64\", \"media_type\": ..., \"data\": ...}); URL and inline sources are imported into your asset library before the run executes. URL sources are limited to 32 MB for images and 32 MB for audio; inline content to 5 MB for images and 16 MB for audio, and it must also fit this endpoint's 1 MiB request-body limit.",
            "title": "Inputs",
            "type": "object"
          }
        },
        "required": [
          "workflow_id"
        ],
        "title": "CreateWorkflowRunRequest",
        "type": "object"
      },
      "WorkflowRunResponse": {
        "description": "Response body for a single workflow run: self-contained at terminal state.",
        "properties": {
          "id": {
            "description": "Run id (dwr_\u2026).",
            "title": "Id",
            "type": "string"
          },
          "workflow": {
            "$ref": "#/components/schemas/WorkflowRunWorkflowRef",
            "description": "Workflow and exact version this run is pinned to."
          },
          "status": {
            "$ref": "#/components/schemas/PublicWorkflowRunStatus",
            "description": "Run lifecycle status."
          },
          "created_at": {
            "description": "When the run was created (UTC).",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the run started executing (UTC), or null if it has not started.",
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the run reached a terminal status (UTC), or null if still in progress.",
            "title": "Completed At"
          },
          "progress": {
            "$ref": "#/components/schemas/WorkflowRunProgress",
            "description": "Aggregate node counts."
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowRunError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Terminal error, or null if the run did not fail."
          },
          "outputs": {
            "description": "Declared top-level outputs of the run's frozen plan.",
            "items": {
              "$ref": "#/components/schemas/WorkflowRunOutput"
            },
            "title": "Outputs",
            "type": "array"
          }
        },
        "required": [
          "id",
          "workflow",
          "status",
          "created_at",
          "progress"
        ],
        "title": "WorkflowRunResponse",
        "type": "object"
      },
      "PublicWorkflowRunStatus": {
        "description": "Run lifecycle as published to callers.",
        "enum": [
          "pending",
          "processing",
          "succeeded",
          "partial",
          "failed",
          "canceled"
        ],
        "title": "PublicWorkflowRunStatus",
        "type": "string"
      },
      "WorkflowRunError": {
        "description": "Sanitized terminal error. Codes come from the closed product vocabulary; operator detail\nnever crosses this boundary.",
        "properties": {
          "code": {
            "description": "Stable public error code.",
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Caller-safe explanation of the error.",
            "title": "Message",
            "type": "string"
          },
          "node_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The failing node, when the failure is attributable to exactly one node.",
            "title": "Node Id"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "WorkflowRunError",
        "type": "object"
      },
      "WorkflowRunOutput": {
        "description": "One declared top-level output of the run's frozen plan.\n\nInline values are bounded: at most 64 KiB per output and 256 KiB across the whole response\n(spent in output-name order); an output past either bound is delivered as a reference instead.",
        "properties": {
          "name": {
            "description": "Output name declared by the workflow version.",
            "title": "Name",
            "type": "string"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output value type (e.g. video, text), once produced.",
            "title": "Type"
          },
          "status": {
            "$ref": "#/components/schemas/WorkflowRunOutputStatus",
            "description": "Whether this output has been produced."
          },
          "delivery": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowRunOutputDelivery"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Shape of a ready output: inline value or read-time URL. Null until ready."
          },
          "artifact_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Durable identity of the produced output, once produced.",
            "title": "Artifact Id"
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonValue"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The output value, for ready inline deliveries."
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Read-time URL for a ready reference delivery. Never persisted; mint a fresh one per read. For an inline JSON output delivered as a reference (its value exceeded the inline byte bounds), the URL serves the value itself as a JSON document.",
            "title": "Url"
          },
          "expires_in": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seconds until `url` expires. Null when `is_public` is true \u2014 a public URL never expires.",
            "title": "Expires In"
          },
          "is_public": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "True when `url` is served from a public bucket, so it is permanent and unauthenticated.",
            "title": "Is Public"
          }
        },
        "required": [
          "name",
          "status"
        ],
        "title": "WorkflowRunOutput",
        "type": "object"
      },
      "WorkflowRunOutputDelivery": {
        "description": "Which shape a READY output takes in this response.\n\n``inline`` carries the value in ``value``; ``reference`` carries a read-time URL. An output\nwhose stored value exceeds the inline byte bounds is delivered as ``reference`` even when it\nwas persisted as inline JSON, so this describes the response, not the storage strategy.",
        "enum": [
          "inline",
          "reference"
        ],
        "title": "WorkflowRunOutputDelivery",
        "type": "string"
      },
      "WorkflowRunOutputStatus": {
        "description": "Per-output resolution status, derived from the persisted artifact status.",
        "enum": [
          "pending",
          "ready",
          "failed"
        ],
        "title": "WorkflowRunOutputStatus",
        "type": "string"
      },
      "WorkflowRunProgress": {
        "description": "Aggregate node counts. Counts, never node summaries \u2014 the body must not grow with the graph.",
        "properties": {
          "total": {
            "description": "Total nodes in this run's frozen plan.",
            "title": "Total",
            "type": "integer"
          },
          "pending": {
            "default": 0,
            "description": "Nodes not yet started.",
            "title": "Pending",
            "type": "integer"
          },
          "processing": {
            "default": 0,
            "description": "Nodes currently running.",
            "title": "Processing",
            "type": "integer"
          },
          "succeeded": {
            "default": 0,
            "description": "Nodes that completed successfully.",
            "title": "Succeeded",
            "type": "integer"
          },
          "failed": {
            "default": 0,
            "description": "Nodes that failed.",
            "title": "Failed",
            "type": "integer"
          },
          "skipped": {
            "default": 0,
            "description": "Nodes that were skipped.",
            "title": "Skipped",
            "type": "integer"
          },
          "canceled": {
            "default": 0,
            "description": "Nodes that were canceled.",
            "title": "Canceled",
            "type": "integer"
          }
        },
        "required": [
          "total"
        ],
        "title": "WorkflowRunProgress",
        "type": "object"
      },
      "WorkflowRunWorkflowRef": {
        "description": "The workflow and exact immutable version this run executes against.",
        "properties": {
          "id": {
            "description": "Workflow this run belongs to.",
            "title": "Id",
            "type": "string"
          },
          "version_id": {
            "description": "Immutable version this run is pinned to.",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "description": "Version number this run is pinned to.",
            "title": "Version Number",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "version_id",
          "version_number"
        ],
        "title": "WorkflowRunWorkflowRef",
        "type": "object"
      },
      "WorkflowRunListItem": {
        "description": "Compact per-item shape for GET /v3/workflow-runs list responses.",
        "properties": {
          "id": {
            "description": "Run id.",
            "title": "Id",
            "type": "string"
          },
          "version_id": {
            "description": "Version the run is pinned to.",
            "title": "Version Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/PublicWorkflowRunStatus",
            "description": "Run lifecycle status."
          },
          "created_at": {
            "description": "When the run was created (UTC).",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "version_id",
          "status",
          "created_at"
        ],
        "title": "WorkflowRunListItem",
        "type": "object"
      },
      "WorkflowRunNodeItem": {
        "description": "Per-node diagnostics for GET /v3/workflow-runs/{run_id}/nodes.",
        "properties": {
          "node_id": {
            "description": "Node id within the workflow graph.",
            "title": "Node Id",
            "type": "string"
          },
          "node_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "NodeType id executed for this node.",
            "title": "Node Type"
          },
          "status": {
            "$ref": "#/components/schemas/PublicWorkflowNodeStatus",
            "description": "Node lifecycle status."
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the node started running (UTC), or null if it has not started.",
            "title": "Started At"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the node reached a terminal status (UTC), or null if still in progress.",
            "title": "Completed At"
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowRunError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Sanitized node error, or null if the node did not fail."
          }
        },
        "required": [
          "node_id",
          "status"
        ],
        "title": "WorkflowRunNodeItem",
        "type": "object"
      },
      "PublicWorkflowNodeStatus": {
        "description": "Node lifecycle as published on the nodes diagnostics route.",
        "enum": [
          "pending",
          "processing",
          "succeeded",
          "failed",
          "skipped",
          "canceled"
        ],
        "title": "PublicWorkflowNodeStatus",
        "type": "string"
      },
      "VideoQualityComparisonRequest": {
        "additionalProperties": false,
        "description": "One pairwise video comparison.",
        "properties": {
          "prompt": {
            "description": "Prompt used to generate both candidate videos. This provides request context, but scoring is selected by question_id and does not condition on this free-form prompt.",
            "maxLength": 10000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "model_a": {
            "description": "Caller-supplied identifier for the model that generated video A.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Model A",
            "type": "string"
          },
          "model_b": {
            "description": "Caller-supplied identifier for the model that generated video B.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Model B",
            "type": "string"
          },
          "video_a": {
            "description": "Video A as a public URL, HeyGen asset ID, or base64-encoded video.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Video A"
          },
          "video_b": {
            "description": "Video B as a public URL, HeyGen asset ID, or base64-encoded video.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Video B"
          },
          "question_id": {
            "$ref": "#/components/schemas/VideoQualityQuestionId",
            "description": "Question used by the judge. Supported values: engagement, prompt_intent, composition, temporal_consistency, and craft. q1 remains a compatibility alias for engagement."
          },
          "judge_model_version": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Allowlisted dated judge model name. Omit to use the active server-configured version.",
            "title": "Judge Model Version"
          }
        },
        "required": [
          "prompt",
          "model_a",
          "model_b",
          "video_a",
          "video_b",
          "question_id"
        ],
        "title": "VideoQualityComparisonRequest",
        "type": "object"
      },
      "VideoQualityQuestionId": {
        "description": "Supported C2V judge questions.",
        "enum": [
          "engagement",
          "prompt_intent",
          "composition",
          "temporal_consistency",
          "craft",
          "q1"
        ],
        "title": "VideoQualityQuestionId",
        "type": "string"
      },
      "VideoQualityComparisonResponse": {
        "additionalProperties": false,
        "description": "A comparison resource returned by synchronous submission or polling.",
        "properties": {
          "comparison_id": {
            "description": "Unique comparison identifier used for polling.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Comparison Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VideoQualityJobStatus",
            "description": "Current comparison lifecycle state."
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoQualityComparisonResult"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Judge result, present only when status is completed."
          },
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoQualityComparisonError"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Terminal failure details, present only when status is failed."
          },
          "resolved_assets": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoQualityResolvedAssets"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reusable owned input asset IDs when both inputs have been prepared. Older comparisons may omit this field."
          }
        },
        "required": [
          "comparison_id",
          "status"
        ],
        "title": "VideoQualityComparisonResponse",
        "type": "object"
      },
      "VideoQualityComparisonError": {
        "additionalProperties": false,
        "description": "Terminal per-comparison error returned by polling endpoints.",
        "properties": {
          "code": {
            "description": "Stable machine-readable failure code.",
            "maxLength": 128,
            "minLength": 1,
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Human-readable explanation of the comparison failure.",
            "maxLength": 1000,
            "minLength": 1,
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "VideoQualityComparisonError",
        "type": "object"
      },
      "VideoQualityComparisonResult": {
        "additionalProperties": false,
        "description": "Completed pairwise judge result.",
        "properties": {
          "model_a": {
            "description": "Caller-supplied identifier for video A's model.",
            "title": "Model A",
            "type": "string"
          },
          "model_b": {
            "description": "Caller-supplied identifier for video B's model.",
            "title": "Model B",
            "type": "string"
          },
          "winner": {
            "description": "Winning caller-supplied model identifier.",
            "title": "Winner",
            "type": "string"
          },
          "winner_side": {
            "description": "Winning candidate side: 'a' or 'b'.",
            "enum": [
              "a",
              "b"
            ],
            "title": "Winner Side",
            "type": "string"
          },
          "confidence": {
            "description": "Winning-side probability derived from the pairwise judge.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "type": "number"
          },
          "question_id": {
            "$ref": "#/components/schemas/VideoQualityQuestionId",
            "description": "Question used for this comparison."
          },
          "judge_model_version": {
            "description": "Exact judge model version used for this comparison.",
            "title": "Judge Model Version",
            "type": "string"
          }
        },
        "required": [
          "model_a",
          "model_b",
          "winner",
          "winner_side",
          "confidence",
          "question_id",
          "judge_model_version"
        ],
        "title": "VideoQualityComparisonResult",
        "type": "object"
      },
      "VideoQualityJobStatus": {
        "description": "Lifecycle shared by single comparisons and batches.",
        "enum": [
          "processing",
          "completed",
          "failed"
        ],
        "title": "VideoQualityJobStatus",
        "type": "string"
      },
      "VideoQualityResolvedAssets": {
        "additionalProperties": false,
        "properties": {
          "video_a_asset_id": {
            "description": "Owned video A asset ID, reusable as an asset_id input in later comparisons or batches.",
            "title": "Video A Asset Id",
            "type": "string"
          },
          "video_b_asset_id": {
            "description": "Owned video B asset ID, reusable as an asset_id input in later comparisons or batches.",
            "title": "Video B Asset Id",
            "type": "string"
          }
        },
        "required": [
          "video_a_asset_id",
          "video_b_asset_id"
        ],
        "title": "VideoQualityResolvedAssets",
        "type": "object"
      },
      "CreateVideoQualityComparisonBatchRequest": {
        "additionalProperties": false,
        "description": "Request body for asynchronous batch submission.",
        "properties": {
          "comparisons": {
            "description": "One to 2000 pairwise comparisons.",
            "items": {
              "$ref": "#/components/schemas/VideoQualityComparisonRequest"
            },
            "maxItems": 2000,
            "minItems": 1,
            "title": "Comparisons",
            "type": "array"
          }
        },
        "required": [
          "comparisons"
        ],
        "title": "CreateVideoQualityComparisonBatchRequest",
        "type": "object"
      },
      "CreateVideoQualityComparisonBatchResponse": {
        "additionalProperties": false,
        "description": "Accepted asynchronous batch.",
        "properties": {
          "batch_id": {
            "description": "Unique batch identifier used for polling.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Batch Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VideoQualityJobStatus",
            "description": "Current aggregate batch lifecycle state."
          },
          "total_items": {
            "description": "Number of comparisons accepted in the batch.",
            "maximum": 2000,
            "minimum": 1,
            "title": "Total Items",
            "type": "integer"
          }
        },
        "required": [
          "batch_id",
          "status",
          "total_items"
        ],
        "title": "CreateVideoQualityComparisonBatchResponse",
        "type": "object"
      },
      "VideoQualityComparisonBatchResponse": {
        "additionalProperties": false,
        "description": "Current state and one page of results for an asynchronous batch.",
        "properties": {
          "batch_id": {
            "description": "Unique batch identifier.",
            "maxLength": 255,
            "minLength": 1,
            "title": "Batch Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VideoQualityJobStatus",
            "description": "Current aggregate batch lifecycle state."
          },
          "total_items": {
            "description": "Total comparisons in this batch.",
            "maximum": 2000,
            "minimum": 1,
            "title": "Total Items",
            "type": "integer"
          },
          "counts": {
            "$ref": "#/components/schemas/VideoQualityComparisonBatchCounts",
            "description": "Aggregate counts by lifecycle state."
          },
          "items": {
            "description": "Stable, ordered page of comparison results.",
            "items": {
              "$ref": "#/components/schemas/VideoQualityComparisonBatchItem"
            },
            "title": "Items",
            "type": "array"
          },
          "has_more": {
            "description": "Whether another page of batch items is available.",
            "title": "Has More",
            "type": "boolean"
          },
          "next_token": {
            "anyOf": [
              {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Opaque cursor for the next page when has_more is true.",
            "title": "Next Token"
          }
        },
        "required": [
          "batch_id",
          "status",
          "total_items",
          "counts",
          "items",
          "has_more"
        ],
        "title": "VideoQualityComparisonBatchResponse",
        "type": "object"
      },
      "VideoQualityComparisonBatchCounts": {
        "additionalProperties": false,
        "description": "Aggregate batch item counts.",
        "properties": {
          "processing": {
            "description": "Number of comparisons still processing.",
            "minimum": 0,
            "title": "Processing",
            "type": "integer"
          },
          "completed": {
            "description": "Number of successfully completed comparisons.",
            "minimum": 0,
            "title": "Completed",
            "type": "integer"
          },
          "failed": {
            "description": "Number of terminally failed comparisons.",
            "minimum": 0,
            "title": "Failed",
            "type": "integer"
          }
        },
        "required": [
          "processing",
          "completed",
          "failed"
        ],
        "title": "VideoQualityComparisonBatchCounts",
        "type": "object"
      },
      "VideoQualityComparisonBatchItem": {
        "additionalProperties": false,
        "description": "One stable, ordered entry in a comparison batch.",
        "properties": {
          "item_index": {
            "description": "Zero-based position of this comparison in the submitted batch.",
            "minimum": 0,
            "title": "Item Index",
            "type": "integer"
          },
          "comparison": {
            "$ref": "#/components/schemas/VideoQualityComparisonResponse",
            "description": "Latest state of this comparison."
          }
        },
        "required": [
          "item_index",
          "comparison"
        ],
        "title": "VideoQualityComparisonBatchItem",
        "type": "object"
      },
      "CreateModelVideoRequest": {
        "description": "Body of POST /v3/models/videos: one schema per generation mode, selected by the required mode field.",
        "discriminator": {
          "mapping": {
            "image_to_video": "#/components/schemas/ImageToVideoRequest",
            "reference_to_video": "#/components/schemas/ReferenceToVideoRequest",
            "text_to_video": "#/components/schemas/TextToVideoRequest"
          },
          "propertyName": "mode"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/TextToVideoRequest"
          },
          {
            "$ref": "#/components/schemas/ImageToVideoRequest"
          },
          {
            "$ref": "#/components/schemas/ReferenceToVideoRequest"
          }
        ],
        "title": "CreateModelVideoRequest"
      },
      "ImageToVideoRequest": {
        "additionalProperties": false,
        "properties": {
          "end_user_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^\\S+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable, opaque end-user identifier in your application, scoped to the authenticated workspace. Use 1\u2013128 non-whitespace characters without personal information. Used for usage attribution and abuse investigation; does not change billing, authorization, or rate limits.",
            "title": "End User Id",
            "x-mcp-visible": false
          },
          "mode": {
            "const": "image_to_video",
            "description": "Animate a first-frame image.",
            "title": "Mode",
            "type": "string"
          },
          "model": {
            "const": "heygen-video-1",
            "description": "Required video generation model. Only heygen-video-1 is supported.",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "Instructions for the video to generate. At most 16,000 Unicode characters.",
            "maxLength": 16000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "prompt_enhancement": {
            "default": "quality",
            "description": "Prompt enhancement mode: turbo, quality, ultraquality, or disabled. Defaults to quality; default is an alias for turbo.",
            "enum": [
              "turbo",
              "quality",
              "default",
              "disabled",
              "ultraquality"
            ],
            "title": "Prompt Enhancement",
            "type": "string"
          },
          "resolution": {
            "default": "768p",
            "description": "Output resolution: 480p, 768p, 1080p, or 2k. Defaults to 768p. At 1080p and 2k, text-to-video and reference-to-video require aspect_ratio 16:9 or 9:16; image-to-video follows the image proportions.",
            "enum": [
              "480p",
              "768p",
              "1080p",
              "2k"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "duration": {
            "anyOf": [
              {
                "maximum": 30,
                "minimum": 5,
                "type": "integer"
              },
              {
                "const": "auto",
                "type": "string"
              }
            ],
            "default": 5,
            "description": "Requested video duration: whole seconds from 5 through 30, or auto. Defaults to 5 when omitted. Above 15 requires text_to_video or image_to_video, 480p/768p/1080p/2k, and turbo/default/quality enhancement. Auto estimates quoted speech with an 8-second minimum and the maximum supported by these settings. Generation and billing use the resolved duration.",
            "title": "Duration",
            "x-mcp-schema": {
              "anyOf": [
                {
                  "maximum": 15,
                  "minimum": 5,
                  "type": "integer"
                },
                {
                  "const": "auto",
                  "type": "string"
                }
              ],
              "description": "Whole seconds from 5 through 15, or auto. Defaults to 5. Auto estimates quoted speech between 8 and 15 seconds."
            }
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "21:9",
                  "16:9",
                  "4:3",
                  "1:1",
                  "3:4",
                  "9:16",
                  "adaptive"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The output follows the image proportions, aligned to supported pixel dimensions. Any supplied aspect ratio is ignored.",
            "title": "Aspect Ratio"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation seed. A random seed is chosen when omitted.",
            "title": "Seed"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HTTPS webhook URL for the terminal generation event.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client tracking ID echoed in the terminal webhook event.",
            "title": "Callback Id"
          },
          "image": {
            "description": "First-frame image.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Image"
          },
          "end_image": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional image to guide the last frame. Requires image as the first frame; the output proportions still follow image.",
            "title": "End Image"
          }
        },
        "required": [
          "mode",
          "model",
          "prompt",
          "image"
        ],
        "title": "ImageToVideoRequest",
        "type": "object"
      },
      "ReferenceToVideoRequest": {
        "additionalProperties": false,
        "properties": {
          "end_user_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^\\S+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable, opaque end-user identifier in your application, scoped to the authenticated workspace. Use 1\u2013128 non-whitespace characters without personal information. Used for usage attribution and abuse investigation; does not change billing, authorization, or rate limits.",
            "title": "End User Id",
            "x-mcp-visible": false
          },
          "mode": {
            "const": "reference_to_video",
            "description": "Generate guided by reference images, videos, and audio.",
            "title": "Mode",
            "type": "string"
          },
          "model": {
            "const": "heygen-video-1",
            "description": "Required video generation model. Only heygen-video-1 is supported.",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "Instructions for the video to generate. At most 16,000 Unicode characters.",
            "maxLength": 16000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "prompt_enhancement": {
            "default": "quality",
            "description": "Prompt enhancement mode: turbo, quality, ultraquality, or disabled. Defaults to quality; default is an alias for turbo.",
            "enum": [
              "turbo",
              "quality",
              "default",
              "disabled",
              "ultraquality"
            ],
            "title": "Prompt Enhancement",
            "type": "string"
          },
          "resolution": {
            "default": "768p",
            "description": "Output resolution: 480p, 768p, 1080p, or 2k. Defaults to 768p. At 1080p and 2k, text-to-video and reference-to-video require aspect_ratio 16:9 or 9:16; image-to-video follows the image proportions.",
            "enum": [
              "480p",
              "768p",
              "1080p",
              "2k"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "duration": {
            "anyOf": [
              {
                "maximum": 15,
                "minimum": 5,
                "type": "integer"
              },
              {
                "const": "auto",
                "type": "string"
              }
            ],
            "default": 5,
            "description": "Whole seconds from 5 through 15, or auto. Defaults to 5. Auto estimates quoted speech between 8 and 15 seconds.",
            "title": "Duration"
          },
          "aspect_ratio": {
            "default": "adaptive",
            "description": "Output aspect ratio. Adaptive uses the first reference image, or the first reference video when no images are supplied; audio-only references use 16:9. Defaults to adaptive.",
            "enum": [
              "21:9",
              "16:9",
              "4:3",
              "1:1",
              "3:4",
              "9:16",
              "adaptive"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation seed. A random seed is chosen when omitted.",
            "title": "Seed"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HTTPS webhook URL for the terminal generation event.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client tracking ID echoed in the terminal webhook event.",
            "title": "Callback Id"
          },
          "reference_images": {
            "description": "Reference images. At most nine.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 9,
            "title": "Reference Images",
            "type": "array"
          },
          "reference_videos": {
            "description": "Reference videos. At most three, sharing a 15-second budget. Use all footage when it fits; otherwise keep up to the first five seconds of each video and share the remaining budget equally among videos with footage remaining.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 3,
            "title": "Reference Videos",
            "type": "array"
          },
          "reference_audio": {
            "description": "Reference audio recordings. At most three.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 3,
            "title": "Reference Audio",
            "type": "array"
          }
        },
        "required": [
          "mode",
          "model",
          "prompt"
        ],
        "title": "ReferenceToVideoRequest",
        "type": "object"
      },
      "TextToVideoRequest": {
        "additionalProperties": false,
        "properties": {
          "end_user_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^\\S+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Stable, opaque end-user identifier in your application, scoped to the authenticated workspace. Use 1\u2013128 non-whitespace characters without personal information. Used for usage attribution and abuse investigation; does not change billing, authorization, or rate limits.",
            "title": "End User Id",
            "x-mcp-visible": false
          },
          "mode": {
            "const": "text_to_video",
            "description": "Generate from the prompt alone.",
            "title": "Mode",
            "type": "string"
          },
          "model": {
            "const": "heygen-video-1",
            "description": "Required video generation model. Only heygen-video-1 is supported.",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "Instructions for the video to generate. At most 16,000 Unicode characters.",
            "maxLength": 16000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "prompt_enhancement": {
            "default": "quality",
            "description": "Prompt enhancement mode: turbo, quality, ultraquality, or disabled. Defaults to quality; default is an alias for turbo.",
            "enum": [
              "turbo",
              "quality",
              "default",
              "disabled",
              "ultraquality"
            ],
            "title": "Prompt Enhancement",
            "type": "string"
          },
          "resolution": {
            "default": "768p",
            "description": "Output resolution: 480p, 768p, 1080p, or 2k. Defaults to 768p. At 1080p and 2k, text-to-video and reference-to-video require aspect_ratio 16:9 or 9:16; image-to-video follows the image proportions.",
            "enum": [
              "480p",
              "768p",
              "1080p",
              "2k"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "duration": {
            "anyOf": [
              {
                "maximum": 30,
                "minimum": 5,
                "type": "integer"
              },
              {
                "const": "auto",
                "type": "string"
              }
            ],
            "default": 5,
            "description": "Requested video duration: whole seconds from 5 through 30, or auto. Defaults to 5 when omitted. Above 15 requires text_to_video or image_to_video, 480p/768p/1080p/2k, and turbo/default/quality enhancement. Auto estimates quoted speech with an 8-second minimum and the maximum supported by these settings. Generation and billing use the resolved duration.",
            "title": "Duration",
            "x-mcp-schema": {
              "anyOf": [
                {
                  "maximum": 15,
                  "minimum": 5,
                  "type": "integer"
                },
                {
                  "const": "auto",
                  "type": "string"
                }
              ],
              "description": "Whole seconds from 5 through 15, or auto. Defaults to 5. Auto estimates quoted speech between 8 and 15 seconds."
            }
          },
          "aspect_ratio": {
            "default": "16:9",
            "description": "Output aspect ratio for text-to-video. Defaults to 16:9.",
            "enum": [
              "21:9",
              "16:9",
              "4:3",
              "1:1",
              "3:4",
              "9:16"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation seed. A random seed is chosen when omitted.",
            "title": "Seed"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HTTPS webhook URL for the terminal generation event.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client tracking ID echoed in the terminal webhook event.",
            "title": "Callback Id"
          }
        },
        "required": [
          "mode",
          "model",
          "prompt"
        ],
        "title": "TextToVideoRequest",
        "type": "object"
      },
      "CreateModelVideoResponse": {
        "properties": {
          "video_id": {
            "description": "Video identifier to use when polling for the result.",
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "const": "pending",
            "default": "pending",
            "description": "The request has been accepted for processing.",
            "title": "Status",
            "type": "string"
          },
          "input_video_duration": {
            "anyOf": [
              {
                "maximum": 15,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total reference-video duration allocated for billing, in seconds, with a shared 15-second budget.",
            "title": "Input Video Duration"
          }
        },
        "required": [
          "video_id"
        ],
        "title": "CreateModelVideoResponse",
        "type": "object"
      },
      "ModelVideoResponse": {
        "properties": {
          "video_id": {
            "description": "Generated video identifier.",
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "description": "Current generation status.",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          },
          "model": {
            "$ref": "#/components/schemas/VideoGenerationModel",
            "description": "Requested video generation model."
          },
          "created_at": {
            "description": "Request creation time as Unix seconds.",
            "title": "Created At",
            "type": "integer"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Download URL, present when completed. Poll again to obtain a fresh URL.",
            "title": "Video Url"
          },
          "duration": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generated video duration in seconds, present when completed.",
            "title": "Duration"
          },
          "input_video_duration": {
            "anyOf": [
              {
                "maximum": 15,
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Total reference-video duration allocated for billing, in seconds, with a shared 15-second budget.",
            "title": "Input Video Duration"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. Adaptive outputs report the actual width:height ratio after pixel alignment.",
            "title": "Aspect Ratio"
          },
          "width": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Actual output width in pixels, present when reported by the renderer.",
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Actual output height in pixels, present when reported by the renderer.",
            "title": "Height"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation seed, present when completed.",
            "title": "Seed"
          },
          "timings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelVideoTimings"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation timing in seconds, when reported by the renderer."
          },
          "failure_code": {
            "anyOf": [
              {
                "enum": [
                  "generation_failed",
                  "generation_cancelled",
                  "usage_limit_reached"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure code, present when failed or cancelled. `usage_limit_reached` means the charge was refused because a usage limit a workspace admin set (the API key's credit limit or the member's usage limit) was reached; `failure_message` is the limit's own message.",
            "title": "Failure Code"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure explanation, present when failed or cancelled.",
            "title": "Failure Message"
          }
        },
        "required": [
          "video_id",
          "status",
          "model",
          "created_at"
        ],
        "title": "ModelVideoResponse",
        "type": "object"
      },
      "ModelVideoTimings": {
        "properties": {
          "inference": {
            "description": "Diffusion transformer execution time in seconds. Excludes other inference stages, encoding, and queueing.",
            "minimum": 0,
            "title": "Inference",
            "type": "number"
          }
        },
        "required": [
          "inference"
        ],
        "title": "ModelVideoTimings",
        "type": "object"
      },
      "VideoGenerationModel": {
        "enum": [
          "heygen-video-1"
        ],
        "title": "VideoGenerationModel",
        "type": "string"
      },
      "CreateModelAvatarRequest": {
        "properties": {
          "model": {
            "description": "Avatar generation model.",
            "enum": [
              "heygen-avatar-6",
              "heygen-avatar-6-turbo"
            ],
            "title": "Model",
            "type": "string"
          },
          "reference_images": {
            "description": "Up to one reference image.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 1,
            "title": "Reference Images",
            "type": "array"
          },
          "reference_videos": {
            "description": "Up to one reference video.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 1,
            "title": "Reference Videos",
            "type": "array"
          },
          "audio": {
            "description": "Driving speech audio.",
            "discriminator": {
              "mapping": {
                "asset_id": "#/components/schemas/AssetId",
                "base64": "#/components/schemas/AssetBase64",
                "url": "#/components/schemas/AssetUrl"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/AssetUrl"
              },
              {
                "$ref": "#/components/schemas/AssetId"
              },
              {
                "$ref": "#/components/schemas/AssetBase64"
              }
            ],
            "title": "Audio"
          },
          "resolution": {
            "default": "1080p",
            "description": "Inference resolution. Defaults to 1080p.",
            "enum": [
              "1080p",
              "2k"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "motion_prompt": {
            "anyOf": [
              {
                "maxLength": 1200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional instructions for gestures, expression, posture, and camera behavior. Overrides motion_expressiveness where specified.",
            "title": "Motion Prompt"
          },
          "motion_expressiveness": {
            "default": "default",
            "description": "Use default for the model's usual motion, or less for fewer and smaller gestures and calmer facial expressions. Does not disable motion.",
            "enum": [
              "default",
              "less"
            ],
            "title": "Motion Expressiveness",
            "type": "string"
          },
          "output_width": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "multipleOf": 2,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output width in pixels; supply with output_height, or omit both to use the native size.",
            "title": "Output Width"
          },
          "output_height": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "multipleOf": 2,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output height in pixels; supply with output_width, or omit both to use the native size.",
            "title": "Output Height"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "HTTPS URL for terminal generation notifications.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Client identifier echoed in terminal notifications.",
            "title": "Callback Id"
          }
        },
        "required": [
          "model",
          "audio"
        ],
        "title": "CreateModelAvatarRequest",
        "type": "object"
      },
      "CreateModelAvatarResponse": {
        "properties": {
          "video_id": {
            "description": "Video identifier for polling.",
            "title": "Video Id",
            "type": "string"
          },
          "status": {
            "const": "pending",
            "default": "pending",
            "description": "Generation has been accepted.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "video_id"
        ],
        "title": "CreateModelAvatarResponse",
        "type": "object"
      },
      "CreateImageGenerationRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "const": "heygen-image-1",
            "description": "Required identity-focused image model. Only heygen-image-1 is supported.",
            "title": "Model",
            "type": "string"
          },
          "mode": {
            "const": "identity_remix",
            "default": "identity_remix",
            "description": "Generation operation. Only identity_remix is supported. Defaults to identity_remix when omitted.",
            "title": "Mode",
            "type": "string"
          },
          "identity_images": {
            "description": "One to five images of the identity to preserve.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 5,
            "minItems": 1,
            "title": "Identity Images",
            "type": "array"
          },
          "reference_images": {
            "description": "Supply exactly one image whose clothing, pose, composition, and background should guide the result.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 1,
            "minItems": 1,
            "title": "Reference Images",
            "type": "array"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "1:1",
                  "2:3",
                  "3:2",
                  "3:4",
                  "4:3",
                  "4:5",
                  "5:4",
                  "9:16",
                  "16:9"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. Omit to match the reference image after EXIF orientation. Explicit presets are exact; inferred ratios round to the nearest pixel. Output resolution follows the model's canvas policy; read width and height from each result.",
            "title": "Aspect Ratio"
          },
          "num_images": {
            "default": 1,
            "description": "Number of images to generate in this job. Supports one to five.",
            "maximum": 5,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seed for the first image. Each subsequent image increments the seed by one. A random seed is chosen when omitted.",
            "title": "Seed"
          }
        },
        "required": [
          "model",
          "identity_images",
          "reference_images"
        ],
        "title": "CreateImageGenerationRequest",
        "type": "object"
      },
      "CreateImageGenerationResponse": {
        "properties": {
          "generation_id": {
            "description": "Generation job identifier to use when polling for results.",
            "title": "Generation Id",
            "type": "string"
          },
          "status": {
            "const": "pending",
            "default": "pending",
            "description": "The request has been accepted for processing.",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "generation_id"
        ],
        "title": "CreateImageGenerationResponse",
        "type": "object"
      },
      "ImageGenerationResponse": {
        "properties": {
          "generation_id": {
            "description": "Generation job identifier returned by creation.",
            "title": "Generation Id",
            "type": "string"
          },
          "status": {
            "description": "Current generation status.",
            "enum": [
              "pending",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          },
          "model": {
            "$ref": "#/components/schemas/ImageGenerationModel",
            "description": "Requested image generation model."
          },
          "num_images": {
            "description": "Number of images requested for this generation job.",
            "maximum": 5,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "created_at": {
            "description": "Request creation time as Unix seconds.",
            "title": "Created At",
            "type": "integer"
          },
          "images": {
            "description": "Generated images in stable output order. Contains exactly num_images entries when completed; empty for every other status.",
            "items": {
              "$ref": "#/components/schemas/GeneratedImageResponse"
            },
            "title": "Images",
            "type": "array"
          },
          "failure_code": {
            "anyOf": [
              {
                "enum": [
                  "generation_failed",
                  "generation_cancelled",
                  "insufficient_credit",
                  "usage_limit_reached",
                  "no_face_detected",
                  "multiple_faces_detected"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure code, present when failed or cancelled. Face detection failures require replacing the indicated input image.",
            "title": "Failure Code"
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Failure explanation, present when failed or cancelled.",
            "title": "Failure Message"
          }
        },
        "required": [
          "generation_id",
          "status",
          "model",
          "num_images",
          "created_at",
          "images"
        ],
        "title": "ImageGenerationResponse",
        "type": "object"
      },
      "GeneratedImageResponse": {
        "properties": {
          "image_id": {
            "description": "Unique identifier of this generated image, distinct from the generation job identifier.",
            "title": "Image Id",
            "type": "string"
          },
          "image_url": {
            "description": "Download URL. Poll the generation again to obtain a fresh URL.",
            "title": "Image Url",
            "type": "string"
          },
          "width": {
            "description": "Generated image width in pixels.",
            "exclusiveMinimum": 0,
            "title": "Width",
            "type": "integer"
          },
          "height": {
            "description": "Generated image height in pixels.",
            "exclusiveMinimum": 0,
            "title": "Height",
            "type": "integer"
          },
          "seed": {
            "description": "Actual seed used for this image.",
            "title": "Seed",
            "type": "integer"
          }
        },
        "required": [
          "image_id",
          "image_url",
          "width",
          "height",
          "seed"
        ],
        "title": "GeneratedImageResponse",
        "type": "object"
      },
      "ImageGenerationModel": {
        "enum": [
          "heygen-image-1"
        ],
        "title": "ImageGenerationModel",
        "type": "string"
      },
      "ImageCreateRequest": {
        "discriminator": {
          "mapping": {
            "gpt-image-2.5": "#/components/schemas/GptImage25Request",
            "gpt-image-2.6": "#/components/schemas/GptImage26Request",
            "gpt-image-2.6-flare": "#/components/schemas/GptImage26FlareRequest",
            "nano-banana-2": "#/components/schemas/NanoBanana2Request",
            "nano-banana-2.1": "#/components/schemas/NanoBanana21Request"
          },
          "propertyName": "model"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/GptImage25Request"
          },
          {
            "$ref": "#/components/schemas/GptImage26Request"
          },
          {
            "$ref": "#/components/schemas/GptImage26FlareRequest"
          },
          {
            "$ref": "#/components/schemas/NanoBanana2Request"
          },
          {
            "$ref": "#/components/schemas/NanoBanana21Request"
          }
        ]
      },
      "GptImage25Request": {
        "additionalProperties": false,
        "description": "GPT Image 2.5.",
        "properties": {
          "model": {
            "const": "gpt-image-2.5",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What to generate, or how to edit the reference images.",
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "num_images": {
            "default": 1,
            "description": "Number of images to generate, from 1 to 4.",
            "maximum": 4,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "1:1",
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. 16:9 when omitted.",
            "title": "Aspect Ratio"
          },
          "reference_images": {
            "description": "Reference images. When non-empty the request is an edit.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 16,
            "title": "Reference Images",
            "type": "array"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "GptImage25Request",
        "type": "object"
      },
      "GptImage26FlareRequest": {
        "additionalProperties": false,
        "description": "GPT Image 2.6 Flare, for fast iteration.",
        "properties": {
          "model": {
            "const": "gpt-image-2.6-flare",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What to generate, or how to edit the reference images.",
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "num_images": {
            "default": 1,
            "description": "Number of images to generate, from 1 to 4.",
            "maximum": 4,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "1:1",
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. 16:9 when omitted.",
            "title": "Aspect Ratio"
          },
          "reference_images": {
            "description": "Reference images. When non-empty the request is an edit.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 16,
            "title": "Reference Images",
            "type": "array"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "GptImage26FlareRequest",
        "type": "object"
      },
      "GptImage26Request": {
        "additionalProperties": false,
        "description": "GPT Image 2.6 Sunburst, for detailed work.",
        "properties": {
          "model": {
            "const": "gpt-image-2.6",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What to generate, or how to edit the reference images.",
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "num_images": {
            "default": 1,
            "description": "Number of images to generate, from 1 to 4.",
            "maximum": 4,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "1:1",
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. 16:9 when omitted.",
            "title": "Aspect Ratio"
          },
          "reference_images": {
            "description": "Reference images. When non-empty the request is an edit.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 16,
            "title": "Reference Images",
            "type": "array"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "GptImage26Request",
        "type": "object"
      },
      "NanoBanana21Request": {
        "additionalProperties": false,
        "description": "Nano Banana 2.1.",
        "properties": {
          "model": {
            "const": "nano-banana-2.1",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What to generate, or how to edit the reference images.",
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "num_images": {
            "default": 1,
            "description": "Number of images to generate, from 1 to 4.",
            "maximum": 4,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "1:1",
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4",
                  "3:2",
                  "2:3",
                  "21:9"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. 16:9 when omitted.",
            "title": "Aspect Ratio"
          },
          "reference_images": {
            "description": "Reference images. When non-empty the request is an edit.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 14,
            "title": "Reference Images",
            "type": "array"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "NanoBanana21Request",
        "type": "object"
      },
      "NanoBanana2Request": {
        "additionalProperties": false,
        "description": "Nano Banana 2 (Gemini 3.1 Flash Image).",
        "properties": {
          "model": {
            "const": "nano-banana-2",
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What to generate, or how to edit the reference images.",
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "num_images": {
            "default": 1,
            "description": "Number of images to generate, from 1 to 4.",
            "maximum": 4,
            "minimum": 1,
            "title": "Num Images",
            "type": "integer"
          },
          "aspect_ratio": {
            "anyOf": [
              {
                "enum": [
                  "1:1",
                  "16:9",
                  "9:16",
                  "4:3",
                  "3:4",
                  "3:2",
                  "2:3",
                  "21:9"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Output aspect ratio. 16:9 when omitted.",
            "title": "Aspect Ratio"
          },
          "reference_images": {
            "description": "Reference images. When non-empty the request is an edit.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 14,
            "title": "Reference Images",
            "type": "array"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "NanoBanana2Request",
        "type": "object"
      },
      "ThirdPartyImageResponse": {
        "properties": {
          "id": {
            "description": "Generation identifier, for reading the generation again.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "description": "`completed` with its images, `failed` with a failure code, or `pending` while the creating request is still running.",
            "enum": [
              "pending",
              "completed",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "created_at": {
            "description": "Request creation time as Unix seconds.",
            "title": "Created At",
            "type": "integer"
          },
          "images": {
            "description": "Generated images in output order; empty unless completed.",
            "items": {
              "$ref": "#/components/schemas/ThirdPartyGeneratedImage"
            },
            "title": "Images",
            "type": "array"
          },
          "failure_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ThirdPartyImageFailureCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Failure Message"
          },
          "charged": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ThirdPartyImageCharge"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the generation actually debited once it completed, which can differ from the estimate checked before it ran. Absent while pending, when failed, when one charge drew on two different balances, and on generations completed before this field was added."
          }
        },
        "required": [
          "id",
          "status",
          "model",
          "created_at",
          "images"
        ],
        "title": "ThirdPartyImageResponse",
        "type": "object"
      },
      "ChargedPool": {
        "description": "The balance a charge was debited from, which also names the unit its amount is in.",
        "enum": [
          "api_credits",
          "hyperframes_credits",
          "web_credits",
          "free_images"
        ],
        "title": "ChargedPool",
        "type": "string"
      },
      "ThirdPartyGeneratedImage": {
        "properties": {
          "url": {
            "description": "Download URL. It expires; read the generation again for a fresh one.",
            "title": "Url",
            "type": "string"
          },
          "width": {
            "exclusiveMinimum": 0,
            "title": "Width",
            "type": "integer"
          },
          "height": {
            "exclusiveMinimum": 0,
            "title": "Height",
            "type": "integer"
          }
        },
        "required": [
          "url",
          "width",
          "height"
        ],
        "title": "ThirdPartyGeneratedImage",
        "type": "object"
      },
      "ThirdPartyImageCharge": {
        "description": "What a completed generation actually debited, after any vendor-cost charge: the figure Usage & History shows.",
        "properties": {
          "amount": {
            "description": "The amount debited, in the pool's unit: API credits, HyperFrames credits, web plan credits, or free images.",
            "title": "Amount",
            "type": "number"
          },
          "pool": {
            "$ref": "#/components/schemas/ChargedPool",
            "description": "The balance it was debited from. `api_credits`: the workspace's API credits. `hyperframes_credits`: the HyperFrames usage credits. `web_credits`: the web plan's credits, for an OAuth app paying from its plan. `free_images`: the free plan's monthly images, one per image."
          }
        },
        "required": [
          "amount",
          "pool"
        ],
        "title": "ThirdPartyImageCharge",
        "type": "object"
      },
      "ThirdPartyImageFailureCode": {
        "enum": [
          "content_policy_violation",
          "partial_generation",
          "vendor_unavailable",
          "ai_vendor_access_restricted",
          "insufficient_credit",
          "api_key_required",
          "internal_error"
        ],
        "title": "ThirdPartyImageFailureCode",
        "type": "string"
      },
      "VideoGenerationCreateRequest": {
        "discriminator": {
          "mapping": {
            "minimax-h3-max": "#/components/schemas/MinimaxH3MaxVideoGenerationCreateRequest",
            "seedance-2.5": "#/components/schemas/SeedanceVideoGenerationCreateRequest"
          },
          "propertyName": "model"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/SeedanceVideoGenerationCreateRequest"
          },
          {
            "$ref": "#/components/schemas/MinimaxH3MaxVideoGenerationCreateRequest"
          }
        ]
      },
      "MinimaxH3MaxVideoGenerationCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "const": "minimax-h3-max",
            "description": "Video model. Each model accepts its own options.",
            "enum": [
              "minimax-h3-max"
            ],
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What the video should show, at most 50,000 characters. Refer to the references by kind and order: Image 1, Image 2, Video 1, Audio 1 and so on.",
            "maxLength": 50000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "duration": {
            "default": 5.0,
            "description": "Output length in seconds, 0.92 to 15; fractions of a second are allowed.",
            "maximum": 15,
            "minimum": 0.92,
            "title": "Duration",
            "type": "number"
          },
          "resolution": {
            "default": "768p",
            "description": "Output resolution. 1080p is refined from a 768p render.",
            "enum": [
              "480p",
              "768p",
              "1080p"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "aspect_ratio": {
            "default": "adaptive",
            "description": "Output aspect ratio. With a `first_frame` the video takes the first frame's shape whatever this says; `adaptive` otherwise follows the reference videos.",
            "enum": [
              "adaptive",
              "21:9",
              "16:9",
              "4:3",
              "1:1",
              "3:4",
              "9:16"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "prompt_expansion_mode": {
            "default": "balanced",
            "description": "How much the prompt is rewritten before generation: `disabled` sends it as written, `balanced` takes about a second, `quality` up to about 30 seconds for a richer prompt.",
            "enum": [
              "disabled",
              "balanced",
              "quality"
            ],
            "title": "Prompt Expansion Mode",
            "type": "string"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 4294967295,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Generation seed. A random seed is chosen when omitted.",
            "title": "Seed"
          },
          "first_frame": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An image the video opens on exactly.",
            "title": "First Frame"
          },
          "end_frame": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An image the video ends on exactly.",
            "title": "End Frame"
          },
          "middle_frame": {
            "anyOf": [
              {
                "discriminator": {
                  "mapping": {
                    "asset_id": "#/components/schemas/AssetId",
                    "base64": "#/components/schemas/AssetBase64",
                    "url": "#/components/schemas/AssetUrl"
                  },
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AssetUrl"
                  },
                  {
                    "$ref": "#/components/schemas/AssetId"
                  },
                  {
                    "$ref": "#/components/schemas/AssetBase64"
                  }
                ]
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "An image that guides the video at `middle_frame_time`. It needs `first_frame`, `end_frame` and a 480p or 768p `resolution`.",
            "title": "Middle Frame"
          },
          "middle_frame_time": {
            "anyOf": [
              {
                "exclusiveMaximum": 15,
                "exclusiveMinimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Seconds from the start at which `middle_frame` guides the video, required with it. It is rounded to the nearest frame at 24 fps and must fall strictly between the first and last frames of `duration`.",
            "title": "Middle Frame Time"
          },
          "reference_images": {
            "description": "Reference images for people, objects and style, at most 9, each between 2:5 and 5:2.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 9,
            "title": "Reference Images",
            "type": "array"
          },
          "reference_videos": {
            "description": "Reference videos for motion, people and style, at most 3, each 2 to 15 seconds and 15 seconds in total.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 3,
            "title": "Reference Videos",
            "type": "array"
          },
          "reference_audio": {
            "description": "Reference audio clips, at most 3, each 2 to 15 seconds and 15 seconds in total. Reference images, videos and audio clips together are at least 1 and at most 12 files.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 3,
            "title": "Reference Audio",
            "type": "array"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification (`video_generation.success` or `video_generation.fail`) when the generation finishes, in addition to the workspace's configured webhook endpoints.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "MinimaxH3MaxVideoGenerationCreateRequest",
        "type": "object"
      },
      "SeedanceVideoGenerationCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "const": "seedance-2.5",
            "description": "Video model. Each model accepts its own options.",
            "enum": [
              "seedance-2.5"
            ],
            "title": "Model",
            "type": "string"
          },
          "prompt": {
            "description": "What the video should show.",
            "maxLength": 4000,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "duration": {
            "default": 5,
            "description": "Output length in whole seconds, 4 to 30.",
            "maximum": 30,
            "minimum": 4,
            "title": "Duration",
            "type": "integer"
          },
          "resolution": {
            "default": "720p",
            "description": "Output resolution.",
            "enum": [
              "480p",
              "720p",
              "1080p"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "aspect_ratio": {
            "default": "16:9",
            "description": "Output aspect ratio.",
            "enum": [
              "16:9",
              "1:1",
              "9:16"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "generate_audio": {
            "default": true,
            "description": "Generate a soundtrack with the video.",
            "title": "Generate Audio",
            "type": "boolean"
          },
          "reference_images": {
            "description": "Reference images, at most 30.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 30,
            "title": "Reference Images",
            "type": "array"
          },
          "reference_videos": {
            "description": "Reference videos, at most 10, each 2 to 10 seconds and 30 seconds in total.",
            "items": {
              "discriminator": {
                "mapping": {
                  "asset_id": "#/components/schemas/AssetId",
                  "base64": "#/components/schemas/AssetBase64",
                  "url": "#/components/schemas/AssetUrl"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AssetUrl"
                },
                {
                  "$ref": "#/components/schemas/AssetId"
                },
                {
                  "$ref": "#/components/schemas/AssetBase64"
                }
              ]
            },
            "maxItems": 10,
            "title": "Reference Videos",
            "type": "array"
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Webhook URL to receive a POST notification (`video_generation.success` or `video_generation.fail`) when the generation finishes, in addition to the workspace's configured webhook endpoints.",
            "title": "Callback Url"
          },
          "callback_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Caller-defined identifier echoed back in the webhook payload.",
            "title": "Callback Id"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "title": "SeedanceVideoGenerationCreateRequest",
        "type": "object"
      },
      "VideoGenerationResponse": {
        "properties": {
          "id": {
            "description": "The generation id; read it again with GET /v3/video-generations/{id}.",
            "title": "Id",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/VideoGenerationStatus",
            "description": "`pending` while the model works, then `completed` or `failed`."
          },
          "model": {
            "description": "The video model that generates the video.",
            "enum": [
              "seedance-2.5",
              "minimax-h3-max"
            ],
            "title": "Model",
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Unix seconds.",
            "title": "Created At"
          },
          "duration": {
            "description": "The output length the request asked for, in seconds.",
            "title": "Duration",
            "type": "number"
          },
          "resolution": {
            "description": "The output resolution the request asked for.",
            "enum": [
              "480p",
              "720p",
              "768p",
              "1080p"
            ],
            "title": "Resolution",
            "type": "string"
          },
          "aspect_ratio": {
            "description": "The output aspect ratio the request asked for.",
            "enum": [
              "adaptive",
              "21:9",
              "16:9",
              "4:3",
              "1:1",
              "3:4",
              "9:16"
            ],
            "title": "Aspect Ratio",
            "type": "string"
          },
          "video_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Time-limited download URL of the mp4; present once completed. Read the generation again for a fresh URL.",
            "title": "Video Url"
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The length of the generated video; present once completed.",
            "title": "Duration Seconds"
          },
          "failure_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoFailureCode"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Why the generation failed; present once failed."
          },
          "failure_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A customer-safe explanation; present once failed.",
            "title": "Failure Message"
          }
        },
        "required": [
          "id",
          "status",
          "model",
          "duration",
          "resolution",
          "aspect_ratio"
        ],
        "title": "VideoGenerationResponse",
        "type": "object"
      },
      "VideoFailureCode": {
        "enum": [
          "invalid_input",
          "content_policy_violation",
          "vendor_unavailable",
          "vendor_timeout",
          "ai_vendor_access_restricted",
          "insufficient_credit",
          "hf_usage_exhausted",
          "hf_subscription_required",
          "api_key_required",
          "internal_error"
        ],
        "title": "VideoFailureCode",
        "type": "string"
      },
      "VideoGenerationStatus": {
        "enum": [
          "pending",
          "completed",
          "failed"
        ],
        "title": "VideoGenerationStatus",
        "type": "string"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "HeyGen API key. Obtain from your HeyGen dashboard."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "OAuth2 bearer token."
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "Optional client-supplied key for safely retrying mutations. Subsequent calls within 24 hours that share this key replay the original response \u2014 even if the request body differs slightly (a warning is logged). A retry that arrives while the original is still in flight gets a 409 `request_in_progress`. Keys must be 1\u2013255 characters from `[A-Za-z0-9_:.-]`; a UUID is a safe default. Scope is per-endpoint and per-resource: the same key on a different route or path parameter is independent.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_\\-:.]{1,255}$",
          "maxLength": 255,
          "minLength": 1
        },
        "example": "550e8400-e29b-41d4-a716-446655440000"
      },
      "DurableIdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "Required client-supplied key for safely retrying creation. The key is stored with the created resource, so a retry returns the original resource indefinitely \u2014 there is no expiry window. Scope is the space plus the specific workflow version: the same key against a different version is independent. A retry whose body differs from the original returns 409 `conflict`. It is required rather than optional because this request is submitted for execution: when that submission cannot be confirmed the response is a retryable 503, and repeating the request with the same key is what resumes the original run instead of starting a second one. A missing or blank value is rejected with 400. Keys must be 1\u2013255 characters from `[A-Za-z0-9_:.-]`; a UUID is a safe default.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_\\-:.]{1,255}$",
          "maxLength": 255,
          "minLength": 1
        },
        "example": "550e8400-e29b-41d4-a716-446655440000"
      },
      "RequiredIdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "Required client-supplied key for safely retrying a request that charges. A retry within 24 hours that shares this key returns the original response instead of running again. The body must be the same: a different body under the same key returns 409 `conflict`. A retry that arrives while the original is still in flight gets a 409 `request_in_progress`. When the original could not be confirmed, repeating it with the same key settles that attempt instead of starting another. Scope is the space plus the request path, so the same key on another video is independent, and a key sent by another member of the space replays that member's response. A missing or blank value is rejected with 400. Keys must be 1\u2013255 characters from `[A-Za-z0-9_:.-]`; a UUID is a safe default.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_\\-:.]{1,255}$",
          "maxLength": 255,
          "minLength": 1
        },
        "example": "550e8400-e29b-41d4-a716-446655440000"
      }
    },
    "responses": {
      "IdempotencyInProgress": {
        "description": "A prior request with this Idempotency-Key is still in progress. Wait for the original request to complete, then retry.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "$ref": "#/components/schemas/StandardAPIError"
                }
              }
            },
            "example": {
              "error": {
                "code": "request_in_progress",
                "message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
                "param": null,
                "doc_url": null
              }
            }
          }
        }
      }
    }
  }
}
