Pixelfjord Sign in

API reference

The REST API lives under /api/v1 and speaks JSON. Transform URLs are served from your project's image host.

Authentication

Create a key in the dashboard and send it as a bearer token. Keys are scoped to one project.

curl https://api.example.com/api/v1/images \
  -H "Authorization: Bearer pf_live_..."

Transform URLs

ParameterDescription
w, hTarget width and height in pixels.
fitcover (default), contain, fill, inside.
cropsmart, face, center or x,y,w,h.
fmtauto, avif, webp, jpeg, png.
qQuality, 1–100. Defaults depend on the format.
sigHMAC-SHA256 of the path and parameters, required when signing is on.

Images

GET/api/v1/images lists source images. DELETE/api/v1/images/{id} purges one from every cache.

Usage

GET/api/v1/usage?from=2026-10-01 returns daily transform counts and bandwidth.

Errors

HTTP/1.1 401 Unauthorized
{
  "error": {
    "code": "missing_api_key",
    "message": "No API key provided. Pass it as 'Authorization: Bearer <key>'."
  }
}

Public endpoints

These need no key: /api/health, /api/v1/status, /api/v1/plans, /api/v1/regions.