Image Transforms
Placeholder Image
Generate a placeholder image of any size with a text label. Returns SVG by default; ask for PNG, JPEG or WebP if you need a raster image.
GET/api/placeholder?width=&height=
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| width | integer | Optional | Width in pixels (1-2000). Default 300. |
| height | integer | Optional | Height in pixels (1-2000). Default 200. |
| text | string | Optional | Label text. Default is the dimensions, e.g. "300 x 200". |
| bg | string | Optional | Background hex color, e.g. 336699. Default cccccc. |
| fg | string | Optional | Text hex color. Default 555555. |
| format | string | Optional | svg (default), png, jpeg or webp. |
Try it
Saved only in this browser. Requests use your key and count toward your quota. Get a key
GET /api/placeholderExample request
curl "https://your-app.com/api/placeholder?width=400&height=200&text=Hello%20World&bg=336699&fg=ffffff&format=png" \
-H "x-api-key: YOUR_API_KEY" \
--output placeholder.pngResponse
Content-Type: image/svg+xml (or the requested raster format) — the generated placeholder.