# MiniMax H3

> MiniMax H3는 MiniMax의 영상 모델로, 네이티브 스테레오 사운드가 포함된 최대 15초 길이의 클립을 768p 또는 2K로 생성합니다. 프롬프트, 첫 프레임과 마지막 프레임, 또는 참조 이미지, 영상, 오디오로 생성할 수 있습니다. Studio에서 해상도와 길이를 선택하면 생성 전에 가격을 확인할 수 있습니다.

MiniMax H3 모델은 MiniMax에서 개발한 AI 영상 생성기입니다. 모델 ID minimax/h3를 지정해 Kerox API로 호출하거나, 코드 작성 없이 Studio에서 생성할 수 있습니다. Kerox에서는 구독 없이 $0.0400 / 초 (공식 가격 대비 50% 할인)부터 이용할 수 있습니다.

## 요금

| 모델 | ID | 결제 방식 | Kerox 요금 | 할인 |
| --- | --- | --- | --- | --- |
| MiniMax H3 | `minimax/h3` | 초당 | 2K: $0.0650, 768p: $0.0400 | 공식 가격보다 50% 저렴 |

- [MiniMax H3 가격](https://kerox.ai/ko/pricing#pricing-minimax/h3)
- [MiniMax H3 API 문서](https://kerox.ai/ko/docs/models/minimax/h3)
- [MiniMax H3](https://kerox.ai/ko/models/minimax/h3)

## MiniMax H3 소개

MiniMax H3는 MiniMax가 2026년 7월 31일에 출시한 영상 생성 모델입니다. MiniMax는 이 모델을 범용 멀티모달 생성 모델이라고 소개합니다. 텍스트, 이미지, 영상, 오디오를 하나의 맥락에서 함께 처리해 네이티브 스테레오 사운드가 포함된 영상을 생성합니다. 이전 모델인 Hailuo 01과 Hailuo 02의 뒤를 잇는 모델입니다.

### MiniMax가 밝힌 H3의 특징

- **모든 작업을 하나의 모델로** 텍스트나 이미지로 영상을 생성하는 작업은 물론, 참조 기반 생성과 편집까지 모두 H3에서 처리합니다. 이전 모델에서는 작업별로 모델이 나뉘어 있었습니다.
- **영상과 함께 만들어지는 사운드** 음성, 효과음, 음악을 함께 모델링하며 스테레오로 출력합니다.
- **2K 출력** H3는 자체적으로 생성한 저해상도 결과물을 다시 생성해 2K 해상도를 구현합니다. MiniMax에 따르면 이 과정에서 작은 글자와 미세한 부분까지 복원됩니다.
- **유연한 레퍼런스** 레퍼런스 파일은 캐릭터, 동작, 카메라 무빙, 스타일, 목소리, 편집 리듬 등 다양한 요소의 참조 자료로 활용할 수 있습니다.
- **정확한 프롬프트 반영** MiniMax는 지시 사항 반영, 텍스트 및 브랜드 렌더링, 레퍼런스 영상의 동작을 생성 결과에 적용하는 능력을 강점으로 꼽습니다.

MiniMax는 H3의 개선 여지가 있는 부분도 밝히고 있습니다. 멀티모달 이해, 현재 모델 크기로 인해 제한되는 기능, 특정 장면의 시각적 디테일입니다.

Kerox에서 MiniMax H3는 768p 및 2K 해상도, 4~15초 길이, 6가지 화면 비율 또는 화면 비율 자동 선택을 지원합니다. 모델과 H3 Max에 대한 자세한 내용은 다음 글에서 확인할 수 있습니다: [MiniMax H3란 무엇인가요?](https://kerox.ai/ko/blog/what-is-minimax-h3)

## MiniMax H3 사용 방법

1. **충전** 최소 $5부터 충전할 수 있습니다. 구독 없이 이용할 수 있으며 잔액은 만료되지 않습니다.
2. **영상 설정** 프롬프트를 작성하고 해상도, 길이, 화면 비율을 선택한 다음 필요하면 첫 프레임이나 참조 파일을 추가합니다. 선택한 설정의 가격은 시작하기 전에 표시됩니다.
3. **생성 및 다운로드** 생성을 시작하면 해당 금액이 먼저 확보되고, 영상이 완성되면 정산됩니다. 생성에 실패하면 전액 환불됩니다.

## MiniMax H3 활용 예시

- **텍스트로 오디오가 포함된 영상 생성.** 프롬프트만으로 음성, 효과음, 음악이 담긴 영상을 만들 수 있습니다.
- **이미지로 영상 생성.** 첫 프레임을 지정하면 모델이 이를 바탕으로 움직임을 생성합니다.
- **첫 프레임과 마지막 프레임.** 클립의 시작과 끝을 지정하면 모델이 그 사이의 움직임을 채웁니다.
- **레퍼런스를 반영한 영상.** 이미지 최대 9장, 영상 클립 최대 3개, 오디오 클립 최대 3개를 추가하고 각 항목의 용도(캐릭터, 카메라 움직임, 음성)를 프롬프트에 적으면 됩니다.
- **기존 클립 수정.** 영상을 레퍼런스로 추가하고 달라져야 할 부분을 설명하면 됩니다.

## MiniMax H3 vs Kerox의 다른 모델

모든 모델이 같은 잔액을 공유하고 같은 API를 사용합니다. 모델을 바꾸려면 모델 ID를 변경하고 해당 모델이 지원하는 설정을 사용하면 됩니다. 시작 가격은 표에서 확인할 수 있습니다.

| 모델 | 선택하면 좋은 경우 | 시작 가격 |
| --- | --- | --- |
| [MiniMax H3](https://kerox.ai/ko/models/minimax/h3) | 소리가 포함된 4~15초 클립을 768p 또는 2K로 생성합니다. 최종 클립을 만들 때, 그리고 2K가 필요할 때 적합합니다. | 2K: $0.0650, 768p: $0.0400 |
| [MiniMax H3 Max](https://kerox.ai/ko/models/minimax/h3-max) | H3 기반의 고속 모델로, 480p 또는 768p에서 5~15초 영상을 생성합니다. 768p면 충분하고 초안을 빠르게 만들어야 할 때 적합합니다. | 480p: $0.0450, 768p: $0.0720 |
| [Seedance 2.5](https://kerox.ai/ko/models/bytedance/seedance-2.5) | ByteDance의 영상 모델로, 최대 1080p 해상도까지 지원하며 4~30초 영상을 생성합니다. 한 클립이 15초보다 길어야 할 때 적합합니다. | 약 $0.0977 / 초부터 (480p) |
| [Seedance 2.0](https://kerox.ai/ko/models/bytedance/seedance-2.0) | ByteDance의 영상 모델로, 4~15초 영상을 생성하며 4K 출력도 지원합니다. 4K가 필요할 때 적합합니다. | 약 $0.0668 / 초부터 (480p) |
| [Kling 4.0](https://kerox.ai/ko/models/kuaishou/kling-4.0) | Kuaishou의 영상 모델로, 720p, 1080p 또는 4K에서 3~30초 영상을 생성합니다. 4K로 긴 클립을 만들 때 적합합니다. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/ko/models/alibaba/wan-3.0) | 최대 1080p 해상도로 2~30초 길이의 영상을 생성하는 Alibaba의 영상 모델입니다. 아주 짧은 클립에 적합합니다. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## FAQ

### MiniMax H3 가격은 얼마입니까?

Kerox에서 MiniMax H3 모델은 $0.0400 / 초부터 (공식 가격 대비 50% 할인) 이용할 수 있습니다. 생성 건당 결제하며, 실패한 생성에는 요금이 부과되지 않습니다. 모든 옵션은 이 페이지의 가격표에서 확인할 수 있습니다.

### MiniMax H3 모델에서 API를 사용할 수 있습니까?

네. 모델 ID minimax/h3로 Kerox API에 작업을 제출한 뒤, 작업 상태를 폴링하거나 작업 완료 시 Webhook 알림을 받을 수 있습니다. MiniMax H3의 API 문서에서 모든 파라미터와 코드 예제를 확인할 수 있습니다.

### 코드 작성 없이 온라인에서 MiniMax H3 모델을 사용할 수 있습니까?

네. Kerox Studio에서 MiniMax H3 모델을 열고 프롬프트를 작성하면 브라우저에서 생성할 수 있습니다. Studio와 API는 같은 잔액을 사용합니다.

### MiniMax H3 모델을 사용하려면 구독이 필요합니까?

아니요. 요금제나 월 요금이 없습니다. 최소 $5부터 충전할 수 있으며, 생성한 만큼만 결제합니다.

### MiniMax H3 사용 방법은 무엇입니까?

Kerox에 로그인한 후 Studio에서 MiniMax H3 모델을 열고 프롬프트를 작성하면 브라우저에서 생성할 수 있습니다. 코드에서 사용하려면 API 키를 만든 후 모델 ID minimax/h3로 작업을 제출하면 됩니다.

### MiniMax H3는 어떤 용도로 사용합니까?

텍스트, 이미지 또는 레퍼런스로 소리가 포함된 짧은 영상을 만듭니다. MiniMax는 이 모델을 생성, 레퍼런스 기반 제작, 영상 편집을 하나로 아우르는 모델로 소개합니다. 대표적인 작업으로는 정지 이미지로 만드는 제품 클립, 같은 캐릭터의 모습이 일관되게 유지되는 장면, 레퍼런스 클립의 움직임이나 카메라 워크를 따르는 영상 등이 있습니다.

### MiniMax H3를 무료로 사용할 수 있습니까?

Kerox에서는 무료로 사용할 수 없습니다. 현재 무료 플랜이나 무료 체험은 제공하지 않습니다. $5부터 충전할 수 있으며, 생성한 만큼만 비용을 지불합니다.

### MiniMax H3는 오픈 소스입니까?

일부만 공개되어 있습니다. MiniMax는 소리가 포함된 영상을 768p로 생성하는 H3 Base의 가중치를 MiniMax H3 Community License로 공개했습니다. 전체 시스템 중 프롬프트와 레퍼런스를 준비하는 단계와 2K 해상도 영상을 생성하는 단계, 이 두 부분은 공개되지 않았습니다. Kerox에서 H3는 호스팅 모델로 제공되므로, 다운로드하거나 배포할 필요 없이 Studio 또는 API를 통해 생성할 수 있습니다.

### MiniMax H3와 H3 Max의 차이점은 무엇입니까?

해상도와 속도입니다. H3는 768p 또는 2K 해상도로 4~15초 길이의 영상을 생성합니다. H3 Max는 H3를 기반으로 한 고속 모델로, 480p 또는 768p 해상도로 5~15초 길이의 영상을 생성하며 2K는 지원하지 않습니다. 두 모델 모두 같은 종류의 입력을 받으므로 프롬프트와 레퍼런스를 그대로 옮겨 사용할 수 있습니다. 단, 해상도와 길이는 옮겨 가는 모델이 지원하는 값이어야 합니다. 각 모델의 가격은 따로 책정되며, 위의 비교표에서 확인할 수 있습니다.

### MiniMax H3로 이미지를 영상으로 변환할 수 있습니까?

네. 첫 프레임을 업로드하고 움직임을 설명하거나, 첫 프레임과 마지막 프레임을 지정해 두 프레임 사이에서 일어나는 움직임과 변화를 모델이 채우도록 할 수 있습니다. 첫 프레임은 같은 요청에서 레퍼런스 이미지, 영상 또는 오디오와 함께 사용할 수 없습니다.

### MiniMax H3는 소리를 생성합니까?

네. 기본적으로 사운드는 영상과 함께 생성됩니다. 무음 클립이 필요하면 Studio에서 오디오 생성을 끄거나, API에서 `generate_audio`를 false로 설정하면 됩니다.


---

## Request example

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