So Stable Diffusion is what Dream Studio uses, Stability.ai developed both the model and the service.
Midjourney uses something else, but did recently run a short test integrating Stable Diffusion into their service, whatever their implementation of it was, it worked very well, but it's offline for tweaks right now.