Back to blog
Tutorial·2 min read·372 words

Build n8n AI Agents on Any Model — Qubax + n8n in 10 Minutes

Connect n8n's AI Agent nodes to 399 models through one OpenAI-compatible endpoint. Swap models per-workflow without swapping providers.

Build n8n AI Agents on Any Model — Qubax + n8n in 10 Minutes — illustration

n8n's AI Agent nodes speak OpenAI's protocol. Qubax speaks OpenAI's protocol. That's the whole trick — point n8n at Qubax and every workflow can use any of 399 models, each priced up to 98% below standard retail.

n8n automation cover
n8n automation cover

Step 1: Get a key

Create a free Qubax accountAPI Keys → create. Top up with crypto or card.

Step 2: Add Qubax as a credential in n8n

In n8n: Credentials → New → OpenAI API:

  • API Key: your qbx- key
  • Base URL: https://api.qubax.ai/v1

n8n lets you override the base URL on OpenAI credentials — that's all we change.

Step 3: Use it in AI Agent / LLM nodes

In any AI Agent, Basic LLM Chain, or LLM node:

  • Select your Qubax credential
  • Set the model to any Qubax model ID

Useful pattern — pick models per task, not per provider:

Workflow taskSuggested modelPrice (per 1M in/out)
Summarization / classificationglm-5-3-flash$0.003 / $0.009
Email draftinggpt-5-6-luna$0.008 / $0.048
Data extractiondeepseek-v4-flash$0.005 / $0.011
Complex reasoningclaude-opus-4-8$2.20 / $11.02
Long-context RAGgemini-3-1-pro$0.04 / $0.24

Because they're all one API, swapping the model in a node is a dropdown change — no new credentials, no new billing.

Step 4: A real example

A support-ticket triage workflow that classifies, drafts, and escalates:

  1. Classify (runs 1000×/day): glm-5-3-flash → ~$0.004/day
  2. Draft reply (100×/day): deepseek-v4-flash → ~$0.01/day
  3. Escalation summary (10×/day): claude-opus-4-8 → ~$0.35/day

Total: ~$0.36/day, vs roughly $5+/day if every step ran on a frontier model at retail. The cheap models handle volume; the expensive model only sees the hard cases.

Tips

  • Set max tokens explicitly in n8n nodes — agent loops can otherwise run longer than intended.
  • Use `deepseek-v4-flash` or `glm-5-3-flash` for high-volume steps. Sub-cent pricing is where Qubax's marketplace really shines.
  • Check the model page for each model's context window before feeding it 100k-token RAG payloads.

399 models, one endpoint, prices up to 98% below retail. Create your API key and wire up your first workflow.

🤖

Try Claude on Qubax

Anthropic models on Qubax. Up to 74% off.

View pricing

Article tags

#tutorial#n8n#automation#agents#integration
Share:Post on XTelegramLinkedInYHacker NewsReddit
Qubax AI

Qubax AI

AI Models at up to 99% off · Pay with crypto

Reading about Claude and GPT-5? Access them — plus 340+ other models — through one API. Anthropic models on Qubax. Up to 74% off.

Related articles