# MiniMax H3

> MiniMax H3 es el modelo de video de MiniMax para clips de hasta 15 segundos con sonido estéreo nativo, en 768p o 2K. Puedes generar a partir de un prompt, de un primer y un último fotograma, o de imágenes, video y audio de referencia. Ábrelo en Studio para elegir la resolución y la duración, y consulta el precio antes de generar.

MiniMax H3 es un generador de videos con IA de MiniMax. Llámalo a través de la API de Kerox con el ID de modelo minimax/h3, o genera en Studio sin escribir código. En Kerox cuesta desde $0.0400 / segundo, un 50 % por debajo del precio oficial, sin suscripción.

## Precios

| Modelo | ID | Facturación | Tarifa de Kerox | Descuento |
| --- | --- | --- | --- | --- |
| MiniMax H3 | `minimax/h3` | Por segundo | 2K: $0.0650, 768p: $0.0400 | 50% por debajo del precio oficial |

- [Precios de MiniMax H3](https://kerox.ai/es/pricing#pricing-minimax/h3)
- [Documentación de la API de MiniMax H3](https://kerox.ai/es/docs/models/minimax/h3)
- [MiniMax H3](https://kerox.ai/es/models/minimax/h3)

## Acerca de MiniMax H3

MiniMax H3 es un modelo de generación de video de MiniMax, lanzado el 31 de julio de 2026. MiniMax lo define como un modelo de generación multimodal de propósito general: interpreta conjuntamente texto, imágenes, video y audio, y genera video con sonido estéreo nativo. Es la continuación de Hailuo 01 y Hailuo 02, los modelos anteriores de la empresa.

### Lo que aporta H3, según MiniMax

- **Un modelo para todas las tareas.** La conversión de texto a video, la de imagen a video, la generación a partir de referencias y la edición se ejecutan en H3. Los modelos anteriores separaban estas funciones en tareas distintas.
- **Sonido creado junto con la imagen.** La voz, los efectos de sonido y la música se modelan en conjunto y se generan en estéreo.
- **Salida en 2K.** H3 alcanza la resolución 2K regenerando su propio resultado de menor resolución, lo que, según MiniMax, recupera el texto pequeño y los detalles finos.
- **Referencias flexibles.** Un archivo de referencia puede representar un personaje, un movimiento, un movimiento de cámara, un estilo, una voz o un ritmo de edición.
- **Fidelidad al prompt.** MiniMax destaca como puntos fuertes el seguimiento de instrucciones, la representación de texto y marcas, y la transferencia de movimiento desde un video de referencia.

MiniMax también señala en qué aspectos H3 aún puede mejorar: la comprensión multimodal, las capacidades limitadas por el tamaño actual del modelo y el detalle visual en ciertas escenas.

En Kerox, MiniMax H3 genera videos en 768p y 2K, de 4 a 15 segundos, en seis relaciones de aspecto o con relación de aspecto automática. Para saber más sobre el modelo y sobre H3 Max, lee [¿Qué es MiniMax H3?](https://kerox.ai/es/blog/what-is-minimax-h3)

## Cómo usar MiniMax H3

1. **Recargar saldo** Añade fondos desde $5. No hay suscripción y tu saldo no caduca.
2. **Configura el video** Escribe un prompt, elige la resolución, la duración y la relación de aspecto, y añade un primer fotograma o archivos de referencia si los necesitas. El precio de esta configuración se muestra antes de empezar.
3. **Genera y descarga** El importe se retiene al empezar y se liquida cuando el video termina. Si una generación falla, se te reembolsa el importe retenido por completo.

## Qué puedes crear con MiniMax H3

- **Texto a video con sonido.** Con solo un prompt obtienes un clip con voz, efectos y música.
- **Imagen a video.** Parte de un primer fotograma y el modelo lo anima.
- **Primer y último fotograma.** Define el primer y el último fotograma del clip y el modelo completa el movimiento entre ellos.
- **Videos que siguen tus referencias.** Añade hasta 9 imágenes, 3 clips de video y 3 clips de audio, e indica en el prompt para qué sirve cada uno: un personaje, un movimiento de cámara, una voz.
- **Modifica un clip existente.** Proporciona un video como referencia y describe qué debe cambiar.

## MiniMax H3 frente a otros modelos en Kerox

Todos ellos funcionan con el mismo saldo y la misma API. Para cambiar, modifica el ID del modelo y usa solo ajustes que el otro modelo admita. Los precios mínimos de cada modelo aparecen en la tabla.

| Modelo | Cuándo elegirlo | Precio inicial |
| --- | --- | --- |
| [MiniMax H3](https://kerox.ai/es/models/minimax/h3) | Clips de 4 a 15 segundos con sonido, a 768p o 2K. Elígelo para el clip final y siempre que necesites 2K. | 2K: $0.0650, 768p: $0.0400 |
| [MiniMax H3 Max](https://kerox.ai/es/models/minimax/h3-max) | El modelo rápido basado en H3, de 5 a 15 segundos a 480p o 768p. Elígelo para borradores rápidos cuando 768p sea suficiente. | 480p: $0.0450, 768p: $0.0720 |
| [Seedance 2.5](https://kerox.ai/es/models/bytedance/seedance-2.5) | El modelo de video de ByteDance, de 4 a 30 segundos, hasta 1080p. Elígelo cuando un solo clip tenga que durar más de 15 segundos. | Desde aprox. $0.0977 / s (480p) |
| [Seedance 2.0](https://kerox.ai/es/models/bytedance/seedance-2.0) | El modelo de video de ByteDance, de 4 a 15 segundos y compatible con 4K. Elígelo cuando necesites 4K. | Desde aprox. $0.0668 / s (480p) |
| [Kling 4.0](https://kerox.ai/es/models/kuaishou/kling-4.0) | El modelo de video de Kuaishou, de 3 a 30 segundos a 720p, 1080p o 4K. Elígelo para clips largos en 4K. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/es/models/alibaba/wan-3.0) | El modelo de video de Alibaba: de 2 a 30 segundos, con resolución de hasta 1080p. Elígelo para clips muy cortos. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## Preguntas frecuentes

### ¿Cuánto cuesta MiniMax H3?

MiniMax H3 en Kerox cuesta desde $0.0400 / segundo, un 50 % por debajo del precio oficial. Pagas por generación y las generaciones fallidas no se cobran. La tabla de precios de esta página muestra todas las opciones.

### ¿MiniMax H3 tiene API?

Sí. Envía una tarea a la API de Kerox con el ID de modelo minimax/h3 y luego consulta periódicamente el estado de la tarea hasta que termine, o recibe un Webhook cuando finalice. La Documentación de la API de MiniMax H3 detalla todos los parámetros con ejemplos de código.

### ¿Puedo usar MiniMax H3 en línea sin escribir código?

Sí. Abre MiniMax H3 en Kerox Studio, escribe un prompt y genera desde tu navegador. Studio y la API usan el mismo saldo.

### ¿Necesito una suscripción para usar MiniMax H3?

No. No hay planes ni cuotas mensuales. Recarga desde $5 y paga solo por lo que generes.

### ¿Cómo usar MiniMax H3?

Inicia sesión en Kerox, abre MiniMax H3 en Studio, escribe un prompt y genera desde tu navegador. Para usarlo desde código, crea una clave de API y envía una tarea con el ID de modelo minimax/h3.

### ¿Para qué se usa MiniMax H3?

Para crear videos cortos con sonido a partir de texto, de una imagen o de referencias. MiniMax lo presenta como un único modelo para generación, creación basada en referencias y edición de video. Usos típicos: un clip de producto a partir de una imagen fija, una escena en la que un mismo personaje se mantiene igual de principio a fin o un video que reproduce el movimiento o los movimientos de cámara de un clip de referencia.

### ¿Puedo usar MiniMax H3 gratis?

No en Kerox. Por ahora no hay plan gratuito ni prueba gratuita. Recarga desde $5 y paga solo por lo que generes.

### ¿MiniMax H3 es de código abierto?

En parte. MiniMax ha publicado los pesos de H3 Base, que genera video con sonido a 768p, bajo la MiniMax H3 Community License. Dos partes del sistema completo no se han publicado: el paso que prepara los prompts y las referencias, y el paso que genera el resultado final en 2K. En Kerox, H3 es un modelo alojado: generas en Studio o a través de la API, sin nada que descargar ni desplegar.

### ¿Cuál es la diferencia entre MiniMax H3 y H3 Max?

La resolución y la velocidad. H3 genera videos a 768p o 2K, con una duración de 4 a 15 segundos. H3 Max es el modelo rápido basado en H3: genera a 480p o 768p, con una duración de 5 a 15 segundos, y no ofrece 2K. Ambos aceptan los mismos tipos de entrada, así que puedes pasar un prompt y sus referencias de uno a otro. La resolución y la duración deben ser compatibles con el otro modelo. Cada uno tiene su propio precio, que aparece en la tabla comparativa de arriba.

### ¿Puede MiniMax H3 convertir una imagen en video?

Sí. Sube un primer fotograma y describe el movimiento, o define un primer y un último fotograma y deja que el modelo complete lo que ocurre entre ambos. Un primer fotograma no se puede combinar con imágenes, video o audio de referencia en la misma solicitud.

### ¿MiniMax H3 genera sonido?

Sí. El sonido se genera junto con el video de forma predeterminada. Para obtener un clip sin sonido, desactiva Generar audio en Studio o establece `generate_audio` en false en la API.


---

## Request example

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