feat: Add ModelsLab image generation pipeline#593
Open
adhikjoshi wants to merge 1 commit intoopen-webui:mainfrom
Open
feat: Add ModelsLab image generation pipeline#593adhikjoshi wants to merge 1 commit intoopen-webui:mainfrom
adhikjoshi wants to merge 1 commit intoopen-webui:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎨 ModelsLab Image Generation Pipeline for Open WebUI
Professional AI image generation with 13+ cutting-edge models integrated into Open WebUI's Pipelines framework.
Transform your Open WebUI experience with ModelsLab's powerful image generation capabilities, featuring Flux, SDXL, Playground v2.5, and many more state-of-the-art models through OpenAI-compatible API format.
✨ Features
🚀 Quick Start
Prerequisites
Installation
Method 1: Direct Upload (Recommended)
Download the pipeline file:
modelslab_image_pipeline.pyto your computerUpload via Admin Panel:
modelslab_image_pipeline.pyfileConfigure the pipeline:
Add as connection (if needed):
Method 2: Via Pipelines Docker Container
Run Pipelines container with ModelsLab pipeline:
docker run -d -p 9099:9099 \ --add-host=host.docker.internal:host-gateway \ -e PIPELINES_URLS="https://raw.githubusercontent.com/your-repo/modelslab_image_pipeline.py" \ -v pipelines:/app/pipelines \ --name pipelines --restart always \ ghcr.io/open-webui/pipelines:mainConnect to Open WebUI:
http://localhost:9099, API Key:0p3n-w3bu!Configure ModelsLab settings:
⚙️ Configuration
Pipeline Valves (Settings)
Access these settings via Admin Panel > Settings > Pipelines > ModelsLab Image Generation:
https://modelslab.com/api/v6fluxtruetrue3260Getting Your API Key
🎯 Available Models
📖 Usage
Basic Usage
Once installed and configured, the ModelsLab models will appear in your Open WebUI model selector. Simply:
Advanced Usage
Model Selection
Detailed Prompts
Size Control (via OpenAI API parameters)
Multiple Images
💡 Example Prompts
Creative & Artistic
Professional & Business
UI & Design
Product Visualization
🔧 Technical Details
API Integration
The pipeline acts as an OpenAI-compatible proxy:
Request Flow
Error Handling
🔍 Troubleshooting
Common Issues
"Invalid or missing ModelsLab API key"
MODELSLAB_API_KEYin pipeline valves"Model not supported"
flux,sdxl,playground-v2,stable-diffusionGeneration timeout
Pipeline not appearing
docker logs pipelinesPoor image quality
fluxmodel for highest qualityGetting Help
🤝 Contributing
Development Setup
Clone the repository:
git clone https://github.com/your-username/modelslab-openwebui-pipeline cd modelslab-openwebui-pipelineInstall dependencies:
Run tests:
Test the pipeline:
Pipeline Structure
Testing
📊 Comparison with Other Options
vs OpenAI DALL-E
vs Stability AI Direct
vs Other Pipelines
🏆 Why ModelsLab Pipeline?
For Users
For Developers
For Communities
📜 License
This ModelsLab Open WebUI Pipeline is provided under the MIT License.
🔗 Links
Made with ❤️ for the Open WebUI community
Bring professional AI image generation to your Open WebUI instance with ModelsLab's cutting-edge models and competitive pricing.