> ## 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 動画超解像

> - Topaz Video Upscale (topaz-video-upscale) モデルはAI駆動の動画超解像アップスケーリングをサポートしています
- 1x（画質向上のみ）、2x、4xのアップスケールファクターをサポート
- 課金は入力動画の長さ（秒単位）とアップスケールファクターに基づきます
- 非同期処理モード、返されたタスクIDを使用して[照会](/ja/api-manual/task-management/get-task-detail)してください
- アップスケールされた動画リンクは24時間有効です。速やかに保存してください



## OpenAPI

````yaml ja/api-manual/video-series/topaz/topaz-video-upscale.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: topaz-video-upscale インターフェース
  description: Topazモデルを使用したAI駆動の動画超解像アップスケーリング
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: 本番環境
security:
  - bearerAuth: []
tags:
  - name: 動画生成
    description: AI動画生成関連API
paths:
  /v1/videos/generations:
    post:
      tags:
        - 動画生成
      summary: topaz-video-upscale インターフェース
      description: >-
        - Topaz Video Upscale (topaz-video-upscale)
        モデルはAI駆動の動画超解像アップスケーリングをサポートしています

        - 1x（画質向上のみ）、2x、4xのアップスケールファクターをサポート

        - 課金は入力動画の長さ（秒単位）とアップスケールファクターに基づきます

        -
        非同期処理モード、返されたタスクIDを使用して[照会](/ja/api-manual/task-management/get-task-detail)してください

        - アップスケールされた動画リンクは24時間有効です。速やかに保存してください
      operationId: createVideoGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              basic_2x_upscale:
                summary: 基本2xアップスケール（デフォルト）
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
              upscale_4x:
                summary: 4xアップスケール（高画質、1.75倍価格）
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
                  model_params:
                    upscale_factor: '4'
              upscale_1x_enhance:
                summary: 1x画質向上（解像度変更なし、画質向上のみ）
                value:
                  model: topaz-video-upscale
                  video_urls:
                    - https://example.com/my-video.mp4
                  model_params:
                    upscale_factor: '1'
              with_callback:
                summary: コールバック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: 動画アップスケールタスクが正常に作成されました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: リクエストパラメータが不正です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missing_video:
                  summary: 動画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: 動画検出に失敗しました
                  value:
                    error:
                      code: video_probe_failed
                      message: >-
                        Failed to detect video duration, please check video URL
                        accessibility
                      type: invalid_request_error
        '401':
          description: 未認証、トークンが無効または期限切れです
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: クォータ不足のため、チャージが必要です
          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: アクセスが拒否されました
          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: レート制限を超えました
          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: サーバー内部エラー
          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: 動画アップスケールモデル名
          enum:
            - topaz-video-upscale
          default: topaz-video-upscale
          example: topaz-video-upscale
        video_urls:
          type: array
          description: |-
            アップスケーリング用の入力動画URLリスト

            **注意:**
            - 1リクエストにつき `1` 動画のみ
            - 動画URLはサーバーから直接アクセス可能である必要があります（パブリックURLまたは事前署名URL）
            - サーバーは課金のために入力動画の長さを自動検出します
            - サポートされるフォーマット: `.mp4`
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          example:
            - https://example.com/my-video.mp4
        model_params:
          type: object
          description: アップスケール動作を制御するモデル固有のパラメータ
          properties:
            upscale_factor:
              type: string
              description: |-
                動画アップスケールファクター、出力解像度の倍率を制御します

                **利用可能なオプション:**
                - `"1"` - 画質向上のみ（解像度変更なし、AI画質向上）
                - `"2"` - 2xアップスケール（例: 720pから1440p） — **デフォルト**
                - `"4"` - 4xアップスケール（例: 720pから2880p）

                **課金への影響:**
                - アップスケールファクターによって料金が異なり、倍率が高いほど費用が高くなります

                **型の処理:**
                - 文字列（`"4"`）と数値（`4`）の両方のフォーマットを受け付けます
                - 無効な値は暗黙的に `"2"`（デフォルト）にフォールバックします
              enum:
                - '1'
                - '2'
                - '4'
              default: '2'
              example: '2'
        callback_url:
          type: string
          description: >-
            タスク完了後の HTTPS コールバックアドレス


            **コールバックタイミング：**

            - タスクが完了、失敗、またはキャンセルされた時にトリガーされます

            - 課金確認完了後に送信されます


            **セキュリティ制限：**

            - HTTPS プロトコルのみサポート

            - 内部 IP アドレスへのコールバックは禁止（127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x
            など）

            - URL の長さは `2048` 文字以内


            **コールバックメカニズム：**

            - タイムアウト：`10` 秒

            - 失敗時最大 `3` 回リトライ（`1` 秒/`2` 秒/`4` 秒後にリトライ）

            - コールバックレスポンスボディの形式はタスククエリ API のレスポンス形式と一致

            - コールバックアドレスが 2xx ステータスコードを返した場合は成功とみなされ、その他のステータスコードはリトライをトリガーします
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: タスク作成タイムスタンプ
          example: 1757169743
        id:
          type: string
          description: タスク ID
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          description: 使用された実際のモデル名
          example: topaz-video-upscale
        object:
          type: string
          enum:
            - video.generation.task
          description: タスクタイプ
        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:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: 動画タスクの詳細情報
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: タスク出力タイプ
          example: video
        usage:
          $ref: '#/components/schemas/VideoUsage'
          description: 使用量と課金情報
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: エラーコード識別子
            message:
              type: string
              description: エラーの説明
            type:
              type: string
              description: エラータイプ
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: タスクをキャンセルできるかどうか
          example: true
        estimated_time:
          type: integer
          description: 推定完了時間（秒）
          minimum: 0
          example: 600
        video_duration:
          type: integer
          description: 動画の長さ（秒）
          example: 0
    VideoUsage:
      type: object
      description: 使用量と課金情報
      properties:
        billing_rule:
          type: string
          description: >-
            課金ルール。topaz-video-upscaleの場合、課金は入力動画の長さにアップスケールファクター価格を乗じた
            `per_second` ベースです
          enum:
            - per_call
            - per_token
            - per_second
          example: per_second
        credits_reserved:
          type: number
          description: 推定消費クレジット（事前承認）。最終的な課金はタスク完了後に実際の入力動画の長さに基づいて計算されます
          minimum: 0
          example: 28.8
        user_group:
          type: string
          description: ユーザーグループカテゴリ
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

        [APIキー管理ページ](https://evolink.ai/dashboard/keys)にアクセスしてAPIキーを取得してください

        **リクエストヘッダーに追加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````