Generating image background job

I'm making a game where you can create levels in HTML5 Canvas and upload them to the api. I will need to generate an image for the level and I thought about using playwright to take a screenshots of the game via this playwright browser instance. Doing this in a serverless function doesn't really scale because it can take some time to generate it so I thought about having a background job for this. What are some helpful services to aid doing this?