API Reference
Images

Images API

Generate custom placeholder images dynamically.

Endpoint

GET /api/img

Parameters

ParameterDefaultDescription
w600Width of the image in pixels (16 to 2000).
h400Height of the image in pixels (16 to 2000).
bg#f3f4f6Background color (Hex code).
fg#9ca3afForeground (text) color (Hex code).

Examples

<img src="https://placehold.harshsandhu.com/api/img?w=800&h=400&bg=000&fg=fff" alt="Placeholder" />