Practical overview
When it fits
Use Mflux when you want a Python library and documented CLI for running generative image models with Apple MLX, particularly in a local Mac workflow.
Who it is for
- Developers building image-generation applications or workflows around MLX implementations.
- Mac users who want to run supported generative image models locally.
- Python developers who want to generate images through a library rather than only a command-line workflow.
Documented uses
- Install Mflux and generate an image from a text prompt with a model-specific CLI command.
- Call a model from Python, configure generation parameters and save the resulting image.
- Choose among listed model families based on documented capabilities such as editing, upscaling or text rendering.
Requirements & limits
The repository is public and specifies the MIT license. The README documents installation with uv.
- Mflux implements models in MLX and uses Hugging Face Transformers tokenizers.
- The first run downloads the selected model, which may take time.
- Model families have different strengths; the repository directs users to model-specific READMEs for full usage details.
- The README gives Mac as the local use case and also shows a separate uv installation command for DGX/NVIDIA, without specifying support details for that route.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Mflux and generate a first image
Install Mflux with uv and use the documented Z-Image Turbo command to generate an image.
Before you start
- Install uv.
- A Mac is the documented local use case.
- The selected model downloads automatically on its first run and may take time.
Steps
Install or upgrade Mflux with the command below.
uv tool install --upgrade mfluxRun the command below to see available Mflux CLI commands.
uv tool listRun
mflux-generate-z-image-turbowith a prompt and the documented width, height, seed, steps and quantization options.
Expected outcome
Mflux generates an image from the supplied prompt using the selected model and settings.
Guide limitations
- The example covers Z-Image Turbo; consult the model-specific README for other models and their usage details.
- The first run downloads the model and may take some time.
Generate and save an image from Python
Use the documented Python API example to create and save an image with Z-Image Turbo.
Before you start
- Install uv.
- Use Python 3.10 or later, as specified by the example's inline script metadata.
- A Mac is the documented local use case.
Steps
Create a Python script with inline uv metadata listing
mfluxas a dependency.Import
ZImageTurbofrommflux.models.z_imageand construct the model with the example's quantization setting.Call
generate_imagewith the documented prompt, seed, inference steps and dimensions.Save the returned image with
image.save.
Expected outcome
The script generates an image and saves it to the specified filename.
Guide limitations
- The example covers Z-Image Turbo; other models may use different APIs or settings.
- The first model download may take some time.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 13 October 2026
- Original website title
- mflux-community/mflux · Official homepage title · retained in its source language

