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
OpenMeter Cloud users can create meters in three simple steps:
- Navigate to the Meters page in your browser
- Click on Create Meter
- Fill out the form with the required information
You also can create an example meter to count API requests by clicking on the following button:
Create Meter in CloudCheckout our create meter and common examples guides to learn more about how to setup your meters.
OpenMeter Open Source users can create meters via config or API.
Send a Usage Event
await openmeter.events.ingest({
type: 'prompt',
subject: 'my-user-id',
data: {
tokens: 123456,
model: 'gpt4',
provider: 'openai',
},
});
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.