AutomationMart
Home/Browse/πŸ₯‡ Token Estim8r -sub workflow to track AI model token usage and cost with JinaAI
n8n

πŸ₯‡ Token Estim8r -sub workflow to track AI model token usage and cost with JinaAI

n8nn8n8 modulesv1.0
SlackNotionAirtableGoogle SheetsOpenAI

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, and business analysts who use OpenAI, Anthropic, or other token-based large language models (LLMs) in their n8n workflows and want to track their usage and accuratley estimate associated costs. Whether you're prototyping workflows or deployin

At a glance

πŸ₯‡ Token Estim8r -sub workflow to track AI model token usage and cost with JinaAI is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Slack, Notion, Airtable, Google Sheets. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Slack, Notion, Airtable, Google Sheets, OpenAI
Modules
8
Price
Free
Version
v1.0
πŸ₯‡ Token Estim8r -sub workflow to track AI model token usage and cost with JinaAI workflow diagram

About this workflow

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, and business analysts who use OpenAI, Anthropic, or other token-based large language models (LLMs) in their n8n workflows and want to track their usage and accuratley estimate associated costs. Whether you're prototyping workflows or deploying in production, this tool gives you insight into how many tokens you're using and what that translates to in actual dollars. 😌 What problem is this workflow solving? n8n users running AI-based workflows often struggle to track how many tokens were used per execution and how much those tokens cost. Without visibility into usage, it’s easy to lose track of API spending. This workflow solves that problem by: - Logging token counts and costs to Google Sheets - Supporting prompt and completion token counts - Providing live pricing (optional, via Jina AI API) βš™οΈ What this workflow does This template allows you to analyze the token usage and cost of any workflow in n8n. It uses an Execute Workflow node to call the Token Estim8r utility, which: - Estimates prompt and completion tokens - Retrieves model pricing (either statically or live via Jina API) - Calculates the total cost - Logs the data to a connected Google Sheet with timestamp and model info πŸ› οΈ Setup Instructions 1. Create Google Sheet: Copy and paste the CSV template below into a .csv file and upload to Google Sheets: 2. Set up pricing (optional): In the Get AI Pricing node, add your Jina API Auth Header if you want live pricing. 3. Select the correct Google Sheet: Ensure your workflow is pointing to the imported sheet. 4. Attach to your target workflow: Add an Execute Workflow node to the end of your target workflow. 5. Point to this Token Estim8r: Choose this template as the executed workflow and send {{ $execution.id }} as the input. 6. Run and view results: Trigger the target workflow and see your token usage and cost data populate in the sheet. --- πŸ”§ How to customize this workflow to your needs - Change the logging destination: Instead of Google Sheets, connect to Airtable, Notion, or a database. - Support multiple models: Extend the price-mapping logic to cover your own model providers. - Add Slack alerts: Send a notification if a workflow exceeds a token or cost threshold. - Aggregate costs: Create a weekly summary workflow that totals cost by workflow or model. --- > This utility workflow works across all n8n deployment types and uses only built-in nodes.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Send Slack messages for new Redmine Issues

Every time a new issue is created in Redmine, Make will automatically send a message in Slack.

Free

AI-powered research assistant with Perplexity Sonar API

Name: AI-Powered Research Agent using Perplexity Sonar Description: This workflow acts as an AI-powered research assistant using the Perplexity Sonar model. When triggered by another workflow, it sends a user-defined prompt to the Perplexity API to retrieve up-to-date search results. The response is then parsed into a clean format for downstream processing. How it Works: Trigger: Activated from another workflow via Execute Workflow Trigger. Prompt Setup: Sets a system role message and user query

Free

Send new Slack group messages to Airtable as records

Automatically log new Slack group messages into Airtable as records, ensuring all team communications are systematically archived and easily accessible for future reference.

Free

Send messages to Discord based on new rows in Google Sheets, HTTP, HTML and ChatGPT

This template sends Discord messages when new Google Sheets rows are added. Fetch data from your app via HTTP, convert HTML to text and process responses with ChatGPT for enhanced communication.

Free

JSON to TOON β†’ OpenAI Enhancement β†’ TOON to JSON

This scenario demonstrates token-optimized AI processing using the TOON (Token-Optimized Object Notation) format with CustomJS. What it does: - Receives product data via webhook - Converts JSON to TOON format (reduces tokens 40-60%) - Sends to OpenAI for content enhancement - Converts TOON back to production-ready JSON - Returns enhanced data Why use TOON? Sending raw JSON to LLMs is inefficient and error-prone. TOON strips redundant syntax (quotes, braces, commas) making it easier for AI to p

Free

Create social media posts from a published article using ChatGPT - quick version

Discover how to effortlessly transform a published article into engaging social media posts with ChatGPT, boosting online presence and driving organic traffic. You can use this Airtable base

Free

Generate AI News LinkedIn Posts with GPT-4o-mini, NewsAPI, and Qdrant

Overview Automated LinkedIn content generator that: Fetches trending AI news using NewsAPI Enhances content with Qdrant vector store context Generates professional LinkedIn posts using GPT-4o-mini Tracks email interactions in Google Sheets πŸ› οΈ Prerequisites API Keys : NewsAPI, OpenAI (GPT-4o-mini), Qdrant Accounts : Gmail Oauth, Google Sheets, LinkedIn developer API Environment Variables : OPENAIAPIKEY NEWSAPIKEY QDRANTURL/QDRANTAPIKEY πŸ“ Google Sheets Setup Create a spreadsheet with these columns

Free

GitLab merge request review & risk analysis with Claude/GPT AI

Trigger The workflow runs when a GitLab Merge Request (MR) is created or updated. Extract & Analyze It retrieves the code diff and sends it to Claude AI or GPT-4o for risk assessment and issue detection. Generate Report AI produces a structured summary with: - Risk levels - Identified issues - Recommendations - Test cases Notify Developers The report is: - Emailed to developers and QA teams - Posted as a comment on the GitLab MR Setup Guide Connect GitLab - Add GitLab

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free