ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Local API access

Open c0dezer019 opened this issue 3 weeks ago • 1 comments

Feature Idea

First, I want to lay out the reason I am requesting this feature: I am building my own platform for generating AI Art , for both offline and online options. I am wanting it to be able to trigger workflows and stuff, detect LoRAs, checkpoints, custom nodes, etc. As I progress deeper into development, I learned that ComfyUI doesn't allow requests from outside origins (makes sense, I guess, shouldn't have surprised me lol). Anyways, I did the hacky thing and got it to allow my tool to make requests.

However, my suggestion is an official feature that would allow a user to set ComfyUI to allow requests from other origins, particularly ip:port and then to ensure that it comes from the intended software/tooling, an API key or some sort of ID match.

Existing Solutions

No response

Other

No response

c0dezer019 avatar Dec 07 '25 20:12 c0dezer019

Isn't this it? https://github.com/comfyanonymous/ComfyUI/blob/56fa7dbe380cb5591c5542f8aa51ce2fc26beedf/comfy/cli_args.py#L42

silveroxides avatar Dec 08 '25 02:12 silveroxides

I'm using the installer on Windows and it isn't clear anymore how to access the API, since the entrypoint is ComfyUI.exe

notdanilo avatar Dec 09 '25 12:12 notdanilo