# MiniMax H3

> MiniMax H3 est le modèle vidéo de MiniMax pour des clips jusqu’à 15 secondes avec son stéréo natif, en 768p ou 2K. Générez à partir d’un prompt, d’une image de début et d’une image de fin, ou d’images, de vidéos et de fichiers audio de référence. Ouvrez-le dans Studio pour choisir une résolution et une durée, et voir le prix avant de générer.

MiniMax H3 est un générateur de vidéos par IA de MiniMax. Utilisez l’API Kerox avec l’identifiant de modèle minimax/h3, ou lancez une génération dans Studio sans écrire de code. Sur Kerox, les tarifs commencent à $0.0400 / seconde, 50 % de moins que le prix officiel, sans abonnement.

## Tarifs

| Modèle | ID | Facturation | Tarif Kerox | Remise |
| --- | --- | --- | --- | --- |
| MiniMax H3 | `minimax/h3` | Par seconde | 2K: $0.0650, 768p: $0.0400 | 50 % moins cher que le prix officiel |

- [Tarifs de MiniMax H3](https://kerox.ai/fr/pricing#pricing-minimax/h3)
- [Documentation API de MiniMax H3](https://kerox.ai/fr/docs/models/minimax/h3)
- [MiniMax H3](https://kerox.ai/fr/models/minimax/h3)

## À propos de MiniMax H3

MiniMax H3 est un modèle de génération vidéo de MiniMax, lancé le 31 juillet 2026. MiniMax le présente comme un modèle de génération multimodal polyvalent : il interprète ensemble le texte, les images, la vidéo et l’audio, et génère des vidéos avec un son stéréo natif. Il succède aux modèles Hailuo 01 et Hailuo 02 de l’entreprise.

### Les apports de H3, selon MiniMax

- **Un seul modèle pour toutes les tâches.** Texte vers vidéo, image vers vidéo, génération à partir de références et modification de vidéos : H3 prend tout en charge. Avec les modèles précédents, ces tâches étaient traitées séparément.
- **Un son créé avec l’image.** La voix, les effets sonores et la musique sont modélisés ensemble et restitués en stéréo.
- **Sortie en 2K.** H3 atteint la 2K en régénérant son propre résultat, produit dans une résolution inférieure, ce qui, selon MiniMax, permet de récupérer les textes en petits caractères et les détails fins.
- **Références flexibles.** Un fichier de référence peut représenter un personnage, un mouvement, un mouvement de caméra, un style, une voix ou un rythme de montage.
- **Respect fidèle du prompt.** MiniMax cite comme points forts le respect des instructions, le rendu du texte et des marques, ainsi que le transfert de mouvement à partir d’une vidéo de référence.

MiniMax indique également les axes de progression de H3 : la compréhension multimodale, les capacités limitées par la taille actuelle du modèle et le détail visuel dans certaines scènes.

Sur Kerox, MiniMax H3 fonctionne en 768p et en 2K, de 4 à 15 secondes, dans six rapports d’aspect ou en mode automatique. Pour en savoir plus sur le modèle et sur H3 Max, lisez [Qu’est-ce que MiniMax H3 ?](https://kerox.ai/fr/blog/what-is-minimax-h3)

## Comment utiliser MiniMax H3

1. **Recharger** Ajoutez des fonds à partir de $5. Aucun abonnement n’est requis et votre solde n’expire pas.
2. **Configurer la vidéo** Rédigez un prompt, choisissez la résolution, la durée et le format d’image, puis ajoutez une première image ou des fichiers de référence si nécessaire. Le prix correspondant à ces paramètres s’affiche avant de lancer la génération.
3. **Générer et télécharger** Le montant est réservé au lancement, puis débité une fois la vidéo terminée. Si la génération échoue, il est intégralement remboursé.

## Ce que vous pouvez créer avec MiniMax H3

- **Texte en vidéo avec son.** Un simple prompt suffit pour obtenir un clip avec voix, effets sonores et musique.
- **Image en vidéo.** Partez d’une première image et le modèle l’anime.
- **Première et dernière image.** Définissez le début et la fin du clip, et le modèle génère le mouvement entre les deux.
- **Des vidéos qui suivent vos références.** Ajoutez jusqu’à 9 images, 3 clips vidéo et 3 clips audio, et précisez dans le prompt le rôle de chacun : un personnage, un mouvement de caméra, une voix.
- **Modifier un clip existant.** Transmettez une vidéo comme référence et décrivez ce qui doit changer.

## MiniMax H3 face aux autres modèles sur Kerox

Tous ces modèles fonctionnent avec le même solde et la même API. Pour changer, modifiez l’ID du modèle et conservez des paramètres que l’autre modèle prend en charge. Les prix de départ figurent dans le tableau.

| Modèle | Quand le choisir | Prix de départ |
| --- | --- | --- |
| [MiniMax H3](https://kerox.ai/fr/models/minimax/h3) | Clips de 4 à 15 secondes avec son, en 768p ou 2K. Choisissez-le pour le clip final et chaque fois que vous avez besoin de la 2K. | 2K: $0.0650, 768p: $0.0400 |
| [MiniMax H3 Max](https://kerox.ai/fr/models/minimax/h3-max) | Le modèle rapide basé sur H3, de 5 à 15 secondes en 480p ou 768p. Choisissez-le pour des brouillons rapides quand le 768p suffit. | 480p: $0.0450, 768p: $0.0720 |
| [Seedance 2.5](https://kerox.ai/fr/models/bytedance/seedance-2.5) | Le modèle vidéo de ByteDance, de 4 à 30 secondes jusqu’en 1080p. Choisissez-le quand un clip doit durer plus de 15 secondes. | À partir d’environ $0.0977 / s (480p) |
| [Seedance 2.0](https://kerox.ai/fr/models/bytedance/seedance-2.0) | Le modèle vidéo de ByteDance, de 4 à 15 secondes, qui peut aussi générer en 4K. Choisissez-le quand vous avez besoin de la 4K. | À partir d’environ $0.0668 / s (480p) |
| [Kling 4.0](https://kerox.ai/fr/models/kuaishou/kling-4.0) | Le modèle vidéo de Kuaishou, de 3 à 30 secondes en 720p, 1080p ou 4K. Choisissez-le pour des clips longs en 4K. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/fr/models/alibaba/wan-3.0) | Le modèle vidéo d’Alibaba, de 2 à 30 secondes jusqu’en 1080p. Choisissez-le pour des clips très courts. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## FAQ

### Combien coûte MiniMax H3 ?

Sur Kerox, MiniMax H3 est disponible à partir de $0.0400 / seconde, 50 % de moins que le prix officiel. Vous payez à chaque génération, et les générations échouées ne vous sont pas facturées. Le tableau des tarifs de cette page présente toutes les options.

### MiniMax H3 dispose-t-il d’une API ?

Oui. Soumettez une tâche à l’API Kerox avec l’identifiant du modèle minimax/h3, puis vérifiez régulièrement l’état de la tâche ou recevez un Webhook lorsqu’elle est terminée. La documentation de l’API de MiniMax H3 détaille chaque paramètre avec des exemples de code.

### Puis-je utiliser MiniMax H3 en ligne sans écrire de code ?

Oui. Ouvrez MiniMax H3 dans Kerox Studio, rédigez un prompt et générez directement dans votre navigateur. Le Studio et l’API utilisent le même solde.

### Ai-je besoin d’un abonnement pour utiliser MiniMax H3 ?

Non. Il n’y a ni forfait ni frais mensuels. Rechargez à partir de $5 et ne payez que ce que vous générez.

### Comment utiliser MiniMax H3 ?

Connectez-vous à Kerox, ouvrez MiniMax H3 dans Studio, saisissez un prompt et lancez la génération dans votre navigateur. Pour l’utiliser dans votre code, créez une clé API et envoyez une tâche avec l’identifiant de modèle minimax/h3.

### À quoi sert MiniMax H3 ?

À créer des vidéos courtes avec son, à partir d’un texte, d’une image ou de références. MiniMax le présente comme un modèle unique pour la génération, la création à partir de références et le montage vidéo. Usages typiques : un clip produit à partir d’une image fixe, une scène où un personnage garde la même apparence d’un plan à l’autre, ou une vidéo qui reprend le mouvement d’un clip de référence ou ses mouvements de caméra.

### Puis-je utiliser MiniMax H3 gratuitement ?

Pas sur Kerox. Il n’existe pour le moment ni offre gratuite ni essai gratuit. Rechargez à partir de $5 et ne payez que ce que vous générez.

### MiniMax H3 est-il open source ?

En partie. MiniMax a publié les poids de H3 Base, qui génère des vidéos avec son en 768p, sous la MiniMax H3 Community License. Deux parties du système complet ne sont pas publiées : l’étape qui prépare les prompts et les références, et celle qui produit la 2K. Sur Kerox, H3 est un modèle hébergé : vous générez dans Studio ou via l’API, sans rien télécharger ni déployer.

### Quelle est la différence entre MiniMax H3 et H3 Max ?

La résolution et la vitesse. H3 génère en 768p ou en 2K, pour des vidéos de 4 à 15 secondes. H3 Max est le modèle rapide basé sur H3 : il génère en 480p ou en 768p, pour des vidéos de 5 à 15 secondes, sans 2K. Les deux acceptent les mêmes types d’entrées, ce qui permet de passer un prompt et ses références de l’un à l’autre. La résolution et la durée doivent toutefois être prises en charge par l’autre modèle. Chacun a son propre prix, indiqué dans le tableau comparatif ci-dessus.

### MiniMax H3 peut-il transformer une image en vidéo ?

Oui. Importez une première image et décrivez le mouvement, ou définissez une première et une dernière image et laissez le modèle générer ce qui se passe entre les deux. Une première image ne peut pas être combinée avec des images, une vidéo ou un audio de référence dans la même requête.

### MiniMax H3 génère-t-il du son ?

Oui. Le son est généré avec la vidéo par défaut. Pour un clip muet, désactivez Générer l’audio dans Studio, ou définissez `generate_audio` sur false dans l’API.


---

## Request example

Submit a task and get its id at once; get the result by polling (below) or by [webhook](https://kerox.ai/fr/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/fr/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/fr/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/fr/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/fr/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/fr/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
}
```
