ComfyUI Workflow Templates (Media API Bundle)
This library provides a collection of API-driven workflow templates (JSON files) for ComfyUI, specifically tailored for various media processing tasks. It acts as a data bundle, offering ready-to-use workflows accessible within the ComfyUI user interface, rather than adding new Python functionality or custom nodes. The current version is 0.3.68, and it's part of a rapidly evolving ComfyUI ecosystem with frequent updates.
Warnings
- breaking ComfyUI and its custom node ecosystem are under rapid development (often weekly releases). Workflows, including those from this package, can become incompatible with newer ComfyUI versions or updated custom nodes due to changes in backend, frontend, or node definitions.
- gotcha This package is a *data bundle* containing JSON workflow templates, not a Python library providing new programmatic functionality or custom nodes for direct import and execution. Its purpose is to augment the ComfyUI user interface with pre-built workflows.
- gotcha To use these workflow templates programmatically via the ComfyUI API (e.g., for automation or integration into other applications), you often need to enable 'Dev Mode Options' in ComfyUI settings and save the desired workflow in 'API Format' first. This involves interacting with ComfyUI's built-in API, not directly with this Python package.
Install
-
pip install comfyui-workflow-templates-media-api
Imports
- template_paths
import importlib.resources # To access the installed template files (e.g., for inspection or programmatic loading): # paths = importlib.resources.files('comfyui_workflow_templates_media_api').joinpath('templates')
Quickstart
# This package provides workflow *templates* for ComfyUI, not Python functions for direct execution. # The primary quickstart is within the ComfyUI application itself. # 1. Install ComfyUI (if not already installed, e.g., via git clone or desktop app). # For example: git clone https://github.com/Comfy-Org/ComfyUI # 2. Install this package: # pip install comfyui-workflow-templates-media-api # 3. Start ComfyUI: # cd ComfyUI # python main.py # 4. In the ComfyUI web interface (usually http://127.0.0.1:8188): # Click on 'Workflow' in the top menu. # Select 'Browse Templates'. # Find and select the desired workflow from the 'media-api' bundle.