Reference

API Documentation

placeimg.dev generates SVG placeholder images directly from the URL — no signup, no API key, no JavaScript required. Embed any image by crafting a URL like https://placeimg.dev/400x300/4F46E5 and dropping it into an img tag. Images are cached permanently at the CDN layer.

All dimensions are in pixels. Maximum size is 2000×2000px. Colors are 6-digit hex values without the # prefix.

Avatar API

Generative avatar URLs

Generate deterministic SVG avatars from any seed string — username, email, ID, or any arbitrary text. The same seed always produces the same color and initials. Supports initials or silhouette styles. No signup, no API key.

Initials style

johndoealiceuser-42bob.smithcaroldaveemma.jfrank

Silhouette style

johndoealiceuser-42bob.smithcaroldaveemma.jfrank
  • Basic avatarSeed → initials + background color. Always the same for the same seed.
  • Email seedEmail address as seed. Domain is stripped; initials are derived from the local part.
  • Full name seedSpace-separated names produce first+last initials. Encode spaces as %20.
  • Silhouette stylePerson silhouette instead of initials. Works with any seed.
  • Silhouette + squareSquare shape with silhouette style.
  • Custom sizeSize in pixels. Default 64. Range 16–512.
  • Square shapeReturns a square instead of the default circle.
  • CombinedAll params can be combined.