Image CDN API: upload once, transform by URL

Upload an image once through the REST API or an SDK, then request any size or format by adding parameters such as width, format and quality to its CDN URL. Each variant is generated on the first request and cached.

How the image CDN API works

  1. 1

    Upload

    REST, SDK or presigned browser upload

  2. 2

    Original stored

    Dreep storage or your own bucket

  3. 3

    Request a URL

    ?width=800&format=avif

  4. 4

    Generated once

    On the first request

  5. 5

    Served from cache

    Every later request

One original, any number of variants, no pre-generation step.

Upload and transform

Server-side uploads are a single multipart POST. Browser and large uploads use a presigned URL so your API key never reaches the client.

const dreep = new Dreep({ apiKey: process.env.DREEP_API_KEY });

const asset = await dreep.upload({
  file: fs.createReadStream("product.jpg"),
  folder: "catalogue/shoes",
});

// Pure string work, no network call
const card = dreep.url(asset, { width: 600, height: 600, format: "webp" });

Built in

AVIF and WebP output

Set format=avif or format=webp on any image URL and pair them in a picture element.

Presets

Define a named transform once, apply it with p=, and change the recipe later without touching call sites.

Signed URLs

Images in a Signed folder are only fetchable with a time-limited link the SDKs compute locally.

Frequently asked questions

What is the difference between an image CDN and an image transformation API?

An image CDN delivers images from cache over HTTP. An image transformation API changes them by resizing, cropping or converting format. Dreep does both through one URL.

Does Dreep choose WebP or AVIF automatically?

No. There is no format=auto. Request format=avif or format=webp explicitly and use a picture element with an AVIF source and a WebP fallback.

What is the largest image I can request?

width and height are each capped at 4000 pixels, and dpr at 3. Uploads can be up to 500 MB per file.

Can I resize images in a signed folder?

Yes. The signature covers the asset ID and expiry only, so you can append width, format or any other parameter to a signed URL without generating a new signature.

Related

Resize your first image by URL

The Free plan includes 1 GB of storage and 100 image transformations a month. Upload one image and try width, format and dpr on it.