What is OpenMeter?
OpenMeter is an open-source usage metering and billing platform designed for developers to implement usage-based pricing. It ingests events, logs, and metrics to calculate aggregated usage and integrates with payment providers like Stripe. The source code is available under the Apache 2.0 license, and a managed cloud option is also offered.
What are the features of OpenMeter?
- Event ingestionAccepts events, logs, and metrics via SDKs for Node.js, Python, and Go, or through collectors for AI tools and cloud infrastructure.
- Real-time usage aggregationQueries metered data by subject and date range to return accurate aggregated usage values.
- Usage limits and gatingEnforces quotas, notifications, and low-latency usage limits at the edge to control customer consumption.
- Product catalog managementConfigures plans, credits, commitments, and usage-based pricing models without hardcoding changes.
- Billing integrationSyncs metering data with Stripe to generate invoices based on tracked customer usage.
- Access controlsProvides role-based access control and single sign-on for deployments.
What are the use cases of OpenMeter?
- Per-millisecond compute billingTrigger.dev uses OpenMeter to handle high event volumes, sync metering data with Stripe, and restrict free-tier access via entitlements.
- Automated API invoicingRequestly tracks individual customer API consumption and automatically generates corresponding Stripe invoices.
- AI token meteringDevelopers can ingest token counts and model identifiers from services like OpenAI to bill customers for generative AI usage.
How to use OpenMeter?
- Initialize the SDKImport the
@openmeter/sdkpackage and configure the client with the base URL in TypeScript. - Ingest an eventCall the events ingest method with an ID, type, subject, and data payload such as token count and model name.
- Query aggregated usageCall the meters query method with a meter name, subject array, and date range to retrieve calculated usage values.
OpenMeter Pricing Information:
- Open SourceFree under the Apache 2.0 license; self-hosted via GitHub.
- Konnect Metering & BillingFree starting access stated on the site; specific plan limits or paid tiers are not detailed in the provided source.


