apyhub
FILE CONVERSION · FILE MANIPULATION

Convert SVG to WebP API

What it does

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

Use the multipart endpoints when you already have the SVG file in your request body. Use the URL endpoints when the source SVG lives somewhere public and you want to convert it without uploading the file yourself. The request schema accepts either image in a multipart body or url in the body, plus an optional output query parameter.

The responses are simple: the download endpoints return binary WebP output, while the signed-URL endpoints return a JSON object with a data field containing a URI. That makes this API a fit for asset pipelines, CMS import jobs, and front-end image optimisation steps where you need a standard raster format from vector artwork.

If you need to convert icons, illustrations, or marketing graphics from SVG into WebP for faster delivery or broader compatibility, this service gives you a direct conversion path without extra processing.

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

QUICKSTART

GUIDE

Quickstart

Convert one SVG file to WebP by uploading the image as multipart form data.

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

What you'll get back

Returns a binary file (string with format: binary) containing the generated WebP output.

(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 SVG format. Mandatory.

About this endpoint

What it does

Converts an uploaded SVG image to WebP and returns the converted file as a binary response. The request sends the source file in a multipart body and can include an output query parameter to name the download.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput filename stem for the downloaded file.

Request Body

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

Response

Returns a binary file response containing the converted WebP image.

AttributeTypeMandatoryDescription

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

QUICKSTART

GUIDE

Quickstart

Convert an SVG file to a WebP link by uploading the image.

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

What you'll get back

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

{
  "data": "https://example.com/output.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 SVG format. Mandatory.

About this endpoint

What it does

Converts an uploaded SVG image to WebP using a multipart request and returns a WebP file location as a URI in the response. The request body must include the source image file, and you can optionally provide an output query parameter.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput name to use.

Request Body

ParameterTypeMandatoryDescription
imageStringYesThe source image file in SVG format. Mandatory.

Response

Returns a JSON object with a data string field formatted as a URI. This field contains the WebP file location produced by the conversion.

ParameterTypeMandatoryDescription
dataStringYesURI of the generated WebP output.

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

QUICKSTART

GUIDE

Quickstart

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

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

What you'll get back

Returns the converted file as binary 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 SVG image. `url` is mandatory.
Publicly accessible URL of the SVG image to convert. Mandatory.

About this endpoint

What it does

Converts an SVG image available at a public URL into a WebP file and returns the generated file as binary content. The request body supplies the source SVG URL, and the output query parameter can be used to set the download filename.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoDownload filename prefix or name.

Request Body

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

Response

Returns a binary response containing the converted WebP file.

ParameterTypeMandatoryDescription
(binary)StringYesThe generated WebP file content.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

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

QUICKSTART

GUIDE

Quickstart

Convert a public SVG URL to a WebP file by sending the SVG link in the request body.

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

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

About this endpoint

What it does

Converts a publicly accessible SVG at a URL into a WebP image and returns the converted file as a URI in the response. The request body must include the source SVG url; an optional output query parameter can be used to name the generated file.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput file name prefix.

Request Body

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

Response

Returns a JSON object with a data string field containing a URI to the converted WebP image.

AttributeTypeMandatoryDescription
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 SVG 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.