Docs/Aigovernance/Aicost/Cost Tracking

Cost Tracking

Track and monitor all AI costs in real-time with comprehensive cost tracking capabilities.

Real-Time Cost Monitoring

View your AI spending as it happens with real-time dashboards and analytics.

typescript
// Get current costs const costs = await ants.finops.getCurrentCosts() console.log(`Today: $${costs.today}`) console.log(`This month: $${costs.month}`) console.log(`Hourly rate: $${costs.hourlyRate}/hour`)

Cost Attribution

Attribute costs to specific customers, teams, or projects:

python
# Cost by customer customer_costs = ants.finops.get_costs( group_by='customer_id', period='last_30_days' ) for customer in customer_costs: print(f"{customer.name}: ${customer.cost}") print(f" Queries: {customer.query_count}") print(f" Avg cost/query: ${customer.avg_cost}")

Cost Breakdown

Understand where your money goes:

Cost CategoryDescriptionTypical %
LLM API CallsGPT-4, Claude, etc.70-80%
EmbeddingsVector embeddings10-15%
StorageVector databases5-10%
InfrastructureCompute, networking5-10%

Track spending over time:

typescript
const trends = await ants.finops.getTrends({ period: 'last_90_days', granularity: 'daily' })

Next Steps

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026