Run Local Model
Run Local Model
Section titled “Run Local Model”The generic Local AI node: pick a task, pick any installed model, feed it an input. Use it for tasks the dedicated nodes don’t cover, for custom-imported models, or when you want one node that adapts. Runs locally in your browser — private, offline, no cost.
What it does
Section titled “What it does”Runs the selected on-device model for the task you choose and returns the normalized output for that task (the same shapes the dedicated nodes return).
When to use it
Section titled “When to use it”- You imported a custom model and want to run it.
- You want embeddings from a node, not a dependency.
- You need image segmentation, a depth map, or extractive Q&A with the question and passage in one input.
- You’d rather configure one flexible node than reach for the specific one.
Inputs and settings
Section titled “Inputs and settings”| Setting | Notes |
|---|---|
| Task | One of: Classify image, Detect objects, Caption image, Segment image, Depth map, Transcribe audio, Moderate text, Answer question, Generate text, Embeddings, Custom model (raw output). |
| Model | Any installed model for the chosen task, across engines. The picker is filtered to the selected Task. |
| Input | Depends on the task — see below. |
Input by task
Section titled “Input by task”- Image and audio tasks (Classify image, Detect objects, Caption image, Segment image, Depth map, Transcribe audio) — an image/audio URL, data URL, raw base64, or
$binaryfrom a previous node. - Answer question — JSON with both fields:
{ "question": "…", "context": "…" }. The answer is quoted fromcontext. - Text tasks (Moderate text, Generate text, Embeddings) and Custom model — text. A non-text value from an expression is passed as JSON.
Outputs
Section titled “Outputs”The output shape matches the chosen task:
- Classify image / Moderate text →
{ predictions, top, score } - Detect objects →
{ objects, count, top } - Caption image / Generate text →
{ text } - Segment image →
{ segments, labels, top }—segmentsis[{ label, score, coverage, mask }], largest region first; eachmaskis a black-and-white PNG binary (image/png) of that region, usable anywhere a$binaryimage is accepted. - Depth map →
{ depth, width, height, $binary }—depthis a grayscale PNG depth map (with Depth Anything, brighter usually means closer), also exposed as$binaryso the next node’s media input picks it up via From input. - Transcribe audio →
{ transcript, segments, chunks } - Answer question →
{ answer, score } - Embeddings →
{ embedding }(a numeric vector) - Custom model (raw output) →
{ result }— whatever the model returned, unchanged. Use it for a custom-imported model whose task isn’t one of the above.
Troubleshooting
Section titled “Troubleshooting”- Task/model mismatch — pick a model trained for the selected task; the picker only lists models for the chosen task. Change the task first, then the model.
- “Answer question needs JSON input …” — the Input must be valid JSON with non-empty
questionandcontextstrings. - Empty picker — install a model for that task first, from the picker or the Local AI page.