Image API

Use the following endpoint to generate placeholder images:

http.pm/img/[width]x[height]

Limitations:

  • Width and height must be between 1 and 2000 pixels
  • Only generates simple placeholder images
  • Custom background colors are not supported
  • Custom text/titles are not supported

Examples:

  • http.pm/img/300x200 - Returns a 300x200 placeholder image
  • http.pm/img/800x600 - Returns an 800x600 placeholder image
  • http.pm/img/1920x1080 - Returns a 1920x1080 placeholder image

You can also specify a background color:

http.pm/img/[width]x[height]/[background_color]

Available Colors

white
black
gray
lightgray
darkgray
red
green
blue
yellow
cyan
magenta
purple
orange
pink
brown
navy
teal
maroon