why not just as you suggested i.e. https://qwen.readthedocs.io/en/latest/run_locally/llama.cpp.... then get the result either via a UI or wget/curl it back?
I am not sure that llama.cpp also supports image generation models.
I am not sure that llama.cpp also supports image generation models.