Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

comfyui-capsule

ComfyUI custom node pack for the Capsule Video Template API.

Install

  1. Copy this comfyui-capsule/ folder into ComfyUI/custom_nodes/.
  2. pip install -r requirements.txt in your ComfyUI venv (only requests).
  3. Restart ComfyUI.

Nodes

Find them in the node picker under Capsule.

Capsule Video Render

The main node. Submits a template export, polls until done, optionally downloads the MP4.

Static widgets:

  • api_key — your Capsule API key
  • project_id — defaults to 6a087e2a66a340cf14b8d4e1
  • aspect_ratio — Wide / Square / Vertical
  • poll_interval_sec, timeout_sec, download_local
  • inputs_json — the serialized template input values (single source of truth)

Dynamic widgets:

  • One per field returned by GET /projects/<id>/templateInputs. Added automatically when api_key and project_id are both set (debounced 600ms). Also re-loadable via the 📥 Load template fields button.
  • Dynamic widgets are not serialized; their values flow into inputs_json, which is.

Outputs:

  • video_url — https://render.capsule.video/media/<cloudJobId>
  • local_path — path to downloaded MP4 (empty if download_local is off)
  • export_id

Capsule Template Inputs

Standalone inspection node — returns the raw template schema as a JSON string. Not required for normal use; the render node fetches the schema on its own.

Files

comfyui-capsule/
  __init__.py             ← Node registration
  capsule_nodes.py        ← Python nodes + /capsule/template_inputs HTTP route
  requirements.txt
  web/
    capsule.js            ← Frontend extension: dynamic widgets + auto-fetch

Notes

  • The schema parser in capsule.js (normalizeSchema) accepts {inputs: [...]}, {fields: [...]}, or a top-level array. Tested against Capsule's current response shape.
  • API keys are sent from the browser to the local Comfy server, which proxies to Capsule. Fine for local/self-hosted use. For shared deployments, swap to reading the key from a CAPSULE_API_KEY env var in capsule_nodes.py and remove the widget.
  • Comfy Cloud does not support arbitrary custom node installs — this pack requires local/self-hosted ComfyUI or a third-party host (RunComfy, ThinkDiffusion, MimicPC, etc.).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages