Black Forest Labs: FLUX Gen

function

This pipe function allows generating images using the official Black Forest Labs API. This function currently supports the following models: dev-1, flux-pro-1.1, and flux-pro-1.1-ultra. A raw mode switch is available for flux-pro-1.1-ultra.

fovendor
@fovendor
·
2 years ago
151
0
1.1K
Updated 2 years ago
Created Jan 13, 2025
flux_gen.py
Python · 476 lines
"""
title: Black Forest Labs: FLUX Gen
author: fovendor
version: 0.9.3.6
github: https://github.com/fovendor/FLUX-Gen
license: MIT
requirements: asyncio, uuid, requests, pydantic, pathlib, pydantic
environment_variables: BFL_API_KEY, OPENAI_API_KEY
required_open_webui_version: 0.5.6
"""

import os

This pipe function allows generating images using the official Black Forest Labs API. This function currently supports the following models: dev-1, flux-pro-1.1, and flux-pro-1.1-ultra. A raw mode switch is available for flux-pro-1.1-ultra.


0