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

n8n · LLMReleased 2025-04-05

How to Use Llama 4 Maverick in n8n

Llama 4 Maverick handles coding, multilingual chat, image questions, and creative writing. Compared with Llama 4 Scout, its documented context window is smaller: 1 million versus 10 million tokens.

Prompts to try with Llama 4 Maverick in n8n

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

Each morning, use Llama 4 Maverick to summarize the new support conversations supplied to this run. Group recurring issues, include a short supporting excerpt for each, and flag unresolved questions.

Llama 4 Maverickn8n
Try asking
  • Every Friday, use Llama 4 Maverick to compare this week's supplied project updates. Produce a 300-word brief covering completed work, blockers, and conflicting reports, with the source update named for each point.

  • For each daily batch of customer questions, use Llama 4 Maverick to draft replies in English, Spanish, or French to match the customer. Use only the supplied help guidance and flag cases it does not cover.

  • Each evening, use Llama 4 Maverick to summarize the supplied release announcements. Separate stated changes from your interpretation, include a supporting excerpt for every change, and keep the digest under 500 words.

  • Each Monday, use Llama 4 Maverick to draft three newsletter openings from the supplied editorial brief. Keep each under 100 words, vary the approach, and preserve all stated facts.

How to set up Llama 4 Maverick 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 Llama 4 Maverick in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Llama 4 Maverick, 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 Llama 4 Maverick

    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": "meta-llama/llama-4-maverick",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: n8n finds Llama 4 Maverick on Spiral, shows the price and runs it.

Llama 4 Maverick providers and prices

Spiral runs Llama 4 Maverick through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Meta: Llama 4 Maverick
meta-llama/llama-4-maverick

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top ka whole number from 0
Top p0 to 1
Logprobson or off
Max tokens1 to 32768

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of Meta: Llama 4 Maverick is on its tool page: open its card above.

What can you do with Llama 4 Maverick in n8n?

Llama 4 Maverick can turn recurring batches of supplied text into summaries and multilingual reply drafts. Define a consistent output structure and require supporting evidence so each run is easy to review.

Review a code change

Use Llama 4 Maverick to examine a proposed change, explain likely defects, and suggest tests tied to specific behavior.

Explain a failing test

Give Llama 4 Maverick the relevant code and failure output. Ask for a likely cause, a minimal correction, and a way to verify the fix.

Draft multilingual support replies

Ask Llama 4 Maverick to draft replies in a supported language using supplied product guidance. Require it to flag questions the guidance does not answer.

Summarize several documents

Have Llama 4 Maverick combine supplied documents into a brief that separates shared conclusions, disagreements, and unanswered questions.

Describe product photos

Ask Llama 4 Maverick for English descriptions grounded in visible details. Require it to leave out unverified materials, dimensions, and performance claims.

Answer questions about a chart

Give Llama 4 Maverick a chart image and ask in English about the visible trends. Request the labels or values supporting each observation.

Explore different writing approaches

Use Llama 4 Maverick to draft several openings, explanations, or short stories from the same brief. Specify how the approaches should differ.

Prepare answers from reference material

Ask Llama 4 Maverick to answer customer or internal questions using supplied reference text, with a supporting excerpt and a clear indication of missing information.

Questions about Llama 4 Maverick in n8n

Can n8n use Llama 4 Maverick?

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

How much does Llama 4 Maverick cost in n8n?

Up to $0.005342 per run at the default inputs. $0.455 per 1M input tokens, $1.30 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 Llama 4 Maverick in n8n?

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

How long does it take to set up Llama 4 Maverick in n8n?

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

Does n8n wait while Llama 4 Maverick runs?

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

What is Llama 4 Maverick good at?

Llama 4 Maverick is useful for code analysis, multilingual conversations, document summaries, image questions, and creative drafts. Give it the source material and a specific deliverable, such as a bug explanation or a summary with supporting excerpts.

Which languages does Llama 4 Maverick support?

Text support covers Arabic, English, French, German, Hindi, Indonesian, Italian, Portuguese, Spanish, Tagalog, Thai, and Vietnamese. Use English for image questions; documented image understanding is limited to English.

How much context can Llama 4 Maverick handle?

Its documented model context length is 1 million tokens, compared with 10 million for Llama 4 Scout. Treat that as context capacity, not a promise about the length of one answer.

How should I prompt Llama 4 Maverick?

State the task, supply the relevant material, and specify the audience, format, and length. Include an example when the output needs to follow a repeated pattern.

Which setting matters for creative writing?

Temperature is useful when you want more creative alternatives. Increase it while comparing drafts, and keep the audience, length, and factual requirements explicit.

Get started

Start using Llama 4 Maverick 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