Skip to content

Add support for Comfy API keys#8041

Merged
comfyanonymous merged 3 commits intoComfy-Org:masterfrom
christian-byrne:comfy-api-key
May 11, 2025
Merged

Add support for Comfy API keys#8041
comfyanonymous merged 3 commits intoComfy-Org:masterfrom
christian-byrne:comfy-api-key

Conversation

@christian-byrne
Copy link
Contributor

Adds improvements, fixes, and localizations for API nodes, including the ability to use API nodes with a Comfy API key.

Allowing API key based authorization will allow a wider range of users to use API nodes, including:

  • Users running ComfyUI headlessly or with an alternative frontend
  • Users running ComfyUI with --listen or over LAN
  • Users using ComfyUI through a cloud deployment service
  • Websites embedding ComfyUI within their app
  • Apps/services using ComfyUI as a serivce/API or engine
  • Users running ComfyUI in a container or in the cloud

Changes:


How to use API key: https://docs.comfy.org/interface/user#logging-in-with-an-api-key

huchenlei
huchenlei previously approved these changes May 10, 2025
@robinjhuang
Copy link
Member

Tested locally on this branch:

  • Started server after reinstalling dependencies
  • Clicked login + login via api key
  • Created an api key on platform.comfy.org
  • Added API key into ComfyUI and hit save
  • Ran kling i2v + flux pro nodes successfully
  • Credits and login information was exactly the same as if I logged in via Google

@robinjhuang robinjhuang added the Run-CI-Test This is an administrative label to tell the CI to run full automatic testing on this PR now. label May 11, 2025
@github-actions
Copy link
Contributor

(Automated Bot Message) CI Tests are running, you can view the results at https://ci.comfy.org/?branch=8041%2Fmerge

@christian-byrne
Copy link
Contributor Author

Tested:

  • Env conditions:
    • ✅ Using on separate device over LAN using --listen
    • ✅Used when limiting network connections 3000 ms delay with tc
  • Video nodes
    • ✅ Kling camera control i2v, kling i2v
    • ✅ MiniMax t2v
    • ✅Pika t2v
  • Image nodes
    • ✅openai i2i
    • ✅bfl t2i
    • ✅ ideogram i2i
    • ✅ luma i2i
    • ✅recraft i2i
    • ✅ stability t2i
  • Auth
    • ✅ logging in and out with existing google acc
    • ✅ logging in and out with exiting GitHub acc
    • ✅ made through google and github
    • ✅ log in state is persisted on refresh
    • ✅can log out to clear api key from browser

@comfyanonymous comfyanonymous merged commit 3535909 into Comfy-Org:master May 11, 2025
20 of 21 checks passed
@christian-byrne christian-byrne deleted the comfy-api-key branch May 13, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Run-CI-Test This is an administrative label to tell the CI to run full automatic testing on this PR now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants