# MiniMax H3

> MiniMax H3 là mô hình video của MiniMax dành cho các clip dài tối đa 15 giây, có âm thanh stereo do chính mô hình tạo ra, ở 768p hoặc 2K. Bạn có thể tạo video từ câu lệnh, từ khung hình đầu và cuối, hoặc từ ảnh, video và âm thanh tham chiếu. Mở mô hình trong Studio để chọn độ phân giải, thời lượng và xem giá trước khi tạo.

MiniMax H3 là công cụ tạo video bằng AI của MiniMax. Bạn có thể gọi mô hình qua Kerox API với ID mô hình minimax/h3, hoặc tạo nội dung trong Studio mà không cần viết mã. Trên Kerox, giá từ $0.0400 / giây, thấp hơn 50% so với giá chính thức, không cần đăng ký gói.

## Bảng giá

| Mô hình | ID | Thanh toán | Giá Kerox | Giảm giá |
| --- | --- | --- | --- | --- |
| MiniMax H3 | `minimax/h3` | Theo giây | 2K: $0.0650, 768p: $0.0400 | Thấp hơn giá chính thức 50% |

- [Bảng giá MiniMax H3](https://kerox.ai/vi/pricing#pricing-minimax/h3)
- [Tài liệu API MiniMax H3](https://kerox.ai/vi/docs/models/minimax/h3)
- [MiniMax H3](https://kerox.ai/vi/models/minimax/h3)

## Giới thiệu về MiniMax H3

MiniMax H3 là mô hình tạo video của MiniMax, ra mắt ngày 31 tháng 7 năm 2026. MiniMax gọi đây là mô hình tạo nội dung đa phương thức đa năng: mô hình đọc văn bản, hình ảnh, video và âm thanh như một ngữ cảnh duy nhất và tạo video kèm âm thanh stereo do chính mô hình tạo ra. Mô hình này ra đời sau các mô hình Hailuo 01 và Hailuo 02 trước đó của công ty.

### Những điểm mới của H3, theo MiniMax

- **Một mô hình cho mọi tác vụ.** Tạo video từ văn bản, tạo video từ ảnh, tạo video dựa trên tham chiếu và chỉnh sửa đều chạy trên H3. Các mô hình trước đây tách những việc này thành các tác vụ riêng.
- **Âm thanh được tạo cùng hình ảnh.** Giọng nói, hiệu ứng âm thanh và nhạc được mô hình hóa cùng nhau và xuất ra ở định dạng stereo.
- **Đầu ra 2K.** H3 đạt độ phân giải 2K bằng cách tạo lại đầu ra độ phân giải thấp do chính mô hình tạo ra. Theo MiniMax, cách này giúp khôi phục chữ cỡ nhỏ và các chi tiết tỉ mỉ.
- **Tham chiếu linh hoạt.** Một tệp tham chiếu có thể đại diện cho nhân vật, chuyển động, chuyển động máy quay, phong cách, giọng nói hoặc nhịp dựng.
- **Bám sát câu lệnh.** MiniMax cho biết các thế mạnh của mô hình gồm khả năng làm theo chỉ dẫn, hiển thị chữ và thương hiệu, cùng khả năng lấy chuyển động từ video tham chiếu để áp dụng vào video được tạo.

MiniMax cũng nêu những điểm H3 còn có thể cải thiện: khả năng hiểu đa phương thức, các khả năng bị giới hạn bởi kích thước mô hình hiện tại và chi tiết hình ảnh trong một số cảnh.

Trên Kerox, MiniMax H3 chạy ở độ phân giải 768p và 2K, thời lượng từ 4 đến 15 giây, với sáu tỷ lệ khung hình hoặc chế độ tự động. Để tìm hiểu thêm về mô hình này và H3 Max, hãy đọc [MiniMax H3 là gì?](https://kerox.ai/vi/blog/what-is-minimax-h3)

## Cách sử dụng MiniMax H3

1. **Nạp tiền** Nạp tiền với mức tối thiểu $10. Không cần đăng ký gói, và số dư của bạn không hết hạn.
2. **Thiết lập video** Viết câu lệnh, chọn độ phân giải, thời lượng và tỷ lệ khung hình, rồi thêm khung hình đầu tiên hoặc tệp tham chiếu nếu cần. Giá cho các thiết lập này sẽ hiển thị trước khi bạn bắt đầu.
3. **Tạo và tải xuống** Số tiền được tạm giữ khi bạn bắt đầu và được chốt khi video hoàn tất. Lượt tạo thất bại sẽ được hoàn tiền đầy đủ.

## Bạn có thể tạo gì với MiniMax H3

- **Tạo video từ văn bản kèm âm thanh.** Chỉ cần một câu lệnh là có clip kèm giọng nói, hiệu ứng và nhạc.
- **Tạo video từ ảnh.** Bắt đầu từ khung hình đầu tiên, mô hình sẽ làm cho khung hình đó chuyển động.
- **Khung hình đầu và cuối.** Chọn khung hình mở đầu và kết thúc cho clip, mô hình sẽ tạo chuyển động nối liền giữa hai khung hình.
- **Video bám sát nội dung tham chiếu của bạn.** Thêm tối đa 9 hình ảnh, 3 đoạn video và 3 đoạn âm thanh, rồi ghi rõ trong prompt vai trò của từng nội dung tham chiếu: một nhân vật, một chuyển động máy quay, một giọng nói.
- **Chỉnh sửa clip có sẵn.** Đưa vào một video làm nội dung tham chiếu và mô tả những gì cần thay đổi.

## MiniMax H3 so với các mô hình khác trên Kerox

Tất cả các mô hình này đều dùng chung số dư và cùng một API. Để chuyển sang mô hình khác, hãy đổi ID mô hình và chỉ dùng các thiết lập mà mô hình đó hỗ trợ. Giá khởi điểm có trong bảng.

| Mô hình | Khi nào nên chọn | Giá khởi điểm |
| --- | --- | --- |
| [MiniMax H3](https://kerox.ai/vi/models/minimax/h3) | Clip có âm thanh dài từ 4 đến 15 giây, ở 768p hoặc 2K. Hãy chọn mô hình này cho clip hoàn chỉnh và bất cứ khi nào bạn cần 2K. | 2K: $0.0650, 768p: $0.0400 |
| [MiniMax H3 Max](https://kerox.ai/vi/models/minimax/h3-max) | Mô hình nhanh được xây dựng trên H3, tạo clip từ 5 đến 15 giây ở 480p hoặc 768p. Hãy chọn mô hình này để làm bản nháp nhanh khi 768p là đủ. | 480p: $0.0450, 768p: $0.0720 |
| [Seedance 2.5](https://kerox.ai/vi/models/bytedance/seedance-2.5) | Mô hình video của ByteDance, tạo clip từ 4 đến 30 giây với độ phân giải tối đa 1080p. Hãy chọn mô hình này khi một clip cần dài hơn 15 giây. | Từ khoảng $0.0977 / giây (480p) |
| [Seedance 2.0](https://kerox.ai/vi/models/bytedance/seedance-2.0) | Mô hình video của ByteDance, tạo clip từ 4 đến 15 giây, có hỗ trợ xuất 4K. Hãy chọn mô hình này khi bạn cần 4K. | Từ khoảng $0.0668 / giây (480p) |
| [Kling 4.0](https://kerox.ai/vi/models/kuaishou/kling-4.0) | Mô hình video của Kuaishou, tạo clip từ 3 đến 30 giây ở 720p, 1080p hoặc 4K. Hãy chọn mô hình này cho clip dài ở 4K. | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/vi/models/alibaba/wan-3.0) | Mô hình video của Alibaba, tạo clip từ 2 đến 30 giây với độ phân giải tối đa 1080p. Hãy chọn mô hình này cho clip rất ngắn. | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## Câu hỏi thường gặp

### MiniMax H3 có giá bao nhiêu?

MiniMax H3 trên Kerox có giá từ $0.0400 / giây, thấp hơn 50% so với giá chính thức. Bạn trả tiền theo từng lượt tạo và không bị tính phí cho các lượt tạo thất bại. Bảng giá trên trang này liệt kê đầy đủ mọi tùy chọn.

### MiniMax H3 có API không?

Có. Gửi một tác vụ tới API của Kerox với ID mô hình minimax/h3, sau đó kiểm tra định kỳ trạng thái tác vụ hoặc nhận Webhook khi tác vụ hoàn tất. Tài liệu API của MiniMax H3 liệt kê đầy đủ mọi tham số kèm mã mẫu.

### Tôi có thể dùng MiniMax H3 trực tuyến mà không cần viết mã không?

Có. Mở MiniMax H3 trong Kerox Studio, nhập prompt và tạo ngay trên trình duyệt. Studio và API dùng chung một số dư.

### Tôi có cần đăng ký gói để dùng MiniMax H3 không?

Không. Không có gói đăng ký và không có phí hằng tháng. Nạp tiền từ $10 và chỉ trả cho những gì bạn tạo.

### Làm thế nào để dùng MiniMax H3?

Đăng nhập Kerox, mở MiniMax H3 trong Studio, nhập prompt và tạo ngay trên trình duyệt. Để tích hợp vào mã nguồn, hãy tạo khóa API và gửi tác vụ với ID mô hình minimax/h3.

### MiniMax H3 được dùng để làm gì?

Tạo video ngắn có âm thanh từ văn bản, hình ảnh hoặc nội dung tham chiếu. MiniMax giới thiệu đây là một mô hình duy nhất để tạo video, tạo video dựa trên nội dung tham chiếu và chỉnh sửa video. Các tác vụ điển hình gồm tạo clip sản phẩm từ một ảnh tĩnh, tạo một cảnh giữ nhân vật nhất quán, hoặc tạo video bám theo chuyển động hay cách quay của một clip tham chiếu.

### Tôi có thể dùng MiniMax H3 miễn phí không?

Trên Kerox thì không. Hiện chưa có gói miễn phí hay bản dùng thử miễn phí. Bạn có thể nạp tiền với mức tối thiểu $10 và chỉ trả cho những gì bạn tạo.

### MiniMax H3 có phải là mã nguồn mở không?

Một phần. MiniMax đã công bố trọng số của H3 Base, mô hình tạo video có âm thanh ở 768p, theo Giấy phép Cộng đồng MiniMax H3. Hai phần của hệ thống đầy đủ chưa được phát hành: bước xử lý prompt và nội dung tham chiếu, và bước tạo đầu ra 2K. Trên Kerox, H3 là mô hình do Kerox vận hành: bạn tạo video trong Studio hoặc qua API mà không cần tải xuống hay triển khai gì.

### MiniMax H3 và H3 Max khác nhau như thế nào?

Khác nhau ở độ phân giải và tốc độ. H3 tạo video ở 768p hoặc 2K, với clip dài từ 4 đến 15 giây. H3 Max là mô hình nhanh được xây dựng trên H3: tạo video ở 480p hoặc 768p, với clip dài từ 5 đến 15 giây và không hỗ trợ 2K. Cả hai đều nhận cùng loại đầu vào, nên bạn có thể dùng cùng một prompt và nội dung tham chiếu cho cả hai mô hình, miễn là độ phân giải và thời lượng nằm trong phạm vi mô hình kia hỗ trợ. Mỗi mô hình có giá riêng, được hiển thị trong bảng so sánh ở trên.

### MiniMax H3 có thể tạo video từ hình ảnh không?

Có. Tải lên khung hình đầu tiên và mô tả chuyển động, hoặc đặt khung hình đầu và khung hình cuối để mô hình tự tạo phần diễn ra ở giữa. Không thể kết hợp khung hình đầu tiên với ảnh tham chiếu, video hoặc âm thanh trong cùng một yêu cầu.

### MiniMax H3 có tạo âm thanh không?

Có. Theo mặc định, âm thanh được tạo cùng video. Để có clip không tiếng, hãy tắt tùy chọn Generate audio trong Studio hoặc đặt `generate_audio` thành false trong API.


---

## Request example

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