🖼️ placeholdr.dev

AI Placeholder API for the Modern Web

Generate production-safe image placeholders on demand with a simple URL.
Deterministic outputs, edge-cached globally on Cloudflare network.

Example landscape placeholder

Basic Usage

Drop this snippet directly into your HTML to request a unique placeholder on the fly.

<img src="https://placeholdr.dev/{width}x{height}/{prompt}" />

All Parameters

Add these parameters to the URL to customize the placeholder.

<img src="https://placeholdr.dev/{width}x{height}/{prompt}?style={style}&seed={int}" />
  • Height and Width: required, integers between 128 and 2048

  • Prompt: text description of the desired image ("space" by default)

  • Style: photographic (default), artistic, anime, oil-painting, 3d-render, cartoon

  • Seed: integer between 1 and 3 (1 by default) for alternative outputs

Examples

Real API calls
https://placeholdr.dev/600x400/minimalist modern office
https://placeholdr.dev/320x320/cat?style=anime
https://placeholdr.dev/1024x768/camera?style=3d-render&seed=3
https://placeholdr.dev/800x450/forest landscape?style=cartoon

Why placeholdr.dev?

  • Cloudflare network: Powered by Cloudflare Workers at the edge with R2 backing so renders stay cached globally and load fast.
  • Flux model: Powered by Flux diffusion model for quality placeholder imagery.
  • Simple URL API: Works anywhere you can drop an <img> tag or background image.
  • Fast initial generation: Fresh prompts render in a few seconds, then stay cached in R2 for near-instant deterministic repeats.
  • Free to use: No accounts, no billing,just request a placeholder and ship.