Discover and explore top open-source AI tools and projects—updated daily.
FastAPI backend for Fooocus, enabling REST API access
Top 51.1% on SourcePulse
This repository provides a FastAPI-powered REST API for Fooocus, an offline, open-source image generation software that simplifies Stable Diffusion and Midjourney's capabilities. It allows users to leverage Fooocus's advanced features programmatically from any language, benefiting developers and researchers seeking to integrate AI image generation into their applications or workflows.
How It Works
The API wraps the Fooocus Gradio application, exposing its functionalities through REST endpoints. It utilizes FastAPI for efficient web serving and supports both self-hosted deployments (via conda
or venv
) and Docker. The project aims to abstract away the complexities of Fooocus's underlying Gradio interface, offering a cleaner, more accessible programmatic interface.
Quick Start & Requirements
conda env create -f environment.yaml
and conda activate fooocus-api
, then python main.py
. Alternatively, use Docker: docker run -d --gpus=all -p 8888:8888 konieshadow/fooocus-api
.conda
), NVIDIA GPU with CUDA 12.1 recommended for PyTorch.Highlighted Details
Maintenance & Community
The project is actively maintained by mrhan1993. Community interaction channels are not explicitly listed in the README.
Licensing & Compatibility
Limitations & Caveats
The README notes potential installation issues with groundingdino-py
, particularly on Chinese Windows environments. It also advises caution with --skip-pip
after Fooocus updates due to dependency changes. The enhance_uov_prompt_type
parameter's function is not fully detailed.
4 months ago
Inactive