astria — a command-line client for the Astria API:
AI image & video generation, fine-tuning (tunes / references), prompts, and
packs, from your terminal.
It's a single self-contained Python 3 script — only the standard library plus
curl. Nothing to compile, nothing to pip install.
curl -fsSL https://raw.githubusercontent.com/astriaai/cli/main/install.sh | shInstalls astria to a writable Homebrew bin when it is already on PATH (for example /opt/homebrew/bin), otherwise ~/.local/bin. For a system install use
curl -fsSL https://raw.githubusercontent.com/astriaai/cli/main/install.sh | sh -s -- --prefix=/usr/local --sudo;
pin a version with sh -s -- --ref=v1.0.0. Then authenticate once:
astria login # prompts for an API key — https://astria.ai/users/edit/apiAlready using Claude Code? The astria plugin
bundles this CLI — no separate install needed.
astria upgradeThis downloads the latest astria script and replaces the current executable
in place. If your install path is not writable, rerun it with permissions to
update that file.
- Python 3.8+ and curl — standard on macOS and Linux.
astria whoami # the authenticated account
astria models # popular models -> tune ids
astria tunes list --gallery --branch partner-1 # discover every partner model
astria tunes list --title "dress" # find references
astria generate --text "<faceid:123:1> woman, white studio" --num-images 4 --wait
astria generate --model wan-2-7 --text "plain white background" \
--images "dress=./dress.jpg" --images "woman=./woman.jpg" --num-images 1 --wait
astria video --text "a model on a runway" \
--video-model seedance2_fast_720p --video-prompt "camera tracks her"
astria prompts wait 555 556 557 # block until each settles (images or user_error)
astria download 555 556 --out ./shots # download a prompt's images
astria api GET /prompts --query limit=5 # raw API escape hatchRun astria --help for the full command list.
Like the AWS CLI — separate credentials and base URLs per profile:
astria --profile localhost login --base-url http://localhost:3000
ASTRIA_PROFILE=localhost astria whoami--profile <name> (before the subcommand) or ASTRIA_PROFILE selects one; each
lives in its own ~/.astria/config.<name>.json.
Resolved in order: environment variables (ASTRIA_API_KEY / ASTRIA_AUTH_TOKEN,
ASTRIA_BASE_URL, WORKSPACE_ID, …) → ~/.astria/config.json (written by
astria login). Scope any command to a workspace with -w <id> (or -w all).
MIT