Image APIs
API reference › Signed bases

Create a signed-URL base: images that render on demand from a URL

POST/v1/signed-bases

POST/v1/signed-bases

Create a signed-URL base: images that render on demand from a URL

A signed base lets you build image URLs in your own code with no API call: https://img.imageapis.com/s/<base>/<template>.png?title=…&sig=<hmac>. The browser or crawler fetching the URL triggers the render; identical URLs are served from cache and cost nothing. Sign the path and query exactly as sent with HMAC-SHA256 and the base's secret, hex encoded. Add exp (unix seconds) to make a URL expire. Each new render costs one image against the key that created the base.

REQUEST BODY · APPLICATION/JSON
{
  "name": "Blog cards"
}
In the full reference
REQUEST
curl -X POST "https://api.imageapis.com/v1/signed-bases" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Blog cards"
}'
RESPONSE
201Created
{
  "id": "sb_8mz2kq7xvtnw4hbc3dpe",
  "object": "signed_base",
  "name": "Blog cards",
  "template": null,
  "secret": "sbs_1f2e3d4c5b6a79880011223344556677889900aabbccddeeff00112233445566",
  "url": "https://img.imageapis.com/s/sb_8mz2kq7xvtnw4hbc3dpe/{template}.png?{query}&sig={signature}",
  "how_to_sign": "signature = hex(HMAC-SHA256(secret, '/s/sb_8mz2kq7xvtnw4hbc3dpe/tpl_4nq8vzk2hdyw7bxme3rc.png?title=Hello&exp=1760000000')); append &sig=… to the same URL",
  "created": "2026-10-10T18:20:00Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.