apyhub
FILE CONVERSION · FILE MANIPULATION

Converter JPEG to AVIF API

What it does

JPEG to AVIF Converter turns a JPEG image into an AVIF file. Send either a multipart file upload or a public JPEG URL, and choose whether you want the converted image returned as a binary download or as a signed URL in the data field.

Use the /multi-part/download and /url/download endpoints when your application needs the AVIF file immediately. Use the /multi-part/link and /url/link endpoints when you prefer a URL-based response you can hand off to another step in your workflow. In every case, the only input you provide is the source JPEG: either file in the request body or url in the request body, plus the optional output query parameter.

This is a good fit for image pipelines that need smaller modern image assets for web delivery, content platforms that convert uploads on ingestion, or backend jobs that standardise incoming JPEGs into AVIF before storage or CDN distribution.

▣ ENDPOINT 01 / 04
POST
Convert JPEG to AVIF (multipart upload, download file)
https://api.eu.apyverse.com/apyhub/convert-jpeg-to-avif/multi-part/download

QUICKSTART

GUIDE

Quickstart

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

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

What you'll get back

Returns a binary file — the converted AVIF image content.

...binary file data...
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*
JPEG image file to convert.

About this endpoint

What it does

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

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput name to use for the converted file.

Request Body

ParameterTypeMandatoryDescription
fileStringYesJPEG image file to convert. Format: binary.

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 02 / 04
POST
Convert JPEG to AVIF (multipart upload, return signed URL)
https://api.eu.apyverse.com/apyhub/convert-jpeg-to-avif/multi-part/link

QUICKSTART

GUIDE

Quickstart

Upload a JPEG file to get a converted AVIF link back.

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

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/my-invite.avif"
}
TRY ITLIVE · 10 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*
JPEG image file to convert.

About this endpoint

What it does

Converts an uploaded JPEG image to AVIF and returns a JSON object containing a data field with a signed URL. The request sends the source image as multipart form data; the response contains the URL of the generated result.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOptional output name/identifier for the generated file.

Request Body

ParameterTypeMandatoryDescription
fileStringYesJPEG image file to convert. binary format.

Response

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

ParameterTypeMandatoryDescription
dataStringYesSigned URL returned by the service.

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 03 / 04
POST
Convert JPEG to AVIF (fetch by URL, download file)
https://api.eu.apyverse.com/apyhub/convert-jpeg-to-avif/url/download

QUICKSTART

GUIDE

Quickstart

Convert a JPEG from a public URL into an AVIF file by sending the image URL in the request body.

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

What you'll get back

Returns a binary file response containing the converted AVIF image.

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 JPEG image to convert.

About this endpoint

What it does

Converts a JPEG image fetched from a public URL into an AVIF file and returns the converted file as binary content.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput filename prefix or name. The schema provides no additional constraints.

Request Body

ParameterTypeMandatoryDescription
urlStringYesPublicly accessible URL of the JPEG image to convert.

Response

Returns a binary file response containing the converted AVIF image. The output schema declares a binary string payload.

AttributeTypeMandatoryDescription
binaryStringYesThe converted AVIF file content returned as binary data.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

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

QUICKSTART

GUIDE

Quickstart

Convert a public JPEG URL to AVIF by sending the image URL in the request body.

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

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 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 JPEG image to convert.

About this endpoint

What it does

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

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOptional output name/identifier for the generated file.

Request Body

ParameterTypeMandatoryDescription
urlStringYesPublicly accessible URL of the JPEG 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
dataStringYesSigned URL for the converted AVIF file.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
▣ 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.