Библиотека / Мониторинг, эксплуатация и инциденты
Мониторинг, эксплуатация и инциденты
Учёт расхода токенов и затрат ИИ-агентов в Sheets
При вызове или запуске читает данные выполнения из API n8n, извлекает расход токенов для Claude, OpenAI, Gemini и OpenRouter и записывает ориентировочные затраты в Google Sheets.
Что делает
## Limitations ### 1. This workflow doesn't account for Prompt caching If you're consecutively sending similar prompts to OpenAI it'll automatically use Cached Tokens to reduce the cost of your requests. So our cost estimates will have a higher value than the actual cost. Other providers like Anthropic and Google have similar mechanisms. ### 2. Not tested with audio or video files This workflow was tested with text and images, but no tests were made with audio files or videos. ### 3. The cost is an estimate In the spreadsheet you can see the total cost of the requests, but that is only an estimate. If you do batch requests, prompt caching or other techniques to reduce cost, the estimate might be higher than the actual cost.
Шаги
- When clicking ‘Test workflow’
- AI Agent
- Call sub-workflow
- Think
- Extract token usage data
- Get execution data
- When Executed by Another Workflow
- Split Out
- Sum Token Totals - aggregate by model
- Record token usage
- Gemini
- OpenAI
- Anthropic
Похожие автоматизации
ИИ-агенты и ассистентыКарманная армия ИИ-агентов в Telegram с GeminiШагов: 12Автоматизация эл. почтыDraft beginner-friendly AI Instagram post drafts with OpenRouter and Google SheetsШагов: 17Мониторинг, эксплуатация и инцидентыMonitor Reddit and score leads with Apify, OpenAI, OpenRouter and SlackШагов: 28ИИ-агенты и ассистентыМаршрутизация запросов в чате к лучшей ИИ-моделиШагов: 6