higgsfield
Installation
SKILL.md
Higgsfield generation
Helper: python <skill-dir>/scripts/hf.py (Python 3.8+, standard library only). JSON on stdout, progress on stderr. Run it from the user's project folder; jobs are recorded in work/higgsfield/jobs.db, files go to outputs/.
1. Pick the model
hf.py models [words]searches all models, e.g.hf.py models kling image.MODELS.mdin the skill folder lists them all with example prices.- If the user names a model, use it exactly (model id like
kling-video-v3.0-pro-text-to-videoor its endpointkling-video/v3.0/pro/text-to-video). Never swap to a different model or variant without asking. - If they don't, suggest one that fits the task (text-to-video, image-to-video, reference-to-video, video-edit, text-to-image, image edit) and mention its example price. Default for video:
bytedance-seedance-2.5-text-to-video, 5 s, 720p. hf.py info <model>shows every parameter (type, allowed values, default, required), outputs, pricing note, and an example. Read it before writing a request; parameters differ between models, even between variants of one model. For full details open the model'sagent_promptURL frominfo.
2. Build the request
- Write JSON to
work/higgsfield/<job>.jsonwith only parameters frominfo.hf.py validate --model M --input Fchecks it offline. - Local images/video/audio:
hf.py upload <file>returns apublic_url; put that URL in the model's field (image_url,image_urls,video_url,start_image_url, ...). Only upload files the user asked you to use. Supported: jpg, png, webp, gif, wav, mp4. - Marketing Studio product shots / ads with a preset:
hf.py presetslists preset ids; ask the user to choose; setenhance_prompt: true,preset_id, and the product image inimage_urls. Never invent preset ids. hf.py checkverifies the key for free. If credentials are missing, tell the user to fill~/.config/higgsfield/.env(HF_API_KEY_ID,HF_API_KEY_SECRET). Never ask for or print the key, and never put it in commands or project files.