Skip to main content

Hailuo CLI

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

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-t2v)
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 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-t2v

# Director model with image reference
hailuo image-to-video "Cinematic pan" --image-url img.jpg --model minimax-i2v-director

# 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.

Release files for hailuo-cli 2026.8.7.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.8.7.0
File Size Uploaded
hailuo_cli-2026.8.7.0.tar.gz 12.3 kB Details

Built distribution (wheel)

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

Total release size: 24.9 kB

Release files / hailuo_cli-2026.8.7.0.tar.gz

Download URL hailuo_cli-2026.8.7.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
376f98086451bc82be083b91143e4141e8a7162b112e9b71e2492fb00abfbab7
BLAKE2b-256 checksum
How to use checksums
edb202d6f0ed5429a084fe7868c7a65479f2e533ec95dd0a8cb9a6694302f5c4
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.8.7.0-py3-none-any.whl

Download URL hailuo_cli-2026.8.7.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff62fa32aaec0d1ffa4fb9dea9603200ddc90f689c55373b9a770b32cab36bc9
BLAKE2b-256 checksum
How to use checksums
ee12300305973f808fd4dd38fa62ebc83ea19e2b23756c0e719769428a7aebf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2026.8.7.0 This release

2 release files

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