---
title: "Meters"
description: "Meters count what a vendor charges for, in whole units of its own, such as tokens, credits, or calls."
---

# Meters

A meter is something a vendor charges for, counted in whole units of its own: model tokens,
Pipedream credits, API calls. A budget limits spend on one meter, or, in dollars, on several, and
every reservation charges one or more meters.

A meter has:

- an **id**, which services name when they reserve, such as `openai-tokens`. Ids use letters,
  digits, and `.`, `_`, `:`, `-`.
- a **vendor**, such as `openai`. The Budgets page groups meters by vendor.
- the **vendor's own name** for what it counts, such as `tokens`, so Tidegate can one day match
  your spend against the vendor's usage reports.

## Choosing the unit

Count in whatever unit the vendor bills in, as a whole number:

- A model provider bills by the token: count tokens.
- A vendor that bills in currency: count **micro-dollars**, millionths of a dollar. That is fine
  enough for per-call prices such as $0.00001 per verification (10 micro-dollars).
- To rate-limit, count **calls**: reserve 1 per call, and a budget on the meter caps calls per
  window.

If you track input and output tokens at different prices, make two meters; one reservation can
charge both. A model's prices differ by model too, so make a meter for each model and kind of
token, and cap them together with a [budget in dollars](/tidegate/guide/budgets).

## Changing a meter

A meter is fixed once defined. Until a reservation has charged it, an admin can remove it, with
its budgets and prices, and define it again however they like. Once any reservation has charged
it, it can't be removed, so no spend is ever lost.
