As described, there is POC already in place
https://github.com/srebrek/ImageGeneration
Idea is to maybe, if possible - refactor current ImageGenService.cs the way that it does not require WebApi anymore, but it can call service (in provided repo mentioned as sdService) directly
@srebrek - Are you intrested in implementing it into this repository?