Automate OpenAI API Usage and Cost Tracking with Google Sheets - n8n Workflow | Neura Market
Automate OpenAI API Usage and Cost Tracking with Google Sheets
Effortlessly track OpenAI API usage and costs by automatically logging detailed metrics into a Google Sheets template. This workflow helps teams analyze and manage expenses effectively.
This workflow is designed for finance, operations, and technical teams who need to monitor OpenAI API usage and costs. It automates the collection of token usage, model breakdowns, and cost data from OpenAI's Admin API, enriching the data with project and API key names for clarity. The enriched data is then appended to a Google Sheets template, providing an easy-to-analyze historical record. The workflow runs on a customizable schedule, ensuring up-to-date information is always available.
Platform
n8n
Category
Finance
Price
Free
Creator
Elias Johansen
set
code
merge
splitOut
stickyNote
httpRequest
googleSheets
scheduleTrigger
removeDuplicates
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.