Add comment in example script denoting how to use api keys without needing frontend#8082
Merged
comfyanonymous merged 1 commit intoComfy-Org:masterfrom May 13, 2025
Conversation
robinjhuang
approved these changes
May 13, 2025
christian-byrne
added a commit
to christian-byrne/ComfyUI
that referenced
this pull request
May 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #8041, you can use API keys via the webserver API directly, without needing any particular frontend (or a frontend at all).
This means you can create workflows that combine (a) local OS models, (b) tools from the custom node community, and (c) popular paid models and => run everything together via the local Comfy webserver API, letting it handle all the orchestration.
This can benefit users who use Comfy as a backend service, run Comfy via the command line, have their own frontend, and so on.
Here is an example I did: running a workflow that contains the
BFL Flux 1.1[pro] Ultra T2I(chosen randomly) in the terminal (viacomfy-cli)You can see that the workflow embedded in the output is API format but doesn't persist the API key.