Skip to content

CDN & Asset Platform

Store files, images, and videos. Edge delivery from 400+ locations. Upload, transform, and stream — one SDK.

$0.25 / GB

  • Image Processing
  • Video Streaming
  • Audio Files
// Upload and transform images
const asset = await stack0.cdn.upload({
projectSlug: 'my-project',
file: imageBuffer,
filename: 'hero.jpg',
})
// Generate transform URL (no API call)
const thumb = stack0.cdn.getTransformUrl(asset.cdnUrl, {
width: 400,
height: 300,
fit: 'cover',
format: 'webp',
})
ImagesVideoAudioDocumentsPrivate FilesHLS Streaming

Built for production

Smart Image Transforms

Resize, crop with AI focus, convert formats, adjust quality—all via URL parameters.

optionsaccepted
{
?width=400&height=300&fit=cover&format=webp,
}

Resize, crop with AI focus, convert formats, adjust quality—all via URL parameters.

Video Transcoding

Upload any video, transcode to HLS with multiple quality variants automatically.

stack0.cdnHLS ready
await stack0.cdn.transcode({
outputFormat: 'hls',
})
response321 ms
{
id: "file_16a6d",
status: "HLS ready",
createdAt: "2026-09-02T14:03:06Z",
}

Watermarking

Add logo watermarks during upload. 9 position options with opacity and rotation control.

optionsaccepted
{
watermark: { position: 'bottom-right', opacity: 50 },
}

Add logo watermarks during upload. 9 position options with opacity and rotation control.

Presigned URLs

Generate time-limited download URLs for private files. 1 hour to 7 day expiry.

stack0.cdn200 OK
await stack0.cdn.getPresignedDownloadUrl({
expiresIn: '24h',
})
response303 ms
{
id: "file_1iwhf",
status: "200 OK",
createdAt: "2026-09-02T14:03:06Z",
}

Adaptive Bitrate

Video automatically switches quality based on viewer's network speed.

optionsaccepted
{
variants: ['360p', '720p', '1080p', '4k'],
}

Video automatically switches quality based on viewer's network speed.

Accelerated Uploads

Multipart uploads with resumable support. Upload large files reliably.

stack0.cdnstored
await stack0.cdn.upload({
resumable: true,
})
response136 ms
{
id: "file_3t0ek",
status: "stored",
createdAt: "2026-09-02T14:03:06Z",
}
  • Image Processing

    Resize, crop, convert to WebP/AVIF, add watermarks, and apply effects on-the-fly.

  • Video Streaming

    HLS adaptive streaming with 360p to 4K variants. Thumbnail generation included.

  • Audio Files

    Extract audio from video or upload standalone files. MP3, AAC, WAV support.

  • Document Storage

    Store PDFs, office docs, and any file type with fast CDN delivery.

  • Private Files

    Secure storage with presigned URLs. Perfect for contracts and sensitive documents.

  • Global Edge Delivery

    400+ edge locations worldwide. Sub-20ms latency for cached assets.

Built for real applications

SaaS User Avatars

Upload, resize, and serve profile pictures with automatic format optimization.

Simple, usage-based

$20/mo includes $10 of usage. Metered beyond that, at the same rate for everyone.

Storage

$0.25/ GB


  • Image transforms included
  • Video transcoding & streaming
  • Private file storage
  • Watermarking support
  • 400+ edge locations
  • React components included
  • No egress fees for images
Get Started

Frequently asked questions

Ready to build?

Get started in minutes.

Start Building