mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #14466] [CLOSED] feat: Add Replicate image generation integration with 14+ models #39106
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/14466
Author: @Legorobotdude
Created: 5/29/2025
Status: ❌ Closed
Base:
dev← Head:feature/replicate-integration📝 Commits (3)
761746ffeat: Add Replicate image generation integration with 14+ models, hybrid loading, and robust error handling92dc646test: Add focused unit tests for Replicate image generation - Tests model fetching, validation, and fallback behavior57ff7d7docs: Update README to include Replicate in image generation providers📊 Changes
8 files changed (+722 additions, -359 deletions)
View changed files
📝
README.md(+1 -1)📝
backend/open_webui/config.py(+10 -0)📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/routers/images.py(+563 -330)➕
backend/test_replicate_unit.py(+89 -0)📝
pyproject.toml(+1 -0)📝
src/lib/components/admin/Settings/Images.svelte(+54 -27)📝
src/lib/components/common/Image.svelte(+1 -1)📄 Description
PR Description:
This pull request adds comprehensive support for Replicate as an image generation provider in Open WebUI, expanding the platform's image generation capabilities alongside existing providers like OpenAI DALL-E, Automatic1111, ComfyUI, and Gemini.
Key Features:
✅ Replicate API Integration: Full support for Replicate's image generation models with API token authentication
✅ 14+ Pre-loaded Models: Includes popular models like FLUX 1.1 Pro Ultra, FLUX Schnell, Stable Diffusion 3.5, and more
✅ Robust Fallback System: Gracefully falls back to cached models when API is unavailable
✅ Admin UI Integration: Complete settings interface in the Admin panel for model selection and configuration
✅ Error Handling: Comprehensive error handling with user-friendly messages
✅ Unit Tests: Full test coverage for model fetching and validation
Technical Implementation:
Backend integration in routers/images.py with dedicated Replicate handling
Frontend UI updates in Images.svelte with Replicate-specific controls
Configuration management through the existing config system
Middleware updates for proper URL handling
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.