Library / Reports, Analytics & Dashboards
Reports, Analytics & Dashboards
Track OpenAI API Usage and Costs in Google Sheets
On a schedule, this pulls token usage and costs from the OpenAI Admin API per project and key and logs them to Google Sheets.
The steps
- Schedule Trigger
- OpenAI Admin - get token usage
- OpenAI Admin - Get cost
- Remove Duplicates
- Set api_key and project ids
- Set api_key id and name
- Add api_key name to token usage
- Get project_ids
- Merge token, usage, projects
- Merge token and usage
- Structure usage, cost, projects
- Split Out api_key and project
- Split Out Usage
- Split Out Cost
26 steps in total.
Similar automations
Monitoring, Ops & IncidentsTrack AI Agent Token Usage and Costs in Sheets13 stepsWeb Scraping & ResearchTrack Daily PG&E Energy Costs and Email Them14 stepsWeb Scraping & ResearchTrack Daily PG&E Energy Costs with Airtop15 stepsMonitoring, Ops & IncidentsTrack AI Token Usage for WhatsApp and Telegram Agents25 steps