> ## Documentation Index
> Fetch the complete documentation index at: https://docs.herogpu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n

> Install the official ZeroGPU community nodes in n8n to run AI Agents on ZeroGPU chat models, give them ZeroGPU tools for PII redaction, moderation, classification, and summarization, and power vector stores with ZeroGPU embeddings.

n8n is a fair-code workflow automation platform that you can self-host or use as a managed cloud service. You build workflows on a visual canvas by connecting nodes, choose from hundreds of built-in integrations, and drop into JavaScript or Python whenever a step needs custom logic. Its AI nodes, built on LangChain, let you put AI Agents, chains, conversation memory, vector stores, and tools into any workflow, and community nodes let anyone add new services to that canvas. Herogpu ships an official community node package, [`@zerogpu/n8n-nodes-zerogpu`](https://github.com/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](https://docs.herogpu.com/cookbook/n8n-shopbot-order-support.md). 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](https://docs.herogpu.com/cookbook/n8n-support-inbox-copilot.md). 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](https://docs.herogpu.com/cookbook/n8n-hr-policy-assistant.md). 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.

> [!NOTE]
>
> For more worked examples, browse the [cookbook index](https://docs.herogpu.com/cookbook/index.md) 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**

[YouTube video player](https://www.youtube.com/embed/9Es7FwDEV9s)

**ZeroGPU Tools: a support inbox copilot**

[YouTube video player](https://www.youtube.com/embed/vLwzuvyreZA)

**ZeroGPU Embeddings: an HR policy assistant (RAG)**

[YouTube video player](https://www.youtube.com/embed/2y3TWeXR3-0)

## Quickstart

### Prerequisites

* A herogpu [API key](https://platform.herogpu.com/dashboard) (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](https://docs.herogpu.com/docs/model-catalog.md). 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

1. Sign in to the [herogpu dashboard](https://platform.herogpu.com/dashboard).
2. Open **API Keys** and click **Create key**.
3. Copy the key (starts with `zgpu-api-`). You'll paste it into an n8n credential in a moment.

To check the key before you touch n8n, export it as `HEROGPU_API_KEY` and call the same endpoint the ZeroGPU Chat Model uses, `https://api.herogpu.com/v1`:

```bash theme={null}
export HEROGPU_API_KEY="zgpu-api-..."

curl -s https://api.herogpu.com/v1/chat/completions \
  -H "Authorization: Bearer $HEROGPU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-v4.1-flash", "messages": [{"role": "user", "content": "Reply with the word ok"}]}' \
  | jq -r '.choices[0].message.content'
```

```
ok
```

### Install the ZeroGPU nodes

If you don't have n8n running yet, start it locally and open [http://localhost:5678](http://localhost:5678):

```bash theme={null}
npx n8n
```

Then install the package from n8n's interface:

1. Go to **Settings** > **Community Nodes** and select **Install**.
2. Enter the package name `@zerogpu/n8n-nodes-zerogpu`.
3. Check **I understand the risks of installing unverified code from a public source**, then select **Install**.

```
@zerogpu/n8n-nodes-zerogpu
```

To install from a shell instead, which n8n requires when the instance runs in queue mode, install the package into n8n's `nodes` folder and restart n8n. With Docker:

```bash theme={null}
docker exec -it n8n sh
mkdir -p ~/.n8n/nodes
cd ~/.n8n/nodes
npm i @zerogpu/n8n-nodes-zerogpu
# then restart n8n
```

Search for `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:

1. Open **Credentials**, create a new credential, and search for **ZeroGPU API**.
2. Paste your key into **API Key** and save. n8n checks the key against an endpoint that needs authentication, without running any inference.

Now build a small agent that has to call a tool, so you can see herogpu drive an n8n AI Agent end to end:

1. Create a workflow and add a **Chat Trigger** (**When chat message received**).
2. Add an **AI Agent** after it.
3. 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`.
4. Under the agent's **Tool** input, click **+** and add **Calculator**.

Or paste this onto the canvas and select your credential on the ZeroGPU Chat Model:

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "When chat message received", "type": "@n8n/n8n-nodes-langchain.chatTrigger", "typeVersion": 1.1, "position": [0, 0], "parameters": { "options": {} } },
    { "name": "AI Agent", "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 3.1, "position": [256, 0], "parameters": { "options": {} } },
    { "name": "ZeroGPU Chat Model", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpuChatModel", "typeVersion": 1, "position": [160, 240], "parameters": { "model": "deepseek-v4.1-flash", "options": {} } },
    { "name": "Calculator", "type": "@n8n/n8n-nodes-langchain.toolCalculator", "typeVersion": 1, "position": [400, 240], "parameters": {} }
  ],
  "connections": {
    "When chat message received": { "main": [[{ "node": "AI Agent", "type": "main", "index": 0 }]] },
    "ZeroGPU Chat Model": { "ai_languageModel": [[{ "node": "AI Agent", "type": "ai_languageModel", "index": 0 }]] },
    "Calculator": { "ai_tool": [[{ "node": "AI Agent", "type": "ai_tool", "index": 0 }]] }
  }
}
```

Click **Open chat** at the bottom of the canvas and send a message:

```text theme={null}
What is 23 times 47?
```

```
23 times 47 is 1,081.
```

The **Logs** panel next to the chat lists each step with its time and token count: **AI Agent**, then **ZeroGPU Chat Model**, **Calculator**, and **ZeroGPU Chat Model** again. The model decided to call the tool, read its result, and wrote the answer. Every model call went to `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:

| Node | n8n node type | Where it connects | Herogpu endpoint | Default model |
| - | - | - | - | - |
| ZeroGPU Chat Model | `@zerogpu/n8n-nodes-zerogpu.zeroGpuChatModel` | **Chat Model** input of an AI Agent, Basic LLM Chain, or other AI node | `POST /v1/chat/completions` | `deepseek-v4.1-flash` |
| ZeroGPU Embeddings | `@zerogpu/n8n-nodes-zerogpu.zeroGpuEmbeddings` | **Embedding** input of a vector store | `POST /v1/embeddings` | `all-minilm-l6-v2` |
| Herogpu | `@zerogpu/n8n-nodes-zerogpu.zeroGpu` | Any step in a workflow | `/v1/chat/completions`, `/v1/moderations`, `/v1/embeddings`, `/v1/audio/*` | Set per operation |
| ZeroGPU Tool | `@zerogpu/n8n-nodes-zerogpu.zeroGpuTool` | **Tool** input of an AI Agent | Same as herogpu | Set per operation |

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.

| Field | Required | Default | Description |
| - | - | - | - |
| API Key | Yes | none | Your `zgpu-api-...` key, from the **API Keys** page of the [dashboard](https://platform.herogpu.com/dashboard). Stored encrypted and shown masked. |

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 calls `POST /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.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Model | Yes | `deepseek-v4.1-flash` | The chat model. The list shows herogpu's text generation and summarization models, by display name. |
| Options > Maximum Tokens | No | not sent | Limit on the response length. Shows `1024` when you add it. |
| Options > Reasoning Effort | No | not sent | Extra High, High, Medium, Low, Minimal, or None, sent as `reasoning_effort`. Shows Medium when you add it. |
| Options > Sampling Temperature | No | not sent | Randomness from 0 to 2. Shows `0.7` when you add it. |

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](https://docs.herogpu.com/docs/model-catalog.md) in December 2026:

| Model | Input | Output | Works with agent tools |
| - | -: | -: | - |
| `deepseek-v4.1-flash` | \$0.30 | \$1.20 | Yes. The default, used in all three cookbooks. |
| `glm-5.3-flash` | \$0.10 | \$0.35 | Yes |
| `gpt-4.1-mini` | \$0.40 | \$1.60 | Yes |
| `gpt-5.4-nano` | \$0.20 | \$1.25 | Yes |
| `gpt-5.6-luna` | \$0.20 | \$1.20 | Yes |
| `gpt-6-luna` | \$0.10 | \$0.50 | Yes |
| `gpt-oss-120b` | \$0.15 | \$0.60 | Yes |
| `llama-3.1-8b-instruct-fast` | \$0.15 | \$0.28 | Yes |
| `qwen3-30b-a3b-fp8` | \$0.10 | \$0.45 | Yes |
| `qwen3.6-35b-a3b` | \$0.20 | \$1.50 | Yes |
| `gpt-oss-20b` | \$0.02 | \$0.10 | No. Use it in a Basic LLM Chain. |
| `llama-3.2-3b-instruct-fast` | \$0.05 | \$0.30 | No. Use it in a Basic LLM Chain. |
| `LFM2.5-1.2B-Instruct`, `LFM2.5-1.2B-Thinking` | \$0.02 | \$0.05 | No. Use them in a Basic LLM Chain. |

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:

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "When chat message received", "type": "@n8n/n8n-nodes-langchain.chatTrigger", "typeVersion": 1.1, "position": [0, 0], "parameters": { "options": {} } },
    { "name": "AI Agent", "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 3.1, "position": [256, 0], "parameters": { "options": { "systemMessage": "You are a concise assistant. Use the calculator for any arithmetic." } } },
    { "name": "ZeroGPU Chat Model", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpuChatModel", "typeVersion": 1, "position": [160, 240], "parameters": { "model": "gpt-6-luna", "options": { "maxTokens": 512, "reasoningEffort": "low" } } },
    { "name": "Calculator", "type": "@n8n/n8n-nodes-langchain.toolCalculator", "typeVersion": 1, "position": [400, 240], "parameters": {} }
  ],
  "connections": {
    "When chat message received": { "main": [[{ "node": "AI Agent", "type": "main", "index": 0 }]] },
    "ZeroGPU Chat Model": { "ai_languageModel": [[{ "node": "AI Agent", "type": "ai_languageModel", "index": 0 }]] },
    "Calculator": { "ai_tool": [[{ "node": "AI Agent", "type": "ai_tool", "index": 0 }]] }
  }
}
```

Response: the agent's reply appears in the chat, and the agent node outputs it as `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](https://docs.herogpu.com/cookbook/n8n-shopbot-order-support.md), 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 calls `POST /v1/embeddings`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Model | Yes | `all-minilm-l6-v2` | The embedding model. The list shows herogpu's embedding models: `all-minilm-l6-v2` and `bge-small-en-v1.5`. |

| Model | Price per 1M input tokens | Vector size | Reads up to |
| - | -: | -: | -: |
| `all-minilm-l6-v2` | \$0.004 | 384 | 256 tokens per text |
| `bge-small-en-v1.5` | \$0.004 | 384 | 512 tokens per text |

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`:

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Policies", "type": "n8n-nodes-base.code", "typeVersion": 2, "position": [224, 0], "parameters": { "jsCode": "return [\"Meals are reimbursed up to a $75 per diem while traveling for work.\", \"Employees get 10 days of paid sick leave per year.\"].map(text => ({ json: { text } }));" } },
    { "name": "Simple Vector Store", "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory", "typeVersion": 1.3, "position": [448, 0], "parameters": { "mode": "insert", "memoryKey": { "__rl": true, "mode": "id", "value": "policies" }, "clearStore": true } },
    { "name": "ZeroGPU Embeddings", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpuEmbeddings", "typeVersion": 1, "position": [416, 224], "parameters": { "model": "all-minilm-l6-v2" } },
    { "name": "Default Data Loader", "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader", "typeVersion": 1.1, "position": [576, 224], "parameters": { "jsonMode": "expressionData", "jsonData": "={{ $json.text }}", "options": {} } }
  ],
  "connections": {
    "Start": { "main": [[{ "node": "Policies", "type": "main", "index": 0 }]] },
    "Policies": { "main": [[{ "node": "Simple Vector Store", "type": "main", "index": 0 }]] },
    "ZeroGPU Embeddings": { "ai_embedding": [[{ "node": "Simple Vector Store", "type": "ai_embedding", "index": 0 }]] },
    "Default Data Loader": { "ai_document": [[{ "node": "Simple Vector Store", "type": "ai_document", "index": 0 }]] }
  }
}
```

Response: the vector store outputs one item per stored document. Open **ZeroGPU Embeddings** after a run to see each call's input (`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](https://docs.herogpu.com/cookbook/n8n-hr-policy-assistant.md) builds exactly that. To get a vector as data in a regular workflow instead, use the ZeroGPU node's [Embed Text](#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:

| Parameter | Required | Default | Description |
| - | - | - | - |
| Resource | Yes | Classification | Audio, Classification, Document, Embedding, Extraction, Moderation, or Summarization. |
| Operation | Yes | first operation of the resource | One of the 15 operations below. |
| Model | Yes | set per operation | The models that can run the operation, from the live catalog. Switch to an expression to enter any model ID. |

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. Calls `POST /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).

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | English text up to 2,000 characters. Tags like `[laugh]` or `[cough]` add cues. |
| Options > Put Output in Field | No | `data` | Binary field to write the audio to. |
| Options > Response Format | No | `mp3` | `aac`, `flac`, `mp3`, `opus`, `pcm` (raw 16-bit mono at 24 kHz), or `wav`. |
| Options > Voice Sample Field | No | built-in voice | Binary field holding a 6 to 30 second clip (up to 10 MB) of the voice to clone. |
| Options > Seed | No | not sent | Pins sampling so the same request gives the same audio, on a best-effort basis. |
| Options > Temperature, Top P, Top K, Repetition Penalty | No | not sent | Sampling controls: 0 to 2, 0 to 1, 0 to 10,000, and 1 to 4. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Generate Speech", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "audio", "operation": "generateSpeech", "model": "chatterbox-nano", "text": "Hello from ZeroGPU.", "options": {} } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Generate Speech", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "durationSeconds": 1.76 }
```

Response: the audio is in the `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. Calls `POST /v1/audio/transcriptions`. Default model: `whisper-tiny` (\$0.02 per minute, rounded up to the whole minute with a one-minute minimum).

| Parameter | Required | Default | Description |
| - | - | - | - |
| Input Data Field Name | Yes | `data` | Binary field holding the audio: up to 25 MB and 10 minutes, in flac, m4a, mp3, mp4, mpeg, mpga, oga, ogg, wav, or webm. |
| Options > Language | No | detected | ISO-639-1 code of the spoken language, like `en`. |
| Options > Prompt | No | none | Text to guide spelling and style, such as names or jargon. |
| Options > Response Format | No | `json` | `json`, `text`, `srt`, `vtt`, or `verbose_json` (adds language, duration, and timed segments). |
| Options > Temperature | No | not sent | 0 to 1. |

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**:

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Generate Speech", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "audio", "operation": "generateSpeech", "text": "Hello from ZeroGPU.", "options": {} } },
    { "name": "Transcribe Audio", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [448, 0], "parameters": { "resource": "audio", "operation": "transcribe", "model": "whisper-tiny", "binaryPropertyName": "data", "options": { "language": "en" } } }
  ],
  "connections": {
    "Start": { "main": [[{ "node": "Generate Speech", "type": "main", "index": 0 }]] },
    "Generate Speech": { "main": [[{ "node": "Transcribe Audio", "type": "main", "index": 0 }]] }
  }
}
```

```json theme={null}
{ "text": "Hello from ZeroGPU." }
```

Response: the transcript is under `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. Calls `POST /v1/audio/translations`. Default model: `whisper-tiny`. It takes the same parameters as [Transcribe Audio](#transcribe-audio) except **Language**, because the output is always English.

```json Paste after any node that outputs audio theme={null}
{
  "nodes": [
    { "name": "Translate Audio", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [0, 0], "parameters": { "resource": "audio", "operation": "translate", "binaryPropertyName": "data", "options": {} } }
  ],
  "connections": {}
}
```

Response: the English text under `text`.

#### Classify by Labels

Scores text against labels you choose, with no training. Calls `POST /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).

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to classify. |
| Labels | Yes | none | Labels separated by commas, like `Sports, Technology, Finance`. A label can't contain a comma. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Classify by Labels", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "classification", "operation": "classifyByLabels", "model": "deberta-v3-small", "text": "Apple unveiled its next-generation M5 chip.", "labels": "Sports, Technology, Finance" } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Classify by Labels", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "Technology": 0.7767035256605225, "Sports": 0.1541566271737724, "Finance": 0.06913984716570507 }
```

Response: one score per label. DeBERTa is best at topical labels; for intents and routing decisions, use [Classify by Schema](#classify-by-schema).

#### Classify by Schema

Picks exactly one label for each category in a schema, in one call. Calls `POST /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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to classify. |
| Schema | Yes | `{}` | JSON object that maps each category to the labels to choose from. |
| Options > Threshold | No | not sent | Minimum confidence, from 0 to 1, for a label to be returned. Shows `0.3` when you add it. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Classify by Schema", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "classification", "operation": "classifyBySchema", "model": "gliner2.5-base-v1", "text": "The checkout page keeps timing out and I am really frustrated.", "schema": "{\"sentiment\": [\"positive\", \"negative\", \"neutral\"], \"topic\": [\"billing\", \"bug\", \"feature request\"]}", "options": {} } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Classify by Schema", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "classification": { "sentiment": "negative", "topic": "bug" } }
```

Response: the chosen label per category under `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. Calls `POST /v1/chat/completions`. Default model: `zlm-v1-iab-domain-classifier` (\$0.02 input, \$0.05 output per 1M tokens).

| Parameter | Required | Default | Description |
| - | - | - | - |
| Domain | Yes | none | The domain name of the website, like `nytimes.com`. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Classify Domain", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "classification", "operation": "classifyDomain", "model": "zlm-v1-iab-domain-classifier", "domain": "nytimes.com" } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Classify Domain", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{
  "content": {
    "iab_1_0": [{ "name": "News", "score": 0.8124 }, { "name": "Politics", "score": 0.6533 }],
    "iab_2_2": [{ "name": "News and Politics", "score": 0.8124 }, { "name": "Business and Finance", "score": 0.598 }]
  },
  "topics": [{ "name": "news", "score": 0.8124 }, { "name": "journalism", "score": 0.674 }],
  "keywords": ["news", "politics", "world", "business", "opinion", "media", "journalism"],
  "user_intent": { "name": "reading news and current events", "category": "informational", "score": 0.5 }
}
```

Response: scored `content` categories in the IAB 1.0 and 2.2 taxonomies, plus `topics`, `keywords`, and `user_intent`. See [Ad tech models](https://docs.herogpu.com/docs/ad-tech.md) for the full model details.

#### Classify IAB Category

Maps text to IAB content and audience categories. Calls `POST /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.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to classify, such as an article or page body. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Classify IAB Category", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "classification", "operation": "classifyIab", "model": "zlm-v1-iab-classify-edge", "text": "Apple released a new MacBook laptop today." } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Classify IAB Category", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{
  "audience": [{ "name": "Laptops", "score": 0.7895236167380252 }],
  "content": { "iab_2_2": [{ "name": "Laptops", "score": 0.8754153951140519 }] }
}
```

Response: scored `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. Calls `POST /v1/chat/completions` with the URL as a file. Default model: `unlimited-ocr`, billed per page.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Document URL | Yes | none | Public URL of the PDF, scan, or image. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Extract Text", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "document", "operation": "extractText", "model": "unlimited-ocr", "documentUrl": "https://example.com/invoice.pdf" } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Extract Text", "type": "main", "index": 0 }]] } }
}
```

Replace the URL with a document that herogpu can download. Response: the document's text as Markdown under `markdown`. Chain it into [Extract JSON](#extract-json) or [Summarize Text](#summarize-text) on `{{ $json.markdown }}`.

#### Embed Text

Turns text into a vector for semantic search, clustering, and deduplication, as data in a regular workflow. Calls `POST /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](#zerogpu-embeddings) instead.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to embed. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Embed Text", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "embedding", "operation": "embedText", "model": "all-minilm-l6-v2", "text": "ZeroGPU runs high-volume inference tasks on small models at the edge." } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Embed Text", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{
  "object": "list",
  "data": [{ "object": "embedding", "index": 0, "embedding": [0.012601, -0.072932, 0.043332, 0.028129, 0.033064] }],
  "model": "all-MiniLM-L6-v2",
  "usage": { "prompt_tokens": 18, "total_tokens": 18 }
}
```

Response: herogpu's embeddings object, as from the [Embeddings API](https://docs.herogpu.com/docs/embeddings.md). The vector is at `data[0].embedding` (384 numbers, truncated here).

#### Detect PII

Finds personal data in text, grouped by type, without changing the text. Calls `POST /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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to search. |
| Labels | Yes | `person, email, phone number, address, date of birth, credit card number, social security number, ip address` | Types of personal data to find, separated by commas. Edit the list to find other types. |
| Options > Threshold | No | not sent | Minimum confidence, from 0 to 1. Lower it to find more. Shows `0.3` when you add it. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Detect PII", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "extraction", "operation": "detectPii", "model": "gliner2.5-base-v1", "text": "Hi, this is Jessica Miller (jessica.miller@gmail.com, +1 (415) 555-0142).", "options": {} } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Detect PII", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "entities": { "person": ["Jessica Miller"], "email": ["jessica.miller@gmail.com"], "phone number": ["+1 (415) 555-0142"] } }
```

Response: the values found, grouped by label under `entities`. Use it to flag or route messages that contain personal data; to remove it, use [Redact PII](#redact-pii).

#### Extract Entities

Finds people, places, products, or any entity types you name. Calls `POST /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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to search. |
| Labels | Yes | none | Entity types to find, separated by commas, like `person, company`. |
| Options > Threshold | No | not sent | Minimum confidence, from 0 to 1. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Extract Entities", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "extraction", "operation": "extractEntities", "model": "gliner2.5-base-v1", "text": "The app is built with Python 3.11 and uses PostgreSQL 15.", "labels": "programming language, database", "options": { "threshold": 0.3 } } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Extract Entities", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "entities": { "programming language": ["Python 3.11"], "database": ["PostgreSQL 15"] } }
```

Response: the values found, grouped by label under `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. Calls `POST /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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to extract from. |
| Schema | Yes | `{}` | JSON object that maps each group to its fields, written as `name::type::description`. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Extract JSON", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "extraction", "operation": "extractJson", "model": "gliner2.5-base-v1", "text": "Invoice INV-2291 from Acme Corp is due on March 3 for $1,250.", "schema": "{\"invoice\": [\"number::str::Invoice number\", \"vendor::str::Company that issued it\", \"amount::str::Total amount\", \"due_date::str::Due date\"]}" } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Extract JSON", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "data": { "invoice": [{ "number": "INV-2291", "vendor": "Acme Corp", "amount": "$1,250", "due_date": "March 3" }] } }
```

Response: one record per group under `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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to redact. |
| Labels | Yes | `person, email, phone number, address, date of birth, credit card number, social security number, ip address` | Types of personal data to replace. Only these types are redacted. |
| Options > Threshold | No | not sent | Minimum confidence, from 0 to 1. Lower it to catch more. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Redact PII", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "extraction", "operation": "redactPii", "model": "gliner2.5-base-v1", "text": "Hi, this is Jessica Miller (jessica.miller@gmail.com, +1 (415) 555-0142). Please refund my card ending 4242.", "options": {} } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Redact PII", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{
  "text": "Hi, this is [PERSON] ([EMAIL], [PHONE_NUMBER]). Please refund my card ending [CREDIT_CARD_NUMBER].",
  "entities": {
    "person": ["Jessica Miller"],
    "email": ["jessica.miller@gmail.com"],
    "phone number": ["+1 (415) 555-0142"],
    "credit card number": ["4242"]
  }
}
```

Response: the redacted text under `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. Calls `POST /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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to check. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Moderate Text", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "moderation", "operation": "moderate", "model": "zlm-v1-moderation-edge", "text": "I am so angry at this person that I want to hurt them. They are worthless and should be scared of what I might do next." } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Moderate Text", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{
  "id": "modr-0a1b2c3d4e5f60718293a4b5c6d7e8f90",
  "model": "zlm-v1-moderation-edge",
  "results": [
    {
      "flagged": true,
      "categories": { "harassment": true, "harassment/threatening": true, "hate": false, "violence": true },
      "category_scores": { "harassment": 0.82545, "harassment/threatening": 0.957703, "hate": 0.21574, "violence": 0.665897 }
    }
  ]
}
```

Response: OpenAI's moderation format with all 13 categories (trimmed here). Branch on `{{ $json.results[0].flagged }}` with an **If** node. See [Moderation](https://docs.herogpu.com/docs/moderation.md) for every category.

#### Summarize Text

Condenses text into a short summary. Calls `POST /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`.

| Parameter | Required | Default | Description |
| - | - | - | - |
| Text | Yes | none | The text to summarize. |

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Summarize Text", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "summarization", "operation": "summarize", "model": "llama-3.1-8b-instruct-fast", "text": "I was charged twice for my Pro plan, once on 3 Nov and again today. I've emailed twice with no answer and I'm really frustrated. Please refund the duplicate charge as soon as possible." } }
  ],
  "connections": { "Start": { "main": [[{ "node": "Summarize Text", "type": "main", "index": 0 }]] } }
}
```

```json theme={null}
{ "summary": "The customer was charged twice for the Pro plan (3 Nov and today), has had no reply to two emails, and wants the duplicate charge refunded." }
```

Response: the summary under `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](#zerogpu-node).

1. In an **AI Agent** node, click **+** under **Tool**, search for **ZeroGPU**, and choose **ZeroGPU Tool**.
2. 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.
3. 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.
4. 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`.

| Setting | Required | Default | Description |
| - | - | - | - |
| Resource, Operation, Model, and the operation's fields | Yes | as on the ZeroGPU node | One fixed operation per tool. |
| `$fromAI(key, description, type)` in a field | For fields the agent fills | none | Marks the field as filled by the model. `key` names the argument, and `description` tells the model what to put there. |
| Tool Description | No | Set Automatically | n8n describes the tool from its operation, such as "Redact PII from text". Choose **Set Manually** to write your own. |
| Settings > Retry On Fail | No | off | Retries a failed call. The cookbooks use 3 tries with 2,000 ms between them. |

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:

```json Paste onto the canvas, then connect it to an agent's Tool input theme={null}
{
  "nodes": [
    {
      "name": "Redact PII", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpuTool", "typeVersion": 1, "position": [0, 0],
      "retryOnFail": true, "maxTries": 3, "waitBetweenTries": 2000,
      "parameters": { "resource": "extraction", "operation": "redactPii", "text": "={{ $fromAI('text', 'The text to process', 'string') }}", "options": {}, "requestOptions": {} }
    }
  ],
  "connections": {}
}
```

Response: each time the agent calls `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](https://docs.herogpu.com/cookbook/n8n-support-inbox-copilot.md), 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 its `text` on, never the original. With tools, say so in the agent's system message, as the [inbox copilot](https://docs.herogpu.com/cookbook/n8n-support-inbox-copilot.md) 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:

```json Paste onto the canvas theme={null}
{
  "nodes": [
    { "name": "Start", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0], "parameters": {} },
    { "name": "Redact PII", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [224, 0], "parameters": { "resource": "extraction", "operation": "redactPii", "text": "Hi, this is Jessica Miller (jessica.miller@gmail.com). I was charged twice for my Pro plan. Please refund the duplicate charge.", "options": {} } },
    { "name": "Classify Team", "type": "@zerogpu/n8n-nodes-zerogpu.zeroGpu", "typeVersion": 1, "position": [448, 0], "parameters": { "resource": "classification", "operation": "classifyBySchema", "text": "={{ $json.text }}", "schema": "{\"team\": [\"billing\", \"technical issue\", \"account access\", \"shipping\", \"feedback\"]}", "options": {} } }
  ],
  "connections": {
    "Start": { "main": [[{ "node": "Redact PII", "type": "main", "index": 0 }]] },
    "Redact PII": { "main": [[{ "node": "Classify Team", "type": "main", "index": 0 }]] }
  }
}
```

**A cheap gate in front of the agent.** Put **Moderate Text** right after the trigger and an **If** node on `{{ $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

| Entry point | Where | Use it to | Default model |
| - | - | - | - |
| ZeroGPU API credential | Credentials | Store your key for every ZeroGPU node | n/a |
| ZeroGPU Chat Model | Chat Model input | Run AI Agents and chains on herogpu | `deepseek-v4.1-flash` |
| ZeroGPU Embeddings | Embedding input of a vector store | Insert and search documents for RAG | `all-minilm-l6-v2` |
| Generate Speech | ZeroGPU node | Turn text into audio, in a built-in or cloned voice | `chatterbox-nano` |
| Transcribe Audio | ZeroGPU node | Turn speech into text | `whisper-tiny` |
| Translate Audio | ZeroGPU node | Turn speech in any language into English text | `whisper-tiny` |
| Classify by Labels | ZeroGPU node or tool | Score text against your labels | `deberta-v3-small` |
| Classify by Schema | ZeroGPU node or tool | Pick one label per category | `gliner2.5-base-v1` |
| Classify Domain | ZeroGPU node or tool | Classify a website from its domain name | `zlm-v1-iab-domain-classifier` |
| Classify IAB Category | ZeroGPU node or tool | Map text to IAB content and audience categories | `zlm-v1-iab-classify-edge` |
| Extract Text | ZeroGPU node or tool | Read a document at a URL as Markdown | `unlimited-ocr` |
| Embed Text | ZeroGPU node or tool | Get a vector as data | `all-minilm-l6-v2` |
| Detect PII | ZeroGPU node or tool | Find personal data, grouped by type | `gliner2.5-base-v1` |
| Extract Entities | ZeroGPU node or tool | Find entities of types you name | `gliner2.5-base-v1` |
| Extract JSON | ZeroGPU node or tool | Fill a schema from free text | `gliner2.5-base-v1` |
| Redact PII | ZeroGPU node or tool | Replace personal data with tags | `gliner2.5-base-v1` |
| Moderate Text | ZeroGPU node or tool | Flag unsafe content with category scores | `zlm-v1-moderation-edge` |
| Summarize Text | ZeroGPU node or tool | Condense text into a short summary | `llama-3.1-8b-instruct-fast` |
| ZeroGPU Tool | Tool input of an AI Agent | Let an agent call any non-audio operation | per operation |

## 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](https://platform.herogpu.com/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](#zerogpu-chat-model), 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.

> [card] [Model Catalog](https://docs.herogpu.com/docs/model-catalog.md)
>
> Browse every model available on herogpu and pick the best fit.

> [card] [API Reference](https://docs.herogpu.com/api-reference/introduction.md)
>
> Explore the full OpenAI-compatible API surface.

> [card] [Cookbook](https://docs.herogpu.com/cookbook/n8n-shopbot-order-support.md)
>
> Build an order-support chatbot on the ZeroGPU Chat Model in n8n.

> [card] [Join Discord](https://discord.gg/Ad5KZvAyky)
>
> Ask questions and share what you're building.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.