Convert JPG/PNG to AVIF or WebP via a simple HTTP API. Create an access key below, then POST your image to https://imageapi.onepixel.pt/api.php.
Convert your entire media library to AVIF / WebP โ locally or via this API โ and serve them automatically.
| Key | Label | Created | Last used | Uses |
|---|---|---|---|---|
| 04439bbb1be534bf07ed2db31b85a340bc8f1824d7d2642e | 2026-04-19 00:11:56 | 2026-04-19 01:11:08 | 3073 |
POST multipart/form-data to https://imageapi.onepixel.pt/api.php with these fields:
key โ your access key (or send via X-API-Key header)image โ the JPG or PNG fileformat โ avif or webpquality โ optional, 1โ100 (default 75 for WebP, 60 for AVIF)effort โ optional, 0โ9 for AVIF (default 6) or 0โ6 for WebP (default 4)The response body is the converted binary image with the appropriate Content-Type.
curl -X POST https://imageapi.onepixel.pt/api.php \ -F "key=YOUR_KEY" \ -F "format=avif" \ -F "quality=55" \ -F "[email protected]" \ --output photo.avif
AVIF encoded with libavif/aom ยท WebP encoded with libwebp (sharp YUV).