flux2.c

last updated: Feb 02, 2026

https://github.com/antirez/flux2.c

This program generates images from text prompts (and optionally from other images) using the FLUX.2-klein-4B model from Black Forest Labs. It can be used as a library as well, and is implemented entirely in C, with zero external dependencies beyond the C standard library. MPS and BLAS acceleration are optional but recommended.

Salvatore Sanfilippo's text-to-image model, including terminal output

↑ up