Nolgia CLI
Command-line client for the Nolgia generative media platform — Seedance v2 Pro, Kling v3, Veo 3.1, FLUX Pro, ElevenLabs and more, from your terminal, scripts, and AI agents. Multi-shot video sequences, image-to-video with reusable references, native audio tracks, credit estimates before you spend, and bundled agent skills.
$ nolgia gen image --prompt "A serene mountain lake at dawn" --out lake.png
$ nolgia gen video --prompt "A drone shot over a coastline" --no-wait
9b2f5c1e-... # job id; check with `nolgia wait <id>`
A Nolgia account with an active subscription or prepaid API credits is required.
Contents
- Installation · Quick start · Examples · Models · AI agents & skills · Authentication · Credits · Command reference · Global flags and environment · Shell completions · Development
Installation
Homebrew (macOS, Linux)
Homebrew prompts once to trust third-party taps: brew trust nolgiacorp/nolgia.
Cargo
Building from source requires the Rust 2024 toolchain; on Linux you also need libdbus-1-dev and pkg-config for keyring support.
Prebuilt binaries
Download the binary for your platform from the latest release (macOS universal, Linux x86_64, Windows x86_64), rename it to nolgia (nolgia.exe on Windows), and place it on your PATH.
Quick start
Examples
Multi-shot cinematic sequence (Seedance v2 Pro, native audio)
The clip is one generation; the model cuts between your shots. --prompt sets overall style, each --shot is "SECONDS:PROMPT" with an optional |AUDIO DIRECTION:
Image-to-video with a reusable reference
--input takes a local file (uploaded automatically) or the UUID of any previous asset — generate a character portrait once, reuse it across every clip:
Know the cost before you spend
)
Hero-quality shot (Veo 3.1)
Works with your tools
# newest finished video assets, URLs only
|
# fire-and-poll from a script
id=
|
Models
The server is the source of truth — new models appear in the catalog with no CLI update:
Current video lineup: Kling v3 (standard/master/pro, 3–15s, the workhorse), Seedance v2 Pro (4–15s, multi-shot + native audio, cinematic), Veo 3.1 / 3.1-fast (4/6/8s, hero quality / fast previz) — each with an image-to-video variant (except Veo). Defaults: flux-pro (image), fal-ai/stable-audio-25/text-to-audio (audio), fal-ai/kling-video/v3/text-to-video (video).
AI agents & skills
The CLI ships agent skills — SKILL.md packs that teach Claude Code, hermes, Cursor, or any agent how to generate on Nolgia well:
Bundled: nolgia-platform (the full tool surface), nolgia-video-prompting (shot grammar, multi-shot directing, consistency), nolgia-ugc-ads (vertical ad production recipe).
Also for agents: an MCP server at https://mcp.nolgia.ai (tools nolgia_text_to_video, nolgia_text_to_image, …, same params as the CLI flags), PATs for headless auth, nolgia auth token to extract the current bearer, and --json everywhere. The CLI identifies its calling surface (X-Nolgia-Surface: claude-code, codex, hermes, cli; override with NOLGIA_SURFACE) so agent traffic is first-class, not an afterthought.
Authentication
Two ways to authenticate; every command accepts either.
Device-code login (interactive use). Tokens live in your system keyring and refresh automatically:
Personal Access Tokens (scripts, CI, agents). PATs start with nol_ and are passed via --token or NOLGIA_TOKEN:
Credits
Generation costs credits, drawn from one of two pools depending on how you authenticate:
| Pool | Granted by | Spent by |
|---|---|---|
| Subscription credits | your monthly/yearly plan | device-login sessions (and the web app) |
| API credits | prepaid top-ups (never expire) | PAT-authenticated requests |
If the applicable pool can't cover a generation the API returns 402 Payment Required. Check balances with nolgia billing credits, estimate video jobs with --cost-only; buy top-ups and manage your plan from the billing dashboard (nolgia billing portal deep-links there).
Command reference
| Command | Description |
|---|---|
nolgia auth login / status / logout / token |
Device-code sign-in, current identity + tier, sign out, print bearer |
nolgia gen image --prompt <p> [--model <m>] [--out <file>] |
Generate an image (waits; prints signed URL or saves) |
nolgia gen audio --prompt <p> |
Generate audio (TTS, music, SFX) |
nolgia gen video --prompt <p> [--shot "S:P|A"]... [--input <file|uuid>] [--duration-seconds N] [--aspect-ratio R] [--generate-audio true] [--seed N] [--negative-prompt <p>] [--cost-only] [--no-wait] |
Generate video: multi-shot, image-to-video, native audio, cost estimate |
nolgia models list [--modality m] / get <id> |
Live model catalog with pricing and capabilities |
nolgia status <job-id> / wait <job-id> [--timeout <s>] |
Job status; block until finished |
nolgia assets list [--limit N] [--modality m] / get <id> [--out <file>] / delete <id> |
List, inspect/download, delete assets |
nolgia skills list / show <name> / install [--target t] |
Bundled AI-agent skills |
nolgia account me / usage |
Identity; job and asset counts |
nolgia billing subscription / credits / portal |
Plan status, credit pools, Stripe portal link |
nolgia pat create --name <n> / list / revoke <id> |
Manage personal access tokens |
nolgia completion <shell> |
Shell completions (bash, zsh, fish, powershell) |
Global flags and environment
| Flag | Env | Default | Purpose |
|---|---|---|---|
--api-url |
NOLGIA_API_URL |
https://api.nolgia.ai |
API base URL (the client appends /v1) |
--token |
NOLGIA_TOKEN |
keyring | Bearer token (PAT or JWT); overrides the stored login |
--json |
— | off | Machine-readable output for scripting |
| — | NOLGIA_SURFACE |
auto-detected | Calling-surface tag sent as X-Nolgia-Surface |
Shell completions
# zsh (analogous for bash/fish/powershell)
&&
Development
The API client crate (crates/client) is generated at build time from the Nolgia OpenAPI spec; don't hand-edit generated shapes. Built with tokio, reqwest, and clap.