# Redact part of an image

Hide part of an image, such as a face, name, address or number, with a solid box, a blur or pixelation.

- Endpoint: `POST https://setget.net/v1/tools/image-redact` with JSON `{"input": {...}}` (add `"wait": 30` to hold the reply until the job finishes)
- MCP: `run_tool` with `slug` = `image-redact`
- Page: https://setget.net/tools/image-redact

## Files in, files out

This is a file tool. Its file inputs take file references, not file contents and not web addresses.

- Get a reference by uploading: `curl -T FILE https://setget.net/drop/` prints a line `ref  <id>/f1`. Or `POST https://setget.net/v1/drops` with `{"files":[{"name","size"}]}`, PUT the bytes to the returned `upload.url` with the listed headers, and use the file's `ref`. Over MCP use the `drop` tool. A file under about 700 KB can also be sent in place as a `data:<type>;base64,<content>` URI.
- Uploads are at most 100 MB per file, are readable by anyone with the link, and expire (one hour by default). Programs are refused.
- The tool runs as a job. The reply is `{"tool", "ms", "result", "files", "job"}`: `result` is JSON, and every result file comes back in `files` as `{"name", "size", "content_type", "kind", "url", "ref"}`. Download it from `url`, or pass `ref` as the input of another file tool.
- A job still running when the wait ends answers 202 with `job`. Follow it with `GET https://setget.net/v1/jobs/<id>?wait=30`, or stream progress from `GET https://setget.net/v1/jobs/<id>/events` (over MCP: the `job` tool). A person can watch it at `job.url`.

## Inputs

- `image` (required, file, a file reference such as `DROP_ID/f1`, accepts image): The image to redact.
- `x` (required, integer, range 0..): Left edge of the area to hide, in pixels from the left of the image.
- `y` (required, integer, range 0..): Top edge of the area to hide, in pixels from the top of the image.
- `width` (required, integer, range 1..): Width of the area in pixels.
- `height` (required, integer, range 1..): Height of the area in pixels.
- `mode` (optional, string, one of `box`, `blur`, `pixelate`, default `"box"`): box covers the area with a solid colour and cannot be undone. blur and pixelate look softer but can sometimes be reversed.
- `strength` (optional, integer, default `20`, range 2..200): For blur, how far each pixel is smeared; for pixelate, the size of the blocks. In pixels.
- `color` (optional, string, default `"#000000"`): Colour of the box. A hex colour such as #ff8800, or a name such as white or black.

## Example 1: Black box

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.jpg](https://setget.net/static/samples/sample.jpg).

```json
{"input":{"image":"DROP_ID/f1","x":60,"y":40,"width":120,"height":60},"wait":30}
```

## Example 2: Pixelate an area

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.jpg](https://setget.net/static/samples/sample.jpg).

```json
{"input":{"image":"DROP_ID/f1","x":60,"y":40,"width":120,"height":60,"mode":"pixelate","strength":12},"wait":30}
```

## Example 3: Blur an area

Upload first. Each placeholder below stands for the reference of one upload: `DROP_ID/f1` = [sample.png](https://setget.net/static/samples/sample.png).

```json
{"input":{"image":"DROP_ID/f1","x":0,"y":0,"width":100,"height":100,"mode":"blur"},"wait":30}
```

**Which mode is safe for secrets?** box. A solid box replaces the pixels completely, so nothing is left to recover. Use it for passwords, account numbers, addresses and anything else that must stay hidden.

**Can blur or pixelation be reversed?** Sometimes, yes. Blurred or pixelated text and numbers have been recovered by software that tries likely values and compares the result. Use blur and pixelate for looks, such as softening a background face, not for secrets.

**Is the hidden part still in the file somewhere?** No. The pixels are changed for good, and the camera data and embedded preview pictures of the original are removed from the result.

**What if the area runs past the edge?** It is cut off at the edge of the image. The result reports the area that was covered.
