CLI tool for Hailuo AI Video Generation via AceDataCloud API
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hailuo_cli-2026.7.31.0.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hailuo_cli-2026.7.31.0.tar.gz.
File metadata
- Download URL: hailuo_cli-2026.7.31.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f1f0dcdf3b1ba2f9ec01d6a65a5cca32940d82579f0e075c2cc1019e52c838b
|
|
| MD5 |
35eb498a7e1e8c2ebf6bbff6e25051a9
|
|
| BLAKE2b-256 |
a373ef7c7d3e6c27ea8e8a2dff47f061ec6d78cee00113aa52c0c0c846a1a092
|
File details
Details for the file hailuo_cli-2026.7.31.0-py3-none-any.whl.
File metadata
- Download URL: hailuo_cli-2026.7.31.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ad3a247a26a8725d5870f34f71c4230a49bc908066f4addec21c2983f1df99e
|
|
| MD5 |
4c70031b6a8afe9174253a11f19ee54f
|
|
| BLAKE2b-256 |
cb88605de153fdef6691a824ad60b082c54378429ac841c88945bfc4c3acfd01
|