Integration · automation

n8n on llmbox

n8n is a workflow automation platform with AI agents. Add llmbox to your OpenAI credentials and the AI Agent and Basic LLM Chain nodes use DeepSeek, GPT, Gemini and Qwen with one API key. Pay per token.

  • n8n Cloud and self-hosted
  • OpenAI credentials
  • One API key
Credentials → OpenAI
OpenAI account
API Key
Base URL
https://llmbox.cc/v1
OpenAI Chat Model → Model
By ID
  • deepseek/deepseek-v4.1-flash
  • qwen/qwen3.8-flash
  • google/gemini-3.8-flash
  • openai/gpt-6.1-sol
  • + 28 more

Setup

Set up n8n

  1. Create credentials

    Credentials → Create credential → OpenAI. API Key is your llmbox key from the dashboard, Base URL:

  2. Add a model to the workflow

    Attach an OpenAI Chat Model with these credentials to an AI Agent or Basic LLM Chain node.

  3. Set the model ID

    In the Model field, choose By ID and enter an ID from the catalog, e.g. deepseek/deepseek-v4.1-flash.

    Full guide

Models

Fast models for workflows

A fast model is enough for classification and email parsing; for an agent with tools, pick a stronger one.

Full catalog
ModelModel (By ID)Input, 1MOutput, 1M
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flash$0.10$0.27
Qwen3.8 Flashqwen/qwen3.8-flash$0.072$0.2115
GPT-5.6 Lunaopenai/gpt-5.6-luna$0.15$0.40
Gemini 3.8 Flashgoogle/gemini-3.8-flash$0.225$1.125
DeepSeek V4 Prodeepseek/deepseek-v4-pro$0.19$0.555
GPT-6.1 Solopenai/gpt-6.1-sol$1.80$5.00

Prices are per million tokens, from the catalog.

Before you start

Test your key from the terminal

Store your API key in LLMBOX_API_KEY and send the request — the OpenAI Chat Model node sends the same one. If you get a reply, the key and address are correct and ready for your credentials.

Example in the docs
Terminal
curl /chat/completions \
-H "Authorization: Bearer $LLMBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek/deepseek-v4.1-flash",
"messages": [{"role": "user", "content": "Hello"}]}'

How it works

n8n agents on llmbox models

Agent tools

The calculator, HTTP Request and other workflows attached to AI Agent reach the model as regular functions.

Usage in your dashboard

Track each request's model, tokens and cost in your dashboard. Set a spending limit for each API key.

Each agent step is a request

A workflow with tools makes several requests to the model. For frequent runs, a fast model is a good fit.

Scenarios with n8n

Questions

FAQ

How do I connect an AI model to n8n?

Create OpenAI credentials with your llmbox API key and the llmbox Base URL, select them in the OpenAI Chat Model node and enter a model ID from the catalog.

Which API key does n8n use?

Your llmbox API key from the dashboard. It works with DeepSeek, GPT, Gemini and Qwen — no separate key per model.

Does it work in n8n Cloud?

Yes. OpenAI credentials with the Base URL field are set up the same way in n8n Cloud and self-hosted.

How are n8n requests billed?

Workflow requests are billed per token at catalog rates and deducted from your llmbox balance. Pay as you go, with no subscription.

Connect n8n to llmbox

Create an API key in your llmbox dashboard after signing up.

n8n is a project by n8n GmbH under the Sustainable Use License.