API

APNG.dev REST API

Programmatic access to APNG conversion and compression. Authenticate with an API key tied to your GitHub account.

Endpoints

POST /api/v1/convert/gif-to-apng
POST /api/v1/convert/apng-to-webp
POST /api/v1/compress/apng

Sample request

curl -X POST https://apng.dev/api/v1/convert/gif-to-apng \
  -H "Authorization: Bearer <your-api-key>" \
  -F "file=@animation.gif" \
  -o output.apng

Authentication

All API requests require a Bearer token in the Authorization header. Sign in with GitHub to generate and manage your API keys.

Endpoint reference

POST/api/v1/convert/gif-to-apng

Convert a GIF to APNG. Send the file as multipart/form-data with field name `file`.

POST/api/v1/convert/apng-to-webp

Convert an APNG to animated WebP. Send the file as multipart/form-data with field name `file`.

POST/api/v1/compress/apng

Losslessly compress an APNG. Send the file as multipart/form-data with field name `file`.