Overview
The media API handles file uploads with automatic optimization (resizing, format conversion, responsivesrcset generation). Uploaded files are stored in S3-compatible storage (Cloudflare R2) and served via a storage proxy endpoint.
Public Endpoints
Media Capabilities
Storage Proxy
Placeholder Image
| Parameter | Type | Description |
|---|---|---|
width | integer | Image width in pixels |
height | integer | Image height in pixels |
format | string | Image format |
Authenticated Endpoints
Upload File
Requires authentication.
| Parameter | Type | Default | Description |
|---|---|---|---|
optimize | boolean | true | Apply image optimization |
generate_responsive | boolean | false | Generate responsive srcset variants |
convert_gif | boolean | false | Convert GIF to video (MP4) |
Validate File
Requires authentication.