# MiniMax H3 (Hailuo) Video Generator (`superlewis/minimax-h3-hailuo-video-generator`) Actor

Generate videos with MiniMax H3 (Hailuo): Standard tier in 768P or native 2K, or a lower-priced Draft tier in 480P/768P from 1 second. Text, reference images or first/last frames. Pay per second on Apify, or use your own apimodels.app API key.

- **URL**: https://apify.com/superlewis/minimax-h3-hailuo-video-generator.md
- **Developed by:** [Lucas Lewis](https://apify.com/superlewis) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $122.00 / 1,000 768p video, per seconds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## MiniMax H3 (Hailuo) video generator

Generate videos with **MiniMax H3**, the model behind Hailuo, from a list of prompts. Choose the **Standard** tier for 768P or **native 2K** delivery, or the **Draft** tier, the same H3 model on a lower-priced channel, for 480P/768P drafts from 1 second. You can work from text, guide the scene with reference images, or (on Draft) give a first and last frame. Each video comes back as a URL in a dataset.

The Actor runs on the [apimodels.app MiniMax H3 API](https://apimodels.app/docs/minimax-h3?utm_source=apify\&utm_medium=referral).

### Two tiers

| | Standard | Draft |
|---|---|---|
| Resolution | 768P or native 2K | 480P or 768P |
| Duration | 5–15 seconds | 1–15 seconds |
| Aspect ratio | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 or adaptive | 16:9 or 9:16 |
| Inputs | Text, up to 5 reference images | Text, up to 9 reference images, or a first + last frame |
| Best for | Final delivery, large motion, 2K | Drafts, animation, talking heads, slow camera moves, volume |

Both tiers take a few minutes per clip. **On the Draft tier, large live-action movement (running, fighting, dancing, fast camera moves) can deform faces and limbs**; that is a property of the tier, not of the prompt. A common workflow is to lock composition and timing on Draft, then render the final cut on Standard.

### Pricing

Billed per second of delivered video. **Failed generations and moderation rejections are never charged.** Reference images are included at no extra cost.

**Pay per second on Apify** (paid Apify plans, no API key needed):

| Tier | Resolution | Per second | 5-second clip | 10-second clip |
|---|---|---|---|---|
| Standard | 768P | $0.122 | $0.61 | $1.22 |
| Standard | 2K | $0.182 | $0.91 | $1.82 |
| Draft | 480P | $0.013 | $0.065 | $0.13 |
| Draft | 768P | $0.025 | $0.125 | $0.25 |

**Or use your own apimodels.app API key.** Create a key at [apimodels.app](https://apimodels.app/console/api-keys?utm_source=apify\&utm_medium=referral) and paste it into the input. Videos are then billed to your apimodels.app balance at apimodels.app prices ([Standard](https://apimodels.app/models/minimax-h3?utm_source=apify\&utm_medium=referral), [Draft](https://apimodels.app/models/minimax-h3-lite?utm_source=apify\&utm_medium=referral)), and nothing is charged on Apify. **On the Apify free plan an API key is required.**

### How to use

1. Enter one or more prompts. Each prompt makes one video.
2. Pick the tier, resolution, duration and aspect ratio.
3. Optional: add reference image URLs, or on Draft a first (and last) frame URL.
4. Optional: paste your apimodels.app API key.
5. Start the run. Videos appear in the **Output** tab as they finish.

### Output

```json
{
  "ok": true,
  "videoUrl": "https://r2.apimodels.app/...mp4",
  "prompt": "A street musician plays violin under a stone archway...",
  "model": "minimax-h3",
  "tier": "standard",
  "resolution": "768p",
  "duration": 5,
  "aspectRatio": "16:9",
  "references": 0,
  "billing": "apify",
  "taskId": "..."
}
```

If a job fails, its item has `"ok": false` and an `error` message. It is not charged.

### Things to know

- Durations are whole seconds.
- Result URLs are kept for **30 days**. Download what you want to keep.
- Use **Maximum cost per run** to cap spending. The Actor stops before it goes over the cap.

### Call the API directly

```bash
curl https://api.apimodels.app/v1/video/generations \
  -H "Authorization: Bearer $APIMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "minimax-h3", "prompt": "a chef flips a pancake in a sunny kitchen", "resolution": "768p", "duration": 5, "ratio": "16:9"}'
```

Use `"model": "minimax-h3-lite"` for the Draft tier. The call returns a `taskId`; poll `GET /v1/video/generations?task_id=...` for the result. The API also accepts reference videos (Standard) and reference audio. Docs: [MiniMax H3](https://apimodels.app/docs/minimax-h3?utm_source=apify\&utm_medium=referral), [Draft tier](https://apimodels.app/docs/minimax-h3-lite?utm_source=apify\&utm_medium=referral).

### About apimodels.app

[apimodels.app](https://apimodels.app/?utm_source=apify\&utm_medium=referral) gives you one API key for 170+ AI models: LLMs, image, video and audio generation. Failed requests are never charged.

This Actor is not affiliated with or endorsed by MiniMax.

# Actor input Schema

## `prompts` (type: `array`):

One job per prompt (up to 20 per run). Say what each reference image should supply (character, outfit, product, scene).

## `tier` (type: `string`):

Standard: 768P or native 2K, 5-15 s, handles large motion. Draft: the same H3 model on a lower-priced channel, 480P or 768P, 1-15 s, 16:9 or 9:16; best for drafts, animation and small motion (large live-action movement can deform faces and limbs).

## `resolution` (type: `string`):

Standard tier: 768P or 2K. Draft tier: 480P or 768P.

## `duration` (type: `integer`):

Standard: 5 to 15 seconds. Draft: 1 to 15 seconds. Billed per second.

## `aspectRatio` (type: `string`):

Shape of the video. The Draft tier supports 16:9 and 9:16 only.

## `referenceImageUrls` (type: `array`):

Public image URLs for characters, products or scenes (up to 5 on Standard, 9 on Draft, free). Describe in the prompt what each one should supply.

## `firstFrameUrl` (type: `string`):

Public image URL to start the clip from. Draft tier only; cannot be combined with reference images.

## `lastFrameUrl` (type: `string`):

Public image URL the clip should end on. Needs a first frame.

## `apiKey` (type: `string`):

Leave empty on a paid Apify plan to pay per second on Apify. Required on the Apify free plan: create a key at https://apimodels.app/console/api-keys and jobs are billed to your apimodels.app balance instead (nothing is charged on Apify).

## Actor input object example

```json
{
  "prompts": [
    "A street musician plays violin under a stone archway at dusk, the camera slowly pushes in, warm lamplight, pigeons take off"
  ],
  "tier": "standard",
  "resolution": "768p",
  "duration": 5,
  "aspectRatio": "16:9"
}
```

# Actor output Schema

## `results` (type: `string`):

One item per generated video with its URL (kept for 30 days) and settings, plus an error message for jobs that failed.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompts": [
        "A street musician plays violin under a stone archway at dusk, the camera slowly pushes in, warm lamplight, pigeons take off"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("superlewis/minimax-h3-hailuo-video-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "prompts": ["A street musician plays violin under a stone archway at dusk, the camera slowly pushes in, warm lamplight, pigeons take off"] }

# Run the Actor and wait for it to finish
run = client.actor("superlewis/minimax-h3-hailuo-video-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompts": [
    "A street musician plays violin under a stone archway at dusk, the camera slowly pushes in, warm lamplight, pigeons take off"
  ]
}' |
apify call superlewis/minimax-h3-hailuo-video-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superlewis/minimax-h3-hailuo-video-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VKiwVduOwRf4vBn87/builds/n9TevQifHKhZYOFig/openapi.json
