Image

Image — Cloudflare Images specialization of a file row. Surfaced alongside its file data via the filtered `/api/images` endpoint. Keyed by its own `img_…` id, with a unique 1:1 FK to the underlying file (`fileId`). The `url` field is derived at read time from the CF Images account hash and the `cfImageId`, signed with a short-lived JWT if signing is configured.

Definition

TypeScript
interface Image {
  id: string;
  fileId: string;
  workspaceId: string;
  cfImageId: string;
  width: number | null;
  height: number | null;
  size: number | null;
  exif: Record<string, unknown> | null;
  url: string;
}

Fields

FieldTypeNotes
idstringreadonly required — The image's prefixed ID.
fileIdstringrequired — Underlying file row backing this image (1
).
workspaceIdstringrequired — Workspace that owns the image.
cfImageIdstringrequired — Cloudflare Images resource ID used to build delivery URLs.
widthnumber | nullrequired — Image width in pixels, if known.
heightnumber | nullrequired — Image height in pixels, if known.
sizenumber | nullrequired — Image size in bytes, if known.
exifRecord<string, unknown> | nullrequired — Parsed EXIF metadata, when available.
urlstringrequired — Cloudflare Images delivery URL for the public variant