n8n Integration

Know what every
n8n workflow costs.

TokenSense tracks what every n8n AI call costs. Change one URL in your credentials, and every request gets logged with its exact cost, token count, and the workflow that made it. Works with OpenAI, Anthropic, Google Gemini, xAI, and Mistral.

No credit card · 10k requests/mo free · 5-min setup

my-instance.n8n.cloud
Webhook
🤖
AI Agent
🛡
TokenSense
cost tracking
OpenAI
$0.024 · 1,847 tokens

Your n8n AI costs are a black box.
The meter is always running.

$412
burned overnight

A workflow looped on GPT-4. No caps, no alerts, no kill switch. Just a bill you found on Monday.

$0
cost visibility

OpenAI shows one number. Anthropic another. No breakdown by workflow or project.

1 key
all your workflows

One key shared across every n8n workflow. One rate limit takes everything down.

???
cost per workflow

Your CFO asks what the Lead Qualifier costs to run. You don't know. Nobody does.

One URL change. Full visibility.

Before
n8n workflow
OpenAI / Anthropic
  • No per-workflow costs
  • No budget caps
  • No usage logs
  • One shared API key
After
n8n workflow
TokenSense
OpenAI / Anthropic
  • Cost per workflow, per model
  • Budget caps that block spend
  • Every request logged
  • Per-project API keys

Two ways to connect.

Choose the setup that fits your workflow.

Swap your base URL

Best for: Quick start, any existing workflow

  • No install required
  • Works with any AI node
  • 2-minute setup
  • Change one URL and go
~2 min

Native AI controls, right inside n8n.

The TokenSense community node gives you model selection, cost metadata, and budget controls — all without leaving n8n.

Resource
Chat
Operation
Complete
Model
gpt-4.1-mini
gpt-4.1-mini
claude-sonnet-4-6
gemini-3-flash
gpt-4.1

Native model dropdowns — no memorizing model IDs

Running in five minutes.

Copy the endpoint below and paste it into your n8n credentials.

1Which n8n credential type?
2Paste this into your n8n credential “Base URL” field
https://api.tokensense.io

In n8n: Credentials → OpenAI → Base URL

Same endpoint for every workspace — just paste and go.

0Code changes
1URL to change
<5 minTo full visibility

Three steps, zero friction

1

Sign up & grab your endpoint

Create a free TokenSense workspace. You get your endpoint URL and API key instantly — no approval, no waitlist.

2

Add your provider keys

Paste your OpenAI, Anthropic, or Gemini keys into TokenSense Settings. Encrypted with AES-256-GCM — only used to forward your requests.

3

Swap the URL in n8n

In your n8n credential settings, change the base URL to your TokenSense endpoint. That's it — your workflows run exactly the same.

Full visibility, zero code

Per-workflow cost tracking

See exactly what each workflow spends on AI calls. No tagging, no custom headers — automatic attribution.

Budget caps that enforce

Set monthly or daily limits per workspace or project. When the cap is hit, requests stop — not just an alert.

Multi-provider support

Works with OpenAI, Anthropic, Gemini, Mistral, and xAI. Use any provider through TokenSense without changing your workflows.

Real-time usage logs

Every AI call logged with tokens, cost, model, latency, and status. Filter by workflow, project, model, or time range.

Under 50ms overhead

Parallel enforcement checks and async logging. Your workflows stay fast — TokenSense adds minimal overhead.

Smart alerts

Budget thresholds, error spikes, latency degradation, and spend anomalies. Get notified before the bill surprises you.

See exactly where the money goes.

Every workflow, every model, every dollar — in one place.

app.tokensense.io
Today's spend$0.00↓12%
Active workflows0
Avg cost/request$0.000
Last 7 days
WorkflowModelRequestsCost
Lead QualifierGPT-4.1 Mini342$12.40
Support AgentClaude Sonnet 4.6218$8.20
Content WriterGPT-4.194$6.80
Data EnricherGemini 3 Flash1,204$3.10

Works with the nodes you already use

Any n8n node that lets you set a custom base URL is compatible. Here are the most common ones.

TokenSense AI
Community node
TokenSense Chat Model
AI Agent sub-node
OpenAI Chat Model
AI Agent sub-node
Anthropic Chat Model
AI Agent sub-node
Google Gemini Chat Model
AI Agent sub-node
OpenAI
Standalone node
HTTP Request
Any AI API call

Common questions

TokenSense sits between your n8n workflows and your AI providers. You change the base URL in your n8n AI credentials to point at TokenSense instead of the provider directly. TokenSense forwards requests, logs everything, enforces budgets, and sends responses back. Your workflows run exactly the same — they just gain full cost visibility.

TokenSense works with n8n's built-in OpenAI, Anthropic (Claude), and Google Gemini nodes, plus the AI Agent Chat Model sub-nodes. It also works with HTTP Request nodes making AI API calls. Any node that lets you set a custom base URL is compatible.

Minimal — typically under 50ms per request. Enforcement checks (auth, quota, budget) run in parallel, and logging happens asynchronously after the response is returned to your workflow.

Yes. You add your own OpenAI, Anthropic, or Gemini keys to TokenSense. They're encrypted with AES-256-GCM and only used to forward your requests. You can also set up per-project keys if you manage multiple clients.

No. The base setup only requires changing a URL and API key in your existing n8n credentials. We also offer an optional community node (n8n-nodes-tokensense) with extra features like dynamic model dropdowns and metadata injection, but it's not required.

Yes. The Starter plan is free and includes 10,000 AI requests per month, full cost tracking, and budget caps. No credit card required.

See what your n8n workflows actually cost.

Free to start. 10,000 requests/month on the Starter plan. No credit card required.

No credit card required · 5-minute setup