apyhub
FILE CONVERSION · IMAGE PROCESSING

Convert WebP to AVIF API

What it does

WebP to AVIF Converter turns a WebP image into an AVIF file. Send a publicly accessible WebP URL or upload a WebP file, and get either the converted binary file back or a signed URL to the result.

Use the URL-based endpoints when your source image already lives on the web. The request body takes a single url, and you can set an optional output query value to name the returned file. If you prefer to upload directly, the multipart endpoints accept one file field containing the WebP image. In both cases, you choose whether the response is a downloaded binary or an object containing a data URL.

Use WebP to AVIF Converter when you need to store or serve images in AVIF for smaller file sizes and modern browser delivery, while keeping a WebP source in your pipeline. It fits image optimization jobs, media ingestion flows, and backend conversion steps where you want a predictable format change without extra processing logic.

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

QUICKSTART

GUIDE

Quickstart

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

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif/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 AVIF file (string with format: "binary"), so the response body is the converted image content.

[binary file]
TRY ITLIVE · 30 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Publicly accessible URL of the WebP image to convert.

About this endpoint

What it does

Converts a WebP image fetched from a public URL into an AVIF file and returns the resulting file as binary data.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput file name to use for the downloaded result.

Request Body

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

Response

Returns binary file data as the converted AVIF image. The success response is a binary payload, not a JSON object.

AttributeTypeMandatoryDescription

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/url/link

QUICKSTART

GUIDE

Quickstart

Convert a public WebP image URL to AVIF by sending the source URL in the JSON body.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif/url/link" \
  -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://..."
}
TRY ITLIVE · 30 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Publicly accessible URL of the WebP image to convert.

About this endpoint

What it does

Converts a WebP image fetched from a publicly accessible URL into AVIF and returns a JSON object containing a signed URL to the converted file.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput name or identifier.

Request Body

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

Response

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

ParameterTypeMandatoryDescription
dataStringNoURI of the converted 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/multi-part/download

QUICKSTART

GUIDE

Quickstart

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

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif/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 image.

(binary file response)
TRY ITLIVE · 30 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
WebP image file to convert.

About this endpoint

What it does

Converts an uploaded WebP image to AVIF and returns the resulting file as a binary response. The request sends the source file in the body and can include an output query parameter.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput file name prefix or name hint. Example: my-invite.

Request Body

ParameterTypeMandatoryDescription
fileStringYesWebP image file to convert. Binary file upload.

Response

Returns a binary file containing the converted AVIF image.

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/multi-part/link

QUICKSTART

GUIDE

Quickstart

Upload a WebP file to convert it to AVIF.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-webp-to-avif/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 a URI to the converted AVIF file.

{
  "data": "https://example.com/output.avif"
}
TRY ITLIVE · 30 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
WebP image file to convert.

About this endpoint

What it does

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

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOptional output name.

Request Body

ParameterTypeMandatoryDescription
fileStringYesWebP image file to convert. Binary file upload.

Response

Returns a JSON object with a data string field containing a URI.

ParameterTypeMandatoryDescription
dataStringNoSigned URL returned by the conversion request.

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.