Langfuse launches AI Gateway Learn more
DocsBillable Units

Billable Units

Langfuse pricing is based on the number of billable units per billing period. Each trace or observation, score, or Topics facet summary counts as one unit.

Units = Count of Traces + Count of Observations + Count of Scores + Count of Facet Summaries

On Langfuse Cloud, use the pricing calculator to estimate your monthly costs. Self-hosted Langfuse (OSS) is free under the MIT license, with no usage-based billing; for self-hosted Enterprise, billable units are one component of the pricing. Unit counts also help you estimate data volume when sizing a self-hosted deployment.

Monitor usage

The organization view shows all four unit types across projects. Within a project, dashboards, alerts, and the Metrics API count them as one billable units metric.

Start with the organization overview when investigating a usage increase, then open the relevant project's dashboard for more detail. If you already know which project to inspect, go directly to its dashboard.

Compare usage across projects

In Organization Settings, open the page for your deployment. Its Usage breakdown chart shows unit counts across all projects in the organization.

DeploymentPageRequired organization role
Langfuse CloudBillingOwner
Self-hostedUsageOwner or Admin

Organization usage breakdown showing daily unit counts stacked by project, with By project and By type controls, a date range selector, and CSV download

  • Select a time range. Presets span Past 1 day through Past 1 year, with hourly, daily, weekly, or monthly buckets chosen automatically. All buckets use UTC.
  • Choose a grouping. Select By project to identify projects driving a spike, or By type to compare traces, observations, scores, and facet summaries.
  • Export the data. Use Download as CSV for offline analysis or allocating usage across teams. Each row represents a time bucket, project, and unit type.

Custom date ranges can cover up to one year.

Inspect usage within a project

Open a project, go to Dashboards, and create a widget with the Billable Units data source. It counts units for that project only; break it down by Unit type or Environment to see what drives usage. To pull the same numbers into your own reporting, query the billable-units view of the Metrics API.

Units are counted when Langfuse ingests them, so deleting data or data retention does not lower them. A unit counts once in every time bucket it receives data in, so totals can differ slightly from your invoice, which counts a unit again only after 24 hours.

Alert on usage

Create an alert with the Billable units data source to get notified in Slack, PagerDuty, or a webhook when a project's units in a window cross a threshold.

On Langfuse Cloud, you can also configure spend alerts to receive email notifications when your organization's bill crosses a monetary threshold.

FAQ

How can I track my usage in Langfuse Cloud?

Follow the usage monitoring flow above to start with an organization overview or inspect an individual project.

Do units created by Langfuse features count toward billable units?

Yes. Traces, observations, and scores count whether your application sends them or Langfuse features such as LLM-as-a-Judge, Annotation Queues, or experiments create them. Topics also counts each facet summary generated by the model.

How can I optimize my Langfuse Cloud usage to reduce cost?

If your application scales and you want to optimize Langfuse Cloud cost, please check out this guide.

Why does the Billable Units data source show no usage for older dates?

Billable units are counted from the time your deployment started recording them; earlier usage is not backfilled. Self-hosted deployments record them from v4.84.0 and need v4.90.0 or later for the data source, which is not available in the legacy write mode.


Was this page helpful?

Last updated on