https://drawthings.ai/ provides a closed-source binary that works well with a nice UI as well as a HTTP server you can enable to call different models from other programs/apps.
If you want to manually create images this is the best free choice I've seen so far. It's also pretty low-memory compared to others I've tried. 10GB for their flux.2 [klein] 4b model.
Once you start the Draw Things app pick some models to download, then go to "all settings" and enable the HTTP server. Then call it with CURL:
curl -sS --max-time 600 \