Higgsfield CLI + Skills|安裝與指令教學
官方倉庫:
higgsfield-ai/cli(npm 套件@higgsfield/cli)與higgsfield-ai/skills。本頁指令全部取自官方 README/Skills 原文。cli-readme skills-repo
1. 安裝(三選一)
| 方式 | 指令 | 備註 |
|---|---|---|
| curl(macOS/Linux) | curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh \| sh |
可加 -s -- --tag v1.1.2 鎖版本 |
| Homebrew | brew install higgsfield-ai/tap/higgsfield |
|
| npm | npm install -g @higgsfield/cli |
鎖版本:@higgsfield/cli@1.1.2 |
來源:cli-readme
2026-10-17:官方
install.sh改為下載後核對 release tarball 的 sha256(對照checksums.txt)(GitHub commit 89388cd/PR #107)。cli-commit-install-checksum2026-10-13 官方網誌:開源 Hermes Agent(Nous Research)亦用同一套 CLI + Skills 連接;CLI 生成以標準價扣 credits,Unlimited 與免費生成不適用於 CLI;建議在請求加上「Before generating anything, tell me the credit cost and wait for my confirmation.」。blog:create-ai-videos-hermes-agent-higgsfield
給 Agent 的一鍵版(官方網誌):讓 Claude Code/Codex 等執行 npm i -g @higgsfield/cli → higgsfield auth login(瀏覽器確認)→ npx skills add higgsfield-ai/skills。blog:generate-ai-videos-ai-agents-2026
2. 第一次使用:逐步
flowchart LR A[安裝 CLI] --> B[higgsfield auth login] B --> C[higgsfield account / workspace] C --> D[higgsfield model list] D --> E[higgsfield generate cost ...] E --> F[higgsfield generate create ... --wait] F --> G[generate get / list --json]
higgsfield auth login登入(瀏覽器 OAuth)。higgsfield model list看可用模型 ID(例如nano_banana_2、seedance_2_0、kling3_0)。各模型參數見本庫每個模型頁的「CLI 參數」表。- 先用
generate cost估算 credits,再generate create。 - 加
--wait會阻塞至完成(預設--wait-timeout 10m、--wait-interval 3s)。 - 用
--json輸出給腳本或 Agent 解析。
3. 指令群組
| 指令 | 用途 |
|---|---|
auth |
登入/登出 |
account |
帳戶與 credits |
workspace |
工作區 |
model |
列出模型與參數 |
generate |
create / cost / wait / get / list |
workflow |
多步驟工作流(如 draw_to_video、reframe、voice-change、dubbing) |
preset |
預設風格 |
voices |
聲線庫 |
upload |
上傳參考素材 |
soul-id |
訓練 Soul ID 角色 |
marketing-studio |
行銷影片 |
product-photoshoot |
產品攝影 |
game |
遊戲生成 |
website |
網站:create/repo-access/deploy/publish/contest/status/rename/db/secrets/list/categories |
version |
版本 |
來源:cli-readme(⚠️ 各子指令完整旗標請以 higgsfield <cmd> --help 為準,本庫未逐一執行驗證。)
4. 實用管線例子(官方 README 原文)
higgsfield generate list --json | jq -r '.[] | select(.status=="completed") | .result_url'
疑難排解:「Session expired」→ 重新 higgsfield auth login;「Unknown model」→ 用 higgsfield model list 查正確 ID。cli-readme
5. Skills(給 Agent 的結構化技能)
| Skill | 用途 | 來源 |
|---|---|---|
higgsfield-generate |
通用圖像/影片生成、模型路由、提示工程規則 | skills-generate |
higgsfield-soul-id |
訓練 Soul ID 角色(建議 8–12 張、5–20 張範圍) | skills-soulid-photo |
higgsfield-product-photoshoot |
產品攝影(多種模式,GPT Image 2 模板) | skills-product-photoshoot |
| 其他(倉庫內) | brandkit、marketplace-cards、video-explainer、websites、youtube-thumbnail | skills-repo |
注意:說明中心只列出 3 個 Skill(generate、soul、product-photoshoot),GitHub 倉庫實際有更多;兩者以倉庫為準但標記為「版本差異」。「CLI Skills」與「Supercomputer Skills」是不同系統。help-cli skills-repo
Skills 內的提示工程規則、常見錯誤與 Cookbook 已整理到 ../automation/。
6. Cookbook 食譜(官方 skills 倉庫 COOKBOOK.md)skills-cookbook
哪個食譜做甚麼(原文表格):
| Goal | Recipe | Skills used |
|---|---|---|
| Launch a campaign with the founder's face | #1 Brand Campaign | `higgsfield-soul-id` → `higgsfield-product-photoshoot` → `higgsfield-generate` |
| Generate paid-social ads from a URL | #2 UGC Ad Batch | `higgsfield-generate` (Marketing Studio) |
| Async team updates without recording | #3 Founder Video | `higgsfield-soul-id` → `higgsfield-generate` |
| Turn a topic or document into a narrated explainer | #4 Narrated Explainer | `higgsfield-faceless-video` |
| Build and deploy a playable browser game | #5 Browser Game | `higgsfield-websites` (`--type game`) |
例:由產品網址批量生成 4 種 UGC 廣告(Recipe 2,原文) —— 你對 Agent 說:
Make UGC ads for my product https://shop.example.com/sneakers — try 4 different
angles: organic UGC, unboxing reveal, presenter review, and a TV-spot version.
9:16 for TikTok and Reels. 15 seconds each.
Agent 實際執行的並行生成指令(原文):
for mode in ugc ugc_unboxing product_review tv_spot; do
higgsfield generate create marketing_studio_video \
--prompt "<short hook tied to the mode>" \
--avatars @"$AVATARS_JSON" \
--product_ids @"$PRODUCT_IDS_JSON" \
--mode $mode \
--duration 15 \
--resolution 720p \
--aspect_ratio 9:16 \
--output-dir ./ads/$mode \
--wait &
done
wait
中文解說:
--mode決定廣告類型(ugc像手機拍的自然內容、tv_spot像電視廣告品質,官方提醒不要無意圖地混用);&+wait讓 4 個任務並行;--output-dir按模式分資料夾。官方建議先測 4 個 hook × 1 個模式,再測 1 個 hook × 4 個模式,因為 hook 對成效影響比模式大。
食譜共通模式(原文):
1. **Train identity once, reuse forever.** Soul training is 15–45 minutes one-time. Every future video that needs the founder's face is one prompt away.
2. **Let the backend assemble the prompt for branded work.** `product-photoshoot` enhances prompts before submitting to `gpt_image_2`. Don't write `gpt_image_2` prompts by hand.
3. **Cheap-first iteration on request.** When the user wants to iterate cheaply, draft on `z_image`, then switch to the default model (`gpt_image_2_6`) once the direction is confirmed.
4. **Filenames have timestamps.** Use `yyyy-mm-dd-hh-mm-ss-name.ext` so you can trace which generation came from which session.
中文重點:① Soul 身份訓練一次(15–45 分鐘)永久重用;② 品牌圖讓
product-photoshoot後端組裝提示,不要手寫gpt_image_2提示;③ 便宜先行:先用z_image起稿,方向確定後再換預設模型gpt_image_2_5;④ 檔名加時間戳yyyy-mm-dd-hh-mm-ss-name.ext方便追溯。
7. 官方 CLI 網誌重點(2026-10-19;以 CLI 1.1.26 於 10-16 實測)blog:higgsfield-cli
| 主題 | 官方內容 | 教學提示(繁中・HK) |
|---|---|---|
| 安裝 | brew install higgsfield-ai/tap/higgsfield、curl 腳本或 npm;別名 higgs |
本庫例行更新唔安裝;用戶自己電腦先裝 |
| 帳號 | auth login、account status、workspace list/select;auth token 會印出秘密 token |
token 當密碼,唔好貼入對話或 log |
| 查價 | generate cost … 免費;voice-change、dubbing 兩個 workflow 唔支援估價 |
自動化第一步永遠係 cost |
| 草稿 | Seedance 2.5 --draft true:5s 1080p 草稿 15 credits vs 正式 80 |
先草稿揀版,再正式渲染 |
| 等候 | --wait 預設 10 分鐘;--wait-timeout 20m 可延長;超時 job 仍喺伺服器跑,用 generate get <job_id> 追 |
腳本要處理「timed out waiting for job」唔等於失敗 |
| 串接 | --start-image 可填上一個 job id、upload id 或路徑;Seedance 2.5 帶媒體要 --mode omni_reference |
圖 → 片一條管線,唔使下載再上載 |
| 模型清單 | 官方測試 model list 有 107 項;例:seedance_2_5、kling3_0、veo3_1、wan3_0、gemini_omni、nano_banana_2(=Nano Banana Pro)、gpt_image_2_5、flux_2、text2image_soul_v2、brain_activity(Virality Predictor) |
⚠️ 未見 Kling 4.0 id;官方 Skills v0.14.0(2026-10-27)已改用 gemini_omni_flash_1_1,並新增 higgsfield-faceless-video skill(用到 elevenlabs_v4、minimax_h3)skills-github-2026-11-02 |
| Soul ID | soul-id create --name … --soul-2 --image …(CLI 最多 20 張)或 --soul-cinematic;soul-id wait |
見 min-run-soul-id |
| 批量 | 以 shell 迴圈+jq 讀 JSON 輸出 |
先 cost 再迴圈 |
| 計費 | Unlimited 及免費生成不適用於 CLI;CLI vs MCP vs API:API 用 open.higgsfield.ai 的 key+預付美元餘額 | 三條通道分開記帳 |
官方逐字範例(圖 → 片):
higgsfield generate create nano_banana_2 --prompt "1980s flash photo on film: a young man with shaggy dark hair in a black glossy leather jacket with a red flame shape painted on the back, seen from behind, turns his head in profile while talking on a payphone on a subway platform. Silver trains on both sides, the left one blurred as it rushes past, a yellow platform edge, chrome pipes with fluorescent lights overhead. No text, no signs." --aspect_ratio 16:9 --wait --json
higgsfield generate create seedance_2_5 --mode omni_reference --start-image <image_job_id> --prompt "Start from the start frame. 1980s film look, handheld, slow push-in. He listens on the payphone, tense. The left train rushes past, the roar drowns the call, he frowns and shouts \"Hello? I can't hear you!\" The train leaves, sudden quiet, he hears the voice, exhales and smiles: \"Yeah... I'm here.\" Train wind moves his hair, window light flickers on his face. No text." --duration 5 --resolution 1080p --wait --wait-timeout 20m --json
譯:①「菲林上的 1980 年代閃光燈相:深色蓬鬆頭髮的年輕男子,穿背後畫有紅色火焰圖案的黑色亮面皮褸,背向鏡頭,在地鐵月台講公眾電話時轉頭露出側面。兩旁都有銀色列車,左邊那列高速掠過而模糊;黃色月台邊、頭頂有光管的鍍鉻喉管。無文字、無招牌。」(16:9;官方測試約 2 credits)②「由首幀開始。1980 年代菲林質感、手持、慢慢推近。他緊張地聽電話。左邊列車衝過,轟隆聲蓋過通話,他皺眉大叫「Hello? I can't hear you!」列車離開,突然安靜,他聽到對方聲音,呼一口氣微笑:「Yeah... I'm here.」列車風吹動頭髮,車窗光在他臉上閃爍。無文字。」(5 秒 1080p,80 credits;--wait-timeout 20m)說明:第二條用 --start-image <image_job_id> 直接接上一個 job,免下載再上載。
8. 更新與移除
# 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
9. 2026-11-09 週更:Skills PR #17 — GPT Image 2.6 做預設(2026-11-05 HKT)skills-github-2026-11-09
- 預設圖像模型:
gpt_image_2_5→gpt_image_2_6(GPT Image 2.6 Sunburst);Flare 係獨立 idgpt_image_2_6_flare——唔好再用--variant flare(只屬 2.5)。 - 新旗標:
--output_format png|jpeg|webp|gif|svg(唔填即 PNG)。只喺提示寫「animated」唔會出 GIF,要喺第一次提交就設格式。 - GIF:
--size、--frame_count、--frame_duration_ms,預設288x288、9 幀、200 ms;可帶參考圖。SVG:唔收--image/--image-references;交付回傳嘅 SVG 網址。 - 參考圖:
gpt_image_2_6/gpt_image_2_6_flare最多 16 張(--image-references或--image)。 - Picking flow:獨立 GIF/SVG 請求 → GPT Image 2.6(優先過主體/風格規則);明確要 MP4 → 仍行影片(
seedance_2_5);「只寫提示唔好生成」→ 只回文字(新 UX 規則 7)。 - Cookbook:平價先用
z_image草稿,方向確定再轉gpt_image_2_6。 - 新 eval 場景 15–19(GIF、SVG icon、Flare 指名、MP4 保持影片、只寫 GIF 提示)。Skills 版本號仍為 0.14.0。
- 官方範例(逐字):
higgsfield generate create gpt_image_2_6 --prompt "A cute cat blinking in a seamless loop" --output_format gif --size 288x288 --frame_count 9 --frame_duration_ms 200 --wait
higgsfield generate create gpt_image_2_6 --prompt "A simple clean vector cat icon" --output_format svg --wait
higgsfield generate create gpt_image_2_6_flare --prompt "A simple clean vector coffee cup icon" --output_format svg --wait
- CLI repo(
higgsfield-ai/cli):本週無新 commit(最新 fd21e7c,2026-10-17 HKT);CLI 頁改寫「35+ models and tools」。⚠️ Gemini Omni Flash 1.2 官方話 CLI 可用,但 Skills 型錄未列新 id——用higgsfield model list查,勿發明。cli-github-2026-11-09 hf-cli-page-2026-11-09 hf-changelog-2026-11-09
本頁來源(存取日期 2026-11-30)
| ID | 標題 | 發佈日期 | URL |
|---|---|---|---|
cli-readme |
higgsfield-ai/cli — README.md | 2026-09-11 | https://github.com/higgsfield-ai/cli |
skills-repo |
higgsfield-ai/skills(官方 Agent Skills,commit f83af0b, 2026-09-26) | 2026-09-26 | https://github.com/higgsfield-ai/skills |
cli-commit-install-checksum |
higgsfield-ai/cli — fix(install) verify release tarball sha256 against checksums.txt(commit 89388cd,PR | 2026-10-17 | https://github.com/higgsfield-ai/cli/commit/89388cd6a488f2d0c55921512e0fcb685a448dda |
blog:create-ai-videos-hermes-agent-higgsfield |
How to Create AI Videos With Hermes Agent and Higgsfield(CLI + Skills) | 2026-10-13 | https://higgsfield.ai/blog/create-ai-videos-hermes-agent-higgsfield |
blog:generate-ai-videos-ai-agents-2026 |
generate ai videos ai agents 2026 | 2026-09-28 | https://higgsfield.ai/blog/generate-ai-videos-ai-agents-2026 |
cli-models |
higgsfield-ai/cli — MODELS.md(官方 CLI 模型參數表,commit dc7e2d2, 2026-09-11) | 2026-09-11 | https://github.com/higgsfield-ai/cli/blob/main/MODELS.md |
skills-generate |
skills — higgsfield-generate/SKILL.md | 2026-09-26 | https://github.com/higgsfield-ai/skills/blob/main/higgsfield-generate/SKILL.md |
skills-soulid-photo |
skills — higgsfield-soul-id/references/photo-guide.md | 2026-09-26 | https://github.com/higgsfield-ai/skills/blob/main/higgsfield-soul-id/references/photo-guide.md |
skills-product-photoshoot |
skills — higgsfield-product-photoshoot/SKILL.md | 2026-09-26 | https://github.com/higgsfield-ai/skills/blob/main/higgsfield-product-photoshoot/SKILL.md |
help-cli |
Higgsfield Help Center — How do I access Higgsfield via CLI? | — | https://higgsfield.ai/creator-hub/help-center/mcp-cli/how-do-i-access-higgsfield-via-cli |
skills-cookbook |
skills — COOKBOOK.md | 2026-09-26 | https://github.com/higgsfield-ai/skills/blob/main/COOKBOOK.md |
blog:higgsfield-cli |
higgsfield cli | 2026-10-19 | https://higgsfield.ai/blog/higgsfield-cli |
skills-github-2026-11-02 |
higgsfield-ai/skills v0.14.0(PR #14、#15,2026-10-27):新 higgsfield-faceless-video skill;video-explainer 改為相容入口;gemini_omni → gemini_omni_flash_1_1;移除 veo3 | 2026-10-28 | https://github.com/higgsfield-ai/skills/commits/main |
skills-github-2026-11-09 |
higgsfield-ai/skills PR #17(2026-11-05 HKT):預設圖像模型改為 GPT Image 2.6 Sunburst(gpt_image_2_6);Flare 為獨立 id gpt_image_2_6_flare;--output_format gif|svg;新增 eval 場景 15–19;版本號仍為 0.14.0 | 2026-11-05 | https://github.com/higgsfield-ai/skills/commit/526f4cc |
cli-github-2026-11-09 |
higgsfield-ai/cli commits(最新仍為 fd21e7c,2026-10-17 HKT;本週無新 commit;MODELS.md 未列 GPT Image 2.6/Kling 4.0) | 2026-10-17 | https://github.com/higgsfield-ai/cli/commits/main |
hf-cli-page-2026-11-09 |
Higgsfield CLI 頁(2026-11-09:「35+ models and tools」,前為 30+) | 2026-11-09 | https://higgsfield.ai/cli |
hf-changelog-2026-11-09 |
Higgsfield Changelog「What's new」(2026-11-09 重擷;頁面改版,標題/日期改由 JSON-LD 讀取;新條目:Gemini Omni Flash 1.2、GPT Image 2.6、Kling 4.0 Flash、Shorts Studio、Kling 故障修復、Mangaka、電影節得獎、Intone、Ideogram 4.5 Precise Edit) | 2026-11-06 | https://higgsfield.ai/creator-hub/changelog |