# Magi-2

> Magi-2 es el modelo de video de Sand AI: una sola generación ofrece de 4 a 30 segundos de video 1080p con sonido, a partir de un prompt, un primer fotograma y un último fotograma, o imágenes, video y audio de referencia. En Kerox se cobra por cada segundo de video generado, con la misma tarifa para todos los modos, con o sin sonido. Ábrelo en Studio o llama a la API con el ID de modelo sand-ai/magi-2.

Magi-2 es un generador de videos con IA de Sand AI. Llámalo a través de la API de Kerox con el ID de modelo sand-ai/magi-2, o genera en Studio sin escribir código. En Kerox cuesta desde $0.1000 / segundo, sin suscripción.

## Precios

| Modelo | ID | Facturación | Tarifa de Kerox | Descuento |
| --- | --- | --- | --- | --- |
| Magi-2 | `sand-ai/magi-2` | Por segundo | 1080p: $0.1000 | — |

- [Precios de Magi-2](https://kerox.ai/es/pricing#pricing-sand-ai/magi-2)
- [Documentación de la API de Magi-2](https://kerox.ai/es/docs/models/sand-ai/magi-2)
- [Magi-2](https://kerox.ai/es/models/sand-ai/magi-2)

## Acerca de Magi-2

Magi-2 es el modelo de video insignia de Sand AI, lanzado el 24 de noviembre de 2026, después de que en agosto se lanzara Magi-2 Preview, de código abierto. Sand AI genera imagen y sonido en un solo modelo: un único Transformer lee texto, video y audio a la vez, por lo que el clip sale con su banda sonora. Los puntos siguientes provienen del anuncio de lanzamiento de Sand AI.

### Lo que dice Sand AI sobre Magi-2

- **Hasta 30 segundos en 1080p de una sola vez.** Sand AI genera hasta 30 segundos de video en 1080p con audio en una sola generación, a 25 fotogramas por segundo. La resolución de 1080p se obtiene al reescalar el resultado después de la generación base.
- **Sonido del mismo modelo.** Los diálogos con sincronización labial, los efectos de sonido, el sonido ambiente y la música se generan junto con la imagen; no se añaden después.
- **Un solo flujo para texto, video y audio.** Sand AI describe un Transformer de mezcla de expertos de flujo único con unos 480 000 millones de parámetros en total y unos 28 000 millones activos.
- **Referencias multimodales.** Una generación puede guiarse con hasta 10 imágenes, 5 videos y 5 clips de audio.
- **Estable en tomas largas.** Sand AI destaca el seguimiento de instrucciones, la composición compleja y la coherencia espacial y temporal en videos de larga duración.

Sand AI también presenta la edición de un video existente y el control de la línea de tiempo. Estas funciones aún no están disponibles en Kerox.

En Kerox, Magi-2 genera video en 1080p de 4 a 30 segundos, en 16:9, 9:16, 1:1, 4:3, 3:4 o 21:9, con sonido activado por defecto. Una solicitud puede incluir solo un prompt, un primer fotograma con un último fotograma opcional, o hasta 10 imágenes de referencia, 5 videos de referencia y 5 clips de audio de referencia. Con un primer fotograma, el video conserva la relación de aspecto de ese fotograma. El precio es el mismo en los tres modos. Cómo llamarlo desde la API, cuánto cuesta y las alternativas: [Guía de la API de Magi-2](https://kerox.ai/es/blog/magi-2-api)

## Cómo usar Magi-2

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

## Qué puedes crear con Magi-2

- **Texto a video con sonido.** Con solo un prompt obtienes un clip de hasta 30 segundos en 1080p con sonido natural.
- **Imagen a video.** Parte de un primer fotograma o define el primero y el último para que el modelo complete el movimiento.
- **Videos guiados por referencias.** Proporciona imágenes de un sujeto, un producto o un escenario y describe la escena a su alrededor.
- **Escenas con diálogo.** Escribe las frases entre comillas y el modelo les pone voz sincronizada con los labios de quien habla.
- **Clips que siguen un sonido de referencia.** Añade audio de referencia con la voz, el ritmo o la música que quieras reproducir, hasta 30 segundos en total.

## Magi-2 frente a otros modelos en Kerox

Todos estos modelos funcionan con el mismo saldo y la misma API. Para cambiar, modifica el ID del modelo y usa ajustes compatibles con el otro modelo. La tabla muestra el precio desde el que parte cada modelo.

| Modelo | Cuándo elegirlo | Precio inicial |
| --- | --- | --- |
| [Magi-2](https://kerox.ai/es/models/sand-ai/magi-2) | Modelo de video de Sand AI, de 4 a 30 segundos en 1080p con sonido y una tarifa única para todos los modos. Elígelo para clips largos en 1080p con diálogo o sonido. | 1080p: $0.1000 |
| [Seedance 2.5](https://kerox.ai/es/models/bytedance/seedance-2.5) | Modelo de video de ByteDance, de 4 a 30 segundos en 480p, 720p o 1080p, con hasta 30 imágenes de referencia. Elígelo si quieres una resolución menor o muchas referencias. | Desde aprox. $0.0977 / s (480p) |
| [Kling 4.0](https://kerox.ai/es/models/kuaishou/kling-4.0) | Modelo de video de Kuaishou, de 3 a 30 segundos en 720p, 1080p o 4K. Elígelo si necesitas 4K. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/es/models/alibaba/wan-3.0) | Modelo de video de Alibaba, de 2 a 30 segundos con resolución de hasta 1080p. Elígelo para clips de menos de 4 segundos. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |
| [MiniMax H3](https://kerox.ai/es/models/minimax/h3) | Modelo de video de MiniMax, de 4 a 15 segundos con resolución de 768p o 2K. Elígelo para clips cortos en 2K. | 2K: $0.0650, 768p: $0.0400 |

## Preguntas frecuentes

### ¿Cuánto cuesta Magi-2?

Magi-2 en Kerox cuesta desde $0.1000 / segundo. Pagas por generación y las generaciones fallidas no se cobran. La tabla de precios de esta página muestra todas las opciones.

### ¿Magi-2 tiene API?

Sí. Envía una tarea a la API de Kerox con el ID de modelo sand-ai/magi-2 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 Magi-2 detalla todos los parámetros con ejemplos de código.

### ¿Puedo usar Magi-2 en línea sin escribir código?

Sí. Abre Magi-2 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 Magi-2?

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

### ¿Cómo usar Magi-2?

Inicia sesión en Kerox, abre Magi-2 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 sand-ai/magi-2.

### ¿Magi-2 es gratis?

Magi-2 es un modelo de pago en Kerox: cada generación completada se cobra al precio de esta página, y las generaciones fallidas no cuestan nada. No hay cuota mensual, y puedes empezar con una recarga de $5.

### ¿Cuánto puede durar un video de Magi-2?

De 4 a 30 segundos por generación, en segundos enteros. El valor predeterminado es de 5 segundos. Todos los clips tienen resolución de 1080p y solo se cobran los segundos generados.

### ¿Magi-2 genera sonido?

Sí. El sonido está activado de forma predeterminada: Sand AI genera diálogo con sincronización labial, efectos de sonido, sonido ambiente y música junto con la imagen. Para un clip sin sonido, establece `generate_audio` en false o desactiva Generar audio en Studio. El precio por segundo es el mismo en ambos casos.

### ¿Cómo debo escribir un prompt para Magi-2?

Escríbelo plano por plano, en el orden en que suceden las acciones, e indica dónde está la cámara. Pon los diálogos entre comillas, palabra por palabra, e indica quién los dice. Describe también el sonido que quieres: la guía de prompts de Sand AI para Magi-2 Preview mantiene los diálogos en su idioma original y divide un clip en planos unidos por cortes.

### ¿Cuál es la diferencia entre Magi-1, Magi-2 Preview y Magi-2?

Son tres generaciones de Sand AI. Magi-1, lanzado en abril de 2025 con licencia Apache 2.0, genera video de forma autorregresiva, fragmento a fragmento. Magi-2 Preview, publicado como código abierto con licencia Apache 2.0 en agosto de 2026, genera clips de 10 segundos con sonido. Magi-2, lanzado en noviembre de 2026, es un modelo más grande, entrenado con aproximadamente el triple de datos que Magi-2 Preview, y crea hasta 30 segundos con resolución de 1080p y sonido. Kerox ejecuta Magi-2. Los pesos de Magi-2 todavía no se han publicado: Sand AI afirma que más adelante lanzará versiones de código abierto y un informe técnico.


---

## 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": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "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": "sand-ai/magi-2",
        "input": {
            "prompt": "a red fox running through fresh snow, cinematic lighting",
            "resolution": "1080p",
            "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": "sand-ai/magi-2",
    "input": {
      "prompt": "a red fox running through fresh snow, cinematic lighting",
      "resolution": "1080p",
      "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": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "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": "sand-ai/magi-2",
  "input": {
    "prompt": "Image 1: the lighthouse beam sweeps slowly across the water",
    "resolution": "1080p",
    "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": "sand-ai/magi-2",
  "input": {
    "prompt": "A lighthouse beam sweeps slowly across the waves",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "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": "sand-ai/magi-2",
  "input": {
    "prompt": "Slowly dissolve from the coast to the cabin by the lake",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "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": "sand-ai/magi-2",
  "input": {
    "prompt": "Use the camera motion of Video 1 for a flyover of a rocky coastline",
    "resolution": "1080p",
    "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": "sand-ai/magi-2",
  "input": {
    "prompt": "Show a dinosaur at dusk and time its roar to Audio 1",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "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 | No | — | at least one non-whitespace character; 1–15000 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–10 items | 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–5 items; At least 2 seconds per clip and at most 30 seconds total for this media type. Video and audio are counted separately. | 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–5 items; At least 2 seconds per clip and at most 30 seconds total for this media type. Video and audio are counted separately. | 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 | The image a video starts from. | `"https://example.com/start.png"` |
| `last_frame` | string | No | — | one public HTTPS URL | The image a video ends on. Needs `first_frame`. | `"https://example.com/end.png"` |
| `aspect_ratio` | string | No | — | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Width to height of the output. | `"16:9"` |
| `resolution` | string | No | `"1080p"` | 1080p | Output resolution tier. The exact pixels follow from it and `aspect_ratio`. | `"1080p"` |
| `duration` | integer | No | `5` | 4–30 | Length of the output in whole seconds. | `5` |
| `seed` | integer | No | — | 0–2147483647 | The same seed and input give a similar result. | `0` |
| `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
- Supply a prompt for text or reference generation. With a first frame the prompt is optional. With a first frame the video follows the frame's aspect ratio and `aspect_ratio` has no effect; the other modes use 16:9 when it is omitted.
- Only output seconds are billed. Reference media and the audio switch do not change the price.

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": "sand-ai/magi-2",
  "status": "succeeded",
  "source": "api",
  "format": "unified",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://cdn.kerox.ai/t/task_01JD8X9B4Q2M7T8N3K5P6R1S0V/5f2b8c1e9d3a4f6b8a7c0d1e2f3a4b5c/0.mp4",
      "content_type": "video/mp4",
      "width": 1920,
      "height": 1080,
      "duration": 5
    }
  ],
  "outputs_deleted": false,
  "error": null,
  "cost": {
    "amount": "0.5000",
    "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 | Kerox / second |
| --- | --- |
| 1080p | $0.1000 |

### 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": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "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": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

## Common usage

| Clip | Kerox |
| --- | --- |
| 5 s · 1080p | $0.5000 |
| 10 s · 1080p | $1.0000 |
| 15 s · 1080p | $1.5000 |

- **$10 gets you**: 100 seconds of 1080p video

## Input schema (JSON)

### Parameters (`unified.input_schema`)

```json
{
  "type": "object",
  "allOf": [
    {
      "if": {
        "required": [
          "first_frame"
        ],
        "properties": {
          "first_frame": true
        }
      },
      "else": {
        "required": [
          "prompt"
        ],
        "properties": {
          "prompt": true
        }
      },
      "then": {
        "not": {
          "anyOf": [
            {
              "required": [
                "images"
              ],
              "properties": {
                "images": true
              }
            },
            {
              "required": [
                "videos"
              ],
              "properties": {
                "videos": true
              }
            },
            {
              "required": [
                "audios"
              ],
              "properties": {
                "audios": true
              }
            }
          ]
        }
      }
    }
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "prompt": {
      "type": "string",
      "pattern": "\\S",
      "maxLength": 15000,
      "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": 10,
          "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": 5,
          "minItems": 1
        }
      ],
      "x-constraints": {
        "min_clip_seconds": 2,
        "max_total_seconds": 30
      },
      "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": 5,
          "minItems": 1
        }
      ],
      "x-constraints": {
        "min_clip_seconds": 2,
        "max_total_seconds": 30
      },
      "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": [
        "16:9",
        "9:16",
        "1:1",
        "4:3",
        "3:4",
        "21:9"
      ],
      "type": "string",
      "description": "Width to height of the output.",
      "x-label-en": "Aspect ratio",
      "x-label-zh": "画面比例",
      "x-tier": "common"
    },
    "resolution": {
      "enum": [
        "1080p"
      ],
      "type": "string",
      "default": "1080p",
      "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": 30,
      "minimum": 4,
      "description": "Length of the output in whole seconds.",
      "x-label-en": "Duration",
      "x-label-zh": "时长",
      "x-tier": "common"
    },
    "seed": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0,
      "description": "The same seed and input give a similar result.",
      "x-label-en": "Seed",
      "x-label-zh": "随机种子",
      "x-tier": "advanced"
    },
    "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
}
```
