n8n Integration

n8n Integration

Learn how to integrate Demeterics into your workflows with step-by-step guides and API examples.

n8n Integration

Integrate Demeterics with n8n to access multiple AI providers through a unified API with built-in observability and cost tracking in your workflow automations.

Installation

Install the Demeterics community node from the n8n community nodes directory:

  1. Go to Settings > Community Nodes in your n8n instance
  2. Select Install
  3. Enter n8n-nodes-demeterics and confirm

Alternatively, install via npm:

npm install n8n-nodes-demeterics

GitHub Repository: github.com/bluefermion/n8n-nodes-demeterics

Setting Up Credentials

1. Get Your API Key

  1. Sign up or log in at demeterics.ai
  2. Navigate to API Keys in your dashboard
  3. Click Create API Key
  4. Copy both the prefix (e.g., dmt_abc123) and secret parts

2. Add Credentials in n8n

  1. Go to Credentials in n8n
  2. Click Add Credential
  3. Search for "Demeterics API"
  4. Enter your API key prefix and secret in the respective fields
  5. Click Save

Using the Demeterics Chat Model

The Demeterics Chat Model node provides access to multiple AI providers and works with n8n's AI nodes:

  • AI Agent - Build intelligent agents with tool use
  • Basic LLM Chain - Simple prompt → response workflows
  • Summarization Chain - Summarize documents
  • Question and Answer Chain - RAG-based Q&A

Basic Workflow Example

[Chat Trigger] → [AI Agent] ← [Demeterics Chat Model]
                     ↑
                  [Tools]
  1. Add a Chat Trigger node
  2. Add an AI Agent node
  3. Connect Demeterics Chat Model to the AI Agent's "Chat Model" input
  4. Select your provider and model
  5. Add tools as needed (Calculator, Code, HTTP Request, etc.)

Supported Providers & Models

Groq (Fastest Inference)

Model Description
Llama 3.3 70B Versatile High-quality general purpose
Llama 3.1 8B Instant Fast, lightweight
Llama 4 Maverick 17B Latest Llama 4
Llama 4 Scout 17B Efficient Llama 4
Compound (Multi-model) Automatic model routing
Compound Mini Lightweight multi-model
Qwen3 32B Alibaba's latest
Kimi K2 Instruct Moonshot AI
GPT-OSS 120B Open-source GPT
GPT-OSS 20B Lightweight open-source

OpenAI

Model Description
GPT-5 Latest flagship
GPT-5 Mini Efficient GPT-5
GPT-5 Nano Ultra-lightweight
GPT-5 Codex Code-optimized
GPT-4.1 Previous generation flagship
GPT-4.1 Mini Efficient GPT-4.1
GPT-4.1 Nano Lightweight GPT-4.1
GPT-4o Multimodal
GPT-4o Mini Efficient multimodal

Anthropic

Model Description
Claude Opus 4.5 Most capable
Claude Opus 4.1 Previous Opus
Claude Sonnet 4.5 Balanced performance
Claude Sonnet 4 Previous Sonnet
Claude 3.7 Sonnet Legacy Sonnet
Claude Haiku 4.5 Fast and efficient
Claude 3.5 Haiku Legacy Haiku

Google

Model Description
Gemini 3 Pro Preview Latest preview
Gemini 2.5 Pro Current flagship
Gemini 2.5 Flash Fast inference
Gemini 2.5 Flash Lite Ultra-lightweight
Gemini 2.0 Flash Previous generation
Gemini 1.5 Pro Long context (2M tokens)
Gemini 1.5 Flash Fast with long context

Configuration Options

Option Description Default
Provider AI provider to use Groq
Model Specific model from provider (varies)
Temperature Controls randomness (0-2) 0.7
Max Tokens Maximum response length 4096
Top P Nucleus sampling parameter 1
Frequency Penalty Reduce repetition (-2 to 2) 0
Presence Penalty Encourage new topics (-2 to 2) 0
Timeout Request timeout in seconds 60

Benefits of Using Demeterics

Unified API

Access all major AI providers through a single credential. Switch between Groq, OpenAI, Anthropic, and Google without changing your workflow.

Cost Tracking

Every request is automatically logged to your Demeterics dashboard. See exactly what each workflow costs in real-time.

Full Observability

Log every prompt, response, and token for debugging and compliance. Understand usage patterns and performance metrics.

No Vendor Lock-in

Switch providers anytime without code changes. Compare performance across providers easily.

Troubleshooting

Node Not Appearing

  • Restart n8n after installing the community node
  • Check that the installation completed successfully in Settings > Community Nodes

Authentication Errors

  • Verify your API key prefix and secret are entered correctly
  • Check that your API key is active at demeterics.ai/api-keys
  • Ensure the Base URL is set to https://api.demeterics.com (default)

Model Not Working

  • Check the API Reference for the latest supported models
  • Verify the model is enabled for your account
  • Check your credit balance at demeterics.ai

Resources

Support