Templates / Track LLM costs and usage across OpenAI, Anthropic, Google and more

Track LLM costs and usage across OpenAI, Anthropic, Google and more

Ready for 3.0

by Aldayel · 63 views · created 2026-03-31 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 12 nodes and runs when another workflow calls it. It uses only n8n's built-in nodes.

How it runs

Trigger: When another workflow calls it.

  1. Extract Execution ID (Edit Fields (Set)): sets 1 field: executionId
  2. Get Execution Data (n8n): work with credential
  3. Extract Token Usage (Code): runs custom JavaScript code
  4. Find Nodes with LLM Data (Code): runs custom JavaScript code
  5. Standardize Names (Code): runs custom JavaScript code
  6. Merge: merges the data from its input branches
  7. All Models Defined? (If): checks a condition and branches into true / false
  8. Model Prices (Code): runs custom JavaScript code
  9. Stop and Error (Code): runs custom JavaScript code
  10. Generate Summary (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Installation Steps 1. Go to Settings → n8n API and create an API key 2. Add it as credential for the Get Execution Data node 3. Review model mappings in Standardize Names node 4. Review pricing in Model Prices node To Monitor a Workflow 1. Add Execute…

Excerpt from Aldayel's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.