About this endpoint
What it does
Converts a publicly accessible JPEG image URL into a WebP image and returns the resulting WebP URL in the response body. You provide the source image URL in the request body, and can optionally pass an output query parameter.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| output | String | No | Optional output name. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Publicly accessible URL of the source JPEG image to convert. Format: URI. |
Response
Returns a JSON object with a data string field formatted as a URI. The data field contains the WebP image location produced by the conversion.
| Attribute | Type | Description |
|---|---|---|
| data | String | The url of the webp image. |