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

# Topaz 视频高清放大

> - Topaz 视频增强模型，输入现有视频并输出放大后的增强版本
- 支持选择增强模型、放大倍数和插帧参数
- 异步处理模式，使用返回的任务ID [进行查询](/pages/zh/api-manual/task-management/get-task-detail)
- 生成的视频链接，有效期为24小时，请尽快保存




## OpenAPI

````yaml openapi/zh/topaz-upscale-video.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Topaz Video Upscale
  version: '1.0'
servers:
  - url: https://api.aihubmax.com
security:
  - BearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video > Topaz
      summary: Topaz Video Upscale
      description: >
        - Topaz 视频增强模型，输入现有视频并输出放大后的增强版本

        - 支持选择增强模型、放大倍数和插帧参数

        - 异步处理模式，使用返回的任务ID
        [进行查询](/pages/zh/api-manual/task-management/get-task-detail)

        - 生成的视频链接，有效期为24小时，请尽快保存
      operationId: topaz-upscale-video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopazUpscaleVideoRequest'
            examples:
              基础视频增强:
                summary: 基础视频增强
                value:
                  model: topaz-upscale-video
                  video_url: https://example.com/input-video.mp4
                  enhancement_model: Proteus
                  upscale_factor: 2
              启用插帧与细节恢复:
                summary: 启用插帧与细节恢复
                value:
                  model: topaz-upscale-video
                  video_url: https://example.com/clip.mp4
                  enhancement_model: Starlight Precise 2.5
                  upscale_factor: 4
                  target_fps: 60
                  recover_detail: 0.35
                  h264_output: true
      responses:
        '200':
          $ref: '#/components/responses/TaskCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    TopazUpscaleVideoRequest:
      type: object
      required:
        - model
        - video_url
      properties:
        model:
          description: '`topaz-upscale-video`：输入视频 URL，输出放大并增强后的视频'
          examples:
            - topaz-upscale-video
          type: string
          default: topaz-upscale-video
        video_url:
          description: |
            待增强视频的公开 URL

            **说明：**
            - 上游服务需要能够直接访问该地址
            - 会基于该视频输出放大并增强后的版本
          type: string
          example: https://example.com/input-video.mp4
        enhancement_model:
          default: Proteus
          description: |
            增强模型名称

            **说明：**
            - 默认 `Proteus`，适合大多数视频
            - `Artemis` 系列偏向降噪与锐化
            - `Nyx` 系列偏向噪点清理
            - `Gaia` 系列更适合渲染、动画或运动图形
            - `Starlight` 系列偏向生成式增强
          enum:
            - Proteus
            - Artemis HQ
            - Artemis MQ
            - Artemis LQ
            - Nyx
            - Nyx Fast
            - Nyx XL
            - Nyx HF
            - Gaia HQ
            - Gaia CG
            - Gaia 2
            - Starlight Precise 1
            - Starlight Precise 2
            - Starlight Precise 2.5
            - Starlight HQ
            - Starlight Mini
            - Starlight Sharp
            - Starlight Fast 1
            - Starlight Fast 2
          type: string
          example: Proteus
        upscale_factor:
          default: 2
          description: |
            放大倍数

            **说明：**
            - 取值范围 `1-4`
            - `2` 表示宽和高都放大 `2` 倍
          maximum: 4
          minimum: 1
          type: number
          example: 2
        target_fps:
          anyOf:
            - maximum: 60
              minimum: 16
              type: integer
            - type: 'null'
          default: null
          description: |-
            目标帧率

            **说明：**
            - 取值范围 `16-60`
            - 传入后会启用插帧


            > 非必须不要传这个参数。
          x-advanced: true
          example: 24
        compression:
          anyOf:
            - maximum: 1
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: |-
            压缩伪影去除强度

            **说明：**
            - 取值范围 `0.0-1.0`
            - 不传时使用模型默认值


            > 非必须不要传这个参数。
          x-advanced: true
          example: 0.3
        noise:
          anyOf:
            - maximum: 1
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: |-
            降噪强度

            **说明：**
            - 取值范围 `0.0-1.0`
            - 不传时使用模型默认值


            > 非必须不要传这个参数。
          x-advanced: true
          example: 0.2
        halo:
          anyOf:
            - maximum: 1
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: |-
            光晕抑制强度

            **说明：**
            - 取值范围 `0.0-1.0`
            - 不传时使用模型默认值


            > 非必须不要传这个参数。
          x-advanced: true
          example: 0.15
        grain:
          anyOf:
            - maximum: 1
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: |-
            胶片颗粒强度

            **说明：**
            - 取值范围 `0.0-1.0`
            - 不传时使用模型默认值


            > 非必须不要传这个参数。
          x-advanced: true
          example: 0.1
        recover_detail:
          anyOf:
            - maximum: 1
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: |-
            原始细节保留强度

            **说明：**
            - 取值范围 `0.0-1.0`
            - 值越高，越倾向保留原始画面细节


            > 非必须不要传这个参数。
          x-advanced: true
          example: 0.35
        h264_output:
          default: false
          description: |-
            是否输出 H.264 编码视频

            **说明：**
            - 默认 `false`，即输出 H.265
            - 设为 `true` 时输出 H.264


            > 非必须不要传这个参数。
          type: boolean
          x-advanced: true
          example: false
    TaskResponse:
      type: object
      properties:
        created:
          type: integer
          description: 任务创建时间戳
          example: 1757165031
        id:
          type: string
          description: 任务ID
          example: task-unified-1757165031-uyujaw3d
        model:
          type: string
          description: 实际使用的模型名称
        object:
          type: string
          description: 任务的具体类型
          enum:
            - video.generation.task
        progress:
          type: integer
          description: 任务进度百分比 (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: 任务状态
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          type: object
          description: 异步任务信息
          properties:
            can_cancel:
              type: boolean
              description: 任务是否可以取消
              example: true
            estimated_time:
              type: integer
              description: 预计完成时间（秒）
              example: 45
        type:
          type: string
          description: 任务的输出类型
          enum:
            - video
          example: video
    ErrorResponse400:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 请求格式错误
            type:
              type: string
              example: invalid_request_error
    ErrorResponse401:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: API密钥无效
            type:
              type: string
              example: authentication_error
    ErrorResponse402:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 账户余额不足
            type:
              type: string
              example: insufficient_quota
    ErrorResponse422:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 参数校验失败
            type:
              type: string
              example: validation_error
    ErrorResponse429:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 请求频率超限
            type:
              type: string
              example: rate_limit_error
    ErrorResponse500:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 服务器内部错误
            type:
              type: string
              example: server_error
    ErrorResponse503:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: 服务暂不可用，请稍后重试
            type:
              type: string
              example: service_unavailable
  responses:
    TaskCreated:
      description: 任务创建成功
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TaskResponse'
    BadRequest:
      description: 请求格式错误
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse400'
    Unauthorized:
      description: 未授权
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse401'
    PaymentRequired:
      description: 余额不足
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse402'
    UnprocessableEntity:
      description: 参数校验失败
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse422'
    TooManyRequests:
      description: 请求频率超限
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse429'
    InternalServerError:
      description: 服务器内部错误
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse500'
    ServiceUnavailable:
      description: 服务暂不可用
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse503'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        ## 所有接口均需要使用Bearer Token进行认证 ##

        使用时在请求头中添加：

        `Authorization: Bearer YOUR_API_KEY`

````