Get Started
OpenMeter provides real-time event-based metering to aggregate usage over time. In this guide you will learn how to create a meter and send an event to OpenMeter.
Getting Started
To get started with OpenMeter you need to create a meter and send an event.
Send a usage event
For the complete guide check out the quickstart.
Create a Meter
For example, to count AI token usage by model, provider, and type you can create a meter like this:
Checkout the Create a Meter guide for more information.
Check out the Meter Examples guide for more common metering examples.
Send a Usage Event
To send an event matching the meter above you can use the following code:
Checkout the OpenMeter SDKs and Collectors to send events from your application.
Check out the Best Practices for more information on how to design your meters and usage events.