# MiniMax H3

> MiniMax H3 ist das Videomodell von MiniMax für bis zu 15 Sekunden lange Clips mit nativem Stereoton in 768p oder 2K. Generieren Sie aus einem Prompt, aus einem Start- und Endbild oder aus Referenzbildern, -videos und -audio. Öffnen Sie es in Studio, um Auflösung und Länge zu wählen und den Preis vor dem Generieren zu sehen.

MiniMax H3 ist ein KI-Videogenerator von MiniMax. Nutzen Sie das Modell über die Kerox-API mit der Modell-ID minimax/h3 oder generieren Sie Inhalte im Studio, ganz ohne Code. Auf Kerox ab $0.0400 / Sekunde, 50 % unter dem offiziellen Preis, ohne Abo.

## Preise

| Modell | ID | Abrechnung | Kerox-Preis | Rabatt |
| --- | --- | --- | --- | --- |
| MiniMax H3 | `minimax/h3` | Pro Sekunde | 2K: $0.0650, 768p: $0.0400 | 50 % unter dem offiziellen Preis |

- [Preise für MiniMax H3](https://kerox.ai/de/pricing#pricing-minimax/h3)
- [API-Dokumentation zu MiniMax H3](https://kerox.ai/de/docs/models/minimax/h3)
- [MiniMax H3](https://kerox.ai/de/models/minimax/h3)

## Über MiniMax H3

MiniMax H3 ist ein Videogenerierungsmodell von MiniMax, das am 31. Juli 2026 veröffentlicht wurde. MiniMax bezeichnet es als universelles multimodales Generierungsmodell. Es verarbeitet Text, Bilder, Video und Audio als gemeinsamen Kontext und erzeugt Videos mit nativem Stereoton. H3 folgt auf die früheren Modelle Hailuo 01 und Hailuo 02 des Unternehmens.

### Was H3 laut MiniMax mitbringt

- **Ein Modell für jede Aufgabe.** Text zu Video, Bild zu Video, referenzbasierte Generierung und Bearbeitung laufen alle über H3. Bei früheren Modellen waren diese Aufgaben getrennt.
- **Ton, der mit dem Bild entsteht.** Stimme, Soundeffekte und Musik werden gemeinsam modelliert und in Stereo ausgegeben.
- **2K-Ausgabe.** H3 erreicht 2K, indem es sein eigenes Ergebnis mit niedrigerer Auflösung neu generiert. Laut MiniMax lassen sich so kleine Schrift und feine Details wiederherstellen.
- **Flexible Referenzen.** Eine Referenzdatei kann für eine Figur, eine Bewegung, eine Kamerabewegung, einen Stil, eine Stimme oder einen Schnittrhythmus stehen.
- **Präzise Prompt-Umsetzung.** Als Stärken nennt MiniMax das Befolgen von Anweisungen, die Darstellung von Text und Marken sowie die Bewegungsübertragung aus einem Referenzvideo.

MiniMax sagt auch, wo H3 noch Luft nach oben hat: multimodales Verständnis, Fähigkeiten, die durch die aktuelle Modellgröße begrenzt sind, und visuelle Details in bestimmten Szenen.

Auf Kerox läuft MiniMax H3 in 768p und 2K, mit einer Länge von 4 bis 15 Sekunden, in sechs Seitenverhältnissen oder mit automatischem Seitenverhältnis. Mehr über das Modell und über H3 Max erfahren Sie hier: [Was ist MiniMax H3?](https://kerox.ai/de/blog/what-is-minimax-h3)

## So verwenden Sie MiniMax H3

1. **Aufladen** Laden Sie Ihr Wallet ab $5 auf. Es gibt kein Abo, und Ihr Guthaben verfällt nicht.
2. **Video einrichten** Schreiben Sie einen Prompt und wählen Sie Auflösung, 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. Eine fehlgeschlagene Generierung wird vollständig erstattet.

## Was Sie mit MiniMax H3 erstellen können

- **Text zu Video mit Ton.** Ein Prompt genügt für einen Clip mit Stimme, Soundeffekten und Musik.
- **Bild zu Video.** Sie geben ein Startbild vor, und das Modell animiert es.
- **Start- und Endbild.** Legen Sie Anfang und Ende des Clips fest. Das Modell ergänzt die Bewegung dazwischen.
- **Videos, die Ihren Referenzen folgen.** Fügen Sie bis zu 9 Bilder, 3 Videoclips und 3 Audioclips hinzu. Beschreiben Sie im Prompt, wozu jede Referenz dient: eine Figur, eine Kamerabewegung, eine Stimme.
- **Einen bestehenden Clip ändern.** Übergeben Sie ein Video als Referenz und beschreiben Sie, was anders sein soll.

## MiniMax H3 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 |
| --- | --- | --- |
| [MiniMax H3](https://kerox.ai/de/models/minimax/h3) | Clips von 4 bis 15 Sekunden mit Ton, in 768p oder 2K. Wählen Sie dieses Modell für den finalen Clip und immer dann, wenn Sie 2K brauchen. | 2K: $0.0650, 768p: $0.0400 |
| [MiniMax H3 Max](https://kerox.ai/de/models/minimax/h3-max) | Das schnelle Modell auf Basis von H3, 5 bis 15 Sekunden in 480p oder 768p. Wählen Sie es für schnelle Entwürfe, wenn 768p ausreicht. | 480p: $0.0450, 768p: $0.0720 |
| [Seedance 2.5](https://kerox.ai/de/models/bytedance/seedance-2.5) | Das Videomodell von ByteDance, 4 bis 30 Sekunden mit bis zu 1080p. Wählen Sie es, wenn ein einzelner Clip länger als 15 Sekunden dauern muss. | Ab ca. $0.0977 / s (480p) |
| [Seedance 2.0](https://kerox.ai/de/models/bytedance/seedance-2.0) | Das Videomodell von ByteDance, 4 bis 15 Sekunden, mit optionaler 4K-Ausgabe. Wählen Sie es, wenn Sie 4K brauchen. | Ab ca. $0.0668 / s (480p) |
| [Kling 4.0](https://kerox.ai/de/models/kuaishou/kling-4.0) | Das Videomodell von Kuaishou, 3 bis 30 Sekunden in 720p, 1080p oder 4K. Wählen Sie es für lange Clips in 4K. | 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, 2 bis 30 Sekunden in bis zu 1080p. Wählen Sie es für sehr kurze Clips. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## FAQ

### Was kostet MiniMax H3?

MiniMax H3 kostet auf Kerox ab $0.0400 / Sekunde, 50 % unter dem offiziellen Preis. Sie zahlen pro Generierung. Fehlgeschlagene Generierungen werden nicht berechnet. Die Preistabelle auf dieser Seite listet alle Optionen auf.

### Gibt es für MiniMax H3 eine API?

Ja. Senden Sie eine Aufgabe mit der Modell-ID minimax/h3 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 MiniMax H3 finden Sie alle Parameter mit Codebeispielen.

### Kann ich MiniMax H3 online nutzen, ohne Code zu schreiben?

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

### Brauche ich ein Abo, um MiniMax H3 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 MiniMax H3?

Melden Sie sich bei Kerox an und öffnen Sie MiniMax H3 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 minimax/h3.

### Wofür wird MiniMax H3 verwendet?

Für kurze Videos mit Ton, erstellt aus Text, aus einem Bild oder aus Referenzen. MiniMax präsentiert es als ein einziges Modell für Generierung, referenzbasierte Erstellung und Videobearbeitung. Typische Anwendungen sind ein Produktclip aus einem Standbild oder eine Szene mit einer durchgehend konsistenten Figur. Ebenso typisch ist ein Video, das der Bewegung oder Kameraführung eines Referenzclips folgt.

### Kann ich MiniMax H3 kostenlos nutzen?

Nicht auf Kerox. Derzeit gibt es weder einen kostenlosen Tarif noch eine kostenlose Testphase. Laden Sie Ihr Konto ab $5 auf und zahlen Sie nur für das, was Sie generieren.

### Ist MiniMax H3 Open Source?

Teilweise. MiniMax hat die Gewichte von H3 Base unter der MiniMax H3 Community License veröffentlicht. H3 Base erzeugt Videos mit Ton in 768p. Zwei Teile des vollständigen Systems sind nicht veröffentlicht: der Schritt, der Prompts und Referenzen vorbereitet, und der Schritt, der 2K erzeugt. Auf Kerox ist H3 ein gehostetes Modell. Sie generieren im Studio oder über die API und müssen nichts herunterladen oder bereitstellen.

### Was ist der Unterschied zwischen MiniMax H3 und H3 Max?

Auflösung und Geschwindigkeit. H3 erzeugt Videos in 768p oder 2K mit einer Länge von 4 bis 15 Sekunden. H3 Max ist das schnelle Modell auf Basis von H3. Es erzeugt Videos in 480p oder 768p mit einer Länge von 5 bis 15 Sekunden und bietet kein 2K. Beide Modelle akzeptieren dieselben Arten von Eingaben. Sie können einen Prompt und seine Referenzen also von einem Modell in das andere übernehmen. Auflösung und Dauer müssen dabei vom jeweils anderen Modell unterstützt werden. Jedes Modell hat einen eigenen Preis, der in der Vergleichstabelle oben angezeigt wird.

### Kann MiniMax H3 aus einem Bild ein Video erstellen?

Ja. Laden Sie ein Startbild hoch und beschreiben Sie die Bewegung. Alternativ legen Sie ein Start- und ein Endbild fest und lassen das Modell ergänzen, was dazwischen passiert. Ein Startbild lässt sich in derselben Anfrage nicht mit Referenzbildern, Video oder Audio kombinieren.

### Erzeugt MiniMax H3 Ton?

Ja. Der Ton wird standardmäßig zusammen mit dem Video erzeugt. Für einen Clip ohne Ton deaktivieren Sie in Studio die Option „Audio generieren“ oder setzen in der API `generate_audio` auf false.


---

## 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": "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/de/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/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": "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
}
```
