API Endpoint Access URL
https://api.pixlab.io/enhance
Get Your API Key & Try ENHANCE Now ↗Description
Enhance API: Apply a digital filter to improve the quality of noisy images, perfect for developers and creators looking to refine visual content. Applies a digital filter that improves the quality of a noisy 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. |
key |
String | Your PixLab API Key ↗. Alternatively, embed your key in the WWW-Authenticate: HTTP header to omit this parameter. |
Optional
Fields | Type | Description |
---|---|---|
blob |
Boolean | Returns JSON with output image link by default. Set to true to return raw image binary instead. |
POST Request Body
Use when submitting POST requests instead of GET:
Allowed Content-Types:
multipart/form-data
application/json
To facilitate direct image uploads, utilize multipart/form-data
. Please consult the REST API code samples for a functional implementation. For JSON, the image must be pre-uploaded. Call store to upload images before invoking this endpoint.
HTTP Response
Fields | Type | Description |
---|---|---|
status |
Integer | Status code 200 indicates success, any other code indicates failure. |
link |
URL | Link to the image output which is usually stored on the pixlab.xyz storage server unless you set your own S3 keys (refer to your dashboard ↗ on how to do that). |
id |
String | Unique image ID. |
error |
String | Error message if status != 200. |
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 omitted. Otherwise, the raw image binary is returned. The JSON response structure is documented above.
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
extent, flatten, gamma, flip, flop, noise, haldclut, merge, implode, linearstretch, medianfilter, modulate, shade, negate