higgsfield-generate
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHiggsfield Generate
Higgsfield 生成工具
Submit jobs to any Higgsfield model. Wraps the CLI. Covers generic image/video gen and Marketing Studio (branded ads, avatars, products).
higgsfield向任意Higgsfield模型提交任务。封装了 CLI,涵盖通用图片/视频生成以及Marketing Studio(品牌广告、虚拟形象、产品)功能。
higgsfieldStep 0 — Bootstrap
步骤0 — 初始化
Before any other command, make sure the CLI is installed and authenticated:
- If is not on
higgsfield, install it:$PATHbashcurl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh - If fails with
higgsfield account status/Session expired, ask the user to runNot authenticated(interactive, opens a browser) and wait for them to confirm before continuing.higgsfield auth login
Skip both checks if already prints account info.
higgsfield account status在执行任何其他命令之前,请确保CLI已安装并完成身份验证:
- 如果不在
higgsfield中,请安装它:$PATHbashcurl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | sh - 如果返回
higgsfield account status/Session expired错误,请让用户运行Not authenticated(交互式操作,会打开浏览器),并等待用户确认完成后再继续。higgsfield auth login
如果已能显示账户信息,则可跳过上述两项检查。
higgsfield account statusUX Rules
用户体验规则
- Be concise. No raw IDs, no JSON dumps in chat. Print result URL when ready.
- No internal jargon. Don't narrate "calling higgsfield cost", "polling job".
- Detect the user's language from the first message and reply in it. Technical args () stay English.
--aspect_ratio 16:9 - Don't batch-ask. Pick a sane default model and ask one thing at a time only if genuinely missing.
- Don't pre-estimate cost. Just submit unless the user asks.
- Pass to
--waitso the command blocks until done and prints the result URL itself. Avoid the two-stepgenerate create→createpattern.wait
- 保持简洁。聊天中不显示原始ID或JSON输出。任务完成后输出结果URL即可。
- 避免内部行话。不要提及“调用higgsfield成本”、“轮询任务”等内容。
- 根据用户的第一条消息检测其语言,并使用该语言回复。技术参数(如)保留英文。
--aspect_ratio 16:9 - 不要批量提问。选择合理的默认模型,仅当确实缺少必要信息时才逐个提问。
- 不要预先估算成本。除非用户询问,否则直接提交任务。
- 向命令添加
generate create参数,让命令阻塞直到任务完成并自行打印结果URL。避免使用先--wait再create的两步模式。wait
Workflow — generic generation
工作流程 — 通用生成
-
Pick a model. Practical defaults from production use:Image:
- Brand product visual (Pinterest pin, lifestyle, hero banner, ad pack, virtual try-on) → use instead. NOT this skill.
higgsfield-product-photoshoot - Branded ad image with avatar + product (Marketing Studio shape) → Marketing Studio Image (see Marketing Studio below)
- Aesthetic UGC / fashion editorial / lifestyle character → Soul 2.0
- Cinematic still frame → Soul Cinema
- Highly characterful creative persona (text-only, distinctive) → Soul Cast
- Locations / environments / no-people scenes → Soul Location (best in class)
- Vector illustrations OR face edit + complex scene swap → Seedream 4.5
- Soul Character (reference id from ) → Soul 2.0 for stills, Soul Cinema for cinematic
higgsfield-soul-id - Fast and cheap iteration → Z Image
- Character or cartoon-style work → Nano Banana 2; step up to Nano Banana Pro on hard cases
- Default for everything else → GPT Image 2. Graphic design, UI, banners, typography, and high-fidelity general generation.
Video:- All advertising / commercial / branded ad video → Marketing Studio (see Marketing Studio below)
- Default all-purpose serious video (multi-shot, consistent identity, motion-heavy) → Seedance 2.0. SOTA.
- Single-plane scene without strong dynamics, cheaper than Seedance 2.0 → Kling 3.0
- Cheap clean shot without cuts → Seedance 1.5 Pro
- Cinema-grade highest fidelity → Cinema Studio Video 3.0
- Cheap with strong physics, no audio needed → Minimax Hailuo
- Fast batch / volume → Veo 3.1 Lite
For the actualID to pass to--model, runhiggsfield generate createto map display names to IDs. Seehiggsfield model list --json | jqfor the full table.references/model-catalog.md - Brand product visual (Pinterest pin, lifestyle, hero banner, ad pack, virtual try-on) → use
-
Pass media inputs straight to flags. Media flags accept a local file path or a UUID. CLI auto-uploads paths and auto-detects job vs upload for UUIDs. No need to pre-upload. Each model declares accepted roles (,
image,start_image,end_image,video) — seeaudio.references/media-inputs.md -
Validate quickly. If unsure of params, runonce and pass only what's needed. Use schema defaults otherwise. The server returns
higgsfield model get <jst> --jsonfor non-fatal coercions (e.g.adjustments→ closest match) and a structured error for invalid declared-param values.aspect_ratio=99:99 -
Submit and wait in one shot.. Blocks until terminal status and prints the result URL on stdout. Tunables:
higgsfield generate create <jst> --prompt "..." [media flags] [param flags] --wait(default 10m),--wait-timeout 20m(default 3s).--wait-interval 5s -
Deliver. Send the URL plus a one-line summary (model, duration if video).
To inspect or rerun later, and work for retrospection. is still available if you ever need to rejoin a job started without .
higgsfield generate list --jsonhiggsfield generate get <id> --jsonhiggsfield generate wait <id>--wait-
选择模型。根据生产使用经验推荐以下实用默认模型:图片生成:
- 品牌产品视觉内容(Pinterest图、生活场景图、主横幅、广告包、虚拟试穿)→ 请使用,而非本工具。
higgsfield-product-photoshoot - 带有虚拟形象+产品的品牌广告图片(Marketing Studio类型)→ Marketing Studio 图片生成(详见下方Marketing Studio章节)
- 具有美感的UGC/时尚编辑/生活场景人物 → Soul 2.0
- 电影静帧 → Soul Cinema
- 极具特色的创意角色(纯文本描述、辨识度高)→ Soul Cast
- 地点/环境/无人场景 → Soul Location(同类最佳)
- 矢量插画或面部编辑+复杂场景替换 → Seedream 4.5
- Soul Character(来自的参考ID)→ 静态图使用Soul 2.0,电影级内容使用Soul Cinema
higgsfield-soul-id - 快速低成本迭代 → Z Image
- 角色或卡通风格作品 → Nano Banana 2;复杂场景可升级至Nano Banana Pro
- 其他所有场景默认选择 → GPT Image 2。适用于平面设计、UI、横幅、排版以及高保真通用生成。
视频生成:- 所有广告/商业/品牌广告视频 → Marketing Studio(详见下方Marketing Studio章节)
- 通用严肃视频默认选择(多镜头、一致身份、动态丰富)→ Seedance 2.0。当前最优模型(SOTA)。
- 无强动态的单平面场景,比Seedance 2.0成本更低 → Kling 3.0
- 无镜头切换的低成本清晰镜头 → Seedance 1.5 Pro
- 电影级最高保真度 → Cinema Studio Video 3.0
- 低成本且物理效果逼真,无需音频 → Minimax Hailuo
- 快速批量生成 → Veo 3.1 Lite
要获取传递给的实际higgsfield generate createID,请运行--model来映射显示名称与ID。完整对照表请查看higgsfield model list --json | jq。references/model-catalog.md - 品牌产品视觉内容(Pinterest图、生活场景图、主横幅、广告包、虚拟试穿)→ 请使用
-
直接将媒体输入传递给参数。媒体参数接受本地文件路径或UUID。CLI会自动上传文件路径对应的内容,并自动检测UUID对应的是任务ID还是上传ID。无需预先上传。每个模型都会声明支持的角色(、
image、start_image、end_image、video)→ 详见audio。references/media-inputs.md -
快速验证。若不确定参数,可运行一次,仅传递必要参数。否则使用 schema 默认值。服务器会针对非致命强制转换返回
higgsfield model get <jst> --json(例如adjustments会转为最接近的有效值),针对无效的声明参数值返回结构化错误。aspect_ratio=99:99 -
一次性提交并等待。执行。命令会阻塞直到任务进入终端状态,并在标准输出打印结果URL。可调参数:
higgsfield generate create <jst> --prompt "..." [媒体参数] [其他参数] --wait(默认10分钟)、--wait-timeout 20m(默认3秒)。--wait-interval 5s -
交付结果。发送结果URL加上一行摘要(包含模型名称,视频需包含时长)。
如需查看或重新运行过往任务,可使用和进行追溯。如果之前启动任务时未添加,仍可使用重新等待任务完成。
higgsfield generate list --jsonhiggsfield generate get <id> --json--waithiggsfield generate wait <id>Media flags
媒体参数
| Flag | Use for | Models that accept it |
|---|---|---|
| reference image | most image models, |
| first frame for image-to-video transitions | |
| last frame for transitions | |
| reference video | |
| reference audio (lipsync, soundtrack match) | |
Each flag accepts either a local file path (auto-uploaded) or a UUID (upload id from , or a previous job id). Each model declares its own role set via . See for the full table.
higgsfield upload createMEDIA_ROLESreferences/media-inputs.md| 参数 | 用途 | 支持的模型 |
|---|---|---|
| 参考图片 | 大多数图片模型、 |
| image-to-video转场的第一帧 | |
| 转场的最后一帧 | |
| 参考视频 | |
| 参考音频(唇形同步、配乐匹配) | |
每个参数接受本地文件路径(会自动上传)或UUID(来自的上传ID,或过往任务ID)。每个模型通过声明其支持的角色集合。完整列表请查看。
higgsfield upload createMEDIA_ROLESreferences/media-inputs.mdCommon params
常用参数
Flags pass through to model schema. Use to discover.
higgsfield model get <jst>bash
higgsfield generate create gpt_image_2 --prompt "neon city at dusk" --aspect_ratio 16:9 --resolution 2k --wait
higgsfield generate create nano_banana_2 --prompt "anime character concept, expressive pose" --image ./ref.png --wait
higgsfield generate create seedance_2_0 --prompt "camera dollies in" --start-image ./first.png --duration 8 --wait
higgsfield generate create text2image_soul_v2 --prompt "..." --soul-id <soul_ref_id> --waitFor machine-readable output (chained pipelines, agent context), add . With you get the final job object array. Without , you get the job IDs.
--json--wait --json--waitStdin prompt: .
echo "..." | higgsfield generate create z_image --wait参数会直接传递给模型schema。可使用查看详细信息。
higgsfield model get <jst>bash
higgsfield generate create gpt_image_2 --prompt "neon city at dusk" --aspect_ratio 16:9 --resolution 2k --wait
higgsfield generate create nano_banana_2 --prompt "anime character concept, expressive pose" --image ./ref.png --wait
higgsfield generate create seedance_2_0 --prompt "camera dollies in" --start-image ./first.png --duration 8 --wait
higgsfield generate create text2image_soul_v2 --prompt "..." --soul-id <soul_ref_id> --wait如需机器可读输出(用于链式流水线、Agent上下文),请添加参数。使用会返回最终任务对象数组;不使用则返回任务ID。
--json--wait --json--wait通过标准输入传递提示词:。
echo "..." | higgsfield generate create z_image --waitMarketing Studio
Marketing Studio
Branded image/video gen: avatars + products + ad-style modes. Use models and .
marketing_studio_videomarketing_studio_image品牌图片/视频生成:虚拟形象+产品+广告风格模式。使用和模型。
marketing_studio_videomarketing_studio_imageConcepts
核心概念
- Avatar — presenter face. Curated (browse
preset) orhiggsfield marketing-studio avatars list(uploaded photos viacustom).higgsfield marketing-studio avatars create - Product — brand item with title + reference images. Imported from URL () or created from uploaded images (
higgsfield marketing-studio products fetch --url ...).higgsfield marketing-studio products create - Webproduct — App Store / web page version. Auto-routes when fetching App Store URLs.
- Avatar(虚拟形象) — 演示者面部。可选择预设形象(运行浏览)或自定义形象(通过
higgsfield marketing-studio avatars list上传照片创建)。higgsfield marketing-studio avatars create - Product(产品) — 带有标题和参考图片的品牌商品。可从URL导入()或通过上传图片创建(
higgsfield marketing-studio products fetch --url ...)。higgsfield marketing-studio products create - Webproduct(网页产品) — App Store/网页版本。获取App Store URL时会自动路由。
UX rules (additional)
额外用户体验规则
- One question per phase. Don't ask product+avatar+mode upfront.
- 每个阶段只提一个问题。不要一次性询问产品、虚拟形象和模式。
Workflow — quick ad video
工作流程 — 快速制作广告视频
- Get product.
- URL → (polls until import done)
higgsfield marketing-studio products fetch --url <url> --wait - Local images → then
higgsfield upload create <photo>...Capture product id.higgsfield marketing-studio products create --title "..." --image <id>...
- URL →
- Pick avatar.
- Default: and pick a preset matching the brand voice.
higgsfield marketing-studio avatars list - Custom: .
higgsfield marketing-studio avatars create --name "..." --image <upload_id>
- Default:
- Pick mode. Default . Other slugs (canonical from MCP):
ugc,ugc_how_to,ugc_unboxing,product_showcase,product_review,tv_spot,wild_card,ugc_virtual_try_on. Seevirtual_try_on.references/marketing-modes.md - Generate (one-shot).
Resolution isbash
higgsfield generate create marketing_studio_video \ --prompt "..." \ --avatars '[{"id":"<avatar_id>","type":"preset"}]' \ --product_ids '[<product_id>]' \ --mode ugc \ --duration 15 \ --resolution 720p \ --aspect_ratio 9:16 \ --waitor480p. Aspect ratio is one of720p/auto/21:9/16:9/4:3/1:1/3:4.9:16is supported here (unlike--generate-audio true).seedance_2_0blocks until done; bump--waitfor longer ad runs.--wait-timeout 30m - Deliver. URL + one-line summary (mode, duration).
- 获取产品。
- 通过URL → (轮询直到导入完成)
higgsfield marketing-studio products fetch --url <url> --wait - 通过本地图片 → 然后执行
higgsfield upload create <photo>...记录产品ID。higgsfield marketing-studio products create --title "..." --image <id>...
- 通过URL →
- 选择虚拟形象。
- 默认:运行并选择符合品牌调性的预设形象。
higgsfield marketing-studio avatars list - 自定义:。
higgsfield marketing-studio avatars create --name "..." --image <upload_id>
- 默认:运行
- 选择模式。默认模式为。其他模式标识(来自MCP的标准标识):
ugc、ugc_how_to、ugc_unboxing、product_showcase、product_review、tv_spot、wild_card、ugc_virtual_try_on。详见virtual_try_on。references/marketing-modes.md - 一次性生成。
分辨率支持bash
higgsfield generate create marketing_studio_video \ --prompt "..." \ --avatars '[{"id":"<avatar_id>","type":"preset"}]' \ --product_ids '[<product_id>]' \ --mode ugc \ --duration 15 \ --resolution 720p \ --aspect_ratio 9:16 \ --wait或480p。宽高比支持720p/auto/21:9/16:9/4:3/1:1/3:4。此处支持9:16(与--generate-audio true不同)。seedance_2_0会阻塞直到任务完成;对于较长的广告制作,可将--wait调整为--wait-timeout。30m - 交付结果。发送结果URL加上一行摘要(包含模式、时长)。
Click-to-Ad shortcut (URL-driven)
一键生成广告快捷方式(基于URL)
When the user gives a product URL and wants a marketing video in one go:
bash
undefined当用户提供产品URL并希望一次性生成营销视频时:
bash
undefined1. Trigger fetch (returns the product id and starts background scrape)
1. 触发获取(返回产品ID并启动后台抓取)
higgsfield marketing-studio products fetch --url https://shop.example.com/sneakers --wait
higgsfield marketing-studio products fetch --url https://shop.example.com/sneakers --wait
2. Generate the marketing video against the same URL — backend reuses the entity
2. 基于同一URL生成营销视频 — 后端会复用已有的实体
higgsfield generate create marketing_studio_video
--url https://shop.example.com/sneakers
--mode ugc
--duration 15
--aspect_ratio 9:16
--wait
--url https://shop.example.com/sneakers
--mode ugc
--duration 15
--aspect_ratio 9:16
--wait
Backend dedupes by URL, so repeated runs reuse the existing entity instead of re-fetching.higgsfield generate create marketing_studio_video
--url https://shop.example.com/sneakers
--mode ugc
--duration 15
--aspect_ratio 9:16
--wait
--url https://shop.example.com/sneakers
--mode ugc
--duration 15
--aspect_ratio 9:16
--wait
后端会根据URL去重,因此重复运行会复用现有实体,无需重新抓取。Workflow — marketing image
工作流程 — 营销图片生成
Same as above but use model:
marketing_studio_imagebash
higgsfield generate create marketing_studio_image \
--prompt "..." \
--aspect_ratio 1:1 \
--resolution 2k \
--wait与上述流程相同,但使用模型:
marketing_studio_imagebash
higgsfield generate create marketing_studio_image \
--prompt "..." \
--aspect_ratio 1:1 \
--resolution 2k \
--waitErrors
错误处理
- → user gave no prompt; ask for it.
Missing required params: prompt - → bad enum; pick from allowed.
Invalid values: aspect_ratio=99:99 (allowed: ...) - → schema doesn't accept that flag; check
Unknown params: foo.higgsfield model get <jst> - →
Session expired.higgsfield auth login
See for more.
references/troubleshooting.md- → 用户未提供提示词;请询问用户。
Missing required params: prompt - → 参数值无效;从允许的选项中选择。
Invalid values: aspect_ratio=99:99 (allowed: ...) - → schema不接受该参数;请查看
Unknown params: foo。higgsfield model get <jst> - → 请运行
Session expired重新登录。higgsfield auth login
更多错误处理请查看。
references/troubleshooting.mdReference docs
参考文档
Load on demand:
- — picking the right model for the task
references/model-catalog.md - — writing prompts that work
references/prompt-engineering.md - — image/video reference flows
references/media-inputs.md - — common errors and fixes
references/troubleshooting.md - — preset vs custom avatars
references/marketing-avatars.md - — URL fetch vs manual product create
references/marketing-products.md - — every Marketing Studio mode
references/marketing-modes.md
按需加载:
- — 为任务选择合适的模型
references/model-catalog.md - — 编写有效的提示词
references/prompt-engineering.md - — 图片/视频参考流程
references/media-inputs.md - — 常见错误及修复方案
references/troubleshooting.md - — 预设与自定义虚拟形象
references/marketing-avatars.md - — URL抓取与手动创建产品对比
references/marketing-products.md - — Marketing Studio所有模式
references/marketing-modes.md