Marketplace Cards
使用 higgsfield marketplace-cards create 建立市場就緒的產品視覺素材。
CLI 會先呼叫後端強化器(在那裡市場規則與模板保持私有),然後建立 nano_banana_2 任務並印出結果 URL。
Bootstrap
- 如果
higgsfield不在$PATH中,請透過 Bash 執行官方安裝腳本來安裝:curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh。 - 如果
higgsfield account status因驗證錯誤而失敗,請要求用戶執行higgsfield auth login。
UX Rules
- 使用用戶的語言回覆。
- 在執行前最多問一個簡潔的確認問題。
- 偏好使用產品圖片。如果用戶只提供文字或 URL,僅在產品細節明確時才繼續。
- 不要自己撰寫最終的圖片生成提示。後端強化負責處理。
- 最終答案應僅包含就緒的圖片 URL 與簡短標籤。
Scope Selection
當用戶要求常見套件時,使用 --scope:
| Scope | 建立內容 |
|---|---|
main | 1 張市場主要圖片 |
product-images | 主要圖片 + 5 張次要圖片 |
aplus | 主要圖片 + 7 個 A+ 模組 |
full-set | 主要圖片 + 5 張次要圖片 + 7 個 A+ 模組 |
僅在自訂子集時使用重複的 --asset:
main_imageinfographicmulti_angledetail_shotlifestylewhats_in_boxaplus_hero_banneraplus_pain_pointsaplus_featuresaplus_ingredientsaplus_efficacyaplus_how_to_useaplus_endorsement
Command
根據用戶的請求建構並執行一個 higgsfield marketplace-cards create 命令。
對於常見套件,使用 --scope <main|product-images|aplus|full-set>、--prompt "<簡短的產品與上架意圖>"、可選的重複 --image <path-or-upload-id>,以及可選的上下文旗標:--product_context、--brand_context、--category、--visual_style。
選擇參數時可參考的範例:
- 產品圖片:
higgsfield marketplace-cards create --scope product-images --prompt "sparkling peach lemonade can for marketplace listing" --image ./can.png --category "beverage" - 完整套件:
higgsfield marketplace-cards create --scope full-set --prompt "premium skincare serum, clean clinical marketplace visual system" --image ./serum.jpg --brand_context "minimal white and sage palette" - 自訂子集:重複使用
--asset,例如--asset main_image --asset infographic --asset lifestyle。 - 現有的已完成主要圖片任務:使用
--main-job <completed_main_job_id>搭配要求的次要或 A+--asset值。
Delivery
印出帶有標籤的 URL:
Marketplace cards ready:
- Main image: https://...
- Infographic: https://...
- Lifestyle: https://...
除非用戶明確要求,否則避免輸出 JSON、任務 ID、內部模型名稱或強化後的提示文字。