How to generate a Comfy API key
Last updated: June 12, 2026
This article explains how to create and manage your Comfy API key.
Q. How do I generate a Comfy API key?
To create a Comfy API key:
Sign in (or create an account) at platform.comfy.org
Open Profile → API Keys
Create a new key and give it a name
Copy and store the key securely
Please note:
API keys are only shown once when created
Lost keys cannot be retrieved later
If needed, create a new key and delete the old one
Q. Where can I use my Comfy API key?
The same Comfy API key can be used across supported Comfy services.
Examples include:
Cloud API
Partner Nodes
Headless usage and custom integrations
Cloud MCP
Q. How do I use my API key?
Usage depends on where you're connecting:
ComfyUI app / Partner Nodes → Add the key in Settings
Cloud API → Pass the key using the
X-API-KeyheaderHeadless / custom frontend → Pass the key under
extra_data.api_key_comfy_org
For implementation details:
👉 See Comfy Docs - ComfyUI Account API Key Integration
Q. How do I manage my API keys?
You can create multiple API keys for different apps.
To manage keys:
Open platform.comfy.org
Go to Profile → API Keys
From there you can:
Create new keys
View existing keys
Delete keys
If a key is exposed or compromised, delete it and generate a new one.
Q. What's the difference between Comfy API keys and Registry API keys?
These are different keys and are used for different purposes.
Comfy API key → Used for Cloud, APIs, Partner Nodes, and related integrations
Registry publishing API key → Used only for publishing custom nodes
Please make sure you're using the correct key.
For Registry publishing:
👉 See Comfy Docs - Registry Publishing
Q. Do I need an API key if I use ComfyUI normally?
No. Standard account login handles normal usage in ComfyUI.
You mainly need an API key for:
LAN or non-whitelisted environments
Headless usage
Cloud API
Cloud MCP
Q. I lost my API key. Can I recover it?
No. API keys are shown only once.
If you no longer have access to the key:
Delete the old key
Generate a new one
Q. Where can I learn more?
Getting an API key → https://docs.comfy.org/development/api-development/getting-an-api-key
API key integration: https://docs.comfy.org/development/comfyui-server/api-key-integration
Publishing custom nodes (different key) → https://docs.comfy.org/registry/publishing