# MiniMax H3

> MiniMax H3 は MiniMax の動画モデルです。768p または 2K で、最大15秒のネイティブステレオ音声付き動画を生成できます。プロンプト、開始フレームと終了フレーム、または参照画像・参照動画・参照音声から生成できます。Studio で開くと、解像度と長さを選んで生成前に料金を確認できます。

MiniMax H3 は MiniMax が提供する動画生成AIです。モデル ID minimax/h3 を指定して Kerox API から呼び出すか、コードを書かずに Studio で生成できます。Kerox では$0.0400/秒から利用でき（公式価格より50%オフ）、サブスクリプションは不要です。

## 料金

| モデル | ID | 課金単位 | Kerox 料金 | 割引 |
| --- | --- | --- | --- | --- |
| MiniMax H3 | `minimax/h3` | 1秒あたり | 2K: $0.0650, 768p: $0.0400 | 公式価格より50%安い |

- [MiniMax H3 の料金](https://kerox.ai/ja/pricing#pricing-minimax/h3)
- [MiniMax H3 API ドキュメント](https://kerox.ai/ja/docs/models/minimax/h3)
- [MiniMax H3](https://kerox.ai/ja/models/minimax/h3)

## MiniMax H3 について

MiniMax H3 は、2026年7月31日に公開された MiniMax の動画生成モデルです。MiniMax はこれを汎用マルチモーダル生成モデルと位置づけています。このモデルはテキスト、画像、動画、音声を1つのコンテキストとして読み込み、ネイティブステレオ音声付きの動画を生成します。同社の以前の Hailuo 01 と Hailuo 02 に続くモデルです。

### MiniMax が挙げる H3 の特長

- **あらゆるタスクを1つのモデルで。** テキストからの動画生成、画像からの動画生成、リファレンスを使った生成や編集をすべて H3 で実行できます。従来のモデルはタスクごとに分かれていました。
- **映像と音を同時に生成。** 声、効果音、音楽をまとめてモデル化し、ステレオで出力します。
- **2K出力。** H3 は自身が生成した低解像度の結果を再生成することで2Kを実現しており、MiniMax はこれにより小さな文字や細かなディテールが復元されるとしています。
- **柔軟なリファレンス。** リファレンスファイルは、キャラクター、動き、カメラワーク、スタイル、声、編集リズムの指定に使えます。
- **プロンプトへの高い忠実度。** MiniMax は、指示への追従性、テキストやブランドの描画、リファレンス動画からの動きの転写を強みとして挙げています。

また、MiniMax は H3 に改善の余地がある点として、マルチモーダル理解、現在のモデルサイズによって制限されている能力、特定のシーンでの視覚的な細部の表現を挙げています。

Kerox では、768pと2K、4〜15秒、6種類のアスペクト比または自動設定で MiniMax H3 を利用できます。 モデルおよび H3 Max の詳細は、次の記事をご覧ください。[MiniMax H3 とは？](https://kerox.ai/ja/blog/what-is-minimax-h3)

## MiniMax H3の使い方

1. **残高をチャージ** $5からチャージできます。サブスクリプションは不要で、残高に有効期限はありません。
2. **動画を設定** プロンプトを入力し、解像度、再生時間、アスペクト比を選び、必要に応じて最初のフレームやリファレンスファイルを追加します。これらの設定に応じた料金は開始前に表示されます。
3. **生成してダウンロード** 開始時に金額が一時確保され、動画の完成時に決済されます。生成に失敗した場合は全額返金されます。

## MiniMax H3で作れるもの

- **テキストから音声付き動画を生成。** プロンプトだけで、声、効果音、音楽の入った動画を生成できます。
- **画像から動画を生成。** 最初のフレームを指定すると、モデルが動きを付けます。
- **最初と最後のフレームを指定。** 動画の始まりと終わりのフレームを設定すると、モデルがその間の動きを補間します。
- **リファレンスに沿った動画を生成。** 最大9枚の画像、3本の動画、3つの音声クリップを追加し、キャラクター、カメラワーク、声など、それぞれの用途をプロンプトで指定できます。
- **既存の動画を編集。** 動画をリファレンスとして指定し、変更したい内容を記述します。

## MiniMax H3とKerox上の他モデルを比較

これらはすべて同じ残高と同じAPIで動作します。モデルを切り替えるには、モデルIDを変更し、そのモデルが対応する設定に合わせてください。最低料金は表に記載しています。

| モデル | おすすめのケース | 最低料金 |
| --- | --- | --- |
| [MiniMax H3](https://kerox.ai/ja/models/minimax/h3) | 768pまたは2Kで、4〜15秒の音声付き動画を生成します。最終版の動画や、2Kが必要な場合に適しています。 | 2K: $0.0650, 768p: $0.0400 |
| [MiniMax H3 Max](https://kerox.ai/ja/models/minimax/h3-max) | H3をベースにした高速モデルです。480pまたは768pで、5〜15秒の動画を生成します。768pで十分な場合の手早い試作に適しています。 | 480p: $0.0450, 768p: $0.0720 |
| [Seedance 2.5](https://kerox.ai/ja/models/bytedance/seedance-2.5) | ByteDanceの動画モデルです。最大1080pで、4〜30秒の動画を生成します。1本の動画が15秒を超える場合に適しています。 | 約$0.0977/秒〜（480p） |
| [Seedance 2.0](https://kerox.ai/ja/models/bytedance/seedance-2.0) | ByteDanceの動画モデルです。4〜15秒の動画を生成し、4K出力にも対応しています。4Kが必要な場合に適しています。 | 約$0.0668/秒〜（480p） |
| [Kling 4.0](https://kerox.ai/ja/models/kuaishou/kling-4.0) | Kuaishouの動画モデルです。720p、1080p、4Kで、3〜30秒の動画を生成します。4Kで長尺の動画を作りたい場合に適しています。 | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/ja/models/alibaba/wan-3.0) | Alibabaの動画モデルです。最大1080pで、2〜30秒の動画を生成します。ごく短い動画に適しています。 | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## よくある質問

### MiniMax H3の料金はいくらですか？

KeroxでのMiniMax H3の料金は$0.0400/秒からです（公式価格より50%オフ）。生成ごとに課金され、失敗した場合は請求されません。このページの料金表にすべてのオプションを記載しています。

### MiniMax H3はAPIに対応していますか？

はい。モデルID「minimax/h3」を指定してKerox APIにタスクを送信し、ポーリングで確認するか、完了時にWebhookで通知を受け取れます。MiniMax H3のAPIドキュメントに、すべてのパラメータとコード例を記載しています。

### コードを書かずにオンラインでMiniMax H3を使えますか？

はい。Kerox StudioでMiniMax H3を開き、プロンプトを入力してブラウザ上で生成できます。StudioとAPIは同じ残高を使用します。

### MiniMax H3の利用にサブスクリプションは必要ですか？

いいえ。定額プランや月額料金はありません。$5からチャージでき、生成した分だけ課金されます。

### MiniMax H3 の使い方は？

Kerox にサインインし、Studio で MiniMax H3 を開いてプロンプトを入力すれば、ブラウザ上で生成できます。コードから利用する場合は、API キーを作成し、モデル ID minimax/h3 を指定してタスクを送信してください。

### MiniMax H3は何に使えますか？

テキスト、画像、リファレンスから、音声付きの短い動画を生成できます。MiniMaxは、動画生成、リファレンスに基づく制作、動画編集を1つのモデルで行えるとしています。静止画からの商品動画、1人のキャラクターの見た目を一貫させたシーン、リファレンス動画の動きやカメラワークに沿った動画などが代表的な用途です。

### MiniMax H3は無料で使えますか？

Keroxでは無料で利用できません。現在、無料プランや無料トライアルは提供していません。$5からチャージでき、生成した分だけ支払う仕組みです。

### MiniMax H3はオープンソースですか？

一部のみ公開されています。MiniMaxは、768pで音声付き動画を生成するH3 BaseのウェイトをMiniMax H3 Community Licenseのもとで公開しています。システム全体のうち、プロンプトとリファレンスを準備する工程と、2K動画を生成する工程の2つは公開されていません。KeroxではH3をホスト型モデルとして提供しており、ダウンロードやデプロイは不要で、StudioやAPIから直接生成できます。

### MiniMax H3とH3 Maxの違いは何ですか？

解像度と速度。H3は768pまたは2Kで生成でき、長さは4〜15秒を指定できます。H3 MaxはH3をベースにした高速モデルで、解像度は480pまたは768p（2K非対応）、長さは5〜15秒に対応しています。どちらも同じ種類の入力を受け付けるため、プロンプトや参照素材はモデル間でそのまま使えます。ただし、解像度と長さは切り替え先のモデルが対応している設定である必要があります。料金はモデルごとに異なり、上記の比較表に記載しています。

### MiniMax H3は画像から動画を生成できますか？

はい。最初のフレームをアップロードして動きを指示できます。あるいは、最初と最後のフレームを指定すれば、その間の動きをモデルが補完します。同じリクエスト内で、最初のフレームは参照画像、動画、音声と併用できません。

### MiniMax H3は音声を生成できますか？

はい。デフォルトでは動画とあわせて音声も生成されます。無音の動画にしたい場合は、Studioで「音声生成」をオフにするか、APIで`generate_audio`をfalseに設定してください。


---

## Request example

Submit a task and get its id at once; get the result by polling (below) or by [webhook](https://kerox.ai/ja/docs/webhooks.md). `webhook_url` and `metadata` are optional. To use a webhook, provide your own public HTTPS address in `webhook_url`. Every field is in [Submit a task](https://kerox.ai/ja/docs/tasks.md#submit-body).

Set `KEROX_API_KEY` first. Polling requires Bash, curl and jq. For Python, run `pip install requests` first.

### cURL

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}'
```

### Python

```python
import os
import requests

resp = requests.post(
    "https://api.kerox.ai/v1/tasks",
    headers={
        "Authorization": f"Bearer {os.environ['KEROX_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "model": "minimax/h3",
        "input": {
            "prompt": "a red fox running through fresh snow, cinematic lighting",
            "resolution": "768p",
            "duration": 5,
            "aspect_ratio": "16:9",
        },
    },
    timeout=60,
)
resp.raise_for_status()
task = resp.json()
print(task["id"], task["status"])  # Save the id for polling
```

### Node.js

```javascript
const res = await fetch('https://api.kerox.ai/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.KEROX_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "minimax/h3",
    "input": {
      "prompt": "a red fox running through fresh snow, cinematic lighting",
      "resolution": "768p",
      "duration": 5,
      "aspect_ratio": "16:9"
    }
  }),
});
const task = await res.json();
if (!res.ok) throw new Error(JSON.stringify(task));
console.log(task.id, task.status); // Save the id for polling
```

### Go

```go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
)

func main() {
	body := []byte(`{
  "model": "minimax/h3",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}`)
	req, _ := http.NewRequest("POST", "https://api.kerox.ai/v1/tasks", bytes.NewReader(body))
	req.Header.Set("Authorization", "Bearer "+os.Getenv("KEROX_API_KEY"))
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 60 * time.Second}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	out, _ := io.ReadAll(resp.Body)
	if resp.StatusCode >= 400 {
		fmt.Fprintln(os.Stderr, string(out))
		os.Exit(1)
	}
	fmt.Println(string(out))
}
```

### Reference image

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "Image 1: the lighthouse beam sweeps slowly across the water",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "images": [
      "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
    ]
  }
}'
```

### First frame

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "A lighthouse beam sweeps slowly across the waves",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "auto",
    "first_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
  }
}'
```

### First and last frames

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "Slowly dissolve from the coast to the cabin by the lake",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "auto",
    "first_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp",
    "last_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.0-pro/alpine-cabin-dawn.webp"
  }
}'
```

### Reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "Use the camera motion of Video 1 for a flyover of a rocky coastline",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

### Reference audio

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "Show a dinosaur at dusk and time its roar to Audio 1",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "images": [
      "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
    ],
    "audios": [
      "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"
    ]
  }
}'
```

## Parameters

The [parameter names](https://kerox.ai/ja/docs/models.md) mean the same on every model.

| Parameter | Type | Required | Default | Values | Description | Example |
| --- | --- | --- | --- | --- | --- | --- |
| `prompt` | string | Yes | — | at least one non-whitespace character; 1–7000 characters | Text describing what to generate. | `"A lighthouse at dawn"` |
| `images` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–9 items; Model file limits: JPG, JPEG, PNG, WebP, HEIC or HEIF, up to 30 MB each, 256–5760 px per side, aspect ratio 0.4–2.5 | Images for the model to draw on, in the order the prompt refers to them. | `"https://example.com/photo.png"` |
| `videos` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–3 items; Model file limits: MP4 or MOV (H.264/H.265), up to 50 MB each, 256–5760 px per side, aspect ratio 0.4–2.5, 23.976–60 fps, 2–15 s per clip and at most 15 s total | Videos for the model to draw on, in the order the prompt refers to them. | `"https://example.com/clip.mp4"` |
| `audios` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–3 items; Model file limits: WAV or MP3, up to 15 MB each, 2–15 s per clip and at most 15 s total | Audio clips for the model to draw on, in the order the prompt refers to them. | `"https://example.com/music.wav"` |
| `first_frame` | string | No | — | one public HTTPS URL; Model file limits: JPG, JPEG, PNG, WebP, HEIC or HEIF, up to 30 MB each, 256–5760 px per side, aspect ratio 0.4–2.5 | The image a video starts from. | `"https://example.com/start.png"` |
| `last_frame` | string | No | — | one public HTTPS URL; Model file limits: JPG, JPEG, PNG, WebP, HEIC or HEIF, up to 30 MB each, 256–5760 px per side, aspect ratio 0.4–2.5 | The image a video ends on. Needs `first_frame`. | `"https://example.com/end.png"` |
| `aspect_ratio` | string | No | `"auto"` | auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | Width to height of the output. | `"16:9"` |
| `resolution` | string | No | `"768p"` | 768p, 2K | Output resolution tier. The exact pixels follow from it and `aspect_ratio`. | `"768p"` |
| `duration` | integer | No | `5` | 4–15 | Length of the output in whole seconds. | `5` |
| `generate_audio` | boolean | No | `true` | true, false | Whether the video comes with generated sound (voice, effects, music). | `true` |
| `n` | integer | No | `1` | 1 | How many outputs one task may produce. | `1` |

- last_frame requires first_frame
- When first_frame: omit images or videos or audios
- When audios: supply images or videos

Use a public HTTPS URL directly for images, audio and video. For local media, upload with `POST /v1/files` and pass the returned `url`. For upload MIME and size limits, see [Files & inputs](https://kerox.ai/ja/docs/files.md#presigned).

Not supported yet: `watermark`.

## Polling and output

Poll `GET /v1/tasks/{id}`, or pass `webhook_url` when you submit and receive the same task object when it finishes: see [Webhooks](https://kerox.ai/ja/docs/webhooks.md) for the setup. Output files expire at `expires_at` (7 days after completion), so download anything you want to keep. See every task field in [Tasks & polling](https://kerox.ai/ja/docs/tasks.md#submit-response).

Set `TASK_ID` to the `id` returned on submission. The script waits up to 10 minutes, prints `error` on failure and downloads every `outputs[].url` on success.

```bash
(
  set -eu
  # Set TASK_ID to the id returned by the submit request.
  : "${TASK_ID:?Set TASK_ID}"
  deadline=$((SECONDS + 600))
  while (( SECONDS < deadline )); do
    task=$(curl --fail-with-body --silent --show-error --max-time "$((deadline - SECONDS))" https://api.kerox.ai/v1/tasks/"$TASK_ID" \
      -H "Authorization: Bearer $KEROX_API_KEY")
    case $(jq -er .status <<< "$task") in
      succeeded)
        if ! jq -e '.outputs | length > 0' <<< "$task" >/dev/null; then
          echo "Result files are unavailable." >&2
          exit 1
        fi
        i=0
        while IFS= read -r url; do
          file_path=${url%%\?*}
          filename="output-${i}.${file_path##*.}"
          curl --fail-with-body --silent --show-error --max-time 120 "$url" -o "$filename"
          printf "%s\n" "$filename"
          i=$((i + 1))
        done < <(jq -r '.outputs[].url' <<< "$task")
        exit 0 ;;
      failed) jq -c .error <<< "$task" >&2; exit 1 ;;
      processing) sleep 2 ;;
      *) echo "Unexpected task status." >&2; exit 1 ;;
    esac
  done
  echo "Poll timed out. Keep TASK_ID to check again later." >&2
  exit 1
)
```

### Success response JSON

Actual charges depend on your account price and task result.

```json
{
  "id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
  "object": "task",
  "model": "minimax/h3",
  "status": "succeeded",
  "source": "api",
  "format": "unified",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://cdn.kerox.ai/t/task_01JD8X9B4Q2M7T8N3K5P6R1S0V/5f2b8c1e9d3a4f6b8a7c0d1e2f3a4b5c/0.mp4",
      "content_type": "video/mp4",
      "duration": 5
    }
  ],
  "outputs_deleted": false,
  "error": null,
  "cost": {
    "amount": "0.2000",
    "currency": "USD",
    "status": "settled"
  },
  "metadata": null,
  "warnings": [],
  "created_at": "2026-11-20T08:00:00Z",
  "started_at": "2026-11-20T08:00:01Z",
  "completed_at": "2026-11-20T08:01:10Z",
  "expires_at": "2026-11-27T08:01:10Z"
}
```

## Pricing

| Tier | Official / second | Kerox / second | Below official price |
| --- | --- | --- | --- |
| 2K | $0.1300 | $0.0650 | 50% |
| 768p | $0.0800 | $0.0400 | 50% |

- **Reference images**: the first 5 are free; each one after that adds $0.0200 (official $0.0400).
- **Reference videos**: their length is billed at the same per-second rate as the output: billed seconds = reference video seconds + output seconds.

### Estimate before submitting

The returned `amount` is what submitting would hold. An estimate creates no task and charges nothing. When `exact` is `false`, the final charge may differ from the hold.

### Without a reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}'
```

### With a reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "768p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

## Common usage

| Clip | Official price | Kerox | You save |
| --- | --- | --- | --- |
| 5 s · 2K | $0.6500 | $0.3250 | 50% |
| 10 s · 2K | $1.3000 | $0.6500 | 50% |
| 15 s · 2K | $1.9500 | $0.9750 | 50% |
| 5 s · 768p | $0.4000 | $0.2000 | 50% |
| 10 s · 768p | $0.8000 | $0.4000 | 50% |
| 15 s · 768p | $1.2000 | $0.6000 | 50% |

- **$10 gets you**: 250 seconds of 768p video

## Input schema (JSON)

### Parameters (`unified.input_schema`)

```json
{
  "type": "object",
  "allOf": [
    {
      "if": {
        "required": [
          "first_frame"
        ],
        "properties": {
          "first_frame": true
        }
      },
      "then": {
        "not": {
          "anyOf": [
            {
              "required": [
                "images"
              ],
              "properties": {
                "images": true
              }
            },
            {
              "required": [
                "videos"
              ],
              "properties": {
                "videos": true
              }
            },
            {
              "required": [
                "audios"
              ],
              "properties": {
                "audios": true
              }
            }
          ]
        }
      }
    },
    {
      "if": {
        "required": [
          "audios"
        ],
        "properties": {
          "audios": true
        }
      },
      "then": {
        "anyOf": [
          {
            "required": [
              "images"
            ],
            "properties": {
              "images": true
            }
          },
          {
            "required": [
              "videos"
            ],
            "properties": {
              "videos": true
            }
          }
        ]
      }
    }
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "pattern": "\\S",
      "maxLength": 7000,
      "minLength": 1,
      "description": "Text describing what to generate.",
      "x-label-en": "Prompt",
      "x-label-zh": "提示词",
      "x-tier": "common"
    },
    "images": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 9,
          "minItems": 1
        }
      ],
      "description": "Images for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference images",
      "x-label-zh": "参考图",
      "x-tier": "common"
    },
    "videos": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 3,
          "minItems": 1
        }
      ],
      "description": "Videos for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference videos",
      "x-label-zh": "参考视频",
      "x-tier": "advanced"
    },
    "audios": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 3,
          "minItems": 1
        }
      ],
      "description": "Audio clips for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference audio",
      "x-label-zh": "参考音频",
      "x-tier": "advanced"
    },
    "first_frame": {
      "type": "string",
      "pattern": "^https://",
      "description": "The image a video starts from.",
      "x-label-en": "First frame",
      "x-label-zh": "首帧",
      "x-tier": "common"
    },
    "last_frame": {
      "type": "string",
      "pattern": "^https://",
      "description": "The image a video ends on. Needs `first_frame`.",
      "x-label-en": "Last frame",
      "x-label-zh": "尾帧",
      "x-tier": "advanced"
    },
    "aspect_ratio": {
      "enum": [
        "auto",
        "21:9",
        "16:9",
        "4:3",
        "1:1",
        "3:4",
        "9:16"
      ],
      "type": "string",
      "default": "auto",
      "description": "Width to height of the output.",
      "x-label-en": "Aspect ratio",
      "x-label-zh": "画面比例",
      "x-tier": "common"
    },
    "resolution": {
      "enum": [
        "768p",
        "2K"
      ],
      "type": "string",
      "default": "768p",
      "description": "Output resolution tier. The exact pixels follow from it and `aspect_ratio`.",
      "x-label-en": "Resolution",
      "x-label-zh": "分辨率",
      "x-tier": "common"
    },
    "duration": {
      "type": "integer",
      "default": 5,
      "maximum": 15,
      "minimum": 4,
      "description": "Length of the output in whole seconds.",
      "x-label-en": "Duration",
      "x-label-zh": "时长",
      "x-tier": "common"
    },
    "generate_audio": {
      "type": "boolean",
      "default": true,
      "description": "Whether the video comes with generated sound (voice, effects, music).",
      "x-label-en": "Generate audio",
      "x-label-zh": "生成声音",
      "x-tier": "common"
    },
    "n": {
      "type": "integer",
      "const": 1,
      "default": 1,
      "description": "How many outputs one task may produce.",
      "x-label-en": "Number of outputs",
      "x-label-zh": "生成数量",
      "x-tier": "advanced"
    }
  },
  "x-unsupported": [
    "watermark"
  ],
  "dependentRequired": {
    "last_frame": [
      "first_frame"
    ]
  },
  "additionalProperties": false
}
```
