The Web UI provides an intuitive interface for generating placeholder images:
You can adjust any parameters and regenerate the image as needed, It's require only format and width.
The Image Placeholder Generator API allows you to generate images programmatically. Here are the available endpoints:
GET /:format
Generates an image with default size (150x150) and no text.
GET /:format/:width
Generates an image with specified width and height.
GET /:format/:width/:height
Generates an image with specified width and height.
GET /:format/:width/:height/:text
Generates an image with specified dimensions and custom text.
GET /:format/:width/:height/:text/:font
Generates an image with all custom parameters. (Coming soon)
format
: Image format (svg, png, jpg or jpeg) width
: Image width in pixelsheight
: Image height in pixelstext
: Custom text to display on the image (URL-encoded)_
: Skip the value of the parameter by passing _
as the valuebg
: Background color (hex code without #)border
: Border color (hex code without #)textcolor
: Text color (hex code without #)/png/300
This will generate a 300x300 PNG image.
/svg/300/500
This will generate a 300x500 SVG image.
/jpg/400/200/Hello%20World
This will generate a 400x200 JPEG image with the text "Hello World".
/svg/1280/1024/Hello%20World?bg=ff0000&border=000000&textcolor=ffffff
This will generate a 1280x1024 SVG image with a red background, black border, and white text.
/svg/_/_/Hello?bg=ff0000&border=000000&textcolor=ffffff
This will skip the width and height to use default value and generate a SVG image with a red background, black border, and white text.