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

# Minimax H3 Image-to-Video 画像から動画

> - `image_start` または `image_end` を少なくとも一方指定。先頭のみ、末尾のみ、両方に対応
- 出力時間は `5`～`15` 秒、現在は `2k` のみ対応
- 入力画像が比率を決定し、`aspect_ratio` は `adaptive` として処理
- タスク ID で[状態を照会](/ja/api-manual/task-management/get-task-detail)
- 生成 URL の有効期間は 24 時間です



## OpenAPI

````yaml ja/api-manual/video-series/minimax/minimax-h3/minimax-h3-image-to-video.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Minimax H3 Image-to-Video API
  description: 先頭フレーム、末尾フレーム、または両方に対応する Minimax H3 Image-to-Video API
  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: Minimax H3 Image-to-Video 画像から動画
      description: |-
        - `image_start` または `image_end` を少なくとも一方指定。先頭のみ、末尾のみ、両方に対応
        - 出力時間は `5`～`15` 秒、現在は `2k` のみ対応
        - 入力画像が比率を決定し、`aspect_ratio` は `adaptive` として処理
        - タスク ID で[状態を照会](/ja/api-manual/task-management/get-task-detail)
        - 生成 URL の有効期間は 24 時間です
      operationId: createMinimaxH3ImageToVideo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              first_frame:
                summary: 先頭フレームのみ
                value:
                  model: minimax-h3-image-to-video
                  prompt: >-
                    前景のラーメン丼から背景の人物へゆっくりとピントを移す。カメラがわずかに前進する間、湯気が自然に増えて立ち上り、人物と店内の一貫性を保つ。
                  image_start: >-
                    https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
                  duration: 5
                  quality: 2k
              last_frame:
                summary: 末尾フレームのみ
                value:
                  model: minimax-h3-image-to-video
                  prompt: >-
                    レストランのワイドショットから始まり、人物が自然に会話する中でカメラがゆっくり前進する。ラーメンの湯気が次第にはっきりし、指定した終了フレームの構図と姿勢に正確に着地する。
                  image_end: >-
                    https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
                  duration: 5
                  quality: 2k
              first_last_frame:
                summary: 先頭・末尾フレーム
                value:
                  model: minimax-h3-image-to-video
                  prompt: >-
                    人物の目の極端なクローズアップからゆっくり引き、レストラン全体を見せる。動きを滑らかに保ち、終了フレームの構図へ正確に移行する。
                  image_start: >-
                    https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
                  image_end: >-
                    https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1920&q=85
                  duration: 8
                  quality: 2k
      responses:
        '200':
          description: 動画生成タスクの作成に成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: リクエストパラメータエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: 未認証、Tokenが無効または期限切れ
          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:
                    minimax-h3-image-to-video
                  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
        - prompt
      properties:
        model:
          type: string
          description: 動画生成モデル名
          enum:
            - minimax-h3-image-to-video
          default: minimax-h3-image-to-video
          example: minimax-h3-image-to-video
        prompt:
          type: string
          minLength: 1
          description: |-
            入力画像内の動き、カメラワーク、および生成したい動画の内容を記述します。

            **プロンプト要件：**
            - 必須で、空文字列は使用できません
            - 中国語と英語に対応しています
            - 中国語は `500` 文字以内、英語は `1000` 語以内を推奨します。長すぎるプロンプトでは一部の詳細が無視される場合があります

            **入力制限：**
            - キーフレームには `image_start` と `image_end` の一方または両方を使用します
            - `image_urls`、`video_urls`、`audio_urls` は使用できず、指定するとパラメータエラーになります
          example: >-
            前景のラーメン丼から背景の人物へゆっくりとピントを移す。カメラがわずかに前進する間、湯気が自然に増えて立ち上り、人物と店内の一貫性を保つ。
        image_start:
          type: string
          format: uri
          description: |-
            開始フレーム画像の HTTP(S) URL。

            **組み合わせ規則：**
            - `image_start` と `image_end` の少なくとも一方を指定します
            - `image_start` のみ：開始フレームから動画を生成します
            - 両方：開始・終了フレーム間の動画を生成します
            - 開始フレームは最大 `1` 枚で、このフィールドには 1 つの URL を指定します

            **画像要件：**
            - 形式：JPG、JPEG、PNG、WEBP、HEIC、HEIF
            - サイズ：`30MB` 以下
            - 幅と高さ：それぞれ `256`～`5760` px
            - アスペクト比（幅/高さ）：`0.4`～`2.5`
            - URL は HTTP(S) を使用し、サービスから直接アクセスできる必要があります
            - JSON リクエスト本文全体は `64MB` 以下です。Base64 と `mm_file://` 入力は受け付けません
          example: >-
            https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png
        image_end:
          type: string
          format: uri
          description: |-
            終了フレーム画像の HTTP(S) URL。

            **組み合わせ規則：**
            - `image_end` と `image_start` の少なくとも一方を指定します
            - `image_end` のみ：このフレームで終わる自然な動きを生成します
            - 両方：開始・終了フレーム間の動画を生成します
            - 終了フレームは最大 `1` 枚で、このフィールドには 1 つの URL を指定します

            **画像要件：**
            - 形式：JPG、JPEG、PNG、WEBP、HEIC、HEIF
            - サイズ：`30MB` 以下
            - 幅と高さ：それぞれ `256`～`5760` px
            - アスペクト比（幅/高さ）：`0.4`～`2.5`
            - URL は HTTP(S) を使用し、サービスから直接アクセスできる必要があります
            - JSON リクエスト本文全体は `64MB` 以下です。Base64 と `mm_file://` 入力は受け付けません
          example: >-
            https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1920&q=85
        duration:
          type: integer
          description: |-
            出力動画の長さ（秒）。デフォルトは `5` 秒です。

            **値の制限：**
            - `5`～`15` の整数のみ使用できます（境界値を含む）
            - 小数、数字文字列、`auto`、`-1` は使用できません
            - 出力時間は料金に直接影響します
          default: 5
          minimum: 5
          maximum: 15
          example: 5
        quality:
          type: string
          description: |-
            出力動画の解像度。デフォルトは `2k` です。

            **使用可能な値：**
            - `2k`：現在使用できる唯一の解像度

            **注意：**
            - `768p` はまだ提供されておらず、指定するとパラメータエラーになります
            - 出力ビットレート、フレームレート、動画コーデック、音声コーデックはプラットフォームが決定し、リクエストでは設定できません
          enum:
            - 2k
          default: 2k
          example: 2k
        callback_url:
          type: string
          description: >-
            タスク完了後の HTTPS コールバックアドレス


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

            - タスク完了（completed）または失敗（failed）時にトリガー

            - 課金確認完了後に送信


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

            - 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
          pattern: ^https://
      additionalProperties: false
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: タスク作成タイムスタンプ
          example: 1761313744
        id:
          type: string
          description: タスクID
          example: task-unified-1774857405-abc123
        model:
          type: string
          description: 実際に使用されたモデル名
          example: minimax-h3-image-to-video
        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: タスクをキャンセルできるかどうか。Minimax H3 はキャンセル非対応で、常に `false` です。
          example: false
          enum:
            - false
          default: false
        estimated_time:
          type: integer
          description: 推定完了時間（秒）
          minimum: 0
          example: 165
        video_duration:
          type: integer
          description: 動画の再生時間（秒）
          example: 8
    VideoUsage:
      type: object
      description: 使用量と課金情報
      properties:
        billing_rule:
          type: string
          description: 課金ルール
          enum:
            - per_call
            - per_token
            - per_second
          example: per_second
        credits_reserved:
          type: number
          description: 推定消費クレジット数
          minimum: 0
          example: 50
        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
        ```

````