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.
pip install comfyui-workflow-templates-media-apiVerified import paths — ran on the pinned version, not inferred.
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.
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.
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`).
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.
Ensure you are loading a workflow saved in 'API Format' from ComfyUI (enable 'Dev mode options' in settings to see the 'Save (API Format)' button). Verify the JSON structure against ComfyUI's API workflow specifications.
Use the ComfyUI Manager (accessible via the 'Manager' button in the toolbar) to automatically detect and install missing custom nodes. After installation, restart ComfyUI.
Ensure ComfyUI is fully updated by running the update script (e.g., `update_comfyui.bat` or `git pull`). Verify that the `templates` directory and its `index.json` are present and correctly placed within your ComfyUI installation.
Ensure that any dynamic text or variables inserted into the JSON payload are correctly escaped to prevent breaking the JSON format. Use appropriate escaping functions for characters like `"` and `\` if manually constructing or modifying the JSON.