Skip to content

CLI

The TypeScript SDK package includes a command-line tool, hl. Run it with npx, without installing anything:

Terminal window
npx @halationlab/sdk hl --help

--help lists the commands and their options. The CLI calls the same API as the SDK, so it acts with the projects, scopes and spending limit of the API key it uses. Keep that key out of shell history and shared scripts: set it in your environment or a secret manager.

Terminal window
hl models [--task <task>] [--output video|image|audio] [--json]
hl model <id>
hl generate <model> --prompt <text> [--input key=value ...] [--max-cost N] [--project <id>] [--no-wait] [--out <file>]
hl generations get <id>
hl upload <path> [--project <id>]
hl account
  • --input values are read as JSON when they can be (duration=5, audio=true), otherwise as text.
  • generate waits for the result and prints the generation as JSON. --out downloads the first output to a file instead; --no-wait prints the generation as soon as it is created.
  • Set HALATIONLAB_API_KEY (not needed for models). HALATIONLAB_BASE_URL points the CLI at another environment, for example https://staging-api.halationlab.ai/v1.

For example, a five-second video with a ceiling of 400 tokens, saved to a file:

Terminal window
npx @halationlab/sdk hl generate seedance-2.5 --prompt "A red fox running through snow" --input duration=5 --max-cost 400 --out fox.mp4