Spiral gives your agent every tool with one account. Browse the tools →

n8n · LLMReleased 2026-10-15

How to Use Moondream 3.1 in n8n

Moondream 3.1 reads images, answers visual questions, and extracts document data. Its 9B total parameters and 2B active parameters support visual reasoning, with particular improvements in crowded scenes.

Prompts to try with Moondream 3.1 in n8n

Copy an example into n8n, or ask in your own words.

Every morning, use Moondream 3.1 to read newly received receipt images. Extract the merchant name from each and mark unreadable names for review.

Moondream 3.1n8n
Try asking
  • Each afternoon, use Moondream 3.1 to inspect newly received invoice images. Extract one invoice number per image and flag missing or unreadable values.

  • Every hour, use Moondream 3.1 on the latest shelf photograph. Ask whether a cardboard carton is visible and record yes, no, or unclear.

  • Every ten minutes, use Moondream 3.1 to describe the latest sampled loading-dock frame in one sentence. Include its timestamp in the report.

  • At the end of each day, use Moondream 3.1 to inspect new form images. Extract the printed reference number and mark unreadable values for review.

How to set up Moondream 3.1 in n8n

Pick the way that suits you. Each takes about two minutes.

Use the Spiral skill

  1. Send n8n this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run Moondream 3.1 in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Moondream 3.1, prices it and runs it each time the step fires.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Moondream 3.1

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "moondream/moondream3.1-9b-a2b",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: n8n finds Moondream 3.1 on Spiral, shows the price and runs it.

Moondream 3.1 providers and prices

Spiral runs Moondream 3.1 through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Moondream: Moondream 3.1
moondream/moondream3.1-9b-a2b

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Top p0 to 1
Max tokens1 to 4096

The most output tokens to generate.

Temperature0 to 2

Every API field of Moondream: Moondream 3.1 is on its tool page: open its card above.

What can you do with Moondream 3.1 in n8n?

Review incoming document images and sampled camera frames with Moondream 3.1. Keep each recurring check focused so its results are easy to compare and review.

Receipt extraction

Read a receipt image and extract its merchant name into a structured record.

Invoice review

Ask a focused question about an invoice image, such as which invoice number is shown.

Form transcription

Extract a requested value from a form image for review or further processing.

Shelf inspection

Ask targeted visual questions about a crowded shelf photograph.

Parts-bin review

Inspect a bin photograph for a named visible object or condition.

Video frame summaries

Turn selected still frames into short descriptions of the visible activity.

Questions about Moondream 3.1 in n8n

Can n8n use Moondream 3.1?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Moondream 3.1 like any built-in tool.

How much does Moondream 3.1 cost in n8n?

Up to $0.013327 per run at the default inputs. $0.39 per 1M input tokens, $3.25 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

Do I need an OpenRouter account to use Moondream 3.1 in n8n?

You need no OpenRouter account. n8n uses one Spiral API key for every tool, and Spiral runs Moondream 3.1 on its own OpenRouter account.

How long does it take to set up Moondream 3.1 in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while Moondream 3.1 runs?

Moondream 3.1 runs in the background. n8n starts the run, checks on it and gives you the text, json when it's ready.

What is Moondream 3.1 useful for?

Use it for visual questions, document extraction, and understanding crowded scenes such as shelves or bins of parts. Evaluate it on representative images before relying on its answers.

Can Moondream 3.1 read receipts and invoices?

Yes. Ask for the specific information you need, such as the merchant name, and request JSON when the result needs further processing.

How should I write a visual question?

Ask one specific question at a time. State the expected answer format, and explicitly request detail when you need a longer explanation.

When should I enable reasoning?

Use reasoning for questions that require several steps or careful visual interpretation. It generates additional analysis, so allow enough output space for both the analysis and the answer.

Does Moondream 3.1 support structured answers?

Yes. Include the JSON keys you want in the prompt so the answer has a defined structure.

Get started

Start using Moondream 3.1 in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options