Package Information
Downloads: 61 weekly / 152 monthly
Latest Version: 0.1.0
Documentation
n8n-nodes-spendex
N8N community node for SpendexAI — Smart AI Router with cost optimization.
One node. All LLM providers. Automatic cost savings.
Features
- Chat Completion — Send prompts through Spendex's smart router. Automatic model selection based on prompt complexity.
- Cost Tracking — Every response includes cost, savings, provider, and routing metadata.
- Budget Monitoring — Query budgets and credit balance directly from N8N.
- Spend Triggers — Get notified when budgets are crossed or requests are blocked.
- Project Tags — Tag requests by project for granular cost attribution.
Nodes
| Node | Description |
|---|---|
| SpendexAI | Send chat completions, check balance, list budgets |
| SpendexAI Trigger | Webhook trigger for spend events (budget alerts, request completions) |
Setup
- Install:
npm install n8n-nodes-spendex - Add SpendexAI credentials with your API key
- Use the SpendexAI node in your workflows
Example: AI Chatbot with Cost Tracking
Webhook → SpendexAI (Chat Completion) → Respond to Webhook
Every response includes:
content— The AI responsemodel— Which model was actually usedcost— Exact cost in USDsaved— Money saved vs. requested modelclassification— Prompt complexity (simple/medium/complex)
Example: Budget Alert to Slack
SpendexAI Trigger (budget.warning) → Slack (Send Message)
License
MIT