Open WebUI image generation with ComfyUI

Open WebUI can send chat image requests to a ComfyUI or AUTOMATIC1111 server you run, which keeps prompts and generated images on your infrastructure. This page explains the setup, the identity and storage decisions, and when a hosted image model fits better.

On this page

Open WebUI image generation with ComfyUI: what the integration does

A team wants users to generate and edit images inside Open WebUI chats without sending their prompts and source images to a hosted image service. The integration covered here answers that need by routing image requests from Open WebUI to a ComfyUI or AUTOMATIC1111 server that your organization operates. Open WebUI remains the interface users see, while the image work runs on hardware you control, in your own network or data center. The exact settings for choosing the image engine, entering the server address, and selecting workflows or models are documented in the current Open WebUI image generation docs, and the supplied research does not cover that feature in detail, so confirm the setting names and supported options there against the version you plan to run before you design around them.

The integration matters most for prompts, reference images and generated outputs that your data classification treats as sensitive, such as product designs, patient-facing material or unreleased marketing assets. Sending those requests to a hosted image model is a data-sharing decision that your privacy and security teams will want to review on its own terms. Keeping generation on an internal server moves that review to questions you already know how to answer: which network segment the image server sits in, who can reach it, what it logs, and where generated files are stored. Confirm with your vendor and your own environment whether the image server stores prompts or outputs by default and how long they persist.

This page covers what the integration does, the server-side choices that determine capacity and cost, the Open WebUI settings that connect the two systems, the access and data handling controls to plan, and how to verify the setup and operate it afterward. Compare the self-hosted path with hosted OpenAI or Gemini image models wherever the choice changes the outcome. Treat the image server as a separate system with its own sizing, patching and access review, not as a feature that comes free with the chat deployment. Plan a test with real prompts from your user groups before opening the feature to everyone.

What you need before connecting ComfyUI or AUTOMATIC1111

Connecting Open WebUI to an image server touches four areas: the Open WebUI deployment, the image host, the network path between them, and the people who can change settings. Confirm each component's supported versions with its vendor documentation and your own test environment before you assume a combination works.

A working Open WebUI deployment

Start with a deployment you already run, not a first install. Record the exact Open WebUI version, since image settings and their location in the admin panel can change between releases. The project's release history shows how frequently versions are published, so note the version you test against and repeat the test after each upgrade. Confirm the install method (Docker, Compose, Kubernetes or pip) and check that the chat, model and user flows already work before adding image generation.

Latest release cited
v0.12.3
Open WebUI releases

A reachable image server host

ComfyUI or AUTOMATIC1111 runs as its own service on a host with a GPU, sized for the models you plan to load. Check GPU memory and disk for model checkpoints, LoRAs and generated outputs before you choose the host. Confirm which ComfyUI or AUTOMATIC1111 release your workflows and extensions support, because custom nodes and extensions often lag behind core releases. Write down which checkpoints are installed and who approved their licenses.

Network routes between the two services

Open WebUI must reach the image server's HTTP API over a route you control. Decide whether traffic stays on a private subnet or crosses a reverse proxy, and open only the port the API uses. Confirm that the API is not exposed to the internet, because image servers often run without authentication by default. Test the route from the Open WebUI container or pod, not from your workstation, since name resolution and firewall rules differ inside the container network.

Certificates and trust for internal endpoints

If the image server uses HTTPS with an internal certificate authority, Open WebUI's runtime must trust that CA or the connection fails with certificate errors. Plan the CA bundle path for the container image or host, and renew it on the same schedule as other internal certificates. Confirm how your Open WebUI install method loads extra CA certificates, since the mechanism differs between Docker, Kubernetes and pip installs. Do not disable certificate verification to get a test working.

Admin access to image settings

Image generation is configured in the admin settings, and changing the endpoint, model and workflow affects every user. Name the people who hold admin rights and confirm that only they can change image connection settings. Review how your deployment assigns admin roles before the rollout, because a user with broad permissions can point Open WebUI at a different server. Keep a record of the settings you change so you can roll back a broken connection quickly.

Choosing ComfyUI, AUTOMATIC1111 or a hosted image model

A self-hosted ComfyUI server keeps the compute, model files and workflow graphs inside infrastructure you operate. Each generation runs on the GPU host you manage, so prompts and images stay within the network boundary you define. Because workflows are graphs of connected nodes, teams can build multi-step editing pipelines and store them as files that can be reviewed and versioned. The trade-off is operating effort: your team owns GPU drivers, node installs, model downloads and the check that each workflow still works with the models it calls.

  • Who operates the compute: Your platform or ML team runs the GPU host, its drivers, model storage and access controls. Confirm who carries on-call duty for that host.
  • Where prompts and images go: Processing stays on the host you choose. Review custom nodes for outbound network calls, since a node can send data to external services.
  • Workflow flexibility: Exported node graphs suit controlled editing pipelines. Confirm that the workflows your users need are supported by the models and nodes you install.
  • Typical operating effort: Plan recurring work on node packages, model files and workflow testing after each update, with a documented change process.
  • Capacity planning: Size GPU capacity for peak concurrent use, not average use, and confirm how queued requests behave under load.

Before choosing, confirm which workflows your users need, who maintains the node set and whether your GPU capacity covers peak demand.

How to connect Open WebUI to a self-hosted image server

This sequence connects Open WebUI to a ComfyUI or AUTOMATIC1111 server you run, so users can generate and edit images inside chat while the image server and its traffic stay under your control. It ends with a pilot group that has passed generate and edit tests.

  1. Confirm the image server works on its own

    Before touching Open WebUI, the platform team starts ComfyUI or AUTOMATIC1111 on the GPU host and generates a test image directly from the server's own interface or API. Record the server version, the model checkpoints installed, and the workflow or preset that produced the image. Done means a saved test image exists and the same request succeeds a second time, so any later failure can be traced to the connection rather than the image server.

  2. Restrict network access to the image server

    The infrastructure team limits which hosts can reach the image server's port, allowing only the Open WebUI backend and the administrators who maintain it. Confirm the server's bind address and any authentication option it offers, and check that it does not listen on a public interface. Done means a request from a host outside the allowed list fails, and a request from the Open WebUI host succeeds.

  3. Enter the endpoint and credentials in admin settings

    An Open WebUI administrator opens the admin settings area for image generation and enters the image server's internal address and any credential the server requires. Confirm the exact setting names and accepted URL format in the current Open WebUI documentation for your version, and store any secret in your secrets mechanism rather than in a shared note. Done means the settings save without error and the admin page reports the server as reachable.

  4. Select the models and workflows to expose

    The administrator chooses which checkpoints, and for ComfyUI which saved workflows, Open WebUI may offer to users, and removes anything experimental or unlicensed for company use. Confirm that each workflow supports the generate and edit operations you plan to offer, since not every workflow handles image input. Done means the list shown in Open WebUI matches the approved list, and each entry produces an image when tested from the admin page.

  5. Enable the feature for a pilot group

    Using Open WebUI's group and permission controls, the administrator turns on image generation only for a named pilot group of users, not for all accounts. Confirm that the permission applies to the group as intended by signing in as a pilot user and as a user outside the group. Done means the pilot user sees the image option and the other user does not.

  6. Test generate and edit requests from chat

    A pilot user runs a fixed set of prompts that covers a plain generation, an edit of an uploaded image, and a request that should be refused by your content policy. The team compares each result with the test image from the first step and checks the image server's logs for matching requests. Done means generate and edit both return images, the refused request is handled according to your policy, and every request appears in the server logs.

  7. Record the configuration and approve wider use

    The platform team records the endpoint, the approved models and workflows, the pilot group, and the test results in the deployment runbook, then decides whether to widen access. Confirm with the image server's maintainers how upgrades and model changes will be tested before they reach users. Done means the runbook has a dated entry, an owner is named for the image server, and the expansion decision is written down.

How an image request moves from chat to your GPU host

The request starts in the user's browser and goes to Open WebUI, which keeps chat state in its database and shares session state through Redis across replicas. Open WebUI then calls the image backend, ComfyUI or AUTOMATIC1111, on a GPU host inside your network, and the generated image is written to shared storage that every replica can reach. Check that the storage path is shared, that the GPU host sits inside the trust boundary, and that any hosted image model is the only path that crosses it.

Image requests flow through Open WebUI to a GPU backend, with the outbound path only for hosted models.

Why multiple replicas change where generated images live

Once Open WebUI runs as more than one replica, the location of generated images stops being a detail of the single container and becomes a storage design decision. The scaling guide requires Redis as a shared state store for sessions, websocket connections and application state, and it requires shared file storage so that uploads and knowledge stay reachable from every replica. Generated images are files the application writes and later serves back into a chat, so the team should assume they need the same shared path unless testing shows otherwise. Before go-live, confirm in a staging deployment with two replicas that an image created on one replica displays correctly when the user's next request lands on the other replica.

Retention is the second question, and it is easy to leave unanswered. Ask whether generated images are stored with the chat history they belong to, whether deleting a chat also removes its images, and whether users can delete images on their own. Confirm how the shared storage is backed up and whether a restore of the database and the file store can be made consistent with each other. An image that exists in storage but has lost its chat record, or the reverse, is a common result of restoring only one of the two. Also confirm where any intermediate files from the image backend are written and whether they are cleaned up, since those files can accumulate outside the paths the application manages.

The image backend needs its own capacity plan, separate from Open WebUI. A ComfyUI or AUTOMATIC1111 server runs generation on its own GPU or CPU resources, and several replicas can send it requests at the same time, so the number of concurrent jobs the backend can hold, its queueing behavior and its response time under load all need to be measured on the hardware you plan to use. Ask the backend's maintainers or your own test team for these measurements instead of assuming the web tier will absorb demand. Size the backend for the concurrency your users will generate, and make sure a stalled backend produces a clear error in chat rather than a request that hangs.

Which settings and permissions map between the two systems

This table pairs the settings and permissions an operator configures in Open WebUI with the matching items on a ComfyUI or AUTOMATIC1111 server. Read each row left to right: the first two columns show where each side holds the item, and the last column lists what to check in the current documentation or a test environment before you commit to a design.

Setting or permissionOpen WebUI sideImage server sideConfirm before build
Endpoint addressAdmin image settings hold the base URL of the image serverServer listens on a host and port reachable from the Open WebUI container or hostExact setting name, and whether the URL needs a path suffix for your server
Server authenticationAdmin stores any key or token the image server requiresServer enforces its own access control if it is reachable beyond the local networkWhether your server supports a key, and where Open WebUI keeps it
Model or checkpoint selectionAdmin chooses which image models users can see in chatCheckpoint files sit in server model directories and must be loaded or listedModel names match what the server reports, and files exist on the server
Workflow definitionsWorkflow or generation settings reference a workflow the admin providesWorkflow graph is stored on the server and must match the expected node structureWorkflow format Open WebUI expects and whether node IDs must match the export
Generated image storageOpen WebUI saves returned images in its own file storageServer writes images to its output directory before they are returnedHow files move back to Open WebUI, and that both storage paths are backed up
Editing source imagesUsers upload source images in chat for editing requestsServer needs an input path or upload handling for source imagesYour chosen server and workflow support editing, and the input path is set
User group permissionsGroups decide which users can generate or edit images in chatServer usually sees only the connecting service account, not the individual userWhich roles get image access, and whether per-user limits are possible on the server

Security controls for a self-hosted image backend

A self-hosted ComfyUI or AUTOMATIC1111 server adds a second system that handles user prompts, source images and generated files. The controls below cover who can use it, how it is reached, what is logged, how data is kept, how workflows are reviewed and how the server is patched, each tied to the privacy and governance review your organization runs.

Restrict image access by group

Open WebUI's role-based access control with groups and per-resource permissions decides who can reach image generation and editing at all. Limit the image feature to named groups, such as a design or marketing group, and keep it off the default user group. Review the group membership list as part of the access review, because a broad default group quietly gives every new employee the ability to generate images on your hardware and spend your GPU time. Confirm in your own instance which permission controls the image feature before you rely on it.

Open WebUI features

Limit the image server to Open WebUI

The ComfyUI or AUTOMATIC1111 HTTP interface was built for trusted local use, so it should accept connections only from the Open WebUI host or its private subnet. Place it on an internal network with no public route, block inbound traffic from user networks and enforce the restriction at the firewall or security group. Check the restriction from a user workstation and from outside the network, not only from the configuration file, because the image server is an easy place for an exposed port to be missed during a later change.

Log who generated what

Record the Open WebUI user, the model or workflow used, the time and the prompt for each image request in your audit logging, and keep the image server's own access logs. The two logs together show which user produced an output and on which backend, which the privacy review needs for data subject requests and incident scoping. Decide with the privacy team whether prompts are logged in full, since prompts may contain personal data, and document the retention period for those logs.

Protect source images and outputs

Uploaded source images for editing and generated outputs can contain personal data, confidential designs or faces. Decide where the image server writes its input and output directories, which accounts can read them and how long files remain before deletion. Make sure Open WebUI's own file storage and the image server's output folders follow the same retention rule, so a deleted chat does not leave images behind on the GPU host. Ask the team to test that a deleted file is removed from both locations.

Review custom workflows and nodes as code

ComfyUI workflows are JSON graphs, and custom nodes are Python packages that run with the server's permissions. Treat each new custom node, model checkpoint and workflow file as a code change that needs an owner, a source review and a recorded approval before it reaches users. Pin node versions, keep approved workflows in version control and block installation of nodes from the web interface on production servers. Ask the vendor or community maintainer about the license and update history of every node you adopt.

Patch the image server like any service

ComfyUI, AUTOMATIC1111, their Python dependencies and CUDA drivers all receive updates, and each one is part of the attack surface that a security scan will report. Schedule updates for the image server, rebuild it from a pinned image or environment and retest image generation after each change. Track which versions of Open WebUI and the image backend are compatible with each other, and confirm the compatibility list in the release notes before upgrading either one.

Common image generation failures and their causes

This table lists the failures teams most often meet when Open WebUI calls a self-hosted ComfyUI or AUTOMATIC1111 server, with the likely cause and a general fix for each. Use it as a triage starting point, then confirm each cause in the Open WebUI logs, the image server logs and your own test results before changing settings.

FailureLikely causeGeneral fix and what to confirm
Image requests time out during the first generationThe image model is still loading into GPU memory, or the request timeout in Open WebUI is shorter than the first loadSend a warm-up request after the server starts and allow a longer timeout for cold starts. Confirm model load times in the image server log against your own test runs.
Out-of-memory errors on the GPU hostThe checkpoint, resolution, batch size or number of concurrent jobs exceeds available VRAM, or another workload shares the GPULower resolution or batch size, limit concurrent jobs and keep one model resident at a time. Confirm the failing settings in the server log and measure VRAM use under your expected load.
Open WebUI cannot reach the image serverThe server address resolves to localhost inside the Open WebUI container, or a firewall or network policy blocks the portUse a hostname or address reachable from the container network and check the connection from inside that container. Confirm the configured base URL and test the endpoint from the Open WebUI runtime, not from your workstation.
Generated images disappear after a restart or on another replicaOutputs were written to local container storage, or replicas do not share the file store that Open WebUI uses for uploadsStore generated files on shared storage that every replica can read and keep it on a persistent volume. Confirm file paths and storage mounts against the Open WebUI scaling guidance and test a restart and a request routed to a second replica.
Users cannot see the image generation featureGroup or role permissions hide the feature, or the admin has not enabled image generation for those groupsReview the admin settings for image generation and the permissions on the groups concerned. Confirm access with a test account in each group rather than assuming the admin view matches what users see.
Images fail on edit requests but generation worksThe configured workflow or model does not support the editing step, or the input image is missing or in an unsupported formatCheck which workflow or model the edit path uses and whether it accepts the input format. Confirm the expected inputs in the vendor documentation for that workflow and in your own edit tests.

Questions buyers ask before connecting image generation

How much effort does connecting Open WebUI to ComfyUI or AUTOMATIC1111 take?

The connection itself is a configuration task, but the effort lies in the image server, not the chat interface. The main drivers are the number of workflows you need, whether users will edit existing images or only generate new ones, the custom nodes and checkpoints each workflow depends on, and how many people will request images at the same time. A team that already runs a GPU server and understands model files will spend most of its time on workflow design and testing. Ask any partner to split its quote into the image server build, the workflow and model work, and the Open WebUI configuration, so you can see where the effort sits.

Can our own team connect image generation without outside help?

Often yes, if you have engineers who have operated Open WebUI and a GPU host before. The work is documented, but it depends on details that change between releases, such as how the image settings and workflow files are supplied to the interface. Outside help usually makes sense when no one on staff has run a GPU workload, when you need a workflow reviewed for licensing and model provenance, or when the image feature must pass a security review before launch. Check the current Open WebUI documentation for the image settings that apply to your version before you decide.

What does the work need from our staff and hardware?

You need someone who can administer Open WebUI, someone who can run the image server and manage its model files, and an owner for the image policy. On the hardware side, image generation is GPU-heavy, so the server needs enough video memory for the models you choose, fast local storage for checkpoints, and network placement that lets Open WebUI reach it without exposing it to the internet. Confirm the GPU model, memory, driver stack and storage size with the image server project's requirements for each model, because these depend on the model, not on Open WebUI.

How long does the integration take?

The duration depends on the number of workflows, the models and custom nodes you approve, the GPU host you have ready, and how many review cycles your security and legal reviewers need. A single default workflow on a prepared host moves much faster than a set of tested edit workflows that must be documented and approved. No duration is set in this page, so ask for a timeline in the written scope, with each milestone tied to a named deliverable such as a working workflow, a tested user path or a signed-off model list.

When is a hosted OpenAI or Gemini image model the better choice?

A hosted model is usually the better choice when you do not have GPU capacity, when image volume is low and unpredictable, or when the quality of a managed model matters more than control over the model files. Self-hosting suits teams that must keep prompts and generated images inside their own infrastructure, that need specific checkpoints or licenses approved, or that want to control cost at high volume. Compare the data handling terms of each hosted provider with your own requirements, and count the GPU, staff and maintenance costs of the self-hosted option against per-image charges from the provider.

What ongoing work recurs after the image feature launches?

Recurring work includes updating Open WebUI and the image server, reviewing new model checkpoints and custom nodes for licensing and safety, rotating credentials, monitoring GPU load and queue length, and keeping workflows working after upstream changes. Plan for the cost of GPU power and hosting, which recur every month, and for the review time each new model needs. Ask any partner whether this support is covered by a retainer, by a fixed-scope handover, or left to your team, and what release testing it includes.

What should we check about licensing before we install image models?

Each model checkpoint, LoRA and custom node carries its own license, and the terms can restrict commercial use, redistribution or the kinds of images you may produce. Open WebUI's own license covers the interface, not the models you load into it. Build a register of every model and node you approve, record its license and source, and have your legal or compliance team sign off before users can select it. Since the Open WebUI License adds branding rules for deployments above 50 users in a rolling 30-day period, confirm which terms apply to your user count.

How DeployOpen scopes and delivers this integration

DeployOpen treats the ComfyUI or AUTOMATIC1111 connection as a planned part of your Open WebUI deployment, not a standalone feature switch. The work starts with a written scope that covers which image models, workflows, users and groups are allowed, and it runs inside the infrastructure you control.

How we scope

  • Confirm which image server (ComfyUI or AUTOMATIC1111) matches your models, hardware and workflow needs before any build starts
  • Define which user groups may generate or edit images and which must stay on hosted or no image models
  • Agree in writing what data prompts and generated images may contain, where they are stored and how long they are kept
  • Record the GPU capacity, network path and Open WebUI version the integration depends on

How we build

  • Install and configure the image server in your infrastructure, with access limited to the Open WebUI host and approved administrators
  • Connect Open WebUI to the image server, set the image engine options and verify each approved model and workflow from a test account
  • Test permissions, file handling and failure behavior, such as a stopped GPU worker or a rejected request, before users see the feature
  • Run the integration against a copy of your Open WebUI configuration first when it is applied to a production instance

How we hand over

  • Deliver a written configuration record covering endpoints, model names, group permissions and the image storage location
  • Document the workflow for adding or retiring image models, including the steps to retest after an Open WebUI upgrade
  • Walk your operations and security teams through logs, access settings and the checks they need to repeat after changes
  • Provide a test plan your staff can rerun to confirm the integration still works after maintenance

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer if you want DeployOpen to keep the integration current
  • Ask for a quote that separates one-time build work from recurring support, and confirm who pays for GPU hardware and hosting
  • Confirm with your own team which model licenses and image content terms apply to the models you choose to run

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.