> ## 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 Text-to-Video テキストから動画

> - 空でないテキストプロンプトから動画を生成
- 出力時間は `5`～`15` 秒、現在は `2k` のみ対応
- 画像・動画・音声入力は非対応
- 非同期処理。返されたタスク ID で[状態を照会](/ja/api-manual/task-management/get-task-detail)
- 生成 URL の有効期間は 24 時間です



## OpenAPI

````yaml ja/api-manual/video-series/minimax/minimax-h3-text-to-video.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Minimax H3 Text-to-Video API
  description: テキストから 2K 動画を生成する Minimax H3 Text-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 Text-to-Video テキストから動画
      description: >-
        - 空でないテキストプロンプトから動画を生成

        - 出力時間は `5`～`15` 秒、現在は `2k` のみ対応

        - 画像・動画・音声入力は非対応

        - 非同期処理。返されたタスク ID
        で[状態を照会](/ja/api-manual/task-management/get-task-detail)

        - 生成 URL の有効期間は 24 時間です
      operationId: createMinimaxH3TextToVideo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              basic:
                summary: 基本テキストから動画
                value:
                  model: minimax-h3-text-to-video
                  prompt: >-
                    壮大なスペースオペラ映画の予告編。女性艦長が巨大な観測窓の前に一人で立ち、窓の外では最後の艦隊が集結している。艦隊がまばゆい閃光とともにワープし、艦橋が激しく揺れる。光が消えると、彼女だけが静かな宇宙に取り残される。映画的な照明、ゆっくりとしたドリーイン、壮大で抑制された雰囲気。
                  duration: 5
                  quality: 2k
                  aspect_ratio: '16:9'
      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-text-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-text-to-video
          default: minimax-h3-text-to-video
          example: minimax-h3-text-to-video
        prompt:
          type: string
          minLength: 1
          description: >-
            生成したい動画の内容をテキストで記述します。


            **プロンプト要件：**

            - 必須で、空文字列は使用できません

            - 中国語と英語に対応しています

            - 中国語は `500` 文字以内、英語は `1000` 語以内を推奨します。長すぎるプロンプトでは一部の詳細が無視される場合があります


            **入力制限：**

            - このモデルはテキストから動画を生成し、テキスト入力のみを受け付けます

            - `image_start`、`image_end`、`image_urls`、`video_urls`、`audio_urls`
            は使用できません

            - これらのメディアフィールドを指定するとパラメータエラーになります
          example: >-
            壮大なスペースオペラ映画の予告編。女性艦長が巨大な観測窓の前に一人で立ち、窓の外では最後の艦隊が集結している。艦隊がまばゆい閃光とともにワープし、艦橋が激しく揺れる。光が消えると、彼女だけが静かな宇宙に取り残される。映画的な照明、ゆっくりとしたドリーイン、壮大で抑制された雰囲気。
        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
        aspect_ratio:
          type: string
          description: |-
            出力動画のアスペクト比。デフォルトは `adaptive` です。

            **使用可能な値：**
            - `adaptive`：プロンプトに基づいて適切な比率を自動選択
            - `21:9`：ウルトラワイド
            - `16:9`：横長
            - `4:3`：標準横長
            - `1:1`：正方形
            - `3:4`：標準縦長
            - `9:16`：縦長
          enum:
            - adaptive
            - '21:9'
            - '16:9'
            - '4:3'
            - '1:1'
            - '3:4'
            - '9:16'
          default: adaptive
          example: adaptive
        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-text-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
        ```

````