# Magi-2

> Magi-2 ist das Videomodell von Sand AI. Eine Generierung liefert 4 bis 30 Sekunden 1080p-Video mit Ton. Als Grundlage dienen ein Prompt, ein Start- und Endbild oder Referenzen aus Bild, Video und Audio. Auf Kerox wird pro Sekunde Ausgabe abgerechnet, zu einem einheitlichen Sekundenpreis für alle Modi, mit oder ohne Ton. Öffnen Sie das Modell im Studio oder rufen Sie die API mit der Modell-ID sand-ai/magi-2 auf.

Magi-2 ist ein KI-Videogenerator von Sand AI. Nutzen Sie das Modell über die Kerox-API mit der Modell-ID sand-ai/magi-2 oder generieren Sie Inhalte im Studio, ganz ohne Code. Auf Kerox ab $0.1000 / Sekunde, ohne Abo.

## Preise

| Modell | ID | Abrechnung | Kerox-Preis | Rabatt |
| --- | --- | --- | --- | --- |
| Magi-2 | `sand-ai/magi-2` | Pro Sekunde | 1080p: $0.1000 | — |

- [Preise für Magi-2](https://kerox.ai/de/pricing#pricing-sand-ai/magi-2)
- [API-Dokumentation zu Magi-2](https://kerox.ai/de/docs/models/sand-ai/magi-2)
- [Magi-2](https://kerox.ai/de/models/sand-ai/magi-2)

## Über Magi-2

Magi-2 ist das Flaggschiff-Videomodell von Sand AI. Es erschien am 24. November 2026, nach der Open-Source-Version Magi-2 Preview im August. Sand AI erzeugt Bild und Ton in einem Modell: Ein Transformer verarbeitet Text, Video und Audio gemeinsam. Der Clip entsteht so direkt mit seinem Soundtrack. Die folgenden Punkte stammen aus dem Launch-Beitrag von Sand AI.

### Was Sand AI über Magi-2 sagt

- **Bis zu 30 Sekunden 1080p in einem Durchgang.** Sand AI generiert bis zu 30 Sekunden 1080p-Video mit Audio in einem einzigen Durchlauf, mit 25 Bildern pro Sekunde. Die 1080p-Ausgabe entsteht durch einen Upscaling-Schritt nach der Basisgenerierung.
- **Ton aus demselben Modell.** Dialoge mit Lippensynchronisation, Soundeffekte, Umgebungsgeräusche und Musik werden zusammen mit dem Bild generiert, nicht nachträglich hinzugefügt.
- **Ein Stream für Text, Video und Audio.** Sand AI beschreibt einen Single-Stream-Transformer mit Mixture-of-Experts-Architektur. Er hat insgesamt etwa 480 Mrd. Parameter, davon etwa 28 Mrd. aktiv.
- **Multimodale Referenzen.** Eine Generierung lässt sich mit bis zu 10 Bildern, 5 Videos und 5 Audioclips steuern.
- **Stabil über lange Sequenzen.** Sand AI betont die Befolgung von Anweisungen, komplexe Komposition und räumliche wie zeitliche Konsistenz über lange Videos hinweg.

Sand AI stellt außerdem die Bearbeitung bestehender Videos und eine Timeline-Steuerung vor. Diese Funktionen sind auf Kerox noch nicht verfügbar.

Auf Kerox generiert Magi-2 Videos in 1080p mit einer Länge von 4 bis 30 Sekunden. Verfügbare Seitenverhältnisse sind 16:9, 9:16, 1:1, 4:3, 3:4 und 21:9. Ton ist standardmäßig aktiviert. Eine Anfrage enthält entweder einen Prompt allein, ein Startbild mit optionalem Endbild oder bis zu 10 Referenzbilder, 5 Referenzvideos und 5 Referenz-Audioclips. Mit einem Startbild übernimmt das Video dessen Seitenverhältnis. Der Preis ist in allen drei Modi gleich. Aufruf, Kosten und Alternativen: [Magi-2-API-Leitfaden](https://kerox.ai/de/blog/magi-2-api)

## So verwenden Sie Magi-2

1. **Aufladen** Laden Sie Ihr Wallet ab $5 auf. Es gibt kein Abo, und Ihr Kontostand verfällt nicht.
2. **Video einrichten** Schreiben Sie einen Prompt und wählen Sie Dauer und Seitenverhältnis. Fügen Sie bei Bedarf ein Startbild oder Referenzdateien hinzu. Der Preis für diese Einstellungen wird vor dem Start angezeigt.
3. **Generieren und herunterladen** Der Betrag wird beim Start reserviert und nach Fertigstellung des Videos abgerechnet. Fehlgeschlagene Generierungen werden vollständig erstattet.

## Was Sie mit Magi-2 erstellen können

- **Text zu Video mit Ton.** Ein Prompt genügt für einen 1080p-Clip mit natürlichem Ton und bis zu 30 Sekunden Länge.
- **Bild zu Video.** Beginnen Sie mit dem ersten Frame, oder legen Sie den ersten und den letzten Frame fest. Das Modell ergänzt dann die Bewegung dazwischen.
- **Videos auf Basis von Referenzen.** Übergeben Sie Bilder eines Motivs, eines Produkts oder einer Umgebung und beschreiben Sie die Szene darum herum.
- **Szenen mit Dialog.** Schreiben Sie die Dialogzeilen in Anführungszeichen. Das Modell spricht sie lippensynchron.
- **Clips, die sich an Referenz-Audio orientieren.** Fügen Sie Referenz-Audio für eine Stimme, einen Rhythmus oder ein Musikstück hinzu, insgesamt bis zu 30 Sekunden.

## Magi-2 im Vergleich zu anderen Modellen auf Kerox

Alle diese Modelle nutzen dasselbe Guthaben und dieselbe API. Zum Wechseln ändern Sie die Modell-ID und verwenden nur Einstellungen, die das andere Modell unterstützt. Die Einstiegspreise finden Sie in der Tabelle.

| Modell | Wann es sich eignet | Einstiegspreis |
| --- | --- | --- |
| [Magi-2](https://kerox.ai/de/models/sand-ai/magi-2) | Das Videomodell von Sand AI erzeugt Clips von 4 bis 30 Sekunden in 1080p mit Ton. Für jeden Modus gilt derselbe Preis. Wählen Sie es für lange 1080p-Clips mit Dialog oder Ton. | 1080p: $0.1000 |
| [Seedance 2.5](https://kerox.ai/de/models/bytedance/seedance-2.5) | Das Videomodell von ByteDance erzeugt Clips von 4 bis 30 Sekunden in 480p, 720p oder 1080p und unterstützt bis zu 30 Referenzbilder. Wählen Sie es, wenn Sie eine niedrigere Auflösung oder viele Referenzen möchten. | Ab ca. $0.0977 / s (480p) |
| [Kling 4.0](https://kerox.ai/de/models/kuaishou/kling-4.0) | Das Videomodell von Kuaishou erzeugt 3 bis 30 Sekunden in 720p, 1080p oder 4K. Wählen Sie es, wenn Sie 4K benötigen. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/de/models/alibaba/wan-3.0) | Das Videomodell von Alibaba erzeugt 2 bis 30 Sekunden in bis zu 1080p. Wählen Sie es für Clips unter 4 Sekunden. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |
| [MiniMax H3](https://kerox.ai/de/models/minimax/h3) | Das Videomodell von MiniMax erzeugt 4 bis 15 Sekunden in 768p oder 2K. Wählen Sie es für kurze 2K-Clips. | 2K: $0.0650, 768p: $0.0400 |

## FAQ

### Was kostet Magi-2?

Magi-2 kostet auf Kerox ab $0.1000 / Sekunde. Sie zahlen pro Generierung. Fehlgeschlagene Generierungen werden nicht berechnet. Die Preistabelle auf dieser Seite listet alle Optionen auf.

### Gibt es für Magi-2 eine API?

Ja. Senden Sie eine Aufgabe mit der Modell-ID sand-ai/magi-2 an die Kerox-API. Fragen Sie danach den Status der Aufgabe ab oder lassen Sie sich per Webhook benachrichtigen, sobald sie abgeschlossen ist. In der API-Dokumentation für Magi-2 finden Sie alle Parameter mit Codebeispielen.

### Kann ich Magi-2 online nutzen, ohne Code zu schreiben?

Ja. Öffnen Sie Magi-2 in Kerox Studio, schreiben Sie einen Prompt und generieren Sie im Browser. Studio und die API nutzen dasselbe Guthaben.

### Brauche ich ein Abo, um Magi-2 zu nutzen?

Nein. Es gibt keine Tarife und keine monatlichen Gebühren. Laden Sie ab $5 Guthaben auf und zahlen Sie nur für das, was Sie generieren.

### Wie verwende ich Magi-2?

Melden Sie sich bei Kerox an und öffnen Sie Magi-2 im Studio. Schreiben Sie einen Prompt und generieren Sie Ihre Inhalte direkt im Browser. Für die Nutzung per Code erstellen Sie einen API-Schlüssel und starten einen Generierungsauftrag mit der Modell-ID sand-ai/magi-2.

### Ist Magi-2 kostenlos?

Magi-2 ist auf Kerox ein kostenpflichtiges Modell. Jede erfolgreiche Generierung wird zum Preis auf dieser Seite berechnet. Fehlgeschlagene Generierungen kosten nichts. Es gibt keine monatliche Gebühr. Zum Einstieg genügt eine Aufladung von $5.

### Wie lang kann ein Magi-2-Video sein?

Zwischen 4 und 30 Sekunden pro Generierung, in ganzen Sekunden. Standardmäßig sind es 5 Sekunden. Jeder Clip wird in 1080p ausgegeben. Abgerechnet werden nur die Sekunden des erzeugten Videos.

### Erzeugt Magi-2 Ton?

Ja. Ton ist standardmäßig aktiviert: Sand AI erzeugt zusammen mit dem Bild Dialoge mit Lippensynchronisation, Soundeffekte, Umgebungsgeräusche und Musik. Für einen Clip ohne Ton setzen Sie `generate_audio` auf false oder deaktivieren Sie „Audio generieren“ im Studio. Der Preis pro Sekunde bleibt in beiden Fällen gleich.

### Wie schreibe ich einen Prompt für Magi-2?

Beschreiben Sie das Video Einstellung für Einstellung, in der Reihenfolge der Ereignisse, und geben Sie an, wo sich die Kamera befindet. Setzen Sie gesprochene Sätze wortgetreu in Anführungszeichen und ordnen Sie sie der sprechenden Person zu. Beschreiben Sie auch den gewünschten Ton. Dazu passt der Prompt-Leitfaden von Sand AI für Magi-2 Preview: Er belässt Dialoge in ihrer Originalsprache und teilt einen Clip in Einstellungen auf, die durch Schnitte verbunden sind.

### Was ist der Unterschied zwischen Magi-1, Magi-2 Preview und Magi-2?

Es handelt sich um drei Generationen von Sand AI. Magi-1 erschien im April 2025 unter Apache 2.0 und erzeugt Videos autoregressiv, Abschnitt für Abschnitt. Magi-2 Preview wurde im August 2026 unter Apache 2.0 als Open Source veröffentlicht und erzeugt 10-Sekunden-Clips mit Ton. Magi-2 erschien im November 2026. Es ist ein größeres Modell, das mit etwa dreimal so vielen Daten wie Magi-2 Preview trainiert wurde. Es erzeugt bis zu 30 Sekunden in 1080p mit Ton. Kerox bietet Magi-2 an. Die Gewichte von Magi-2 sind noch nicht veröffentlicht: Laut Sand AI folgen Open-Source-Veröffentlichungen und ein technischer Bericht.


---

## Request example

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