It is important to note that filters cannot be edited later, so decide up front if you’ll need them for billing or reporting.Filters let you narrow down which events get counted or summed in this metric. You do not have to add filters if you want to aggregate all events of a given type. However, filters become crucial if you need more granular control, such as billing for only certain AI models or distinguishing usage by environment.Example: If your system supports multiple AI models (gpt 3, llama3.2, gpt 4), and you only want to track usage from GPT models for specialized billing, you can add a filter:
Key: model
Values: gpt 3, gpt 4
This means Flexprice will only aggregate token usage events where model is either gpt 3 or gpt 4.
Cumulative: The meter never resets. Usage keeps accumulating across billing cycles, providing a running total. This is useful for features like storage.
Periodic: Usage resets at each billing period (e.g., monthly). This is ideal for most subscription-based models where usage resets for every billing period
Example Configuration:
Aggregation = SUM
Aggregation Value = tokens
Aggregation Type = Periodic (if you invoice monthly and want usage to reset each month)