Yes. I use runpod.io works fine. Costs less than 50ct per hour. They also let you generate images with an API endpoint and you pay the 15 seconds of compute time it takes. Don't even need to set up a conainer if you like the models they offer.
I don't think I'm going to buy a GPU myself.
Edit: There is also vast.ai which is similar. And several providers more which are more expensive.