API Endpoint Access URL
https://api.pixlab.io/roundcorners
Get Your API Key & Try ROUNDCORNERS Now ↗Description
ROUNDCORNERS API endpoint rounds the corners of images, perfect for developers and creators looking to enhance visual content. Rounds the corners of a given image.
HTTP Methods
GET, POST
HTTP Parameters
Required
Fields | Type | Description |
---|---|---|
img |
URL | Input image URL. If uploading directly from your app, submit a multipart/form-data POST request. |
x |
Integer | X rounding radius in pixels. |
y |
Integer | Y rounding radius in pixels. |
key |
String | Your PixLab API Key ↗. Alternatively, embed your key in the WWW-Authenticate: header to omit this parameter. |
Optional
Fields | Type | Description |
---|---|---|
blob |
Boolean | Returns image binary contents when true. Default: JSON response with output URL. |
POST Request Body
Use when submitting POST requests instead of GET:
Allowed Content-Types:
multipart/form-data
(direct uploads)application/json
(pre-uploaded images)
For direct uploads, use multipart/form-data
(see REST API code samples). For JSON, ensure your image is already hosted. Upload images first via store endpoint if needed.
HTTP Response
The API returns application/json
if the optional blob parameter is not set.
This endpoint returns a JSON Object after each call only if the optional blob parameter is not set. Otherwise, the image binary contents are returned directly. The following fields are included in the JSON response body:
Fields | Type | Description |
---|---|---|
status |
Integer | Status code 200 indicates success, any other code indicates failure. |
link |
URL | Link to the processed image stored on the pixlab.xyz CDN unless custom S3 keys are configured (see your dashboard ↗ for configuration). |
id |
String | Unique identifier for the processed image. |
error |
String | Error description when status ≠ 200. |
Code Samples
# Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
// Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
# Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
# Refer to the PixLab Github Repository at: https://github.com/symisc/pixlab for the full list of production ready code samples...
Similar API Endpoints
polaroid, posterize, segment, favicon, randomthreshold, grayscale, raise, quantize, roll, shadow, sepia, transverse, transpose, reverse, reflect