Skip to main content
All assets are served through Metabind’s global CDN, providing fast delivery with geographic distribution and automatic caching.

URL Structure

Assets are served with the following URL pattern:
https://cdn.metabind.ai/{organizationId}/{projectId}/assets/{assetId}/{filename}
Asset URLs are versioned and include cache control headers for optimal performance.

Dynamic Transformations

Image transformations can be applied via URL parameters on any CDN image URL:
https://cdn.metabind.ai/{org}/{project}/assets/{assetId}/image.jpg?w=800&h=600&fit=crop&q=80

How It Works

  1. When transformation parameters are detected, the CDN automatically redirects (302) to a transformation endpoint
  2. The transformed image is cached at the CDN edge for subsequent requests
  3. You can directly access the transformation endpoint by prefixing /transform/ to the path (bypasses redirect)

Transformation Parameters

ParameterDescriptionValuesExample
wWidth in pixels1-4096w=800
hHeight in pixels1-4096h=600
fitResize modecover, contain, inside, outside, fillfit=cover
qQuality1-100q=80
fmOutput formatjpeg, jpg, png, webp, avif, tiff, giffm=webp
blurBlur intensity0-100blur=10
dprDevice pixel ratio (retina)0.5-3dpr=2
cropCrop modeVarious crop parameterscrop=...

Examples

Resize for Thumbnails

https://cdn.metabind.ai/org123/proj456/assets/asset789/photo.jpg?w=200&h=200&fit=cover

Convert to WebP with Quality

https://cdn.metabind.ai/org123/proj456/assets/asset789/photo.jpg?fm=webp&q=85

Retina Display Support

https://cdn.metabind.ai/org123/proj456/assets/asset789/photo.jpg?w=400&dpr=2
This returns an 800px wide image optimized for 2x displays.

Apply Blur Effect

https://cdn.metabind.ai/org123/proj456/assets/asset789/photo.jpg?w=1200&blur=20

Fit Modes

Scales the image to fill the target dimensions. May crop parts of the image.Best for: Hero images, backgrounds, thumbnails where filling space is important.

Format Selection Guide

FormatBest ForProsCons
webpGeneral web useSmall file size, wide supportNot supported in older browsers
avifMaximum compressionSmallest files, excellent qualityLimited browser support
jpegPhotographsUniversal support, good compressionNo transparency
pngGraphics with transparencyLossless, transparency supportLarger file sizes
Use fm=webp for most web applications. It provides excellent compression with broad browser support.