🥇 Token Estim8r -sub workflow to track AI model token usage and cost with JinaAI
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects Google Sheets.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- n8n: uses n8n
- Get AI Usage Data (Code): runs custom JavaScript code
- Set Ai_Run_Data (Edit Fields (Set)): sets or maps fields
- Get AI Pricing (HTTP Request): calls an HTTP API
- Get Models Price and Add Summary (Code): runs custom JavaScript code
- Google Sheets: uses Google Sheets
Services it uses
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 (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
Save Your Tokens from Evil King Browser > Image Generated with ideoGener8r n8n workflow template --- 🔍 Estimate token usage and AI model cost from any workflow in n8n 🙋♂️ Who is this for? This workflow is ideal for AI engineers, automation specialists,…