Hit the endpoint with the size you want and you get back a JPEG of a randomly-picked capybara cropped and resized to that size. Use it as an image placeholder in mockups, demos, or anywhere you'd otherwise reach for a stock placeholder service.
URL pattern
https://www.codalata.com/place/<width>/<height>
For grayscale, prefix the path with g/:
https://www.codalata.com/place/g/<width>/<height>
The long-form alias /modules/labs/place/image.php?w=<width>&h=<height>[&g=1] still works.
Width and height must be integers between 16 and 2000.
Each unique size is cached server-side for 3 hours; repeat requests at the same size return the same capybara.
Up to 60 fresh generations per hour per IP. Cache hits don't count.
Live examples
200 x 200 (square)
https://www.codalata.com/place/200/200
400 x 300 (landscape)
https://www.codalata.com/place/400/300
600 x 400 (landscape)
https://www.codalata.com/place/600/400
300 x 400 (portrait, grayscale)
https://www.codalata.com/place/g/300/400
800 x 450 (16:9)
https://www.codalata.com/place/800/450
500 x 500 (square, grayscale)
https://www.codalata.com/place/g/500/500
Source images are CC0 / Public Domain / CC-BY / CC-BY-SA from Wikimedia Commons.
Per-image attribution: LICENSES.md.