Image API for developers
A small, predictable image API on the Cloudflare edge — v1 format conversion is live, more endpoints are on the way.
Available endpoints
- POST /api/v1/convert?format=webp|png|jpeg — server-side WASM conversion of PNG, JPEG and WebP input
- GET /api/v1/convert — check your tier, daily limit and remaining quota
- GET /api/v1/status — live service status as JSON
- GET /api/v1/tools — machine-readable index of the five browser tools
- GET /api/v1/health — API health probe
Quotas
| Tier | Daily conversions | How to get it |
|---|---|---|
| Anonymous | 20 per IP | No setup required |
| Free key | 200 per key | Authorization: Bearer <key> header |
| Pro | 2,000 per key | Planned with the paid launch |
Example
curl -X POST --data-binary @photo.jpg "https://imgine-dev.pages.dev/api/v1/convert?format=webp&quality=80" -o photo.webp — the response returns image bytes directly, with X-Imgine-Original-Size, X-Imgine-Output-Size and X-RateLimit-Remaining headers.
Conversion runs as a Cloudflare Pages Function using WebAssembly codecs. Images are processed in memory and never stored. Compression, resizing, watermarking and async batch jobs remain planned.