Skip to content
StemStudio
AI Portrait Cutout

AI Portrait Cutout

The image is processed in your browser; the first run downloads the model and runtime.

Input

Supported: JPG / PNG / WebP

Choose an image containing a person. JPG, PNG, WebP, and other browser-readable images are supported.

Local AI model setup: The first run downloads a portrait-matting model and runtime from the disclosed hosts. It runs ONNX Runtime Web 1.25.1 in a Worker, tries WebGPU where supported, and falls back to WASM. The selected image is not sent to StemStudio. First run downloads about 25 MB of model data and 22 MB of runtime data. See the model source, licence, and dataset conditions

Source image

Choose a portrait

Transparent PNG

The photo is ready for local AI matting.

If the AI model cannot start, images with a suitable solid background can use colour-based background removal instead. It is a different tool, not an equivalent AI result.

Estimate a person in a portrait and save the result as a transparent PNG. The image stays in your browser; the first run downloads the model and runtime.

1Choose imageA photowith a person2EstimateRuns in abrowser Worker3Save PNGInspect thetransparent resultThe selected image stays in the browser; only the model download uses the network.
AI portrait cutout

How to use

  1. 1Choose a portraitDrop in a browser-readable image containing a person.
  2. 2Run local AIWatch the model download and inference progress.
  3. 3Save the PNGInspect the transparency and download the result.

What this tool does

Estimate a person

It estimates foreground opacity with a portrait model instead of deleting a chosen colour.

Local inference

The model runs in a browser Worker. The selected image is not sent to StemStudio.

Inspect and save

Preview the transparent result and download a PNG. The colour-based remover is a separate tool.

All tools

Limits and good uses

Does it handle every subject?

No. This is a portrait-only matting model. Products, animals, multiple people, and reflective or complex backgrounds can be poor fits.

Is the AI result guaranteed?

No. Hair, glass, white clothing, effects, and motion can produce imperfect edges or opacity.

Is the image uploaded?

The image is processed in this browser. Only the first-run model and runtime download contacts external hosts.

What happens on the first run?

The pinned AI model and runtime are downloaded. Later runs may use the browser HTTP cache, which the browser can evict.

Frequently asked questions

Is this the same as colour-based background removal?

No. This estimates a portrait with AI. Use the existing /image/bg-remove tool for a reliable solid-colour background.

Why can the processing image be smaller?

The browser canvas limit can require a smaller working image. The output dimensions are shown on the page.

Can I cancel it?

Yes. Model download, inference, and PNG compositing can be cancelled; a stale run cannot overwrite a newer result.