Oh, I thought you meant it was a similar situation to in this post where it's done by hand. Automatically generating prompts based on the output image is pretty cool.
behold my collection https://github.com/sw-yx/ai-notes/blob/main/stub%20notes/IMA...
(i gave a prezo on the open source knowledge concept a few yrs ago https://youtu.be/XoATf7xGoUY)