Skip to main content
Appends transform parameters to an asset’s delivery URL. Pure string work — no network call, no API key — so it’s safe in a render path.

Signature

It never builds a URL from scratch. The delivery host and API version come from server configuration, so the only correct base is the one the API already returned. If you store URLs rather than whole assets, pass the string:
Transforms run on the fly and are cached, so one original serves every size you ask for. It also works on URLs to files in your own connected bucket:
Moving from R2 or Cloudflare Images? toDreepUrl() converts your existing URLs.

Parameters

See Image Transformations, Video Transformations and Document Conversions for what each does.

Type safety

Enum-like parameters are typed unions, so a wrong value is a compile error rather than a silently ignored query parameter:

Presets

The SDK maps preset onto the p query parameter the API reads. See createPreset().