Open WebUI image generation with ComfyUI

Connecting Open WebUI to a self-hosted ComfyUI or AUTOMATIC1111 server keeps prompts and generated images on your infrastructure. This page covers the method to confirm, the setup sequence, access controls and where it fails.

On this page

How Open WebUI image generation with ComfyUI keeps images on your servers

Open WebUI can be pointed at a self-hosted image engine, so the prompts and generated images for a chat-based image feature can stay on servers you run. The exact connection method, either ComfyUI workflow settings or the AUTOMATIC1111 API, must be confirmed against the current Open WebUI features documentation before configuration, because no connector details were supplied for this page. This section is for a team that wants image generation inside chat without sending prompts to a hosted image API. A user types a request in a conversation, Open WebUI passes it to the engine you operate, and the resulting image returns into the chat.

The difference from hosted OpenAI or Gemini image models lies in two places: where the data is processed and who runs the capacity. A hosted model processes prompts and outputs on the provider's infrastructure under the provider's terms, so your control is contractual and configurational, not physical. A self-hosted engine keeps processing inside your network, but you then own the GPU or other accelerator capacity, model checkpoints, custom nodes or extensions, patching, and the capacity planning that keeps waiting times acceptable when several people generate images at once. Neither option is automatically the better fit. The right choice depends on your data classification and on whether your team can support the engine.

Several decisions should be made before the connection is built. First, choose the engine and confirm that the checkpoints, workflows and extensions you plan to use are licensed for your intended use. Model licenses vary, so check each one individually. Second, decide who may generate images. Open WebUI supports role-based access control with groups and per-resource permissions, and you should confirm which of those controls apply to image generation in the version you deploy. Third, decide where generated images are stored, how long they are retained, and whether your backup scope includes them, since images written to chat storage are part of your data footprint.

The main risks sit in the surrounding infrastructure. The image engine should be reachable from Open WebUI on an internal network and not exposed to the public internet, and its own access controls should be reviewed separately from Open WebUI's. Long generation jobs can time out, and a single GPU can become a queue under concurrent use, so test failure behavior and set user expectations. Check whether prompts appear in Open WebUI or engine logs under your current logging settings, because those logs may themselves hold sensitive text. Ask any implementation partner to confirm the connection method, the hardware sizing assumptions, and a test plan covering access, retention and failure handling.

What you need before connecting ComfyUI to Open WebUI

Five items need to be in place before you point Open WebUI at an image server. The Open WebUI instance, the ComfyUI or AUTOMATIC1111 server, the network path between them, and an administrator account are technical prerequisites. The license terms decide whether you must keep Open WebUI branding at your user count. Check each item before scheduling the connection work.

Supported Open WebUI install

Run Open WebUI from one of the official install methods: Docker, Docker Compose, Kubernetes with Helm, or pip install followed by open-webui serve. Image generation depends on a release that includes the image engine, so confirm the minimum version in the Open WebUI release notes before you plan the upgrade. Record your current version now, because connection settings and admin screens may differ by release. Check that your instance is reachable and healthy before adding a second service.

ComfyUI or AUTOMATIC1111 server

Open WebUI needs a reachable image server, either ComfyUI or AUTOMATIC1111, running on hardware with enough GPU memory for the models you intend to use. Decide which engine your team will operate before building workflows, because each has its own model layout and API behavior. Model files, custom nodes and checkpoints must be present and versioned on that server. Ask the image server vendor for GPU, driver, memory and model requirements, since this page does not set them.

Network routing and certificates

Open WebUI must reach the image server URL over a route your firewalls and network policy allow, and the image server must accept connections from the Open WebUI host or pod. Plan the address, port and DNS name now, including any reverse proxy in front of ComfyUI or AUTOMATIC1111. If the connection uses HTTPS, confirm that the certificate chain is trusted by the Open WebUI container or host, because internal certificate authorities are a common cause of failed connections. Note which traffic crosses zones, and record it for your security review.

Administrator account for setup

Connecting an image engine changes settings that affect every user, so the person doing the work needs an Open WebUI administrator account. Confirm that the account is named, that its password or SSO login is managed under your policy, and that MFA is enabled where your identity setup supports it. Identify who will approve changes to the image server URL and model list after go-live. Keep the admin role for configuration work only so that changes leave a clear trail.

License terms and branding

Since v0.6.6, Open WebUI code is distributed under the Open WebUI License, which adds a branding protection clause. Deployments above 50 users in any rolling 30-day period must keep branding unless an enterprise license or written contributor permission applies. Track active users across every rolling 30-day period, because the threshold applies to any such period. Decide before rollout whether an enterprise license is needed. Earlier code through v0.6.5 remains BSD-3-Clause, so record the release you deploy.

Choosing between ComfyUI, AUTOMATIC1111 and a hosted image model

The choice is less about image quality than about who will own the workflows, the models and the data path after launch. ComfyUI represents a generation pipeline as a graph of nodes, so a team can save, version and tune a workflow that chains a checkpoint, LoRAs, control inputs and an upscaler. That suits organizations that need repeatable outputs, reviewed changes and an audit trail of which graph produced which image. AUTOMATIC1111 is simpler to run for standard text-to-image generation and common editing tasks, with a familiar set of settings and a shorter path to a working server. The trade-off is that complex, multi-step pipelines are harder to keep consistent and to review. Before you decide, confirm with each project how it is wired into Open WebUI in the release you plan to run, because the supported connection options and API surfaces change between versions.

A hosted image model from OpenAI or Google Gemini removes GPU procurement, driver management and model updates from your team. The provider runs the hardware and the model, and you pay per request under the provider's terms. The cost is data movement: prompts, reference images and generated outputs leave your environment and are processed by a third party. For some workloads that is acceptable under a reviewed contract and data classification. For others, including unreleased product designs, patient or customer imagery and anything governed by data residency rules, it is not. Ask each provider for its current data retention and training terms, the regions where processing occurs, and whether enterprise agreements change those answers.

Self-hosted options move cost into components you can plan for. Expect GPU hardware or cloud GPU hours, storage for model checkpoints, LoRAs and generated files, and the licensing of the model weights themselves, which differ by model and can restrict commercial use. Staff time is often the largest recurring item: someone must test new model versions, maintain node packages or extensions, reproduce workflows after upgrades and monitor queue depth. Hosted APIs swap most of that for per-request fees that grow with usage, so the break-even point depends on your expected volume and on how often you regenerate images. Ask for a quote that separates one-time setup from recurring operations and states which items assume your own hardware.

Use a short proof of concept to test the decision against your own prompts and files, not vendor demos. Pick three representative tasks, such as a product background change, a marketing variant and an edit to a supplied photo, and run them through a ComfyUI workflow, an AUTOMATIC1111 instance and a hosted model. Record who can change each pipeline, how long a reviewed change takes to deploy, where the output files are stored and what a failed generation looks like to the user. Confirm supported model formats such as safetensors, the licensing terms of each weight file you intend to use, and whether generated images carry any provenance metadata your policy requires.

Connecting Open WebUI to a ComfyUI server, step by step

This sequence connects Open WebUI to a self-hosted ComfyUI server through six steps, each confirmed before the next begins. It moves from network reachability to admin settings, the server address and workflow, and ends with one test generation from an admin account. Copy exact setting names from the current Open WebUI and ComfyUI documentation, not from this page.

  1. Confirm ComfyUI responds from the Open WebUI host

    Before changing anything in Open WebUI, check the network path. From the host or container that runs Open WebUI, send a request to the ComfyUI address and confirm it returns a success response. Use the status or health path listed in the current ComfyUI documentation, and run the request from the same container network Open WebUI uses. A request that succeeds from your laptop or from localhost on the ComfyUI machine proves very little. If the request fails, fix DNS, firewall rules or the bind address first. This step is done when the request succeeds from the Open WebUI side.

  2. Enable image generation in admin settings

    Sign in with an admin account and open the admin settings area where Open WebUI controls image generation. Turn on the image generation feature and select ComfyUI as the engine. Copy the exact menu labels and field names from the current Open WebUI documentation, since they can change between releases. Save the change and reload the page. This step is done when the ComfyUI fields appear and the setting is still enabled after the reload.

  3. Enter the server address and authentication

    Enter the address Open WebUI uses to reach ComfyUI. This must be the same address that passed the test in the first step. If the ComfyUI server sits behind a reverse proxy or requires credentials, add the authentication that the proxy or server expects, using the field names from current documentation. Store secrets in the environment or secret mechanism your deployment already uses, and keep them out of shared notes. Save, then run the connection test in the admin settings if one is offered. This step is done when the test reports success or the Open WebUI logs show a successful connection on save.

  4. Select or import the workflow or model

    ComfyUI runs a workflow graph, so Open WebUI needs one it can submit prompts to. Select a workflow that already exists on the server, or import a workflow file that you have exported and tested. Confirm that the checkpoint and model files it references are present in the ComfyUI model folders, and that any custom nodes it needs are installed. Missing nodes or model files are a frequent cause of later failures, so check them before saving. This step is done when the workflow loads in the admin settings without missing-file or missing-node errors and the expected model name appears in the list.

  5. Set a default and confirm it persists

    Choose the workflow or model that should handle image requests by default, then save. If several are configured, confirm that the default is the one you want users to receive, because a user who does not pick a model will get this one. Restart the Open WebUI service and check that the default is still selected. A setting that reverts after a restart often means a configuration file or environment variable is overriding the admin value. This step is done when the default survives the restart and shows as selected in a new chat.

  6. Run one test generation from an admin account

    Open a new chat with an admin account, make sure image generation is active for the message, and send a short, specific prompt. Wait for the job to finish without refreshing the page. Check the image in the chat, then check the ComfyUI queue or history view for the same job and review the Open WebUI logs for any errors. Keep the test chat and the prompt so you can rerun the same check after upgrades. This step is done when a generated image appears in the test chat and ComfyUI shows the job as completed.

Which settings, users and groups map to image generation

This table maps each Open WebUI setting or object involved in image generation to its counterpart on the ComfyUI or AUTOMATIC1111 server, the team that owns it, and what to check. Read each row as a handoff: Open WebUI decides who may request images, while the image server decides which workflow runs and where files land. Setting names change between releases, so confirm each one against the current Open WebUI features documentation before you write configuration.

Open WebUI setting or objectImage server counterpartOwnerCheck
Image engine endpointNetwork address of the ComfyUI or AUTOMATIC1111 server, reachable from every Open WebUI instancePlatform engineeringConfirm the setting name and that the address resolves from each replica
Workflow or model selectionSaved workflow or checkpoint the image server exposes for generation and editingAI platform teamRun each workflow end to end and record the model files it depends on
Admin-controlled enablementAdministrator switch that decides whether image options appear in chatsOpen WebUI administratorConfirm a non-administrator account cannot change the switch
User groups allowed to generate imagesGroup membership or per-resource permission applied to the image featureIdentity and access teamMap groups from SSO or SCIM and test with one account per group
Storage location of generated filesOutput folder on the image server plus any copy Open WebUI keeps for returned imagesInfrastructure teamConfirm where files land, who can read them and that backups include them

How role-based access controls who generates images in Open WebUI

Who can generate images in Open WebUI is decided by its role-based access control, not by whether the ComfyUI or AUTOMATIC1111 server is reachable. Open WebUI uses groups and per-resource permissions, so you can limit image generation to a named set of users, and keep it away from everyone else, by granting the image feature and the connected image engine only to the groups that need them. Before you configure anything, decide which teams (for example, design, marketing or a pilot group) should have image generation, and which should not. Write that list down, because it becomes the baseline you test against later in this section.

Group membership should follow the people in your identity provider rather than being maintained by hand inside Open WebUI. Open WebUI documents single sign-on through OIDC and LDAP, and SCIM 2.0 user and group provisioning. With SSO and SCIM in place, a person who joins a team gains the image permission on their next sign-in, and a person who leaves loses it when the directory changes are provisioned. Confirm with your identity team how quickly removals propagate and whether deprovisioning disables existing sessions. Open WebUI's documentation on token lifetime and session revocation should be checked against your own configuration, since revocation behavior depends on how the deployment is set up.

An image-generation permission is only as strong as the login behind it. API keys and authenticator-app MFA apply to the same user accounts that hold the image permission, so a user with an API key, or an account with a weak password and no second factor, can reach the same feature that the role model restricts. Review which users are allowed to create API keys, and decide whether MFA is enforced for everyone or only for the groups with image access. If your organization uses SSO, confirm that the identity provider enforces MFA, because local passwords may still work for some accounts unless you turn them off.

Test access with a standard user account, not only an admin. Administrators typically see every model, tool and image engine, so an admin test confirms very little about what a restricted user can do. Sign in as a user from each relevant group, and as a user from a group that should be excluded, then check whether the image option appears in chat, whether the image engine appears as an option, and whether a generation request actually succeeds. Also try a direct request to the image endpoint with that user's credentials, because a hidden button does not prove the backend enforces the same rule. Record the result for each test account.

Finally, record which groups are allowed to use the image engine, and who approved each one. Keep this record in the same place as your Open WebUI configuration notes, and update it whenever a group is added, renamed or retired in the identity provider. Also record the date of the last access test and the account used. Auditors and internal reviewers will ask how image generation is limited, and a current group list with test evidence answers that question faster than a description of the intended design. Your partner or internal team should confirm the exact permission names and screens against the Open WebUI version you deploy, since these change between releases.

Security controls for a self-hosted image server

An Open WebUI image integration connects a chat interface to a server that holds prompts, generated images, credentials and third-party code. The cards below cover the network, access, secrets, transport, logging, data handling and supply chain controls that should be decided before the connection goes live.

Private network segment for the image server

Place the ComfyUI or AUTOMATIC1111 server on a network segment that only Open WebUI can reach, and block direct access from user workstations and other application tiers. Image servers often expose web interfaces and APIs with little built-in authentication, so the network boundary is a primary control. Confirm the firewall rules and test them from a machine that should not have access.

Restricted changes to engine address and workflow

Decide who may change the image server address in Open WebUI and who may load or edit ComfyUI workflows. A changed address can redirect every prompt to a server you do not control, and a modified workflow can alter what the model runs. Limit these settings to administrators, and record who changed them and when.

Credentials held in the secrets mechanism

Store any API key, token or basic-auth credential that Open WebUI uses to call the image server in the platform's secrets mechanism or your secrets manager, not in chat messages, shared notes or configuration files committed to version control. Rotate these credentials on a set schedule and after staff changes. Confirm how your chosen deployment method injects them at runtime.

TLS between services

Encrypt traffic between Open WebUI and the image server, even on a private segment, so prompts, workflow payloads and returned images are not sent in clear text. Decide where certificates are issued, who renews them and how the internal certificate authority is trusted by the Open WebUI container. Test certificate expiry handling before go-live.

Audit logging of generation requests

Log each image generation request with the user identity, timestamp, workflow or model identifier and the result status. Logs show who generated what and when, which supports investigations and access reviews. Decide what prompt text is logged, since full prompts can contain personal or confidential data, and confirm where logs are stored and how long they are kept. This is a logging design for your own review, not an audit certification.

Retention and access rules for generated images

Generated images and uploaded source images can contain personal or confidential information taken from prompts. Define how long images are kept on the image server and in Open WebUI, who can view them, and how deletion works across both systems and any backups. Check whether users can share or download images beyond their own chats, and set rules that match your data classification.

Review of model weights and custom nodes

Model weights, custom nodes and extensions on the image server are third-party code and files that run with the server's permissions. Keep an inventory of each item with its source and version, review it before installation, and set a regular update process with a test environment. Restrict who can install new nodes, since a single unreviewed extension can expose the server or the data it processes.

Scaling image generation across Open WebUI replicas

Running more than one Open WebUI instance for image generation requires PostgreSQL in place of SQLite. The scaling guide requires PostgreSQL for multi-instance deployments because SQLite does not handle concurrent writes from multiple processes well. Each generation request writes its prompt, settings, model selection and result metadata to the database, so replicas that share the same write path will compete for a single SQLite file. Decide on PostgreSQL before the second replica is started, and keep the database connection settings identical across every instance. Then run a test with two replicas and confirm that generation requests complete and that the history appears correctly from both.

Redis is the second shared dependency. The scaling guide requires Redis as a shared state store for sessions, websocket connections and application state when several replicas run. Image generation depends on this more than a plain chat does, because the browser waits on a live connection while ComfyUI or AUTOMATIC1111 produces the result, and the session that started the request must remain valid on any replica that receives the follow-up. Confirm that your load balancer passes websocket upgrades through correctly. Also note that without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. On shared workstations, that means a generated-image session can remain usable after the user has signed out.

Generated images and reference uploads must sit on storage that every replica can read. Users attach reference images for editing and receive results that are saved by the application, so a file written to one replica's local disk will not display when another replica serves the chat. Confirm where generated images are stored in the release you are deploying, whether Open WebUI copies results from the image backend into its own storage, and whether every replica can read that location. Check this with a generation request on one replica and a page reload served by another. Also confirm that the ComfyUI or AUTOMATIC1111 output directory is not the only copy, because that server is outside the Open WebUI replica set.

The database and vector store choices carry their own limits. SQLite remains acceptable for a single replica, evaluation or a small team, but only when the database file sits on locally attached SSD or NVMe storage, and network-mounted storage does not meet that condition. The scaling guide also warns that the default ChromaDB will crash in multi-process setups, so an external vector database is required once several workers or replicas run. Image generation does not itself query the vector store, but the instance still loads it for knowledge features, so the replacement must be planned at the same time. Choose one of the supported external options, such as PGVector or Qdrant, and test it under the same worker count you intend to run in production.

Common failures when ComfyUI does not respond inside chat

This table lists the failures that most often stop image requests from reaching ComfyUI from inside chat, with the likely cause and a general fix for each. Start from the symptom a user reports, then check the cause against the Open WebUI logs and the image server logs. Confirm log locations, error wording and setting names against the Open WebUI release you run before changing anything.

SymptomLikely causeFix
Image generation fails or times out with a connection errorThe ComfyUI address is wrong, or a firewall or network policy blocks the Open WebUI container or pod.Test the address from inside the Open WebUI container or pod, then review network policies and firewall rules. Confirm the port and service name in your deployment.
Connection fails with a TLS or certificate error in the logsThe image server uses a certificate from an internal authority that Open WebUI does not trust.Add the internal certificate authority to the trust store used by the Open WebUI runtime, or correct the certificate chain on the image server.
Generation returns an error about a missing workflow or modelThe workflow references a checkpoint, LoRA or custom node that is not installed on the image server.Install the missing model files and custom nodes on ComfyUI, run the workflow directly on the server, then retry from chat.
Generations fail with out-of-memory errors or run very slowlyThe GPU lacks free memory for the requested resolution, batch size or model, or other jobs share the card.Reduce resolution, batch size or model size, limit concurrent jobs, or move the image server to a GPU with more memory.
Image generation is missing for a user or returns an access errorThe user is not in a group that has been granted permission to use the image configuration.Add the user to the permitted group, then have the user sign out and sign back in to refresh their access.
Images appear on one replica but fail to load on anotherGenerated files are written to local disk on one replica, and other replicas cannot read that storage.Use shared file storage that every replica can reach, as the scaling guide requires for multi-replica deployments.
Sessions stay active after sign-outWithout Redis, sign-out does not revoke tokens, which stay valid until they expire, by default after 4 weeks.Deploy Redis as the shared state store for multi-replica use, then set token lifetimes that match your access policy.

Questions teams ask before connecting ComfyUI to Open WebUI

What drives the cost of connecting ComfyUI to Open WebUI?

The agreed scope drives the cost, and five factors move it most: the GPU capacity available for image jobs, the number of ComfyUI workflows to expose, identity and scaling requirements, the depth of testing, and whether your team already runs Open WebUI. A single-user evaluation against one workflow involves far less work than a shared deployment with groups, SSO, several replicas and approved workflows for each department. The build is a one-time cost. GPU hosting, storage and any retained support recur. DeployOpen works from fixed scopes agreed in writing, so ask any partner to itemize the build, testing, handover and ongoing support separately.

How long does an Open WebUI image generation integration take?

The duration depends on scope, and it has no fixed timeline that applies to every team. It moves with the number of workflows, how many models need approval, how quickly GPU access and network changes are granted, whether identity and replicas are included, and how much acceptance testing your test group completes. Teams that already have a GPU host, model files and a working Open WebUI instance shorten the early stages. In regulated environments, approval and change windows often set the pace. Ask for a schedule that lists each dependency and the client decision each milestone needs, and check it against your change calendar before work starts.

What do we need to provide before an outside team starts?

Five things are needed early: access to GPU capacity on a host you control, approval of the models and workflows that may run, network changes that let Open WebUI reach ComfyUI and let users reach Open WebUI, a named administrator who can make decisions and accept changes, and a test group that will try image generation before rollout. Without the administrator, approvals stall. Without the test group, acceptance becomes guesswork. Start these requests before the scope is signed, because they usually set the pace. Confirm early whether your GPU host sits in a network segment that allows the required traffic, and whether your legal or compliance team has reviewed the license of each model checkpoint.

Can our internal team connect ComfyUI to Open WebUI alone?

Yes, for a single-user evaluation on one machine, a capable engineer can usually connect the two and test a workflow without outside help. Effort grows once groups, SSO, role-based access, several replicas and multiple workflows are involved. Open WebUI's scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, Redis as shared state for replicas, shared file storage, and an external vector database, because the default ChromaDB will crash in multi-process setups. Decide whether your team can also patch the stack, maintain the workflows and handle upgrades for the life of the service before you commit to building it in-house.

What should a quote for ComfyUI image generation include?

A quote should itemize each piece of work so you can compare it with an internal plan. Ask for discovery and a written scope, architecture for GPU hosting and network paths, the Open WebUI deployment or review, the ComfyUI connection, setup for each approved workflow, identity and group configuration if that is in scope, the testing depth and test cases, documentation, handover and training, and any ongoing support or upgrade retainer. Also ask which items you supply, which are excluded, what happens if a workflow changes, and which licenses are included. Separate one-time build costs from recurring costs, and ask for the assumptions behind each line.

Does the Open WebUI branding rule apply to our deployment?

It applies if your deployment exceeds 50 users in any rolling 30-day period and you want to alter or remove Open WebUI branding without an enterprise license or written contributor permission. The Open WebUI License adds this branding protection clause to releases from v0.6.6, published April 19, 2025. Code through v0.6.5 remains under BSD-3-Clause. Count users across the whole deployment, including a test group that uses the same instance, and confirm which release you plan to install. Keeping the branding intact avoids the question entirely. Have your legal team read the license text directly before you rely on this summary.

How is Open WebUI enterprise license pricing set?

Open WebUI does not publish enterprise license pricing. You contact Open WebUI enterprise sales with an expected seat count, and they quote from that figure. Enterprise licenses allow white-labeling and custom branding and come with dedicated support options. Confirm what each option includes, including support levels and the terms that apply if your user count grows. Base your seat count on the users who will sign in during a rolling 30-day period. DeployOpen can help you decide whether a branding need justifies a license, but license terms and pricing come from Open WebUI, and DeployOpen is not a reseller of those licenses.

How DeployOpen scopes, delivers and supports this integration

DeployOpen plans the ComfyUI or AUTOMATIC1111 connection as part of your wider Open WebUI deployment, with identity, access, storage and hosting decided first. We then build and document it in infrastructure you control, and engagements are fixed-scope with the written scope agreed before any work starts.

How we scope

  • Confirm which image backend you run, ComfyUI or AUTOMATIC1111, and where it is hosted.
  • Map which user groups may generate or edit images and how those roles map to Open WebUI permissions.
  • Set the written scope with deliverables, environments, test cases and handover items before work begins.

How we build

  • Deploy the Open WebUI side with the install method your team already runs, such as Docker Compose or Helm.
  • Connect the image backend, set workflow or model settings, and test generation and editing inside chat.
  • Where several replicas run, add PostgreSQL, Redis, shared file storage and an external vector database.

How we hand over

  • Document the connection, image backend settings, access rules and the license terms that apply to your deployment.
  • Provide runbooks for changing workflows, rotating credentials and restoring image settings after an upgrade.
  • Walk your operators through checks they run after upgrades, including the Open WebUI release notes and license changes.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer if your team wants them after handover.
  • Plan upgrade tests that repeat image generation and editing checks before each Open WebUI release goes live.
  • Confirm with the image backend vendor or project which versions and workflows your environment supports before you upgrade.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.