Skip to content
 
 

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Higgsfield CLI

release npm license

Generate images, videos, 3D assets, audio, and finished-video analysis from the terminal using 30+ Higgsfield AI models — Nano Banana Pro, FLUX.2, Soul V2, Veo 3.1, Kling v3.0, Seedance 2.0, Marketing Studio, Virality Predictor, and more. Train face-faithful Soul characters and produce branded marketing assets without leaving your shell.

Higgsfield CLI demo

Contents

Install

macOS / Linux — curl

curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh

macOS / Linux — Homebrew

brew install higgsfield-ai/tap/higgsfield

Cross-platform (incl. Windows) — npm

npm install -g @higgsfield/cli

Manual

Download an archive matching your OS and architecture from Releases, extract, and place the binary in your $PATH.

Quickstart

Authenticate:

higgsfield auth login

Generate an image and wait for the result URL:

higgsfield generate create nano_banana_2 --prompt "a quiet beach at sunrise" --wait

Examples

Nano Banana Pro

higgsfield generate create nano_banana_2 \
  --prompt "modern architecture, glass facade, golden hour light" \
  --aspect_ratio 16:9 \
  --resolution 2k \
  --wait

GPT Image 2

higgsfield generate create gpt_image_2 \
  --prompt "clean infographic showing global energy mix, flat icons, muted palette" \
  --aspect_ratio 3:4 \
  --quality high --resolution 2k \
  --wait

Kling v3.0

higgsfield generate create kling3_0 \
  --prompt "slow camera push through a forest clearing at dawn" \
  --start-image ./first.png \
  --duration 5 --mode pro --sound off \
  --wait

Seedance 2.0

higgsfield generate create seedance_2_0 \
  --prompt "drone shot over a mountain valley at sunrise" \
  --aspect_ratio 16:9 --duration 5 \
  --resolution 4k --mode std --bitrate_mode high --genre noir \
  --wait

Virality Predictor

brain_activity is the technical job set type for Virality Predictor. It analyzes a finished video for hook strength, attention, retention, and viral potential, then prints scores plus an Open report link.

higgsfield generate create brain_activity --video ./ad.mp4 --wait
higgsfield generate get <job_id>
higgsfield generate wait <job_id>

Draw To Video

Edit a video from a source clip plus an edited sketch frame:

higgsfield generate workflow draw_to_video \
  --video ./source.mp4 \
  --sketch ./frame.png \
  --timestamp 3.2 \
  --prompt "make the jacket red" \
  --wait

Reframe

Reframe a source video for a new aspect ratio:

higgsfield generate workflow reframe \
  --video ./source.mp4 \
  --aspect-ratio 9:16 \
  --resolution 720p \
  --wait

Voice Change

Replace the voice on a source video with a chosen voice:

higgsfield generate workflow voice-change \
  --video ./source.mp4 \
  --voice_type preset \
  --voice_id <voice_id> \
  --wait

Dubbing

Dub a source video into another language (--target_language is an ISO-639-3 code, e.g. eng, spa, fra, deu, jpn; run higgsfield workflow get dubbing for the full list):

higgsfield generate workflow dubbing \
  --video ./source.mp4 \
  --target_language spa \
  --wait

Voices

List available voices (presets + your custom voices) to get a voice_id for text2speech_v2 and voice-change. Use a voice's id as --voice_id and its type (preset/element) as --voice_type:

higgsfield voices list
higgsfield voices get <voice_id> --json

Soul ID

Train a Soul ID once:

higgsfield soul-id create --name me --soul-2 \
  --image ./me1.jpg --image ./me2.jpg --image ./me3.jpg
higgsfield soul-id wait <soul_id>

Reuse it in any compatible image model:

higgsfield generate create text2image_soul_v2 \
  --prompt "professional portrait, neutral background, soft daylight" \
  --soul-id <soul_id> \
  --wait

Models

30+ image, video, 3D, and audio models. Per-model parameters, defaults, and enums: MODELS.md. Live catalog: higgsfield model list.

Image (21)

job_set_type name
nano_banana_2 Nano Banana Pro
nano_banana_flash Nano Banana 2
nano_banana Nano Banana
flux_2 FLUX.2
flux_kontext Flux Kontext
gpt_image_2 GPT Image 2
text2image_soul_v2 Higgsfield Soul V2
seedream_v4_5 Seedream 4.5
seedream_v5_lite Seedream V5 Lite
grok_image Grok Image
openai_hazel OpenAI Hazel
outpaint Outpaint
recraft_v4_1 Recraft V4.1
image_auto Image Auto
image_background_remover Image Background Remover
z_image Z Image
kling_omni_image Kling O1 Image
cinematic_studio_2_5 Cinematic Studio 2.5
soul_cinematic Soul Cinematic
soul_location Soul Location
marketing_studio_image Marketing Studio Image

Video (20)

job_set_type name
brain_activity Virality Predictor
veo3_1 Google Veo 3.1
veo3_1_lite Google Veo 3.1 Lite
veo3 Google Veo 3
kling3_0 Kling v3.0
kling3_0_turbo Kling 3.0 Turbo
kling2_6 Kling 2.6 Video
seedance_2_0 Seedance 2.0
seedance1_5 Seedance 1.5 Pro
wan2_7 Wan 2.7
wan2_6 Wan 2.6 Video
minimax_hailuo Minimax Hailuo
grok_video Grok Video
grok_video_v15 Grok Video 1.5
cinematic_studio_3_0 Cinematic Studio 3.0
cinematic_studio_video Cinematic Studio Video
cinematic_studio_video_v2 Cinematic Studio Video V2
soul_cast Soul Cast
marketing_studio_video Marketing Studio Video
video_background_remover Video Background Remover

3D (1)

job_set_type name
multi_image_to_3d Multi-Image to 3D

Audio (3)

job_set_type name
sonilo_music Sonilo Music
mirelo_text_to_audio Mirelo Text to Audio
text2speech_v2 Text to Speech

text2speech_v2 turns text into speech with a chosen voice. Pick the engine with --model (elevenlabs, minimax, seed_speech, vibe_voice, cozy_voice) and the voice with --voice_type (preset or element) + --voice_id. Discover voices with higgsfield voices list.

higgsfield generate create text2speech_v2 \
  --prompt "Hello from Higgsfield" \
  --model elevenlabs \
  --voice_type preset \
  --voice_id <voice_id> \
  --wait

Workflows

Workflows are higher-level generation flows with their own parameter schemas. Use workflow list to discover available workflows and workflow get to inspect the parameters before creating a job.

higgsfield workflow list
higgsfield workflow get draw_to_video
higgsfield workflow get reframe --json
higgsfield workflow get voice-change
higgsfield workflow get dubbing

Create workflow jobs through generate workflow:

higgsfield generate workflow draw_to_video \
  --video ./source.mp4 \
  --sketch ./frame.png \
  --timestamp 3.2 \
  --prompt "make the jacket red" \
  --wait

higgsfield generate workflow reframe \
  --video ./source.mp4 \
  --aspect-ratio 9:16 \
  --resolution 720p \
  --wait

higgsfield generate workflow voice-change \
  --video ./source.mp4 \
  --voice_type preset \
  --voice_id <voice_id> \
  --wait

higgsfield generate workflow dubbing \
  --video ./source.mp4 \
  --target_language spa \
  --wait

Estimate workflow cost through generate cost workflow:

higgsfield generate cost workflow draw_to_video --duration 8.2 --resolution 720p
higgsfield generate cost workflow reframe --duration 7.1 --resolution 1080p

voice-change and dubbing do not support cost estimation.

Fetch or wait for workflow jobs with the same job commands used by model generations:

higgsfield generate get <job_id>
higgsfield generate wait <job_id>

Websites

Build and deploy full-stack websites from the terminal. Each site is a React 19 + TanStack Start app, server-rendered as a single Cloudflare Worker, with D1, R2, KV, Durable Objects, and Containers available. higgsfield website create provisions the site and a git repo; you clone it, edit the code under app/, push, and deploy to a preview or production URL. The build runs on the Higgsfield platform from the pushed branch.

create requires --type — what kind of product you're building:

  • website — a standalone site with no Higgsfield integration (no "Sign in with Higgsfield", no requests to Higgsfield). Landing pages, portfolios, general tools.
  • app — a product tightly integrated with Higgsfield: its users sign in with Higgsfield and generate images/videos through the Higgsfield SDK.
# 1. Create the site + its git repo (prints a website_id)
higgsfield website create --type website   # or --type app

# 2. Get the clone URL, branch, and a scoped git token
higgsfield website repo-access <website_id>

# 3. Clone with the token, edit under app/, commit, and push
git -c http.extraHeader="Authorization: token <token>" clone <repo_url> <slug>
cd <slug>
# ...edit files under app/ ...
git add -A && git commit -m "initial build"
git -c http.extraHeader="Authorization: token <token>" push origin <branch>

# 4. Deploy to a preview URL, then ship to production when ready
higgsfield website deploy <website_id> --env preview
higgsfield website deploy <website_id> --env production

# Or publish: deploy to production AND list the site on the Higgsfield
# community feed ("show in feed") where others can discover and remix it
higgsfield website publish <website_id>

# Check deploy status and live URLs any time
higgsfield website status <website_id>

Inspect the site's database (read-only) and manage secrets (staged until the next deploy):

higgsfield website db tables <website_id>
higgsfield website db rows <website_id> --table users --limit 20
higgsfield website db query <website_id> --sql "SELECT count(*) FROM users"

higgsfield website secrets set <website_id> --name STRIPE_SECRET_KEY --value sk_live_...
higgsfield website secrets list <website_id>

List the sites you own, or permanently delete one (removes the site, database, storage, and repo):

higgsfield website list
higgsfield website delete <website_id>

Add --json to any command for machine-readable output.

Commands

Command Purpose
higgsfield auth login / logout / inspect token
higgsfield account credits balance, transactions
higgsfield workspace list / select / unset billing workspace
higgsfield model list models, inspect parameter schema
higgsfield generate create / cost / wait / get / list jobs
higgsfield workflow list workflows, inspect workflow parameter schema
higgsfield voices list voices / inspect a voice for text2speech & voice-change
higgsfield upload upload an image / video / audio file
higgsfield soul-id train and manage Soul characters
higgsfield marketing-studio branded ads (avatars, products, ad references, brand kits, ad formats, DTC Ads Engine)
higgsfield product-photoshoot brand image generation with mode-specific enhancement
higgsfield website create (--type website|app) / edit (via git repo access) / deploy / publish to the community feed / inspect DB / manage secrets for full-stack websites
higgsfield version print build info

Run higgsfield <command> --help for flags and examples (also higgsfield generate create --help, higgsfield soul-id create --help, etc.).

Flags

Flags work across all commands.

Flag Purpose
--wait block until the job finishes; print the result URL
--wait-timeout max wait duration (default 10m)
--wait-interval poll interval (default 3s)
--json machine-readable JSON output
--no-color disable color output

Example pipeline:

higgsfield generate list --json | jq -r '.[] | select(.status=="completed") | .result_url'

Updating

# curl
curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh

# brew
brew update && brew upgrade higgsfield

# npm
npm install -g @higgsfield/cli@latest

Pin to a specific release:

curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh -s -- --tag v0.1.22
# or
npm install -g @higgsfield/cli@0.1.22

Uninstall

# curl install (default prefix /usr/local)
sudo rm /usr/local/bin/higgsfield

# brew
brew uninstall higgsfield

# npm
npm uninstall -g @higgsfield/cli

Troubleshooting

Session expired / Not authenticated — tokens are short-lived. Re-run higgsfield auth login.

Unknown model "<name>" — run higgsfield model list for the current catalog.

Support

Bugs and feature requests: github.com/higgsfield-ai/cli/issues. Please include higgsfield version output and the exact command that failed.

License

MIT

About

Higgsfield CLI

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages