presets/README.md
Presets
A preset is a folder in this directory:
| 1 | presets/<id>/ |
| 2 | ├── preset.json # preset definition (schema below) |
| 3 | ├── workflow.json # ComfyUI UI-format graph (openable in the editor) |
| 4 | ├── workflow_api.json # API-format graph, generated by the export script |
| 5 | └── thumb.webp # card thumbnail |
workflow.json and workflow_api.json are generated, not hand-edited: they come from loading the source template into ComfyUI and calling graphToPrompt(). To preview one, drag workflow.json onto the ComfyUI canvas.
preset.json
| Field | Meaning |
|---|---|
id | Slug; must equal the folder name (^[a-z0-9]+(-[a-z0-9]+)*$) |
name | Display name |
description | One-line description |
category | camera, image or video; decides which tool the preset appears in |
order | Sort order inside the category |
chip | Optional short spec shown on the card (e.g. 90°) |
engine | workflow (M7 adds router) |
model | { id, label, license }; license is open or partner |
source | { template, modes? }: the workflow_templates template name and optional top-level node mode overrides (e.g. bypassing one of two subgraphs) used at export time |
inputs | File inputs. { key, type: "image", label, required, bind } |
params | User-facing params (see below) |
outputs | Nodes that produce the result: { node, kind: "video" | "image" } |
Params (params array, discriminated by type):
text:{ key, label, default, placeholder?, template?, bind }. Withtemplate, the written value is the template with{key}placeholders replaced by other param values (e.g.{prompt} {style}); without one the raw value is written. Unknown placeholders are a validation error.seed:{ key, label, bind }. Uses the caller's seed option unless the user overrides it.choice:{ key, label, default, options, bind? }. Each option is{ value, label, set? }; picking one writesvaluetobind(when present) and applies everysetentry ({ node, field, value }). A choice with neither is only usable inside text templates.defaultmust equal an option value.int:{ key, label, default, min, max, bind }; out-of-range values are rejected at bind time.
Every key across inputs + params must be unique.
Binds
bind is { node, field } where node is a node id in workflow_api.json. Subgraph internals are flattened: internal node 376 inside subgraph node 398 is bound as 398:376. field is a widget input name that holds a literal value in workflow_api.json; if the value you need is a link (fed by a primitive), bind to the primitive node's value field instead.
Camera binds (from video_ltx2_5_i2v): 395.image (first frame), 398:376.value (prompt), 398:339.noise_seed, 398:362.value (seconds), 398:361.value (fps), 403.aspect_ratio, output 75 (SaveVideo).
FLUX binds (from image_flux2_klein_text_to_image): 76.value (prompt), 75:73/77:86 .noise_seed, width/height primitives 75:68/75:69 or 77:84/77:85 .value, batch 75:66/77:83 .batch_size, outputs 9 (base) / 78 (distilled).
Adding a preset
- Copy an existing folder, rename it, edit
preset.json(newid, copy, binds). - With a CPU-only ComfyUI running (
COMFYUI_URL, defaulthttp://127.0.0.1:8188), runpnpm --filter phaino-studio export:workflowsto regenerateworkflow.json/workflow_api.jsonfor every preset. - Run
pnpm testto validate the folder against the object_info snapshot.
Model files
Open presets need the model files listed below (relative to ComfyUI/models/). Partner presets (kling3-video, seedance25-i2v, nano-banana-2) run on hosted API nodes and draw Comfy credits instead; they need no local model files.
Camera moves and LTX 2.5 i2v (video_ltx2_5_i2v) — from the gated Lightricks/LTX-2.5 repo (request access first):
diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensorstext_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensorsvae/ltx-2.5-video-vae-bf16.safetensorsvae/ltx-2.5-audio-vae-bf16.safetensorslatent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors- Optional, only if you enable the template's prompt enhancer (Phaino presets keep it off):
text_encoders/gemma4_e2b_it_int8_convrot.safetensorsfrom Comfy-Org/gemma-4
Image (FLUX.2 Klein, image_flux2_klein_text_to_image) — from Comfy-Org/flux2-klein / Comfy-Org/flux2-dev:
text_encoders/qwen_3_4b.safetensorsdiffusion_models/flux-2-klein-base-4b.safetensors(flux2-klein)diffusion_models/flux-2-klein-4b.safetensors(flux2-klein-fast)vae/flux2-vae.safetensors
Video (Wan 2.2, video_wan2_2_14B_i2v) — from Comfy-Org/Wan_2.2_ComfyUI_Repackaged / Comfy-Org/Wan_2.1_ComfyUI_repackaged:
diffusion_models/wan2.2_i2v_high_noise_14B_fp8_scaled.safetensorsdiffusion_models/wan2.2_i2v_low_noise_14B_fp8_scaled.safetensorstext_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensorsvae/wan_2.1_vae.safetensors- Optional, only when the template's 4-steps LoRA switch is on (presets keep it off):
loras/wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensorsandloras/wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors
Image (Qwen Image, image_qwen_Image_2512) — from Comfy-Org/Qwen-Image_ComfyUI:
diffusion_models/qwen_image_2512_fp8_e4m3fn.safetensorstext_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensorsvae/qwen_image_vae.safetensors- Optional, only when the template's 4-steps LoRA switch is on (presets keep it off):
loras/Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors
Thumbnail credits
The M7 presets use their workflow template's own thumbnail from the comfyui_workflow_templates_media_* packages (Comfy-Org): ltx25-i2v (video_ltx2_5_i2v-1.webp), wan22-i2v (video_wan2_2_14B_i2v-1.webp), kling3-video (api_kling_v3_video-1.webp), seedance25-i2v (api_seedance2_5_i2v_1080p-1.webp), qwen-image (image_qwen_Image_2512-1.webp), nano-banana-2 (api_google_nano_banana2_text_to_image-1.webp).
Placeholders from Unsplash under the Unsplash License; replace with real preset outputs when they exist.
| Preset | Source |
|---|---|
| orbit | https://images.unsplash.com/photo-1464822759023-fed622ff2c3b |
| dolly-in, fpv-dive | https://images.unsplash.com/photo-1441974231531-c6227db76b6e |
| crash-zoom, drone-pull-out, flux2-klein, flux2-klein-fast | https://images.unsplash.com/photo-1519681393784-d120267933ba |
| whip-pan | https://images.unsplash.com/photo-1518837695005-2083093ee35b |
| bullet-time | https://images.unsplash.com/photo-1470770841072-f978cf4d019e |