antirez/iris.c — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small command line image generator in pure C called Iris. I want to type a text prompt and get a PNG or JPEG image out, using open weights image generation models like Flux Klein or Z Image Turbo.

It should be easy to build on a Mac or Linux machine, with a fast Apple Silicon option using Metal, an optional BLAS build, and a plain C fallback with no extra dependencies. Include simple scripts to download the supported models, then let me run commands like generating from text, transforming an input image with a prompt, combining a few reference images, choosing output size, seed, steps, and output file.

Please include an interactive terminal mode where I can keep entering prompts, reuse previous generated images as references, and optionally show the final image or generation steps directly in supported terminals. Make it memory efficient enough to work on smaller machines by memory mapping model weights. Look up current model download details online if needed.

Want more depth? Deep Reverse