Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / ai / localai

Classify Image

Label an image on-device with any installed image-classification model

AI ExtensionWeb app

Label what an image shows, with confidence scores, using a model that runs in your browser so the image never leaves your device.

Classify Image runs the Image through the image-classification model you pick, such as MobileNet v2 (TensorFlow.js) or ViT base (patch16) (transformers.js). It returns the labels the model knows, each with a score from 0 to 1. The labels come from the model; the built-in ones recognise everyday objects and animals, such as “golden retriever” or “laptop”.

Labels below Confidence threshold are dropped, the rest are sorted best first and cut to Top-K results. There is no cost per run and no API key.

  • Tag screenshots or downloaded images with what they contain.
  • Branch a workflow on the content of an image, for example only save photos of a product type.

To find several objects and where they are, use Detect Objects. For a sentence describing the image, use Caption Image.

SettingTypeWhat it does
Model Model pickerAny installed image-classification model, across engines.
Image MediaImage URL, data URL, or $binary from a previous node.
Confidence threshold NumberDrop predictions below this score. Default: 0.1
Top-K results Number Default: 5

Image has four tabs. From input takes an expression that points to an image from an earlier node, such as {{ $input.dataUrl }} after Screenshot Page or {{ $binary }} for an attached file. URL takes a web address. Upload and Base64 store a fixed image with the node, handy for trying a model.

  • Output

Each output item has these fields:

FieldTypeWhat it holds
predictions List of entriesLabels above the threshold, best first
top TextThe best label, or null when none passed
score Number
Shape of an output item
{
"predictions": [],
"top": "…",
"score": 0
}

Each entry in predictions is { label, score }, and score is the score of top. Branch on {{ $input.top }} with an IF that checks whether it contains a word, since labels often hold several names (“tabby, tabby cat”).

None. This node needs no connection and has no slots for other nodes.

The Model picker lists your installed models first, then models that download on first use. Manage them on the Local AI page.

Tag the image you right-click:

  1. Context Menu with Menu Contexts set to Image.
  2. Classify Image with Model ViT base (patch16), Image (From input) {{ $input.srcUrl }}, Confidence threshold 0.2 and Top-K results 3.
  3. Show Notification with Title Looks like and Message {{ $input.top }}.
  • “Choose a model to classify with.” Model is empty. Pick one.
  • “No image provided. Pass an image URL, a data URL, or a $binary image from a previous node.” Image is empty, or its expression returned nothing. Check the field you point to.
  • top is null or predictions is empty. No label reached Confidence threshold. Lower it, or try ViT base (patch16) instead of MobileNet v2.
  • The first run is slow. The model downloads and loads on first use; later runs are fast.
Edit page

Last updated:

Was this page useful?
Ask Aria about Classify Image