Skip to content

FLUX.1 Schnell (and other) Manifold Functions for Black Forest Lab Image Generation Models

License

Notifications You must be signed in to change notification settings

nandan121/open-webui-flux-image-gen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

FLUX.1 Schnell (and others) Manifold Functions for Open WebUI

Overview

This repository contains the implementation of the FLUX.1 Schnell Manifold Function, a utility designed for Black Forest Lab Image Generation Models. The function interacts with various API providers to generate images based on user inputs directly into the Open WebUI chat window.

Features

  • API Integration: Supports multiple API providers including Hugging Face, Replicate, and Together.
  • Environment Configuration: Utilizes environment variables for API keys and base URLs.

Requirements

  • Python 3.7+
  • pydantic
  • requests

Installation

  1. Download the source and import into Open WebUI functions interface.

  2. Install via official Open WebUI community functions repository:

flux_schnell

Environment Variables

Set the following environment variables in your environment:

  • FLUX_SCHNELL_API_BASE_URL: Base URL for the API.
  • FLUX_SCHNELL_API_KEY: Your API Key for Flux.1 Schnell.

Example:

export FLUX_SCHNELL_API_BASE_URL="https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions"
export FLUX_SCHNELL_API_KEY="your_replicate_api_key_here"

export FLUX_SCHNELL_API_BASE_URL="https://api.together.xyz/v1/images/generations"
export FLUX_SCHNELL_API_KEY="your_together_api_key_here"

Screenshots: image

About

FLUX.1 Schnell (and other) Manifold Functions for Black Forest Lab Image Generation Models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%