Four AI Image Tools in the Browser: Models, Licences and What Changed
These four tools run image models on your own device through transformers.js. This page started as their release notes; it now records what each one runs and downloads as of October 2026, the licence checks behind each choice, and the one tool whose model had to be replaced.
| Tool | Model | Licence | First download | Notes |
|---|---|---|---|---|
| AI Image Upscaler | Swin2SR, classical 2x and real-world 4x (CAIDAS, Univ. of Würzburg) | Apache 2.0 | about 22 MB (8-bit, CPU); about 54 MB with WebGPU | Two variants, one download each |
| AI Background Remover v2 | BiRefNet lite (Peng Zheng et al.) | MIT | 114.5 MB (fp16) | Needs WebGPU; no smaller quantized file exists |
| AI Image to Prompt | ViT-GPT2 image captioning (nlpconnect) | Apache 2.0 | about 248 MB (8-bit) | Replaced BLIP in October 2026 |
| AI Depth Estimator | Depth Anything V2 Small | Apache 2.0 | 27 MB (8-bit, CPU); 99 MB with WebGPU | Larger sizes are non-commercial |
Upscaler: two Swin2SR models for two kinds of input
The classical 2x model was trained on clean images shrunk with bicubic resampling, so it suits line art, logos and screenshots. The real-world 4x model was trained with simulated JPEG compression, noise and blur, which suits phone photos and images saved from the web. Both checkpoints are published by CAIDAS under Apache 2.0. The page loads Xenova’s ONNX conversions, whose repositories state no licence of their own, so the licence to check is the upstream one. An anime upscaler we looked at first (APISR) is GPL-3.0 and was ruled out.
Background remover v2: better edges, but only with WebGPU
BiRefNet lite segments any subject, not only people, so it handles the cases where the color-based Background Remover (a flood fill from the color you click) struggles: a mug on a table, a shoe on the floor, a cat on a chair. The launch notes gave its size as about 85 MB quantized. There is no quantized version: the ONNX files are 114.5 MB in half precision and 224 MB in full precision, and the tool runs the half-precision file on WebGPU only, so it needs a recent Chrome or Edge with WebGPU available. We have not yet been able to test it on a real WebGPU device (our test browser has none); that check is still open. The model most tutorials use, BRIA RMBG, is not an option for a site like this: its Hugging Face card carries a custom licence that allows non-commercial use only without a paid agreement.
Image to Prompt: the original model could not load
The launch version pointed at a BLIP captioning model whose browser files turned out not to be publicly available, so the tool could not load at all. It now runs nlpconnect’s ViT-GPT2 captioner (a Vision Transformer encoder with a GPT-2 decoder trained on COCO, Apache 2.0). In our October test in desktop Chromium it loaded in 20 seconds and captioned a photo of an orange cat in 9 seconds as “a cat is sitting on a sidewalk”. Captions are short, usually under 15 words, and miss detail such as exact colors, text in the image and counts, so read them before using one as alt text. The tool has two modes: the plain caption, and an SD prompt that appends generic quality words for Stable Diffusion-style generators. A conditional-caption mode promised at launch belonged to BLIP and went with it.
Depth Estimator: the smallest model, and a licence trap
Depth Anything V2 Small turns one photo into a grayscale depth map, white for near and black for far: relative depth, not distances in meters, which is what masking, parallax and displacement work needs. It is the smallest download of the four, 27 MB as 8-bit files on the CPU path (99 MB at full precision when the browser uses WebGPU). The family is where the licence trap sits. Small is Apache 2.0; the Base, Large and Giant variants are CC BY-NC 4.0, which rules them out for commercial use even though they come from the same organization and architecture.
What the licence checks taught us
- A model family is not a licence. Depth Anything V2 Small is Apache 2.0 and Base is CC BY-NC 4.0; check the exact model you ship, on its own card.
- A conversion is not a licence. ONNX ports often state no licence; the upstream checkpoint’s licence is the one that applies.
- “Open” is not a licence either. BRIA’s RMBG models are downloadable but licensed for non-commercial use, and APISR is GPL-3.0.
- Check that the files exist. A licence check passed for the original BLIP choice, but its browser files were not published, and the tool shipped broken.
What these tools need from your device
Each tool downloads its model once from the Hugging Face CDN and keeps it in the browser’s Cache Storage; images never leave the device. Three of the four run on the CPU through WebAssembly when WebGPU is missing and switch to a larger full-precision file when it is present; the background remover needs WebGPU. The first run is the slow one: allow for a 22 MB to 248 MB download before the first result.
Sizes and licences checked on each model’s Hugging Face card on October 12, 2026: Swin2SR classical x2, BiRefNet lite, BiRefNet lite ONNX, ViT-GPT2 captioning, Depth Anything V2 Small, Depth Anything V2 Base, BRIA RMBG-1.4.