apyhub
FILE CONVERSION · FILE MANIPULATION

Convert PNG to WebP API

What it does

PNG to WebP Converter turns a PNG image into a WebP file. Send either a publicly accessible PNG URL or a PNG file upload, and get back either a binary WebP download or a signed URL, depending on the endpoint you choose.

Use the URL-based endpoints when your source image already lives on the web. POST /url/link returns a data field containing a URI for the converted file, while POST /url/download returns the converted file as binary content. If you already have the image in your request, POST /multi-part/link accepts a binary image and returns a data URI, and POST /multi-part/download returns binary WebP output.

This is useful for image optimization workflows where you need smaller, web-friendly assets without changing the source pipeline. For example, you can convert product images, thumbnails, or uploaded PNGs to WebP before storing them in your CDN or serving them to browsers.

The request schemas are minimal: the URL endpoints require url, and the multipart endpoints require image. Each endpoint also accepts an optional output query parameter.

▣ ENDPOINT 01 / 04
POST
Convert PNG to WebP (URL, signed URL)
https://api.eu.apyverse.com/apyhub/convert-png-to-webp/url/link

QUICKSTART

GUIDE

Quickstart

Convert a public PNG URL to a WebP link by sending the source image URL in the request body.

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

What you'll get back

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

{
  "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 PNG image. `url` is mandatory.
Publicly accessible URL of the PNG image to convert. Mandatory.

About this endpoint

What it does

Converts a PNG image available at a publicly accessible URL into a WebP image. It returns a JSON object containing a data URI for the converted output.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOptional output name.

Request Body

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

Response

Returns a JSON object with a data string field formatted as a URI. This is the converted WebP image output.

ParameterTypeMandatoryDescription
dataStringYesURI of the converted WebP image.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
Publicly accessible URL of the source PNG image. `url` is mandatory.
▣ ENDPOINT 02 / 04
POST
Convert PNG to WebP (multipart, download)
https://api.eu.apyverse.com/apyhub/convert-png-to-webp/multi-part/download

QUICKSTART

GUIDE

Quickstart

Upload a PNG image to convert it to WebP and download the result.

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

What you'll get back

Returns a binary file (string with format: binary) containing the converted WebP 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.
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 PNG format. Mandatory.

About this endpoint

What it does

Converts an uploaded PNG image to WebP and returns the resulting file as binary data. The request sends the source image in the multipart request body and can include an output query parameter to influence the downloaded file naming.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOptional output name.

Request Body

ParameterTypeMandatoryDescription
imageStringYesThe source image file in PNG format. Binary file upload.

Response

Returns a binary file response containing the converted WebP image. The output schema is a binary string, so the success response is not a JSON object and does not define named JSON fields.

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 PNG to WebP (multipart, signed URL)
https://api.eu.apyverse.com/apyhub/convert-png-to-webp/multi-part/link

QUICKSTART

GUIDE

Quickstart

Upload a PNG file to get back a WebP file link.

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

What you'll get back

Returns a JSON object with a data string field containing the generated file URI.

{
  "data": "https://example.com/my-invite.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 PNG format. Mandatory.

About this endpoint

What it does

Converts a PNG image uploaded as multipart form data into a WebP file and returns a URI string for the generated output. The request can also include an output query parameter to identify the output.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoIdentifier for the output file.

Request Body

ParameterTypeMandatoryDescription
imageStringYesThe source image file in PNG format.

Response

Returns a JSON object with a data string field in URI format. This field contains the URI for the generated WebP output.

ParameterTypeMandatoryDescription
dataStringYesURI for the generated WebP file.

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 PNG to WebP (URL, download)
https://api.eu.apyverse.com/apyhub/convert-png-to-webp/url/download

QUICKSTART

GUIDE

Quickstart

Convert a PNG from a public URL to WebP by sending the source image URL in the request body.

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

What you'll get back

Returns a binary file response (format: binary), so the output is the converted WebP file content itself.

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

About this endpoint

What it does

Converts a publicly accessible PNG image at the provided URL into a WebP file and returns the converted file as binary data.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput filename prefix or name.

Request Body

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

Response

Returns the converted file as binary data in the response body.

ParameterTypeMandatoryDescription
binaryStringYesThe response body is a binary WebP file.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
Publicly accessible URL of the source PNG 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.