Skip to main content

API Keys

All Developer API requests require authentication via API key. These are the same API keys used for Partner Nodes and other Comfy platform features.

Getting Your API Key

API keys are managed at platform.comfy.org:
1

Visit platform.comfy.org and Log In

Go to platform.comfy.org/login and sign in with your Comfy account (Email, Google, or GitHub).Visit Platform Login Page
2

Create an API Key

Click + New in the API Keys section.Create API Key
3

Name Your Key

Enter a descriptive name (e.g., “Production Backend”, “Local Dev”) and click Generate.Enter API Key Name
4

Save Your Key

Copy and save your API key immediately.Obtain API Key
The API key is only shown once at creation. Store it securely - you cannot view it again later.

Managing API Keys

You can view and delete your API keys at platform.comfy.org: API Key Management Delete any unused keys or keys that may have been compromised.

Using Your API Key

Include the API key in the Authorization header:
With the Python SDK:

Environment Variables

We recommend storing your API key in environment variables:
Never commit API keys to version control. Use environment variables or a secrets manager.

Environments

Rate Limits

The API has rate limits to ensure fair usage: When rate limited, you’ll receive a 429 Too Many Requests response. Implement exponential backoff in your retry logic.

Error Responses

Authentication errors return 401 Unauthorized:
Common causes:
  • Missing Authorization header
  • Malformed header (should be Bearer <key>)
  • Revoked or deleted API key
  • Using wrong environment’s key

Account Login

Full account management and login options

Partner Nodes

Using API keys with Partner Nodes