Skip to main content
POST
Keeps the subject sharp and blurs the background. Returns a PNG directly in the response body.
Set the blur strength with radius (integer, maximum 50).
Image requirements: upload the image as multipart/form-data in the image field (image URLs aren’t supported). Formats: JPG, PNG, WEBP, BMP, GIF. Size: 1 KB to 10 MB. Content type: image/jpeg, image/png, image/webp, image/bmp or image/gif. Other files return 400 invalid_image. See Errors.

Result

Image
Image

Authorizations

ApiKey
string
header
required

Your API key (looks like bg_live_sk_…). Create one in the dashboard at https://fapihub.com/dashboard/.

Body

multipart/form-data
image
file
required

The image to process, uploaded as a file. Supported formats: JPG, PNG, WEBP, BMP, GIF. Size: 1 KB to 10 MB. The upload's content type must be image/jpeg, image/png, image/webp, image/bmp or image/gif. Image URLs are not supported.

radius
integer
required

Blur radius for the background. Maximum 50. Example: 10.

Required range: x <= 50
Example:

10

Response

The subject stays sharp and the background is blurred. Returned as binary image data with Content-Type: image/png.

The response is of type file.