All capybaras. No filler.

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.

Pick a specific capybara

Add ?seed= to pin a size to one image:

https://www.codalata.com/place/<width>/<height>?seed=<seed>

Seed 1–21 picks that exact image (e.g. seed=7 is always the same capybara). Any other text works too and maps to one deterministically. Seeds are case-insensitive, and work on the grayscale g/ form and the long-form alias too. The same size + seed always returns the same image, so a design system can pin one.

Live examples

200 x 200 (square)
200 x 200 (square)
https://www.codalata.com/place/200/200
400 x 300 (landscape)
400 x 300 (landscape)
https://www.codalata.com/place/400/300
600 x 400 (landscape)
600 x 400 (landscape)
https://www.codalata.com/place/600/400
300 x 400 (portrait, grayscale)
300 x 400 (portrait, grayscale)
https://www.codalata.com/place/g/300/400
800 x 450 (16:9)
800 x 450 (16:9)
https://www.codalata.com/place/800/450
500 x 500 (square, grayscale)
500 x 500 (square, grayscale)
https://www.codalata.com/place/g/500/500
400 x 300 (seed 7)
400 x 300 (seed 7)
https://www.codalata.com/place/400/300?seed=7
300 x 300 (seed "capy")
300 x 300 (seed "capy")
https://www.codalata.com/place/300/300?seed=capy

Snippets

<img src="https://www.codalata.com/place/400/300" width="400" height="300" alt="Capybara placeholder">
![Capybara placeholder](https://www.codalata.com/place/400/300)
background-image: url("https://www.codalata.com/place/800/450");

Metadata

Ask which capybara a URL resolves to, with its licence and attribution — handy when you need to credit the photo.

curl "https://www.codalata.com/modules/labs/place/info?w=400&h=300&seed=7"
{
    "ok": true,
    "width": 400,
    "height": 300,
    "gray": false,
    "seed": "7",
    "source": {
        "index": 7,
        "file": "capy07.jpg",
        "author": "Diego Tirira from Quito, Ecuador",
        "license": "CC BY-SA 2.0",
        "source_url": "https://upload.wikimedia.org/wikipedia/commons/a/a7/BR_Pantanal_1206_%2857%29_%2817436846632%29.jpg?utm_source=commons.wikimedia.org&utm_campaign=imageinfo&utm_content=original",
        "attribution": "\"File:BR Pantanal 1206 (57) (17436846632).jpg\" by Diego Tirira from Quito, Ecuador, CC BY-SA 2.0, via Wikimedia Commons."
    },
    "url": "https://www.codalata.com/place/400/300?seed=7",
    "cache": {
        "server_ttl_seconds": 10800,
        "browser_max_age_seconds": 86400
    },
    "limits": {
        "min_dim": 16,
        "max_dim": 2000,
        "fresh_generations_per_hour": 60
    }
}

Errors: 400 invalid_dimensions, 400 invalid_seed.

Source images are CC0 / Public Domain / CC-BY / CC-BY-SA from Wikimedia Commons. Per-image attribution: LICENSES.md.