There is a self-hosted and open source service for images placeholders generation.
Service supports following parameters: image width, height, custom text, font size, text and background colors. It also supports png, jpeg and gif formats
Website: https://github.com/antonshell/placeholder-service
Technologies stack: PHP, Symfony, PHP GD.