mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #22065] [CLOSED] feat: Add ModelsLab as image generation engine #65314
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22065
Author: @adhikjoshi
Created: 3/1/2026
Status: ❌ Closed
Base:
main← Head:feat/modelslab-image-engine📝 Commits (1)
a41aa73feat: Add ModelsLab as image generation engine📊 Changes
3 files changed (+118 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/routers/images.py(+90 -0)📝
src/lib/components/admin/Settings/Images.svelte(+22 -0)📄 Description
contributor license agreement
Summary
Adds ModelsLab (https://modelslab.com) as a new image generation engine option in Open WebUI, following the existing Gemini engine pattern.
ModelsLab is an AI generation API platform providing access to Flux, SDXL, Stable Diffusion 3.5, and 100+ community models for image, video, and audio generation.
Changes
backend/open_webui/config.pyIMAGES_MODELSLAB_API_KEY(PersistentConfig) — supportsIMAGES_MODELSLAB_API_KEYenv varbackend/open_webui/routers/images.pyget_image_model(): Default model isfluxget_models(): Returns 6 pre-configured models (Flux, Flux Pro, SDXL, SD 3.5, Realistic Vision, JuggernautXL)ImagesConfig: AddsIMAGES_MODELSLAB_API_KEY: str/config: Read/write the API keyimage_generations(): Full ModelsLab API call with async pollingsrc/lib/components/admin/Settings/Images.svelteAPI Details
{"key": "API_KEY"}) — not Bearer headerPOST https://modelslab.com/api/v6/images/text2imgstatus: processing, polls/images/fetch/{request_id}every 5s (up to 300s)Setup (after merge)
IMAGES_MODELSLAB_API_KEYChecklist
PersistentConfig🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.