Skip to main content

Hailuo CLI

A command-line tool for generating AI videos using Hailuo (MiniMax) through the AceDataCloud platform.

Get your Ace Data Cloud API key

  1. Open Ace Data Cloud → Applications. Sign in, or register an account first.
  2. Find General application. If it has not been created, choose Initialize General Application. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and current pricing.
  3. Copy the API Key from the application card, or open Keys / Manage Keys → Create to create a separate key for this integration. Give it a recognizable name so you can revoke or rotate it independently.
  4. When creating a key, review Expiration Time, Set Usage Limitation, and Allowed APIs. Enable only the restrictions you need, allow the operations you will call, then click Create and copy the token from the key list. Task lookup does not grant permission to submit a generation. Confirm the application's balance can cover your first request; any trial allowance is whatever your account currently displays.
  5. Copy only the token value, without quotation marks, spaces, or Bearer . An API Key / API Token field expects this raw value; only a manually configured HTTP Authorization header needs the Bearer prefix. A platform-... account-management token cannot replace a generation API key.

Copy an application API key or open Manage Keys

Create a separately named key with optional restrictions

Save the key in the client's credential store or the environment variable shown below. Never put it in a prompt, shared workflow, screenshot, or Git commit. If authentication fails, check the full copied value, application/service access, expiration, usage limit, and balance before creating another key.

Installation

pip install hailuo-cli

Configuration

export ACEDATACLOUD_API_TOKEN=your_token

Or copy .env.example to .env and fill in your token.

Commands

Video Generation

Command Description
hailuo generate <prompt> Generate a video from text (MiniMax-H3)
hailuo image-to-video <prompt> --image-url <url> Generate video from image + text

Task Management

Command Description
hailuo task <task_id> Query a single task status
hailuo tasks <id1> <id2> [...] Query multiple tasks at once
hailuo delete <task_id> Delete a task
hailuo wait <task_id> Wait for task completion with polling

Utilities

Command Description
hailuo models List available Hailuo models
hailuo config Show current configuration

Global Options

--token TEXT    API token (or set ACEDATACLOUD_API_TOKEN env var)
--version       Show version
--help          Show help message

Most commands support:

--json          Output raw JSON (for piping/scripting)
--callback-url  Webhook URL for async notifications

Examples

# Generate a video from a text prompt
hailuo generate "A cat playing in the snow"

# Generate from image reference
hailuo image-to-video "Animate the scene" --image-url https://example.com/photo.jpg

# Use a specific model
hailuo generate "Ocean waves" --model MiniMax-H3

# Check task status
hailuo task abc123-def456

# Wait for completion
hailuo wait abc123 --timeout 300

Docker

# Pull the image
docker pull ghcr.io/acedatacloud/hailuo-cli:latest

# Run a command
docker run --rm -e ACEDATACLOUD_API_TOKEN=your_token \
  ghcr.io/acedatacloud/hailuo-cli generate "A happy scene"

# Or use docker-compose
docker compose run --rm hailuo-cli generate "A happy scene"

Project Structure

HailuoCli/
├── hailuo_cli/             # Main package
│   ├── __init__.py
│   ├── __main__.py         # python -m hailuo_cli entry point
│   ├── main.py             # CLI entry point
│   ├── core/               # Core modules
│   │   ├── client.py       # HTTP client for Hailuo API
│   │   ├── config.py       # Configuration management
│   │   ├── exceptions.py   # Custom exceptions
│   │   └── output.py       # Rich terminal formatting
│   └── commands/           # CLI command groups
│       ├── video.py        # Video generation commands
│       ├── task.py         # Task management commands
│       └── info.py         # Info and utility commands
└── tests/                  # Test suite

License

MIT License — see LICENSE for details.

Metadata

Release files for hailuo-cli 2026.10.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hailuo-cli 2026.10.12.0
File Size Uploaded
hailuo_cli-2026.10.12.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hailuo-cli 2026.10.12.0
File Interpreter ABI Platform
hailuo_cli-2026.10.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / hailuo_cli-2026.10.12.0.tar.gz

Download URL hailuo_cli-2026.10.12.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c58365ba529dc719650c6d20bc2f05f6cfc9414fc6577b91d9f1a31efd4afa0
BLAKE2b-256 checksum
How to use checksums
f3c3b09f210af35e2e5d3256dcc9027a5a73982051e749d4d6010271b747c345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / hailuo_cli-2026.10.12.0-py3-none-any.whl

Download URL hailuo_cli-2026.10.12.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7227893f761f606726c73d90e6234cdbf3fa26b9853e0843bf25c2ef183d2b63
BLAKE2b-256 checksum
How to use checksums
dc266e7dc21e1988d3fb8856fc46d4b8848c77f78e81916ef9ef851fb32f8d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page