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

TierDaily conversionsHow to get it
Anonymous20 per IPNo setup required
Free key200 per keyAuthorization: Bearer <key> header
Pro2,000 per keyPlanned 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.