Skip to content

Video to AVIF ​

Convert a video clip into an animated AVIF image with configurable frame rate, width, quality, and clip range.

API Endpoint ​

POST /api/v1/tools/video/video-to-avif

Accepts multipart form data with a video file and a JSON settings field.

Parameters ​

ParameterTypeRequiredDefaultDescription
fpsintegerNo12Output frame rate (1-30)
widthintegerNo480Output width in pixels (64-1280). Height scales proportionally
startSnumberNo0Where the clip starts, in seconds
durationSnumberNo5Clip length in seconds (up to 60)
qualityintegerNo50AVIF quality (1-100)
loopbooleanNotrueLoop the animation

Example Request ​

bash
curl -X POST http://localhost:1349/api/v1/tools/video/video-to-avif \
  -H "Authorization: Bearer si_your-api-key" \
  -F "[email protected]" \
  -F 'settings={"fps": 15, "width": 640, "durationS": 4}'

Example Response ​

AV1 encoding is slower than GIF or WebP, so this tool usually answers 202 with a job to follow over SSE at /api/v1/jobs/{jobId}/progress. A short clip can finish inside the sync window and return the result directly:

json
{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/clip.avif",
  "originalSize": 12500000,
  "processedSize": 900000
}

Notes ​

  • Animated AVIF is royalty-free and usually smaller than an animated WebP or GIF at the same visual quality.
  • Current browsers play animated AVIF. Some desktop image viewers show only the first frame.
  • The audio track is dropped.