What problem does it solve?
This Skill addresses the challenge of managing and optimizing API token consumption across multiple large language models (Opus, Codex, Gemini) to control costs and ensure efficient resource allocation.
Core Features & Use Cases
- Token Tracking: Monitors API call counts and token consumption for different models in real-time.
- Dynamic Quota Allocation: Adjusts token quotas based on usage thresholds, budget forecasts, and model cost-effectiveness.
- Mega-Prompt Batching: Consolidates similar requests into single API calls to reduce token usage and cost.
- Model Arbitrage: Selects the most cost-effective model for specific task types.
- Budget Forecasting: Predicts end-of-month spending and alerts when exceeding budget thresholds.
- Use Case: Automatically switch from Opus to Codex for code generation tasks when monthly token usage exceeds 80% of the budget, and batch similar summarization requests to save costs.
Quick Start
Use the saga-tqm-optimizer skill to generate a quota usage report for the current month.