Generate a placeholder image of any size with a label

Generates a placeholder image of any size, with optional text and colours.

Request

GEThttps://image-tools.p.apihiver.com/v1/placeholder?width=300&height=200
Number. Width in pixels (1–4000, default 600).
Number. Height in pixels (1–4000, default 400).
String. Hex colour (default e5e7eb).
String. Text hex colour (default 6b7280).
String. Label (default: WIDTH×HEIGHT)
String. png, jpeg or webp (default png).
Language
Client
1curl --request GET \
2  --url 'https://image-tools.p.apihiver.com/v1/placeholder?width=300&height=200&background=%7Bbackground%7D&color=%7Bcolor%7D&text=%7Btext%7D&format=%7Bformat%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Generate a placeholder image of any size with a label: Image Tools API reference

Generates a placeholder image of any size, with optional text and colours. This endpoint is part of the Image Tools API: Resize, crop, convert, rotate and compress images, add text watermarks, extract colour palettes and make placeholder images.

Example response (200, image/png)

The placeholder image (type follows `format`).

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "A parameter has the wrong format — the message names it."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.