@zerogpu/n8n-nodes-zerogpu, that adds a chat model for AI Agents, an embeddings model for vector stores, and a ZeroGPU node that runs herogpu’s task models as a workflow step or as an agent tool.
Herogpu is a compute-efficient inference provider for apps and agents. We run purpose-built small and nano language models across an edge network for the high-volume tasks you run constantly - classification, extraction, moderation, routing, summarization - at ~10x lower latency and 50%+ lower cost than frontier-model workflows. Auto-scaling, with zero GPU infrastructure to manage. Plug in and you’re live.
Overview
This guide covers the ZeroGPU nodes for n8n, for anyone building automations or AI agents in n8n who wants fast, low-cost models behind them. You’ll install the package, create a ZeroGPU API credential, and run your first AI Agent on herogpu, then work through everything the package exposes: the credential, the ZeroGPU Chat Model, ZeroGPU Embeddings, all 15 operations of the ZeroGPU node across audio, classification, documents, embeddings, extraction, moderation, and summarization, and the ZeroGPU Tool for AI Agents. Everything here matches version 0.4.0 of the package. By the end you’ll have chatbots, triage flows, and RAG assistants running on herogpu for fractions of a cent per run.Cookbook
For a chatbot built on the ZeroGPU Chat Model, see Build an Order-Support Chatbot with n8n and herogpu. An AI Agent on DeepSeek V4.1 Flash answers “Where is my order?” questions, decides on its own when to call an order-lookup tool, and remembers the conversation, with each reply in 1 to 4 seconds and a whole conversation for about a tenth of a cent. For an agent with herogpu tools, see Triage a Support Inbox with n8n and ZeroGPU Tools. The agent calls four ZeroGPU Tools (Redact PII, Moderate Text, Classify by Schema, and Summarize Text) and turns a raw customer email into a triage card with a safety verdict, a team, a summary, and a copy that’s safe to forward, in about 10 seconds for about a fifth of a cent. For retrieval-augmented generation with ZeroGPU Embeddings, see Build an HR Policy Assistant with n8n and ZeroGPU Embeddings. It embeds a seven-section employee handbook into a vector store in about 2 seconds, then answers policy questions with the exact numbers from the handbook, and says so when the handbook doesn’t cover a question. Check them out to see every node in the package working end to end.For more worked examples, browse the cookbook index for
end-to-end walkthroughs of classification, extraction, and PII workflows on
Herogpu’s small models.
Video walkthrough
ZeroGPU Chat Model: an order-support chatbot
ZeroGPU Tools: a support inbox copilot
ZeroGPU Embeddings: an HR policy assistant (RAG)
Quickstart
Prerequisites
- A herogpu API key (starts with
zgpu-api-). - A self-hosted n8n 2.x instance where you’re the owner or an admin, since only those roles can install community nodes. The package is built against n8n 2.x, and n8n’s docs note that unverified community nodes aren’t available on n8n Cloud.
- Node.js 20.19 to 24.x if you run n8n with
npx, or Docker. - A chat model from the model catalog. This guide uses
deepseek-v4.1-flash, the ZeroGPU Chat Model’s default, which called tools reliably in every test.
Get your ZeroGPU API key
- Sign in to the herogpu dashboard.
- Open API Keys and click Create key.
- Copy the key (starts with
zgpu-api-). You’ll paste it into an n8n credential in a moment.
HEROGPU_API_KEY and call the same endpoint the ZeroGPU Chat Model uses, https://api.herogpu.com/v1:
Install the ZeroGPU nodes
If you don’t have n8n running yet, start it locally and open http://localhost:5678:- Go to Settings > Community Nodes and select Install.
- Enter the package name
@zerogpu/n8n-nodes-zerogpu. - Check I understand the risks of installing unverified code from a public source, then select Install.
nodes folder and restart n8n. With Docker:
ZeroGPU in the nodes panel to confirm the install. You’ll see three nodes: ZeroGPU, ZeroGPU Chat Model, and ZeroGPU Embeddings. To update later, run npm update @zerogpu/n8n-nodes-zerogpu in the same folder, or use Settings > Community Nodes.
Your first request
First, store your key in a credential:- Open Credentials, create a new credential, and search for ZeroGPU API.
- Paste your key into API Key and save. n8n checks the key against an endpoint that needs authentication, without running any inference.
- Create a workflow and add a Chat Trigger (When chat message received).
- Add an AI Agent after it.
- Under the agent’s Chat Model input, click +, choose ZeroGPU Chat Model, and select your credential. Model is already set to
deepseek-v4.1-flash. - Under the agent’s Tool input, click + and add Calculator.
Paste onto the canvas
https://api.herogpu.com/v1/chat/completions with your key.
Usage
Every section below follows the same shape: what the node or operation does, which herogpu endpoint and default model it uses, its parameters, a snippet you can paste onto the n8n canvas, and what it returns. Each snippet leaves out the credential, so select your ZeroGPU API credential on every ZeroGPU node after pasting. Example outputs are trimmed, and model wording varies from run to run.How the package fits into n8n
The package adds one credential and three nodes. n8n also offers the ZeroGPU node as ZeroGPU Tool under an AI Agent’s Tool input, so there are four ways to use herogpu on the canvas:
Every model list in these nodes loads live from herogpu’s public model catalog,
https://api-dashboard.zerogpu.ai/api/models, filtered to the models that can run the node or operation. New herogpu models show up without a package update. Loading the list sends no credentials. To use a model that isn’t listed, switch Model to an expression and enter its ID; model IDs are case-sensitive.
One detail matters when you share workflows: n8n leaves any setting that still has its default value out of an exported workflow. A ZeroGPU Chat Model that you never changed exports with no model at all and runs on the package’s default, deepseek-v4.1-flash. Pick the model explicitly if a workflow must stay on one model across package updates.
ZeroGPU API credential
Stores your herogpu key for every node in the package.
The nodes send the key in the
x-api-key header to https://api.herogpu.com/v1. When you save, n8n tests the key with GET /v1/files, which needs authentication, because the public model list would accept any key. The test runs no inference and costs nothing. Create one credential per herogpu key; to separate usage by team or project, create a key per team in the dashboard and a credential for each.
ZeroGPU Chat Model
Connects a herogpu language model to n8n’s AI nodes: the AI Agent, Basic LLM Chain, and the other chains and agents that take a Chat Model. It callsPOST /v1/chat/completions through n8n’s OpenAI-compatible model layer, so tool calling and structured output parsers work the way they do with any other chat model.
Each option is sent only if you add it, so a fresh node sends just the model and messages. If you set Maximum Tokens or Reasoning Effort on a model that the catalog says doesn’t support it, the node stops before calling herogpu and names the setting. A few models accept a setting and ignore it: Reasoning Effort on
gpt-4.1-mini and llama-3.1-8b-instruct-fast, and Maximum Tokens on zlm-v1-tool-decisions. gpt-6-luna only accepts its default temperature, so leave Sampling Temperature unset for it.
An AI Agent sends its tools with every request, so it needs a model that accepts tool calls. Prices are USD per 1M tokens, from the model catalog in December 2026:
The list is live, so it can also include models that aren’t in this table, such as pinned snapshots. A model that can’t call tools stops an agent with
Tool calling is not supported for model. Models the catalog marks that way are labelled (no tool calling) in the list.
This agent runs on GPT-6 Luna with a low reasoning effort and a cap on reply length:
Paste onto the canvas
output. The Logs panel shows each ZeroGPU Chat Model call with its duration and token counts, which is everything you need to price a run. In the ShopBot cookbook, a three-message conversation used about 2,800 input and 250 output tokens on DeepSeek V4.1 Flash, about $0.0012.
ZeroGPU Embeddings
Connects a herogpu embedding model to n8n’s vector stores, such as the Simple Vector Store, Pinecone, Supabase, Qdrant, and PGVector nodes, for semantic search and RAG. It callsPOST /v1/embeddings.
Use the same model on the vector store that inserts your documents and on the one that searches them; vectors from different models don’t match. Both models return 384-dimensional vectors, so create external indexes (Pinecone, Supabase, Qdrant) with 384 dimensions. Text past a model’s limit isn’t embedded, so split long documents into chunks that fit, for example with the Default Data Loader’s simple splitter or a Recursive Character Text Splitter. Herogpu embeds up to 256 texts per request, and the node splits larger batches for you and puts every vector back in input order.
This snippet loads two policies into a Simple Vector Store under the memory key
policies:
Paste onto the canvas
documents when inserting, query when searching) and the vectors it returned. To search the same store, add a second vector store with the same memory key in Retrieve Documents (As Tool for AI Agent) mode, with its own ZeroGPU Embeddings on the same model; the HR policy cookbook builds exactly that. To get a vector as data in a regular workflow instead, use the ZeroGPU node’s Embed Text operation.
ZeroGPU node
Runs one of herogpu’s task models on each input item. Pick a Resource and an Operation, and the node shows that operation’s fields and model list. Every operation has these parameters in common:
The node runs once per input item and returns one item per input. Every snippet below starts from a Manual Trigger named Start, so you can paste it, select your credential, and click Execute workflow. To run an operation on data from earlier steps, replace the literal text with an expression such as
{{ $json.text }}.
Generate Speech
Turns English text into spoken audio in a built-in voice, or in a voice cloned from a short clip. CallsPOST /v1/audio/speech. Default model: chatterbox-nano. Models in the list: chatterbox-nano ($0.01 per minute, rounded up to the whole minute with a one-minute minimum) and chatterbox ($0.015 per minute, billed to the second).
Paste onto the canvas
data binary field as speech.mp3 (open the node’s output and click View to play it), and durationSeconds is the length herogpu billed, from the x-audio-duration-seconds header.
Transcribe Audio
Turns speech in an audio file into text. CallsPOST /v1/audio/transcriptions. Default model: whisper-tiny ($0.02 per minute, rounded up to the whole minute with a one-minute minimum).
This snippet generates a clip and transcribes it back, so it runs without a file of your own. Any node that outputs a binary file works as the input, such as Read/Write Files from Disk or HTTP Request:
Paste onto the canvas
text. With the text, srt, or vtt formats, the node also puts the plain transcript or subtitles under text; verbose_json returns herogpu’s full object.
Translate Audio
Turns speech in any language into English text. CallsPOST /v1/audio/translations. Default model: whisper-tiny. It takes the same parameters as Transcribe Audio except Language, because the output is always English.
Paste after any node that outputs audio
text.
Classify by Labels
Scores text against labels you choose, with no training. CallsPOST /v1/chat/completions, sending the labels as a bracketed list in the system message. Default model: deberta-v3-small ($0.02 input, $0.05 output per 1M tokens).
Paste onto the canvas
Classify by Schema
Picks exactly one label for each category in a schema, in one call. CallsPOST /v1/chat/completions with metadata.usecase set to classification. Default model: gliner2.5-base-v1 ($0.02 input, $0.05 output per 1M tokens). Models in the list: gliner2.5-base-v1, gliner2.5-multi-v1 (multilingual), and gliner2.5-decide-v1.
Paste onto the canvas
classification. Labels come back exactly as written in the schema, so "technical issue" stays lowercase; reference it downstream as {{ $json.classification.topic }}.
Classify Domain
Maps a bare domain name to IAB categories, topics, keywords, and intent, with no page fetch. CallsPOST /v1/chat/completions. Default model: zlm-v1-iab-domain-classifier ($0.02 input, $0.05 output per 1M tokens).
Paste onto the canvas
content categories in the IAB 1.0 and 2.2 taxonomies, plus topics, keywords, and user_intent. See Ad tech models for the full model details.
Classify IAB Category
Maps text to IAB content and audience categories. CallsPOST /v1/chat/completions. Default model: zlm-v1-iab-classify-edge ($0.02 input, $0.05 output per 1M tokens). Models in the list: zlm-v1-iab-classify-edge and zlm-v2-iab-classify-edge-enriched ($0.05 input, $0.15 output), which adds IAB IDs and tiers, topics, keywords, and intent.
Paste onto the canvas
audience categories and content categories in the 1.0 and 2.2 taxonomies (trimmed to the top entries here).
Extract Text
Reads a PDF, scanned document, or image at a public URL and returns its text as Markdown, with tables as HTML and formulas as LaTeX. CallsPOST /v1/chat/completions with the URL as a file. Default model: unlimited-ocr, billed per page.
Paste onto the canvas
markdown. Chain it into Extract JSON or Summarize Text on {{ $json.markdown }}.
Embed Text
Turns text into a vector for semantic search, clustering, and deduplication, as data in a regular workflow. CallsPOST /v1/embeddings. Default model: all-minilm-l6-v2 ($0.004 per 1M input tokens). Models in the list: all-minilm-l6-v2 and bge-small-en-v1.5. For vector stores, use ZeroGPU Embeddings instead.
Paste onto the canvas
data[0].embedding (384 numbers, truncated here).
Detect PII
Finds personal data in text, grouped by type, without changing the text. CallsPOST /v1/chat/completions with metadata.usecase set to ner. Default model: gliner2.5-base-v1. Models in the list: gliner2.5-base-v1 and gliner2.5-multi-v1.
Paste onto the canvas
entities. Use it to flag or route messages that contain personal data; to remove it, use Redact PII.
Extract Entities
Finds people, places, products, or any entity types you name. CallsPOST /v1/chat/completions with metadata.usecase set to ner. Default model: gliner2.5-base-v1. Models in the list: gliner2.5-base-v1 and gliner2.5-multi-v1.
Paste onto the canvas
entities. For non-English text, switch the model to gliner2.5-multi-v1.
Extract JSON
Pulls the fields in a schema out of free text into JSON. CallsPOST /v1/chat/completions with metadata.usecase set to json. Default model: gliner2.5-base-v1. Models in the list: gliner2.5-base-v1 and gliner2.5-multi-v1.
Paste onto the canvas
data, ready for a Google Sheets, Airtable, or database node.
Redact PII
Replaces personal data in text with tags like[EMAIL]. Calls POST /v1/chat/completions with metadata.usecase set to ner, then the node does the replacing: herogpu returns the values it found, grouped by label, and the node swaps every occurrence of each value for a tag made from its label in upper case, such as [PHONE_NUMBER]. Default model: gliner2.5-base-v1. Models in the list: gliner2.5-base-v1 and gliner2.5-multi-v1.
Paste onto the canvas
text, and what was found under entities. A name mentioned three times is replaced three times. The model treats even the last four digits of a card as card data. Because the node replaces exact text, a very short value such as a two-letter name is also replaced where it appears inside other words, so check the output on your own data.
Moderate Text
Checks text for harassment, hate, violence, self-harm, sexual content, and illicit content. CallsPOST /v1/moderations. Default model: zlm-v1-moderation-edge ($0.10 input, $0.15 output per 1M tokens). Models in the list: zlm-v1-moderation-edge and llama-guard-4-12b.
Paste onto the canvas
{{ $json.results[0].flagged }} with an If node. See Moderation for every category.
Summarize Text
Condenses text into a short summary. CallsPOST /v1/chat/completions with a fixed instruction to summarize faithfully and concisely. Default model: llama-3.1-8b-instruct-fast ($0.15 input, $0.28 output per 1M tokens, 128K context). Models in the list: herogpu’s summarization models, llama-3.1-8b-instruct-fast, llama-3.2-3b-instruct-fast, and gpt-oss-20b.
Paste onto the canvas
summary.
ZeroGPU Tool
Gives an AI Agent a herogpu operation as a tool that the model can decide to call. It’s the ZeroGPU node attached under an agent’s Tool input, so it has the same operations, parameters, models, and outputs as the ZeroGPU node.- In an AI Agent node, click + under Tool, search for ZeroGPU, and choose ZeroGPU Tool.
- Select your credential, then choose a Resource and an Operation. Each tool runs one operation, so add one tool per operation the agent should use.
- For each field the agent should fill in, such as Text, click Let the model define this parameter next to it. n8n writes a
$fromAI()expression into the field, such as{{ $fromAI('text', 'The text to process', 'string') }}. Leave fields like Model, Labels, and Schema fixed so the agent can’t change them. - Rename the node to what the tool does. n8n turns the node name into the tool name the model sees, with spaces replaced by underscores, so a node named Redact PII becomes the tool
Redact_PII.
Audio operations read or write binary files, which an agent can’t pass to a tool, so use them as regular workflow steps. This tool lets the agent redact any text it chooses:
Paste onto the canvas, then connect it to an agent's Tool input
Redact_PII, the tool returns the same text and entities as the regular node, and the Logs panel shows the call under the agent with its input and output. In the inbox copilot cookbook, four ZeroGPU Tools triage a message in about 10 seconds. Tools cost very little next to the chat model that decides when to call them, which is most of the bill.
Patterns and recipes
Redact first, then let anything else see the text. When personal data must never reach a model or a person who doesn’t need it, run Redact PII before every other step and pass itstext on, never the original. With tools, say so in the agent’s system message, as the inbox copilot does: “Call Redact_PII on the original message. Then call the other tools on the REDACTED text, never the original.” When the order never changes, skip the agent and chain regular ZeroGPU nodes instead, which saves the chat model’s tokens on every message:
Paste onto the canvas
{{ $json.results[0].flagged }}. Flagged messages go to a moderation queue, and only clean ones reach the AI Agent, so abuse never costs you chat-model tokens or lands in front of a person unannounced. Classify by Schema works the same way for routing: send billing to one agent and technical issue to another.
Match your embeddings end to end. Pick one embedding model and use it on every vector store node that touches the same index, both the one that inserts and the one that searches. Chunk documents to fit the model (256 tokens for all-minilm-l6-v2), create external indexes with 384 dimensions, and give the retrieval tool a description that lists what the documents cover, so the agent knows when to search.
Voice in, voice out. Chain Transcribe Audio on an incoming voicemail, an AI Agent on the transcript, and Generate Speech on the agent’s reply. Audio is billed per minute with a one-minute minimum on whisper-tiny and chatterbox-nano, so a short voicemail and reply cost about three cents ($0.02 to transcribe and $0.01 to speak), and the text steps in between add a fraction of a cent.
Warm up before a demo, and retry in production. A model that has sat idle can take about 30 seconds to answer its first call. Run the workflow once a few minutes before a live demo, and turn on Retry On Fail on ZeroGPU nodes and tools so a Model is not loaded or Upstream inference failed error retries instead of stopping the run.
At a glance
Troubleshooting
Herogpu doesn’t appear in the nodes panel after installing. Reload the n8n editor in your browser. If you installed from a shell, restart n8n, and check that Settings > Community Nodes lists@zerogpu/n8n-nodes-zerogpu. If n8n runs in queue mode, install the package from a shell, as n8n’s docs require for that setup.
There’s no Community Nodes page, or the install is refused. Only owners and admins can install community nodes. On self-hosted n8n, N8N_COMMUNITY_PACKAGES_ENABLED must be true, and n8n’s environment variable reference lists N8N_UNVERIFIED_PACKAGES_ENABLED, which controls installing unverified packages, with a default of false; set it to true and restart if installs are blocked. n8n’s docs note that unverified community nodes aren’t available on n8n Cloud.
ZeroGPU Tool is missing from the agent’s Tool list. Make sure you click + under the AI Agent’s Tool input, not the canvas, and search for ZeroGPU. Some self-hosted n8n versions only offer community nodes as agent tools when N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE is true; set it and restart n8n.
The credential test fails, or a node stops with Invalid credentials. The key is wrong, revoked, or picked up a stray space when pasted. Create a fresh key in the dashboard, paste it into the ZeroGPU API credential, and save again.
The agent stops with Tool calling is not supported for model. The chat model can’t call tools, and the agent sends its tools with every request. Pick a model from the “Yes” rows of the Chat Model table, such as deepseek-v4.1-flash, or use that model in a Basic LLM Chain, which sends no tools.
A node stops with doesn't support Maximum Tokens, doesn't support Reasoning Effort, or Unsupported parameter. The model doesn’t accept that setting. Remove it under Options, or choose another model. For gpt-6-luna, leave Sampling Temperature unset.
The first run after a break is slow, or fails with Model is not loaded or Upstream inference failed. The model was starting up; in our tests, a model that had sat idle took about 30 seconds to answer its first call, and under a second once warm. Run the node again, turn on Retry On Fail in the node’s Settings, or warm the workflow up with one run before a demo.
A model list is empty, or says it can’t load options. The lists load from https://api-dashboard.zerogpu.ai/api/models, so the n8n server needs outbound internet access to that host. Saved workflows still run with the model they have. To enter a model by hand, switch Model to an expression and type its ID, such as deepseek-v4.1-flash.
The RAG agent says the documents don’t cover a question they do cover. The vector store it searches is empty or different. The Simple Vector Store keeps its data in memory, so it’s empty after n8n restarts; run the insert step again. Check that the insert and retrieve nodes use the same Memory Key, and that both ZeroGPU Embeddings nodes use the same model.
ZeroGPU Embeddings stops with Invalid document at index or Cannot embed empty or undefined text. A text sent to the model was empty. Check the expression in the Default Data Loader (such as {{ $json.text }}) against the field your data actually has, and make sure the agent passes a query to the retrieval tool.
Redact PII misses something, or tags too much. It only finds the types listed in Labels, so add any type you need, such as company or account number. Lower Threshold under Options to catch more. If short values are replaced inside other words, raise the threshold or remove that label.
An audio operation stops with The item has no binary field or exceeds the 2000 character limit. Make Input Data Field Name or Voice Sample Field match the binary field from the previous node (usually data). For Generate Speech, split text longer than 2,000 characters and generate speech for each part.
Conclusion
The ZeroGPU nodes put herogpu’s whole catalog on the n8n canvas: a chat model for agents, embeddings for RAG, and fifteen task operations that run as workflow steps or agent tools. Purpose-built models handle the high-volume work, such as redaction, moderation, routing, and summarization, at a fraction of a frontier model’s cost, so a full triage flow runs for about a fifth of a cent and a chatbot conversation for about a tenth.Model Catalog
Browse every model available on herogpu and pick the best fit.
API Reference
Explore the full OpenAI-compatible API surface.
Cookbook
Build an order-support chatbot on the ZeroGPU Chat Model in n8n.
Join Discord
Ask questions and share what you’re building.

