presets/README.md

Presets

A preset is a folder in this directory:

1presets/<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

FieldMeaning
idSlug; must equal the folder name (^[a-z0-9]+(-[a-z0-9]+)*$)
nameDisplay name
descriptionOne-line description
categorycamera, image or video; decides which tool the preset appears in
orderSort order inside the category
chipOptional short spec shown on the card (e.g. 90°)
engineworkflow (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
inputsFile inputs. { key, type: "image", label, required, bind }
paramsUser-facing params (see below)
outputsNodes that produce the result: { node, kind: "video" | "image" }

Params (params array, discriminated by type):

  • text: { key, label, default, placeholder?, template?, bind }. With template, 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 writes value to bind (when present) and applies every set entry ({ node, field, value }). A choice with neither is only usable inside text templates. default must 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

  1. Copy an existing folder, rename it, edit preset.json (new id, copy, binds).
  2. With a CPU-only ComfyUI running (COMFYUI_URL, default http://127.0.0.1:8188), run pnpm --filter phaino-studio export:workflows to regenerate workflow.json/workflow_api.json for every preset.
  3. Run pnpm test to 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.safetensors
  • text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors
  • vae/ltx-2.5-video-vae-bf16.safetensors
  • vae/ltx-2.5-audio-vae-bf16.safetensors
  • latent_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.safetensors from 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.safetensors
  • diffusion_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.safetensors
  • diffusion_models/wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors
  • text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors
  • vae/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.safetensors and loras/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.safetensors
  • text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors
  • vae/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.