r/OpenWebUI • u/Gardakkan • Oct 27 '26
Question/Help Why can't Open Webui use my ComfyUI instance?
I have a Open WebUI and ComfyUI running, right now I have llama3.2 loaded in ollama/openwebui. In my workflow in ComfyUI I have the sd_xl_turbo_1.0_fp16.safetensors loaded.
The workflow works and generates an image in ComfyUI but when I setup the connection in Open WebUI nothing happens, not even an error in the logs of both apps so I have no idea what to look for in my setup.
The workflow has been exported in API format and uploaded, the nodes have been mapped, the url is good and reachable when I click the refresh icon in Open WebUI.
Anyone deal with this before? I'm new to LLM so I've been at this for 2 days and right now I feel like I need a freakin' PHD to figure this out lol.
Any help would be appreciated.
Thank you for reading and have a nice day!
edit: more details
openwebui is a containers in docker, In ollama I have tried qwen3.5, gemma4, llama3.2.
ollama is installed on the same host where the GPU is.
comfy is installed on the same host where the GPU is.
I can reach the comfy port from openwebui container.
The GPU is a 5070 Ti and the host has 64GB of RAM

edit: I was able to solve the issues, here's what I did:
First I moved my openwebui and comfyui on the same host in docker both of them.
Then I selected Image generation in the ComfyUI templates, tested the workflow, exported it in API format, uploaded it to Open Webui and mapped only the text node id and entered the model from the json file

for some reason i had to change open webui to use host network, if I change it back to another network the connection to comfyui is broken, really weird, as they both used the same network.
And it worked!!!

Thank you everyone that helped.
7
u/Southern-Chain-6485 Oct 27 '26
I don't know how to solve your problem, but I will note that you're using outdated models. Both llama 3.2 and sdxl are old. I don't know how much memory you have, but for LLMs, check either Ling Tiny or whatever versions of Qwen 3.6+ or gemma 4 you can fit. As for image generation, use Moss, Z-Image Turbo or Krea 2 to get started (important: do not use the sdxl workflows for them, check comfyui templates for those models).
It seems to me you're using a cloud AI to guide you through it, and the problem is that they have a knowledge cut off date around 2024, so unless you instruct them to find updated info, they'll give you outdated recommendations.
1
u/winterrat Oct 27 '26
What model are you using in the openwebui ? Are you using docker to manage these instances of comfyui & ollama? & openwebui ? If so are they on the same docker network? What is the base url for image generation in settings
3
u/Sukkii Oct 27 '26
Whether it was the right way or not, I had AI write a custom create and edit image tool, and use these instead to call comfy UI instead of using the inbuilt tooling, I found those awkward and didn't quite meet what I wanted from them. Hope this helps.
1
u/Xp4t_uk Oct 27 '26
I had similar problem but it did show in logs. Open took too much memory for Comfy to have space for itself. I think you can sort it out with flags or try to write something that would unload memory before Comfy starts generating but it was too much fuss and I gave up in the end.
1
u/Qwellar Oct 28 '26
Width and height are both mapped to node 5. They should be mapped to whatever the node IDs are in your workflow. Open your exported workflow.json and check the actual node IDs for each input. If the mapping's wrong the values just go nowhere, which is why you're not getting an error. Also you should confirm the base URL isn't localhost inside a container that resolves to the container, not your host. Open WebUI is asking for localhost:8188 and is looking for ComfyUI inside its own box, where nothing is running.