Free plan

Blur Regions

Hide faces, plates or names by blurring parts of a picture
POST
/v1/images/blur-regions
Area hidden
Original
OriginalArea hidden

About this tool

Hides the parts of a picture that you point at, so they cannot be read or recognised. You give the areas as boxes or ovals with a position and size, and choose to blur them, make them blocky, or cover them with a solid colour. Faces usually need a strong effect to be hidden well.
For example, you hide a house number and a car number plate before posting a photo online.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Enter the areas to hide, with their position and size.
  4. Choose blur, blocky or cover, and how strong it should be, then press Generate.
  5. Download the result.

What you get back

You get a copy of the picture with the chosen areas hidden. You can download it.
GOOD TO KNOW
A blur or pixelation is made from the real pixels and cannot be undone; use cover to hide completely. One picture counts as one image.
TEST IT LIVE

Try Blur Regions in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/blur-regions
Tool ID
images.blur-regions
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/blur-regions" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'regions=[{"x":40,"y":30,"width":120,"height":80,"shape":"ellipse"}]' \
  -F 'unit=px' \
  -F 'mode=blur'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.blurRegions({
    "images": 'photo.jpg',
    "regions": "[{\"x\":40,\"y\":30,\"width\":120,\"height\":80,\"shape\":\"ellipse\"}]",
    "unit": "px",
    "mode": "blur"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->blurRegions([
    'images' => 'photo.jpg',
    'regions' => '[{"x":40,"y":30,"width":120,"height":80,"shape":"ellipse"}]',
    'unit' => 'px',
    'mode' => 'blur',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Hide parts of a picture (faces, number plates, names on a screenshot) by blurring, pixelating or covering the rectangles and ellipses you give, in pixels or in percent.

Blur Regions accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Blur Regions is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/blur-regions with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.