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

Build image URLs in your own code, with no API call: https://img.imageapis.com/s/<base>/<template>.png?title=…&sig=<hmac>. Whoever fetches the URL triggers the render. <template> is a template id (the query fills its {{placeholders}}), og (the query is the card's fields), or chart or qr (the query is the POST /v1/charts or /v1/qr-codes body; colors comma-separated). The extension is the format: png, jpg or webp, and svg for chart and qr. Sign the path and query exactly as sent: hex HMAC-SHA256 with the base's secret. Add exp (unix seconds) to make a URL expire. Identical URLs come from cache for free; each new render costs one image on 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.