apyhub

Convert JPEG to WebP API

What it does

JPEG to WebP Converter turns a JPEG or JPG image into a WebP file. Send either a binary image upload or a publicly accessible image URL, and get back the converted result as a file download or a signed URL, depending on the endpoint you use.

Use the multipart endpoints when you already have the source image in your app or form upload flow. Use the URL endpoints when the image already lives somewhere public and you want to convert it without downloading it first. In both cases, the request only needs the source image input plus the optional output query parameter.

The response is simple and matches the delivery mode: download endpoints return the converted WebP as binary data, while signed-URL endpoints return a JSON object with a data field containing a URI. That makes it easy to plug JPEG to WebP Converter into image pipelines, content delivery workflows, or storage backends that prefer WebP for smaller file sizes and browser support.

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

QUICKSTART

GUIDE

Quickstart

Upload a JPEG file to convert it to WebP, optionally naming the output file.

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

What you'll get back

Returns a binary file (string with format: binary) containing the converted WebP image.

(binary file download)
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*
The source image file in JPEG/JPG format. Mandatory.

About this endpoint

What it does

Converts a JPEG/JPG image uploaded as multipart form data into a WebP file and returns the converted file as a binary download.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput filename hint for the download.

Request Body

ParameterTypeMandatoryDescription
imageStringYesThe source image file in JPEG/JPG format. Binary file upload.

Response

Returns a binary file download containing the converted WebP image. The success response is a binary payload rather than a JSON object.

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

QUICKSTART

GUIDE

Quickstart

Upload a JPEG/JPG image to convert it to WebP and return a link to the result.

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

What you'll get back

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

{
  "data": "https://example.com/my-image.webp"
}
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*
The source image file in JPEG/JPG format. Mandatory.

About this endpoint

What it does

Converts a JPEG/JPG image uploaded as multipart form data into WebP and returns a JSON object containing a URI string in data.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput identifier. Format: string.

Request Body

ParameterTypeMandatoryDescription
imageStringYesThe source image file in JPEG/JPG format. Format: binary.

Response

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

ParameterTypeMandatoryDescription
dataStringYesURI returned by the service. 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.

▣ ENDPOINT 03 / 04
POST
Convert JPEG to WebP (URL, download)
https://api.eu.apyverse.com/apyhub/convert-jpeg-to-webp/url/download

QUICKSTART

GUIDE

Quickstart

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

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-jpeg-to-webp/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 (string with format: binary) containing the converted WebP image.

(binary webp 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 source JPEG image. `url` is mandatory.
Publicly accessible URL of the JPEG image to convert. Mandatory.

About this endpoint

What it does

Converts a JPEG image available at a public URL into a WebP file and returns the converted file as binary content.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput file name.

Request Body

ParameterTypeMandatoryDescription
urlStringYesPublicly accessible URL of the JPEG image to convert. Format: URI.

Response

Returns a binary file response containing the converted WebP image. The output schema is a binary string, so the success response body is the converted file itself.

ParameterTypeMandatoryDescription
binaryStringYesBinary WebP file content returned by the endpoint.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
Publicly accessible URL of the source JPEG image. `url` is mandatory.
▣ ENDPOINT 04 / 04
POST
Convert JPEG to WebP (URL, signed URL)
https://api.eu.apyverse.com/apyhub/convert-jpeg-to-webp/url/link

QUICKSTART

GUIDE

Quickstart

Convert a JPEG image from a public URL to WebP by sending its url.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-jpeg-to-webp/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 WebP 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 source JPEG image. `url` is mandatory.
Publicly accessible URL of the JPEG image to convert. Mandatory.

About this endpoint

What it does

Converts a JPEG image available at a public URL into a WebP file. The response returns a JSON object with a data field containing the URI of the converted output.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOptional output identifier.

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 formatted as a URI.

AttributeTypeMandatoryDescription
dataStringNoURI of the converted WebP output.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
Publicly accessible URL of the source JPEG image. `url` is mandatory.
▣ 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.