CLI
The TypeScript SDK package includes a command-line tool, hl. Run it with npx, without installing anything:
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.
Commands
Section titled “Commands”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--inputvalues are read as JSON when they can be (duration=5,audio=true), otherwise as text.generatewaits for the result and prints the generation as JSON.--outdownloads the first output to a file instead;--no-waitprints the generation as soon as it is created.- Set
HALATIONLAB_API_KEY(not needed formodels).HALATIONLAB_BASE_URLpoints the CLI at another environment, for examplehttps://staging-api.halationlab.ai/v1.
For example, a five-second video with a ceiling of 400 tokens, saved to a file:
npx @halationlab/sdk hl generate seedance-2.5 --prompt "A red fox running through snow" --input duration=5 --max-cost 400 --out fox.mp4