Logo

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.

For the complete guide check out the quickstart.

Create a Meter

OpenMeter Cloud users can create meters in three simple steps:

  1. Navigate to the Meters page in your browser
  2. Click on Create Meter
  3. 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 Cloud
Step by step guide

Checkout our create meter and common examples guides to learn more about how to setup your meters.

Open Source

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.

Best Practices

Check out the Best Practices for more information on how to design your meters and usage events.