# ComfyUI: English Developer ## Developer ### Develop with Comfy - [ComfyUI for Developers: SDKs, Server API, and Cloud](https://docs.comfy.org/development/overview.md): Build on ComfyUI with official Python and TypeScript SDKs, run it as a server, call Cloud APIs, or connect AI agents via MCP. - [Getting an API Key](https://docs.comfy.org/development/api-development/getting-an-api-key.md): Learn how to create and manage your Comfy Platform API Key for accessing Cloud APIs, Partner Nodes, and more. - [Comfy API Examples: Router Calls, Deployments, and Apps](https://docs.comfy.org/development/examples.md): Starting points for calling hosted models with Comfy Router, deploying ComfyUI workflows, and browsing community apps. ### Deploy ComfyUI - [Deploying ComfyUI](https://docs.comfy.org/development/deploy/overview.md): Compare Comfy Cloud, managed Comfy API deployments, and self-hosting to choose how to run ComfyUI. #### Comfy API - [Comfy API Quickstart](https://docs.comfy.org/development/serverless/quickstart.md): Use an AI coding agent and comfy-cli to build, release, and deploy a local ComfyUI environment as a managed endpoint. - [Other Ways to Create a Comfy API Build](https://docs.comfy.org/development/serverless/build-sources.md): Create a Comfy API Build from a Comfy Desktop snapshot or saved workflow JSON. - [Comfy API Deployment: Builds, Releases, and Endpoints](https://docs.comfy.org/development/serverless/overview.md): Deploy ComfyUI workflows as managed GPU endpoints with Comfy API: Builds, releases, regions, worker scaling, workspace limits, and deployment monitoring. #### Comfy Cloud - [Comfy Cloud Quickstart](https://docs.comfy.org/development/deploy/cloud.md): Run an API-format workflow on Comfy Cloud with a paid subscription, API key, and the Comfy SDK. - [Usage and Limits](https://docs.comfy.org/development/deploy/cloud-usage.md): Understand Comfy Cloud credits, concurrent jobs, and the limits that apply when running workflows through the SDK. - [Adding Custom Builds to Comfy Cloud](https://docs.comfy.org/development/deploy/cloud-custom-builds.md): Run a Workflow with your own Custom Nodes on Comfy Cloud: create a Build, run its deployment from the editor, upload a LoRA, and delete the deployment. #### Self-Hosting Options - [Self-Hosting Options](https://docs.comfy.org/development/deploy/self-hosting.md): Run your own ComfyUI deployment: bare metal, GPU cloud providers like Runpod and Vast.ai, or community Docker images ##### Self-Hosted Server API - [ComfyUI Server Overview: REST and WebSocket APIs](https://docs.comfy.org/development/comfyui-server/comms_overview.md): Run ComfyUI as a headless HTTP server, then submit workflows, upload files, download outputs, and monitor progress over its REST and WebSocket APIs. - [ComfyUI Server API Examples: HTTP, WebSocket, History](https://docs.comfy.org/development/comfyui-server/api-examples.md): Three Python patterns for the ComfyUI Server API: submit and forget, monitor completion with WebSocket and history, and stream images live. - [ComfyUI Server Routes (HTTP and WebSocket API)](https://docs.comfy.org/development/comfyui-server/comms_routes.md): ComfyUI Server API routes: built-in GET, POST, and WebSocket endpoints for prompts, queue, history, models, and user data, plus how to add custom routes. - [ComfyUI Server Messages (WebSocket API)](https://docs.comfy.org/development/comfyui-server/comms_messages.md): How ComfyUI's PromptExecutor sends WebSocket messages to the client, built-in types like execution_start and progress, and registering custom message types. - [ComfyUI Startup Flags: Command-Line Reference](https://docs.comfy.org/development/comfyui-server/startup-flags.md): ComfyUI startup flags reference: every main.py command-line argument from comfy/cli_args.py, plus how to add flags to Windows Portable .bat launchers. - [ComfyUI Account API Key Integration](https://docs.comfy.org/development/comfyui-server/api-key-integration.md): Call paid Partner Nodes from a headless ComfyUI server with a ComfyUI Account API key, running workflows through the webserver API. #### Run Workflows - [Running Workflows](https://docs.comfy.org/development/run-workflows/overview.md): How to run ComfyUI workflows against a live deployment, and which client works with which deployment - [Run your first workflow](https://docs.comfy.org/development/api-development/quickstart.md): Run a sample workflow on Comfy Cloud and download its output with Python or TypeScript. - [Comfy SDKs: Python and TypeScript Clients for ComfyUI](https://docs.comfy.org/development/api-development/sdks.md): Run ComfyUI workflows from Python or TypeScript against Comfy Cloud, a deployment or your own ComfyUI: assets, jobs, live events and idempotent retries. - [API Proxy for Self-Hosted ComfyUI](https://docs.comfy.org/development/comfyui-server/api-proxy.md): Serve the Comfy API v2 in front of your own ComfyUI so the official SDKs can run workflows against it - [Workflow API Format](https://docs.comfy.org/development/api-development/workflow-api-format.md): Understanding the API format for ComfyUI workflows and how to export them - [ComfyUI Workflow Metadata in Output Files](https://docs.comfy.org/development/api-development/workflow-metadata.md): How ComfyUI embeds the workflow and API prompt in PNG, WebP, MP4, and safetensors output, restores a workflow from a file, and disables saving. ##### Comfy API Reference - [Comfy API Versions: v2 and the Deprecated v1 Cloud API](https://docs.comfy.org/development/comfy-api/overview.md): Compare the Comfy API versions: the recommended v2 HTTP API for running ComfyUI workflows headlessly, and the deprecated v1 Cloud API. ###### v2 - [Comfy API v2 Overview](https://docs.comfy.org/api-reference/v2/overview.md): Reference for the official Comfy API v2: run ComfyUI workflows from external applications by uploading inputs, submitting jobs, and polling for results. - [Design Notes](https://docs.comfy.org/development/api-development/sdks-design.md): Why the Comfy API v2 exists, how it relates to the existing ComfyUI APIs, and what is coming next ###### API Reference ###### assets - [Upload an asset (single-call multipart)](https://docs.comfy.org/api-reference/v2/assets/upload-an-asset-single-call-multipart.md): Single-call `multipart/form-data` upload. The platform streams the bytes through its trusted byte-path, dedups by the server-computed hash, and mints the asset record. - [Create or reuse an asset over existing bytes](https://docs.comfy.org/api-reference/v2/assets/create-or-reuse-an-asset-over-existing-bytes.md): Zero-byte fast-path: creates or reuses an asset over a blob the platform already has, identified by its blake3 hash. - [Existence check for a blob by blake3 hash](https://docs.comfy.org/api-reference/v2/assets/existence-check-for-a-blob-by-blake3-hash.md): `200` if the calling account can mint from this blob, `404` otherwise. Same account-scoping as `from-hash`; lets a client decide between the dedup fast-path and a full upload before sending bytes. Use the `hash` an upload returned: for an image whose location metadata was removed before storage, the… - [Asset metadata](https://docs.comfy.org/api-reference/v2/assets/asset-metadata.md): Returns the asset object with a fresh short-lived `url` for the content. Re-fetching always yields fresh URLs. - [Delete an asset record](https://docs.comfy.org/api-reference/v2/assets/delete-an-asset-record.md): Deletes the asset RECORD. The underlying content-addressed blob is untouched while any other asset still references it (hash dedup means blobs are shared) — deleting an asset never destroys another asset's bytes. - [Asset bytes](https://docs.comfy.org/api-reference/v2/assets/asset-bytes.md): Serves the bytes directly on surfaces where the platform stores blobs itself (self-hosted); on Cloud and serverless issues a `302` to a fresh signed URL. Range requests are supported for resumable downloads of large outputs. ###### jobs - [List jobs, newest first](https://docs.comfy.org/api-reference/v2/jobs/list-jobs-newest-first.md): Lists jobs newest first. At a deployment's address, the jobs sent to that deployment; at the workspace address, every job in the caller's workspace. A caller never sees another workspace's jobs. - [Submit a workflow for execution](https://docs.comfy.org/api-reference/v2/jobs/submit-a-workflow-for-execution.md): Accepts the API-format workflow graph verbatim. Validation is synchronous: graph structure, unknown node classes, and asset references (`core/ASSET` objects — every referenced `id` must exist and be owned by the caller). A `201` means the job is durably recorded and queued. - [Job status (the polling workhorse)](https://docs.comfy.org/api-reference/v2/jobs/job-status-the-polling-workhorse.md): Returns the full job object: current status, the latest progress snapshot, and every output committed so far (`outputs` populates incrementally while the job runs). This is the authoritative, resumable view of a job; everything on the SSE stream is derived from it. - [The workflow behind a job — authoring version if pinned, executed graph otherwise](https://docs.comfy.org/api-reference/v2/jobs/the-workflow-behind-a-job-—-authoring-version-if-pinned-executed-graph-otherwise.md): Returns the workflow behind a job. The response's `format` field says which of two different shapes `workflow` is in: - [What the run printed](https://docs.comfy.org/api-reference/v2/jobs/what-the-run-printed.md): Returns the job's captured execution log. Fetched on demand: a log is a debugging artifact a caller wants occasionally, while `GET /api/v2/jobs/{id}` is polled to terminal on every run, so the log is a resource of its own rather than a field that would ride every one of those polls to be read at mos… - [Live event stream (SSE)](https://docs.comfy.org/api-reference/v2/jobs/live-event-stream-sse.md): Server-Sent Events stream of the job's live state. On connect the client receives the current snapshot (a `status` event, the latest `progress`, and the most recent `preview` if any), then future updates. The stream ends after either the terminal `status` event or a terminal `error` event (see the `… - [Request cancellation](https://docs.comfy.org/api-reference/v2/jobs/request-cancellation.md): Requests cancellation and returns the current job object — `canceling` (interruption takes effect at node/step boundaries), `canceled` where the provider's record already shows the interrupt, or already-terminal. Idempotent: canceling a finished job is a no-op returning the terminal state. On server… ###### v1 Cloud API (deprecated) - [v1 Cloud API Overview](https://docs.comfy.org/development/cloud/overview.md): The deprecated v1 Cloud API surface: authentication and the Cloud-specific endpoints Comfy API v2 does not expose - [Cloud API Reference](https://docs.comfy.org/development/cloud/api-reference.md): Complete API reference with code examples for Comfy Cloud - [OpenAPI Specification](https://docs.comfy.org/development/cloud/openapi.md): Machine-readable OpenAPI specification for Comfy Cloud API ###### Cloud API Reference ###### workflow - [Get information about current prompt executions](https://docs.comfy.org/api-reference/cloud/workflow/get-information-about-current-prompt-executions.md): Returns information about current prompts in the execution queue - [Submit a workflow for execution](https://docs.comfy.org/api-reference/cloud/workflow/submit-a-workflow-for-execution.md): Submit a workflow to be executed by the backend. The workflow is a JSON object describing the nodes and their connections. - [Get available workflow templates](https://docs.comfy.org/api-reference/cloud/workflow/get-available-workflow-templates.md): Returns available workflow templates - [Get available subgraph blueprints](https://docs.comfy.org/api-reference/cloud/workflow/get-available-subgraph-blueprints.md): Returns a list of globally available subgraph blueprints. These are pre-built workflow components that can be used as nodes. The data field contains a promise that resolves to the full subgraph JSON. - [Get a specific subgraph blueprint](https://docs.comfy.org/api-reference/cloud/workflow/get-a-specific-subgraph-blueprint.md): Returns the full data for a specific subgraph blueprint by ID ###### node - [Get all node information](https://docs.comfy.org/api-reference/cloud/node/get-all-node-information.md): Returns information about all available nodes - [Get server feature flags](https://docs.comfy.org/api-reference/cloud/node/get-server-feature-flags.md): Returns the server's feature capabilities ###### model - [Get available model folders](https://docs.comfy.org/api-reference/cloud/model/get-available-model-folders.md): Returns a list of model folders available in the system. This is an experimental endpoint that replaces the legacy /models endpoint. - [Get models in a specific folder](https://docs.comfy.org/api-reference/cloud/model/get-models-in-a-specific-folder.md): Returns a list of models available in the specified folder. This is an experimental endpoint that provides enhanced model information. - [Get model preview image](https://docs.comfy.org/api-reference/cloud/model/get-model-preview-image.md): Returns a preview image for the specified model. The image is returned in WebP format for optimal performance. ###### job - [Manage execution history](https://docs.comfy.org/api-reference/cloud/job/manage-execution-history.md): Clear all history for the authenticated user or delete specific job IDs. Supports clearing all history or deleting specific job IDs. - [Get execution history (v2)](https://docs.comfy.org/api-reference/cloud/job/get-execution-history-v2.md): **Deprecated.** Use [`/api/jobs`](#tag/job/GET/api/jobs) instead. This endpoint is maintained for ComfyUI compatibility but will be removed in a future release; no removal date set. - [Get history for specific prompt](https://docs.comfy.org/api-reference/cloud/job/get-history-for-specific-prompt.md): **Deprecated.** Use [`/api/jobs/{job_id}`](#tag/job/GET/api/jobs/{job_id}) instead — the `prompt_id` returned by `/api/prompt` is the same value as `job_id`. This endpoint is maintained for ComfyUI compatibility but will be removed in a future release; no removal date set. - [List jobs with pagination and filtering](https://docs.comfy.org/api-reference/cloud/job/list-jobs-with-pagination-and-filtering.md): Retrieve a paginated list of jobs for the authenticated user. Returns lightweight job data optimized for list views. Workflow and full outputs are excluded to reduce payload size. - [Get full job details](https://docs.comfy.org/api-reference/cloud/job/get-full-job-details.md): Retrieve complete details for a specific job including workflow and outputs. Used for detail views, workflow re-execution, and debugging. - [Get queue information](https://docs.comfy.org/api-reference/cloud/job/get-queue-information.md): Returns information about running and pending items in the queue - [Manage queue operations](https://docs.comfy.org/api-reference/cloud/job/manage-queue-operations.md): Cancel specific PENDING jobs by ID or clear all pending jobs in the queue. Note: This endpoint only affects pending jobs. To cancel running jobs, use /api/interrupt. - [Interrupt currently running jobs](https://docs.comfy.org/api-reference/cloud/job/interrupt-currently-running-jobs.md): Cancel all currently RUNNING jobs for the authenticated user. This will interrupt any job that is currently in 'in_progress' status. Note: This endpoint only affects running jobs. To cancel pending jobs, use /api/queue. - [Get job status](https://docs.comfy.org/api-reference/cloud/job/get-job-status.md): Returns the current status of a specific job by ID ###### file - [View a file](https://docs.comfy.org/api-reference/cloud/file/view-a-file.md): Retrieve and view a file from the ComfyUI file system. This endpoint is typically used to view generated images or other output files. - [Get related mask layer files](https://docs.comfy.org/api-reference/cloud/file/get-related-mask-layer-files.md): Given a mask file (any of the 4 layers), returns all related mask layer files. This is used by the mask editor to load the paint, mask, and painted layers when reopening a previously edited mask. - [Upload an image file](https://docs.comfy.org/api-reference/cloud/file/upload-an-image-file.md): Upload an image file to cloud storage. - [Upload a mask image](https://docs.comfy.org/api-reference/cloud/file/upload-a-mask-image.md): Upload a mask image to be applied to an existing image. ###### asset - [List user assets](https://docs.comfy.org/api-reference/cloud/asset/list-user-assets.md): Retrieves a paginated list of assets belonging to the authenticated user. Supports filtering by tags, name, metadata, and sorting options. - [Upload a new asset](https://docs.comfy.org/api-reference/cloud/asset/upload-a-new-asset.md): Uploads a new asset to the system with associated metadata. Supports two upload methods: 1. Direct file upload (multipart/form-data) 2. URL-based upload (application/json with source: "url") - [Create asset reference from existing hash](https://docs.comfy.org/api-reference/cloud/asset/create-asset-reference-from-existing-hash.md): Creates a new asset reference using an existing hash from cloud storage. This avoids re-uploading file content when the underlying data already exists, which is useful for large files or when referencing well-known assets. The user provides their own metadata and tags for the new reference. - [Get asset metadata from remote URL](https://docs.comfy.org/api-reference/cloud/asset/get-asset-metadata-from-remote-url.md): Retrieves metadata for an asset from a remote download URL without downloading the entire file. Supports various sources including CivitAI and other model repositories. Uses HEAD requests or API calls to fetch metadata efficiently. This endpoint is for previewing metadata before downloading, not for… - [Initiate background download for large files](https://docs.comfy.org/api-reference/cloud/asset/initiate-background-download-for-large-files.md): Initiates a background download job for large files from Huggingface or Civitai. - [Get asset details](https://docs.comfy.org/api-reference/cloud/asset/get-asset-details.md): Retrieves detailed information about a specific asset - [Update asset metadata](https://docs.comfy.org/api-reference/cloud/asset/update-asset-metadata.md): Updates an asset's metadata. At least one field must be provided. Only name, tags, and user_metadata can be updated. - [Delete asset](https://docs.comfy.org/api-reference/cloud/asset/delete-asset.md): Deletes an asset and its content from storage. Both the database record and storage content are deleted. - [Add tags to asset](https://docs.comfy.org/api-reference/cloud/asset/add-tags-to-asset.md): Adds one or more tags to an existing asset - [Remove tags from asset](https://docs.comfy.org/api-reference/cloud/asset/remove-tags-from-asset.md): Removes one or more tags from an existing asset - [List all tags](https://docs.comfy.org/api-reference/cloud/asset/list-all-tags.md): Retrieves a list of all tags used across assets. Includes usage counts and filtering options. - [Get tag histogram for filtered assets](https://docs.comfy.org/api-reference/cloud/asset/get-tag-histogram-for-filtered-assets.md): Returns a histogram of tags appearing on assets matching the given filters. Useful for refining asset searches by showing available tags and their counts. Only returns tags with non-zero counts (tags that exist on matching assets). - [Check if asset exists by hash](https://docs.comfy.org/api-reference/cloud/asset/check-if-asset-exists-by-hash.md): Checks if content with the given hash exists in cloud storage. Returns 200 if the content exists, 404 if it doesn't. Useful for checking availability before using `/api/assets/from-hash`. ###### user - [List user data files](https://docs.comfy.org/api-reference/cloud/user/list-user-data-files.md): Returns a list of user data files in the specified directory, optionally recursively and with full metadata. - [Get user data file](https://docs.comfy.org/api-reference/cloud/user/get-user-data-file.md): Returns the requested user data file if it exists. - [Upload or update a user data file](https://docs.comfy.org/api-reference/cloud/user/upload-or-update-a-user-data-file.md): Upload a file to a user's data directory. Optional query parameters allow control over overwrite behavior and response detail. - [Delete a user data file](https://docs.comfy.org/api-reference/cloud/user/delete-a-user-data-file.md): Delete a user data file from the database. The file parameter should be the relative path within the user's data directory. - [Get current user information](https://docs.comfy.org/api-reference/cloud/user/get-current-user-information.md): Returns information about the currently authenticated user ###### system - [Get system statistics](https://docs.comfy.org/api-reference/cloud/system/get-system-statistics.md): Returns system statistics including ComfyUI version, device info, and system resources ###### billing - [Get workspace usage over time](https://docs.comfy.org/api-reference/cloud/billing/get-workspace-usage-over-time.md): Returns billed usage for the workspace the API key belongs to, split into time buckets and grouped by model, endpoint, or product. Use it to reconcile spend, attribute cost across models, or feed an internal cost report. ### Comfy CLI - [Get Started with Comfy CLI](https://docs.comfy.org/comfy-cli/getting-started.md): Install comfy-cli, set up local or cloud routing, generate with partner nodes, and run workflows from the terminal. - [Comfy CLI Command Reference](https://docs.comfy.org/comfy-cli/reference.md): Full reference for the Comfy CLI, covering installation commands, node management, and model downloads for setting up and managing ComfyUI from the terminal. - [Comfy CLI Troubleshooting: Setup and Install Fixes](https://docs.comfy.org/comfy-cli/troubleshooting.md): Fix common Comfy CLI setup problems: missing git, Python and virtual environment requirements, headless Comfy Cloud auth, and GPU library installs. ### Specifications #### Workflow JSON - [Workflow JSON](https://docs.comfy.org/specs/workflow_json.md): Workflow JSON schema for the ComfyUI workflow file format (v1.0 plus legacy v0.4), covering nodes, links, groups, and version fields. - [Workflow JSON 0.4](https://docs.comfy.org/specs/workflow_json_0.4.md): JSON schema for a ComfyUI workflow. #### Node Definitions - [Node Definition JSON](https://docs.comfy.org/specs/nodedef_json.md): JSON schema for a ComfyUI Node. - [Node Definition JSON 1.0](https://docs.comfy.org/specs/nodedef_json_1_0.md): JSON schema for a ComfyUI Node. ### Custom Nodes - [ComfyUI Custom Node Development: Build, Extend, and Publish](https://docs.comfy.org/custom-nodes/intro.md): Choose the right path for building, extending, and publishing ComfyUI custom nodes. #### Build Custom Nodes - [ComfyUI Custom Node Types and Architecture](https://docs.comfy.org/custom-nodes/overview.md): Learn how ComfyUI custom nodes work, the client-server model, and the four node categories: server side only, client side only, independent, and connected. - [Creating Custom Nodes in ComfyUI](https://docs.comfy.org/custom-nodes/walkthrough.md): Step-by-step guide to creating a custom node in ComfyUI: define CATEGORY, INPUT_TYPES, and FUNCTION, register the node, and build a client-side JS extension. - [ComfyUI Custom Node i18n: Localize Node Definitions](https://docs.comfy.org/custom-nodes/i18n.md): Add multi-language support to a ComfyUI custom node: locales folder layout, nodeDefs.json translation files, and translated settings menus. ##### Python (Backend) - [Custom Node Properties](https://docs.comfy.org/custom-nodes/backend/server_overview.md): Define a ComfyUI custom node with the V1 schema: INPUT_TYPES, RETURN_TYPES, CATEGORY, FUNCTION, execution control, and input validation. - [ComfyUI Custom Node Lifecycle](https://docs.comfy.org/custom-nodes/backend/lifecycle.md): Understand how ComfyUI loads custom nodes: __init__.py imports, NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS, and WEB_DIRECTORY for client-side JavaScript. - [ComfyUI Custom Node Datatypes](https://docs.comfy.org/custom-nodes/backend/datatypes.md): Reference for ComfyUI custom node data types: Python types, tensor formats (IMAGE, LATENT, MASK), custom types, and wildcards in INPUT_TYPES. - [Images, Latents, and Masks](https://docs.comfy.org/custom-nodes/backend/images_and_masks.md): Master backend data handling for Comfy custom nodes images and masks. Learn PyTorch tensor shapes, PIL conversions, and latents. Read the developer docs today. - [Hidden and Flexible inputs](https://docs.comfy.org/custom-nodes/backend/more_on_inputs.md): ComfyUI hidden inputs (UNIQUE_ID, PROMPT, EXTRA_PNGINFO, DYNPROMPT) and flexible inputs, including custom datatypes and wildcard inputs for custom nodes. - [ComfyUI Lazy Evaluation for Custom Nodes](https://docs.comfy.org/custom-nodes/backend/lazy_evaluation.md): Defer input evaluation in custom nodes: mark inputs lazy in INPUT_TYPES and return the inputs you need from check_lazy_status. - [Node Expansion](https://docs.comfy.org/custom-nodes/backend/expansion.md): Master Comfy node expansion to return new subgraphs in your backend custom nodes. Learn GraphBuilder requirements and caching techniques. Read the docs today! - [ComfyUI Data Lists and List Processing](https://docs.comfy.org/custom-nodes/backend/lists.md): How ComfyUI passes data between custom nodes as Python lists: length-one wrapping, list processing for batches, and INPUT_IS_LIST and OUTPUT_IS_LIST. - [Working with torch.Tensor](https://docs.comfy.org/custom-nodes/backend/tensors.md): Learn the torch.Tensor basics needed for ComfyUI custom nodes: tensor shapes, squeeze/unsqueeze, notation, elementwise operations, and tensor truthiness. - [ComfyUI Custom Node Python Snippets](https://docs.comfy.org/custom-nodes/backend/snippets.md): Annotated code examples for ComfyUI custom nodes: load and save images, invert masks, convert mask shapes, use masks as transparency layers, and create noise. - [Execution Model Inversion Guide](https://docs.comfy.org/development/comfyui-server/execution_model_inversion_guide.md): ComfyUI execution model inversion guide: breaking changes to monkey patching and optional input validation, plus lazy evaluation and node expansion. ##### JavaScript (UI) - [Javascript Extensions](https://docs.comfy.org/custom-nodes/js/javascript_overview.md): Learn how to extend ComfyUI with JavaScript extensions by exporting WEB_DIRECTORY, adding .js files, and registering an extension with app.registerExtension. - [ComfyUI JavaScript Hooks](https://docs.comfy.org/custom-nodes/js/javascript_hooks.md): Reference for ComfyUI frontend JavaScript hooks: app.registerExtension, nodeCreated, beforeRegisterNodeDef, and the callbacks that customize UI behavior. - [Comfy Objects](https://docs.comfy.org/custom-nodes/js/javascript_objects_and_hijacking.md): Reference guide to ComfyUI's core frontend objects - LiteGraph, ComfyApp, LGraph, LLink, and ComfyNode - with their properties, functions, and widget types. - [Settings API](https://docs.comfy.org/custom-nodes/js/javascript_settings.md): Add, read, write, and react to ComfyUI extension settings with app.registerExtension, covering boolean, text, number, slider, combo, color, and image types. - [ComfyUI Dialog API](https://docs.comfy.org/custom-nodes/js/javascript_dialog.md): Use ComfyUI's Dialog API for standardized prompt and confirm dialogs across desktop and web, with usage examples and full API reference. - [ComfyUI Toast API](https://docs.comfy.org/custom-nodes/js/javascript_toast.md): Use ComfyUI's Toast API to show non-blocking notifications. Covers toast types (success, warning, error), the alert helper, and the full API reference. - [About Panel Badges](https://docs.comfy.org/custom-nodes/js/javascript_about_panel_badges.md): Add custom badges with labels, URLs, and icons to the ComfyUI About Panel using the About Panel Badges API, linking to docs, GitHub, or extension resources. - [Bottom Panel Tabs](https://docs.comfy.org/custom-nodes/js/javascript_bottom_panel_tabs.md): Add custom tabs to ComfyUI's bottom panel using the Bottom Panel Tabs API, including interactive elements, React components, and standalone registration. - [Sidebar Tabs](https://docs.comfy.org/custom-nodes/js/javascript_sidebar_tabs.md): Master the Comfy Extension API to build custom JavaScript sidebar tabs. Explore code examples for React components and dynamic content updates. Read the docs. - [Selection Toolbox](https://docs.comfy.org/custom-nodes/js/javascript_selection_toolbox.md): Add custom action commands to ComfyUI's Selection Toolbox for selected nodes, groups, and canvas items using getSelectionToolboxCommands. - [Commands and Keybindings](https://docs.comfy.org/custom-nodes/js/javascript_commands_keybindings.md): Master Comfy commands and keybindings to register custom actions and shortcuts for your extensions. Read the guide and start optimizing today. - [ComfyUI Topbar Menu API](https://docs.comfy.org/custom-nodes/js/javascript_topbar_menu.md): Add custom commands to ComfyUI's topbar menu, including adding to existing menus, creating submenus, and placing one command in multiple locations. - [ComfyUI Subgraphs](https://docs.comfy.org/custom-nodes/js/subgraphs.md): Working with subgraphs in ComfyUI extensions: node IDs, graph traversal, events, widget promotion, and cleanup. - [Canvas Pointer API for Widgets and Cursors](https://docs.comfy.org/custom-nodes/js/canvas-pointer-api.md): Handle clicks, double-clicks and drags on custom canvas widgets with onPointerDown, and control canvas cursors from a ComfyUI frontend extension. - [Custom Node JavaScript Examples: Menus, Events, and Hooks](https://docs.comfy.org/custom-nodes/js/javascript_examples.md): ComfyUI JavaScript examples for custom node and UI work: right-click menus, submenus, UI events, workflow start and interrupt hooks, and node clicks. ##### Migration Guides - [ComfyUI Custom Node V3 Migration: V1 to V3 Schema](https://docs.comfy.org/custom-nodes/v3_migration.md): Migrate V1 custom nodes to the V3 schema: the comfy_entrypoint function, ComfyExtension, object-based inputs and outputs, and the execute classmethod. - [ComfyUI Context Menu API Migration: Canvas and Node Menus](https://docs.comfy.org/custom-nodes/js/context-menu-migration.md): Migrate ComfyUI extensions from deprecated monkey-patching to the context menu API: canvas and node menus, conditional items, submenus, and debugging tips. - [Node ID Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/node-id-migration.md): Migrate ComfyUI frontend extensions to branded string node IDs and the string subgraph boundary sentinels SUBGRAPH_INPUT_ID and SUBGRAPH_OUTPUT_ID. - [Link Registration Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/link-registration-migration.md): Handle addFloatingLink returning undefined, store-backed graph.links views, and link ID collisions in ComfyUI frontend extensions. - [Widget System Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/widgets-migration.md): Store-backed widget values in the ComfyUI frontend: unique widget names, undefined node.widgets, widget renames, addCustomWidget and Agent setValue calls. - [Connection Callback Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/connection-callbacks-migration.md): Ordering of onConnectionsChange and node removal callbacks, SubgraphIO at subgraph boundaries, and graph.events in ComfyUI extensions. - [Serialization Callback Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/serialization-callbacks-migration.md): How onSerialize and onConfigure behave with store-backed graphs, and where ComfyUI frontend extensions should persist custom data. - [Node Geometry Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/node-geometry-migration.md): Node size versus rendered bounds, the applyNodePositions rename and draw-order z-order for ComfyUI frontend extensions after the layout store change. - [PrimeVue Removal Migration for Frontend Extensions](https://docs.comfy.org/custom-nodes/js/primevue-removal-migration.md): Replace $primevue, PrimeVue components, --p-* CSS variables and PrimeVue tooltip selectors after the ComfyUI frontend removed PrimeVue. - [Node replacement](https://docs.comfy.org/custom-nodes/backend/node-replacement.md): Register node replacements to help users migrate from deprecated nodes #### Package & Publish - [ComfyUI Custom Node Docs: Markdown Help Pages](https://docs.comfy.org/custom-nodes/help_page.md): Add Markdown help pages to a custom node's WEB_DIRECTORY/docs folder, with per-locale files, images, and video or HTML media elements. - [Workflow templates](https://docs.comfy.org/custom-nodes/workflow_templates.md): Learn how to include example workflow JSON files and thumbnails in your ComfyUI custom nodes using the example_workflows directory for the Template Browser. - [Subgraph blueprints](https://docs.comfy.org/custom-nodes/subgraph_blueprints.md): Package reusable node groups as subgraph blueprints for your ComfyUI custom nodes, so users can add them from the subgraph menu. - [Comfy Registry: publish and version custom nodes](https://docs.comfy.org/registry/overview.md): Learn what the Comfy Registry is, why it's used for node versioning and security, and how to start publishing custom nodes to ComfyUI-Manager. - [Publish Custom Nodes to the Comfy Registry](https://docs.comfy.org/registry/publishing.md): Set up a Comfy Registry account, create a publisher, generate an API key, add node metadata, and publish custom nodes with Comfy CLI or GitHub Actions. - [Publish a Custom Node to ComfyUI Manager](https://docs.comfy.org/custom-nodes/backend/manager.md): Register a custom node with ComfyUI Manager by opening a pull request that adds it to custom-node-list.json, plus the git repository requirements. - [Claim a Custom Node on the Comfy Registry](https://docs.comfy.org/registry/claim-my-node.md): Claim ownership of unclaimed custom nodes migrated from ComfyUI Manager, with publisher setup and GitHub admin verification steps. - [Comfy Registry Node Quality and Security Standards](https://docs.comfy.org/registry/standards.md): Security and other standards for publishing to the Registry - [Custom Node CI/CD](https://docs.comfy.org/registry/cicd.md): Test ComfyUI custom nodes before publishing using Comfy-Action to run workflows on GitHub Actions and view results in the CI/CD Dashboard. - [pyproject.toml](https://docs.comfy.org/registry/specifications.md): Full spec for pyproject.toml in ComfyUI custom nodes: [project] and [tool.comfy] sections, required fields, versioning, and a complete example. - [API Overview](https://docs.comfy.org/registry/api-reference/overview.md): Explore the ComfyUI Custom Node Registry API: the publisher, user, node, and version data model plus endpoints for listing and installing nodes. ##### Registry API Reference - [Get information about the calling user.](https://docs.comfy.org/registry/api-reference/registry/get-information-about-the-calling-user.md) - [Retrieve all publishers for a given user](https://docs.comfy.org/registry/api-reference/registry/retrieve-all-publishers-for-a-given-user.md) - [Validate if a publisher username is available](https://docs.comfy.org/registry/api-reference/registry/validate-if-a-publisher-username-is-available.md): Checks if the publisher username is already taken. - [Create a new publisher](https://docs.comfy.org/registry/api-reference/registry/create-a-new-publisher.md) - [Retrieve all publishers](https://docs.comfy.org/registry/api-reference/registry/retrieve-all-publishers.md) - [Retrieve a publisher by ID](https://docs.comfy.org/registry/api-reference/registry/retrieve-a-publisher-by-id.md) - [Update a publisher](https://docs.comfy.org/registry/api-reference/registry/update-a-publisher.md) - [Delete a publisher](https://docs.comfy.org/registry/api-reference/registry/delete-a-publisher.md) - [Retrieve permissions the user has for a given publisher](https://docs.comfy.org/registry/api-reference/registry/retrieve-permissions-the-user-has-for-a-given-publisher.md) - [Create a new personal access token](https://docs.comfy.org/registry/api-reference/registry/create-a-new-personal-access-token.md) - [Delete a specific personal access token](https://docs.comfy.org/registry/api-reference/registry/delete-a-specific-personal-access-token.md) - [Retrieve all nodes](https://docs.comfy.org/registry/api-reference/registry/retrieve-all-nodes.md) - [Create a new custom node](https://docs.comfy.org/registry/api-reference/registry/create-a-new-custom-node.md) - [Update a specific node](https://docs.comfy.org/registry/api-reference/registry/update-a-specific-node.md) - [Delete a specific node](https://docs.comfy.org/registry/api-reference/registry/delete-a-specific-node.md) - [Claim nodeId into publisherId for the authenticated publisher](https://docs.comfy.org/registry/api-reference/registry/claim-nodeid-into-publisherid-for-the-authenticated-publisher.md): This endpoint allows a publisher to claim an unclaimed node that they own the repo, which is identified by the nodeId. The unclaimed node's repository must be owned by the authenticated user. - [Publish a new version of a node](https://docs.comfy.org/registry/api-reference/registry/publish-a-new-version-of-a-node.md) - [Update changelog and deprecation status of a node version](https://docs.comfy.org/registry/api-reference/registry/update-changelog-and-deprecation-status-of-a-node-version.md): Update only the changelog and deprecated status of a specific version of a node. - [Unpublish (delete) a specific version of a node](https://docs.comfy.org/registry/api-reference/registry/unpublish-delete-a-specific-version-of-a-node.md) - [Retrieves a list of nodes](https://docs.comfy.org/registry/api-reference/registry/retrieves-a-list-of-nodes.md): Returns a paginated list of nodes across all publishers. - [Retrieve a specific node by ID](https://docs.comfy.org/registry/api-reference/registry/retrieve-a-specific-node-by-id.md): Returns the details of a specific node. - [Returns a node version to be installed.](https://docs.comfy.org/registry/api-reference/registry/returns-a-node-version-to-be-installed.md): Retrieves the node data for installation, either the latest or a specific version. - [Add review to a specific version of a node](https://docs.comfy.org/registry/api-reference/registry/add-review-to-a-specific-version-of-a-node.md) - [Create Node Translations](https://docs.comfy.org/registry/api-reference/registry/create-node-translations.md) - [List all versions of a node](https://docs.comfy.org/registry/api-reference/registry/list-all-versions-of-a-node.md) - [Retrieve a specific version of a node](https://docs.comfy.org/registry/api-reference/registry/retrieve-a-specific-version-of-a-node.md) - [Retrieve multiple node versions in a single request](https://docs.comfy.org/registry/api-reference/registry/retrieve-multiple-node-versions-in-a-single-request.md): Retrieves up to 1000 node versions in one request. Requests carrying more than 1000 identifiers are rejected in full with a 400 — there is no partial result — so clients with more than 1000 installed packs must split the list into batches of at most 1000 and merge the responses. Each node_id and ver… - [List all node versions given some filters.](https://docs.comfy.org/registry/api-reference/registry/list-all-node-versions-given-some-filters.md) - [list all comfy-nodes](https://docs.comfy.org/registry/api-reference/registry/list-all-comfy-nodes.md) - [Retrieve a node by ComfyUI node name](https://docs.comfy.org/registry/api-reference/registry/retrieve-a-node-by-comfyui-node-name.md): Returns the node that contains a ComfyUI node with the specified name - [create comfy-nodes for certain node](https://docs.comfy.org/registry/api-reference/registry/create-comfy-nodes-for-certain-node.md) - [list comfy-nodes for node version](https://docs.comfy.org/registry/api-reference/registry/list-comfy-nodes-for-node-version.md) - [get specify comfy-node based on its id](https://docs.comfy.org/registry/api-reference/registry/get-specify-comfy-node-based-on-its-id.md) - [Update a specific comfy-node](https://docs.comfy.org/registry/api-reference/registry/update-a-specific-comfy-node.md) - [Get server feature flags](https://docs.comfy.org/registry/api-reference/registry/get-server-feature-flags.md): Returns the server's feature capabilities - [Get release notes](https://docs.comfy.org/registry/api-reference/releases/get-release-notes.md): Fetch release notes from Strapi with caching ## OpenAPI Specs - [openapi-v2](/openapi-v2.yaml) - [openapi-cloud](/openapi-cloud.yaml) - [openapi](https://api.comfy.org/openapi)