Someone already made a Stable Diffusion extension for Photoshop: https://www.reddit.com/r/StableDiffusion/comments/wyduk1/sho...
https://www.reddit.com/r/StableDiffusion/comments/x209sb/pre...
https://www.reddit.com/r/StableDiffusion/comments/wzfohj/wip...