Skip to content

api-evangelist/openmeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenMeter (openmeter)

OpenMeter is open-source usage metering and billing for AI and API products. It ingests usage events as CloudEvents, aggregates them through meters, answers usage queries, and turns that usage into entitlements, balances, grants, usage-driven notifications, and Stripe-backed billing. Available as an open-source project and as OpenMeter Cloud with a Bearer-token REST API at https://openmeter.cloud/api/v1.

APIs.json: https://raw.githubusercontent.com/api-evangelist/openmeter/refs/heads/main/apis.yml

Tags

  • Usage Metering
  • Billing
  • Entitlements
  • CloudEvents
  • Open Source
  • AI

Timestamps

  • Created: 2026-07-01
  • Modified: 2026-07-01

APIs

OpenMeter Events Ingestion API

Ingests single or batched usage events that follow the CloudEvents 1.0 specification (application/cloudevents+json and cloudevents-batch+json), and lists ingested events for debugging. Event id enables idempotent deduplication; subject attributes usage; data carries the metered payload.

Tags

  • Events
  • Ingestion
  • CloudEvents

Properties

OpenMeter Meters API

Create, list, get, and delete meters that aggregate CloudEvents by eventType using SUM, COUNT, UNIQUE_COUNT, AVG, MIN, or MAX, reading the metered value and group-by dimensions from event data via JSONPath.

Tags

  • Meters
  • Aggregation

Properties

OpenMeter Usage Query API

Queries aggregated usage for a meter across a time range with MINUTE / HOUR / DAY windows, filtered and grouped by subject and custom groupBy dimensions, plus listing the subjects that have reported usage.

Tags

  • Usage
  • Query
  • Analytics

Properties

OpenMeter Subjects API

Upserts, lists, gets, and deletes subjects - the keys (users, customers, tenants) that events are attributed to and that entitlements are provisioned against, optionally mapped to a Stripe customer.

Tags

  • Subjects
  • Metering

Properties

OpenMeter Entitlements API

Creates and manages metered, boolean, and static entitlements per subject and returns the entitlement value - hasAccess plus current balance, usage, and overage - so applications can gate features and enforce usage limits in real time.

Tags

  • Entitlements
  • Balances
  • Access Control

Properties

OpenMeter Features API

Defines the features that entitlements attach to, optionally bound to a meter for metered entitlements; supports create, list, get, and archive.

Tags

  • Features
  • Catalog

Properties

OpenMeter Grants API

Issues, lists, and voids usage grants that top up a metered entitlement's balance, with priority-based burn-down, expiration, and recurrence for allowances and credits.

Tags

  • Grants
  • Balances
  • Credits

Properties

OpenMeter Notifications API

Manages webhook notification channels and rules (such as entitlement balance thresholds) and lists delivered notification events with per-channel delivery status, so systems react to usage as it happens.

Tags

  • Notifications
  • Webhooks
  • Alerts

Properties

OpenMeter Billing and Plans API

Turns metered usage into revenue - product-catalog plans, customers, billing profiles, and invoices - with Stripe-backed invoicing and payment collection.

Tags

  • Billing
  • Plans
  • Invoicing
  • Stripe

Properties

Common Properties

Maintainers

FN: Kin Lane Email: kin@apievangelist.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors