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

# Topaz Video Upscale

> - Topaz Video Upscale (topaz-video-upscale) model supports AI-powered video super-resolution upscaling
- Supports 1x (enhancement only), 2x, and 4x upscale factors
- Billing is based on input video duration (per second) and upscale factor
- Asynchronous processing mode, use the returned task ID to [query status](/en/api-manual/task-management/get-task-detail)
- Upscaled video links are valid for 24 hours, please save them promptly



## OpenAPI

````yaml /en/api-manual/video-series/topaz/topaz-video-upscale.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: topaz-video-upscale API
  description: AI-powered video super-resolution upscaling using Topaz model
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Video Generation
    description: AI video generation APIs
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video Generation
      summary: topaz-video-upscale API
      description: >-
        - Topaz Video Upscale (topaz-video-upscale) model supports AI-powered
        video super-resolution upscaling

        - Supports 1x (enhancement only), 2x, and 4x upscale factors

        - Billing is based on input video duration (per second) and upscale
        factor

        - Asynchronous processing mode, use the returned task ID to [query
        status](/en/api-manual/task-management/get-task-detail)

        - Upscaled video links are valid for 24 hours, please save them promptly
      operationId: createVideoGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              basic_2x_upscale:
                summary: Basic 2x Upscale (default)
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
              upscale_4x:
                summary: 4x Upscale (higher quality, 1.75x price)
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
                  model_params:
                    upscale_factor: '4'
              upscale_1x_enhance:
                summary: 1x Enhancement (no resolution change, quality boost only)
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
                  model_params:
                    upscale_factor: '1'
              with_callback:
                summary: With Callback URL
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
                  model_params:
                    upscale_factor: '2'
                  callback_url: https://your-domain.com/webhooks/video-task-completed
      responses:
        '200':
          description: Video upscale task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missing_video:
                  summary: Missing video URL
                  value:
                    error:
                      code: invalid_parameter
                      message: >-
                        video_urls is required and must not be empty for
                        topaz-video-upscale
                      type: invalid_request_error
                probe_failed:
                  summary: Video probe failed
                  value:
                    error:
                      code: video_probe_failed
                      message: >-
                        Failed to detect video duration, please check video URL
                        accessibility
                      type: invalid_request_error
        '401':
          description: Unauthenticated, token is invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Insufficient quota, top-up required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: 'Token does not have access to model: topaz-video-upscale'
                  type: invalid_request_error
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    VideoGenerationRequest:
      type: object
      required:
        - model
        - video_urls
      properties:
        model:
          type: string
          description: Video upscale model name
          enum:
            - topaz-video-upscale
          default: topaz-video-upscale
          example: topaz-video-upscale
        video_urls:
          type: array
          description: >-
            Input video URL list for upscaling


            **Note:**

            - Only `1` video per request

            - Video URL must be directly accessible by the server (public URL or
            pre-signed URL)

            - The server will automatically detect the input video duration for
            billing

            - Supported formats: `.mp4`
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          example:
            - https://example.com/my-video.mp4
        model_params:
          type: object
          description: Model-specific parameters for controlling upscale behavior
          properties:
            upscale_factor:
              type: string
              description: >-
                Video upscale factor, controls the output resolution multiplier


                **Available options:**

                - `"1"` - Enhancement only (no resolution change, AI quality
                boost)

                - `"2"` - 2x upscale (e.g. 720p to 1440p) — **default**

                - `"4"` - 4x upscale (e.g. 720p to 2880p)


                **Billing impact:**

                - Pricing varies by upscale factor, higher factors cost more


                **Type handling:**

                - Accepts both string (`"4"`) and number (`4`) formats

                - Invalid values silently fall back to `"2"` (default)
              enum:
                - '1'
                - '2'
                - '4'
              default: '2'
              example: '2'
        callback_url:
          type: string
          description: >-
            HTTPS callback URL for task completion


            **Callback Timing:**

            - Triggered when task is completed, failed, or cancelled

            - Sent after billing confirmation


            **Security Restrictions:**

            - HTTPS protocol only

            - Internal IP addresses are prohibited (127.0.0.1, 10.x.x.x,
            172.16-31.x.x, 192.168.x.x, etc.)

            - URL length must not exceed `2048` characters


            **Callback Mechanism:**

            - Timeout: `10` seconds

            - Maximum `3` retries after failure (at `1`/`2`/`4` seconds after
            failure)

            - Callback response format is consistent with task query API

            - 2xx status code is considered successful, other codes trigger
            retry
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1757169743
        id:
          type: string
          description: Task ID
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          description: Actual model name used
          example: topaz-video-upscale
        object:
          type: string
          enum:
            - video.generation.task
          description: Task type
        progress:
          type: integer
          description: Task progress percentage (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: Video task details
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: Task output type
          example: video
        usage:
          $ref: '#/components/schemas/VideoUsage'
          description: Usage and billing information
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code identifier
            message:
              type: string
              description: Error description message
            type:
              type: string
              description: Error type
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: Whether the task can be cancelled
          example: true
        estimated_time:
          type: integer
          description: Estimated completion time (seconds)
          minimum: 0
          example: 600
        video_duration:
          type: integer
          description: Video duration (seconds)
          example: 0
    VideoUsage:
      type: object
      description: Usage and billing information
      properties:
        billing_rule:
          type: string
          description: >-
            Billing rule. For topaz-video-upscale, billing is `per_second` based
            on input video duration multiplied by the upscale factor pricing
          enum:
            - per_call
            - per_token
            - per_second
          example: per_second
        credits_reserved:
          type: number
          description: >-
            Estimated credits consumed (pre-authorized). Final billing is
            calculated after task completion based on actual input video
            duration
          minimum: 0
          example: 28.8
        user_group:
          type: string
          description: User group category
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ## All APIs require Bearer Token authentication ##


        **Get API Key:**


        Visit [API Key Management Page](https://evolink.ai/dashboard/keys) to
        get your API Key


        **Add to request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````