Automation for Tracking AI Usage and Costs in Google Sheets

somdn_product_page

This n8n workflow automates the process of monitoring AI model usage and associated costs, with data collection triggered manually or by other workflows. Starting with a manual trigger, the workflow retrieves execution data and AI usage statistics, then fetches current AI pricing details via an API call. It processes this data to create a summary of AI model costs, which is then logged into a Google Sheet for tracking and analysis. This setup is useful for AI service providers or organizations integrating AI APIs, enabling efficient cost management and usage monitoring in real-time or on demand.

Node Count

11 – 20 Nodes

Nodes Used

code, executeWorkflowTrigger, googleSheets, httpRequest, manualTrigger, n8n, set, stickyNote