{"id":2898,"library":"comfyui-workflow-templates-media-api","title":"ComfyUI Workflow Templates (Media API Bundle)","description":"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.","status":"active","version":"0.3.68","language":"en","source_language":"en","source_url":"https://github.com/Comfy-Org/workflow_templates","tags":["ComfyUI","workflow","template","AI","generative-AI","media","API"],"install":[{"cmd":"pip install comfyui-workflow-templates-media-api","lang":"bash","label":"PyPI installation"}],"dependencies":[{"reason":"This package provides workflow templates for ComfyUI and is not functional without a running ComfyUI installation. ComfyUI itself is typically installed by cloning its GitHub repository or using a desktop installer, not via pip as a direct Python dependency of this package.","package":"ComfyUI","optional":false}],"imports":[{"note":"This library is primarily a data bundle (JSON workflow files), not a code library with typical Python classes/functions. Direct programmatic import is usually to access the installed template files, not to call functional APIs from this package itself. The main interaction is via the ComfyUI UI.","symbol":"template_paths","correct":"import importlib.resources\n# To access the installed template files (e.g., for inspection or programmatic loading):\n# paths = importlib.resources.files('comfyui_workflow_templates_media_api').joinpath('templates')"}],"quickstart":{"code":"# This package provides workflow *templates* for ComfyUI, not Python functions for direct execution.\n# The primary quickstart is within the ComfyUI application itself.\n\n# 1. Install ComfyUI (if not already installed, e.g., via git clone or desktop app).\n#    For example: git clone https://github.com/Comfy-Org/ComfyUI\n\n# 2. Install this package:\n#    pip install comfyui-workflow-templates-media-api\n\n# 3. Start ComfyUI:\n#    cd ComfyUI\n#    python main.py\n\n# 4. In the ComfyUI web interface (usually http://127.0.0.1:8188):\n#    Click on 'Workflow' in the top menu.\n#    Select 'Browse Templates'.\n#    Find and select the desired workflow from the 'media-api' bundle.","lang":"bash","description":"This library delivers JSON workflow templates for ComfyUI. The primary way to use these templates is through the ComfyUI graphical user interface. After installation, launch ComfyUI and access the templates via the 'Workflow' menu."},"warnings":[{"fix":"Regularly update ComfyUI and associated custom nodes. Check ComfyUI's changelog for breaking changes. Re-saving workflows in newer API formats might be necessary for programmatic use. For critical workflows, consider pinning ComfyUI and custom node versions.","message":"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.","severity":"breaking","affected_versions":"All versions of ComfyUI and associated templates/custom nodes."},{"fix":"Understand that interaction is primarily through the ComfyUI GUI's 'Browse Templates' feature. If programmatic access to the *content* (JSON files) is needed, use standard Python resource loading (e.g., `importlib.resources`).","message":"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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Refer to the ComfyUI official documentation for details on using its API (WebSocket, `/prompt` endpoint, etc.) and preparing workflows for API consumption. This typically involves using the ComfyUI frontend to export the workflow JSON in the correct API format.","message":"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.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}