A high-performance, self-hosted Image CDN with auto-archiving to Cloudflare R2.
GET /generate
| Parameter | Type | Description |
|---|---|---|
image | URL | (Required) The full URL of the source image to fetch, archive, and optimize. |
w | Int | Target width in pixels (maintains aspect ratio). |
h | Int | Target height in pixels (maintains aspect ratio). |
q | Int | Quality from 1 to 100 (Default: 80). |
f | String | Output format: webp or avif (Default: webp). |
https://optimize.nexaric.com/generate?image=https://example.com/photo.jpg&w=800&q=75&f=webp
200 OK - Returns the optimized image binary.400 Bad Request - Missing or invalid parameters.404 Not Found - Source image could not be fetched.500 Server Error - Processing pipeline failed.