---
title: Convert WebP to AVIF API
slug: webp-to-avif-conversion
url: https://apyhub.com/apyhub/service/webp-to-avif-conversion
provider: ApyHub
categories: [File Conversion, File Manipulation]
tags: [webp-conversion, avif, image-conversion, image-processing, file-conversion]
auth: api_key
version: 1.0
service_type: sync
endpoints: 4
atoms: 30
mcp: true
---

# Convert WebP to AVIF API

Convert WebP images to AVIF from a public URL or multipart upload. Returns binary file downloads or a signed URL for the converted image.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/url/download` | What it does Converts a WebP image fetched from a publicly accessible URL into an AVIF file and ret… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/url/link` | What it does Converts a WebP image fetched from a publicly accessible URL into AVIF, then returns t… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/multi-part/download` | What it does Converts an uploaded WebP file to AVIF and returns the converted file as a binary resp… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/multi-part/link` | What it does Converts an uploaded WebP file to AVIF and returns a signed URL in the response. The r… | 30 |

## Endpoint reference

### Convert WebP to AVIF (fetch by URL, download file)

`POST https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/url/download` · 30 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Publicly accessible URL of the WebP image to convert. Example: `https://assets.apyhub.com/samples/sample.webp`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

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

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/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 file response containing the converted AVIF output.

### Convert WebP to AVIF (fetch by URL, return signed URL)

`POST https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/url/link` · 30 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Publicly accessible URL of the WebP image to convert. Example: `https://assets.apyhub.com/samples/sample.webp`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

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

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/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 resulting AVIF file URL.

```json
{
  "data": "https://apyhub-outgoing.s3.eu-west-1.amazonaws.com/mono-go/image-processor/general/image_2026-08-07_cf9f3365.avif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIARJOHWS6LWTUUGYPI%2F20260807%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20260807T121820Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&response-content-disposition=inline&response-content-type=image%2Favif&X-Amz-Signature=d1199c81abb9826d98ffecb1b1755209881fc5266219bb0ed09d6f343c8b0254"
}
```

### Convert WebP to AVIF (multipart upload, download file)

`POST https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/multi-part/download` · 30 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes |  |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Upload a WebP file to download its AVIF conversion. This example includes the required file upload and the optional output name query parameter.

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

#### What you'll get back

Returns a binary file which is the converted AVIF download.

### Convert WebP to AVIF (multipart upload, return signed URL)

`POST https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/multi-part/link` · 30 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes |  |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Upload a WebP file from your machine and get back an AVIF file URL.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/webp-to-avif-conversion/multi-part/link?output=my-invite" \
  -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 file.

```json
{
  "data": "https://apyhub-outgoing.s3.eu-west-1.amazonaws.com/mono-go/image-processor/general/image_2026-08-07_7fc14914.avif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIARJOHWS6LWTUUGYPI%2F20260807%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20260807T122308Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&response-content-disposition=inline&response-content-type=image%2Favif&X-Amz-Signature=434ea2270546bc21021a1488a6cfd8337337c4abc26a396d2e07b8fefa71e675"
}
```

## About

## What it does
WebP to AVIF Converter turns a WebP image into an AVIF file. Send either a public image URL or a multipart file upload, and get back the converted image as a download or a signed URL.

Use the URL-based endpoints when the source image is already hosted publicly. Send `body.url`, and choose the `output` query parameter if you want a named output. The service returns either binary file data or a JSON response with a `data` URI, depending on the endpoint you call.

Use the multipart endpoints when you already have the file in your request. Send `body.file`, and again choose between direct download and signed-link responses. That makes it easy to plug into upload flows, media pipelines, or server-side image jobs where you want AVIF output without handling conversion locally.

Typical uses include optimizing product images, preparing web assets for modern browsers, or converting uploaded WebP files before storage or delivery. The API is limited to WebP input and AVIF output, so the request and response format stay predictable.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/webp-to-avif-conversion
