apyhub
FILE CONVERSION · FILE MANIPULATION

Convert WebP to AVIF

What it does

WebP to AVIF Converter turns WebP images into AVIF files. Send a public WebP URL or upload a WebP file as multipart form data, and get back either the converted binary file or a signed download URL.

Use the URL-based endpoints when the source image is already hosted elsewhere. Send url in the request body, and optionally include output as a query parameter when you want a named output. If you prefer to upload directly, use the multipart endpoints with file and the same optional output parameter.

Choose the download variants when your app needs the AVIF file immediately. Choose the link variants when you want a signed URI for later retrieval or to pass the converted image to another service without handling the binary response yourself.

This fits image pipelines where you need smaller, modern image assets for web delivery, CDN processing, or storage migration from WebP to AVIF.

▣ ENDPOINT 01 / 04
POST
Convert WebP to AVIF (fetch by URL, download file)
https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/url/download

QUICKSTART

GUIDE

Quickstart

Convert a publicly accessible WebP image by sending its URL in the JSON body.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/url/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.webp"}'

What you'll get back

Returns a binary response (format: "binary") containing the converted AVIF file.

...file contents...
TRY ITLIVE · 10 ATOMS
Loading playground…

About this endpoint

What it does

Converts a WebP image fetched from a public URL into an AVIF file and returns the converted file as binary data. The request takes the source image URL in the body and can optionally take an output name in the query string.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput file name prefix for the converted file.

Request Body

ParameterTypeMandatoryDescription
urlStringYesPublicly accessible URL of the WebP image to convert. Must be a URI.

Response

Returns a binary response containing the converted AVIF file. The output schema is a single string with binary format, so there is no JSON wrapper or named response field.

ParameterTypeMandatoryDescription
responseStringYesBinary file content for the converted AVIF image.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
▣ ENDPOINT 02 / 04
POST
Convert WebP to AVIF (fetch by URL, return signed URL)
https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/url/link

QUICKSTART

GUIDE

Quickstart

Convert a public WebP image by sending its URL in a JSON body.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/url/link?output=my-invite" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.webp"}'

What you'll get back

Returns a JSON object with a data string field containing the URI of the converted AVIF file.

{
  "data": "https://example.com/sample.avif"
}
TRY ITLIVE · 10 ATOMS
Loading playground…

About this endpoint

What it does

Converts a WebP image fetched from a public URL into AVIF and returns a signed URL to the converted file.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput name or identifier for the generated file.

Request Body

ParameterTypeMandatoryDescription
urlStringYesPublicly accessible URL of the WebP image to convert. Must be a valid URI.

Response

Returns a JSON object with a data string field containing a URI to the converted AVIF file.

ParameterTypeMandatoryDescription
dataStringNoSigned URL of the converted AVIF file.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
▣ ENDPOINT 03 / 04
POST
Convert WebP to AVIF (multipart upload, download file)
https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/multi-part/download

QUICKSTART

GUIDE

Quickstart

Upload a WebP file to convert it to AVIF and download the resulting file.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/multi-part/download" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.webp"

What you'll get back

Returns a binary file (string with format: binary) containing the converted AVIF output. The response body is the file itself, not a JSON object.

TRY ITLIVE · 10 ATOMS
Loading playground…

About this endpoint

What it does

Converts an uploaded WebP image file to AVIF and returns the converted file as binary data.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput file name prefix or name hint.

Request Body

ParameterTypeMandatoryDescription
fileStringYesWebP image file to convert. Binary upload.

Response

Returns a binary file containing the converted AVIF image.

ParameterTypeMandatoryDescription
binary responseStringYesThe response body is a binary file stream.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ ENDPOINT 04 / 04
POST
Convert WebP to AVIF (multipart upload, return signed URL)
https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/multi-part/link

QUICKSTART

GUIDE

Quickstart

Upload a WebP file to convert it to an AVIF link.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif-api/multi-part/link" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.webp"

What you'll get back

Returns a JSON object with a data string field containing the URI of the converted AVIF file.

{
  "data": "https://example.com/output.avif"
}
TRY ITLIVE · 10 ATOMS
Loading playground…

About this endpoint

What it does

Converts an uploaded WebP image to AVIF and returns a JSON object containing a signed URL in the data field. The request sends the source file as multipart form data.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput identifier for the conversion.

Request Body

ParameterTypeMandatoryDescription
fileStringYesWebP image file to convert. Binary upload.

Response

Returns a JSON object with a data string field formatted as a URI. The success response body is an object wrapper containing the signed URL in data.

ParameterTypeMandatoryDescription
dataStringNoSigned URL returned by the conversion. Format: URI.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.