Neutral Cost

Track AI API costs, tool usage, and billing in one centralized dashboard for Convex applications with automatic cost attribution.

Installation

npm install neutral-cost

About Neutral Cost

A cost tracking component for Convex.

Benefits

Use cases

how to track OpenAI API costs per user in Convex

Neutral Cost automatically tracks AI API usage by user or operation, letting you see exactly how much each user costs your application. It integrates with Convex to provide real-time cost attribution and billing data.

centralized cost tracking for multiple AI services

The component aggregates costs from different AI providers and tools into one dashboard. You can track OpenAI, Anthropic, and other service costs alongside internal tool usage for complete visibility.

implement usage-based billing for AI features

Neutral Cost provides the cost data needed to charge users based on their actual AI usage. It tracks costs per operation and user, enabling you to build accurate usage-based pricing models.

monitor AI spending and set budget alerts

The component offers real-time spending monitoring with configurable alerts when costs exceed thresholds. You can track spending trends and identify expensive operations before they impact your budget.

Frequently asked questions

Which AI providers does Neutral Cost support for cost tracking?

Neutral Cost supports major AI providers including OpenAI, Anthropic, and other popular APIs. It can track both direct API costs and internal tool usage, providing comprehensive cost visibility for Convex applications.

How does Neutral Cost integrate with Convex databases?

Neutral Cost stores cost data directly in your Convex database, allowing you to query and analyze spending alongside your application data. It provides functions to track costs within your Convex mutations and queries.

Can I set up automatic billing based on tracked costs?

Yes, Neutral Cost provides detailed cost attribution data that you can use to implement usage-based billing. It tracks costs per user and operation, giving you the data needed to charge customers accurately for their AI usage.

Does Neutral Cost provide cost forecasting features?

Neutral Cost focuses on accurate cost tracking and reporting rather than forecasting. It provides historical usage patterns and real-time monitoring that you can use to analyze trends and plan budgets for your Convex applications.

Links