---
title: "Remove background from image"
method: POST
path: "/v1/image/remove-background/base64"
tags: ["S1 Background Removal"]
---

# Remove background from image

`POST /v1/image/remove-background/base64`

## Request

- Base URL: `https://api.brainiall.com`
- URL: `https://api.brainiall.com/v1/image/remove-background/base64`
- Auth: HTTP bearer

Two tiers: Fast (rembg U2-Net, ~0.4s) or HD (Brainiall Cutout engine, mIoU 0.95, ~2s).

## Request body

- BackgroundRemovalRequest
  - `image` string, byte, required: Base64-encoded PNG/JPEG/WebP
  - `tier` 'fast' | 'hd'
  - `output_format` 'png' | 'webp'

## Response `200`

Image processed

- ImageResponse
  - `image` string, byte, required

## Other responses

- `400`: Invalid input
- `401`: Unauthorized
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/brainiall/apis/brainiall-specialist-ai-apis.md) · [All operations](https://skmtc.dev/brainiall/apis/brainiall-specialist-ai-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/brainiall/apis/brainiall-specialist-ai-apis/revisions/e44fed29a7b5?raw)
