Menu

UsageTap Meter

Meter customer usage. Know when normal changes.

Connect calls, tokens, agent actions, and custom product events to customer accounts. Apply plan allowances before expensive work runs, show customers their current and predicted usage, and send validated totals to Stripe.

UsageTap Guard is included: application behavioral monitoring with opt-in email and Slack alerts.

Already have provider exports? Analyze them locally in your browser.

Customer usage and allowance controls
UsageTap Customer health showing Customer 530 with an exhausted output-token allowance, a Stop usage policy, and recent usage history

From event to trusted usage

Turn customer usage into informed action.

UsageTap latest calls showing each call's customer, feature, time, execution, status, and recorded cost

Meter

Know who used what.

Attribute calls, tokens, agent actions, and custom events to the correct customer, tenant, feature, or workflow.

UsageTap plan editor with PAYG only usage and Rolling Call Rate Limit enabled: 120 standard calls and 40 premium calls per 5-minute window

Control

Stop expensive surprises before they happen.

Check allowances and limits before running costly AI work.

UsageTap USD forecast timeline showing actual spend, expected spend, model trend, predicted spend, and three signal markers with All signals selected

Forecast

See where usage is heading—and when the pattern breaks.

Estimate runout, compare finalized usage with its learned baseline, and route confirmed changes to email or Slack.

UsageTap app in ChatGPT offering starter prompts to find customers needing attention, view a customer's usage forecast, and add metering to an application

Agents

Ask your agent about customer usage.

Use UsageTap through MCP to query customer usage, forecasts, and signals from your AI assistant, then investigate the accounts that need attention.

Product walkthrough

See the customer usage experience working together.

Explore two product views: customer-facing usage and allowances, and customer analytics showing calls, tokens, provider cost, and configured policy.

UsageTap in actionCustomer → usage → policy
UsageTap usage widget showing credit balance, 3M of 3M standard output tokens used, and 3,500 of 3,500 data credits used

See consumed allowances and available credit in the same usage widget your customers can read.

Open full-size screenshot (opens in a new tab)

Customer economics

Turn product usage into a plan customers understand.

Define allowances in the units your customers buy, such as documents, searches, calls, or agent actions. Offer prepaid top-ups or PAYG overages when they need more capacity.

Your application keeps running the work. UsageTap keeps the customer usage record and can send validated billable totals to Stripe. Stripe creates invoices and collects payments.

How to use customer signals
Rapid increase
A customer may be adopting a new workflow, automating more work, approaching an upgrade, or generating abusive traffic.
Gradual decline
A customer may be experiencing seasonality, disengagement, reduced adoption, or early churn risk.
Approaching an allowance
A customer may need an upgrade, an overage path, or an earlier warning.
Cost rising faster than value
A model, workflow, or customer behavior may be creating margin pressure.

These patterns are starting points for investigation, not automatic classifications of traction, expansion, abuse, or churn.

Illustrative plan example

Northstar · Document processing

Monthly allowance for one customer account

Included
1,000documents
Used
850documents
Remaining
150documents

Configure how extra usage is funded

Prepaid top-ups
Let customers purchase extra document credits.
PAYG overages
Charge extra usage at your configured rate when enabled.
Show the balance inside your product →

Customer-facing usage

Show customers where they stand.

Put current consumption, remaining allowance, forecast, and status inside your product so customers can act before a limit becomes a surprise.

Current usage
Embedded UsageTap widget showing available credit, allowance reset date, current and projected meter usage, and a projected-limit warning
Forecast and credit
Embedded UsageTap Usage Forecast showing PAYG credit, a projected-limit warning, current and projected meter usage, and estimated days of purchased credit remaining

Point your coding agent at Meter

Give your coding agent one prompt to connect your existing calls to customer accounts and verify recorded usage.

You can add the code first. Before the test call, set USAGETAP_API_KEY on your server. The prompt never contains your key. Set up the key before testing.

Read the full canonical instructions

Provider-neutral integration

Use any provider. Meter every customer consistently.

Meter OpenAI, Anthropic, Google, OpenRouter, self-hosted models, or any HTTP call. Use the direct SDK for agent actions, API requests, generated outputs, and other custom product events that never touch an LLM.

Read the full Meter SDK reference →
Browse SDK, Python, and HTTP integration examples

Provider or route

Integration style

Your selection

Keep the OpenAI SDK and add the UsageTap SDK to meter usage.

Install
npm install @usagetap/sdk openai
OpenAI · UsageTap SDK
import OpenAI from "openai";
import { withMetering } from "@usagetap/sdk/openai";

const provider = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

// Set USAGETAP_ENVIRONMENT=production (or test) in the server deployment.
const openai = withMetering(provider, {
  apiKey: process.env.USAGETAP_API_KEY,
  customerId: currentCustomer.id,
  feature: "chat.reply",
});

const response = await openai.responses.create({
  model: "gpt-5.6-luna",
  input: prompt,
});

UsageTap Guard · Included with Meter

Spot behavioral changes behind stable totals.

Guard compares reported application behavior to detect significant changes that could indicate misuse or runaway work, even when total usage and spend stay normal.

Application monitoring with customer and task drill-down for investigation.

LLM behavior

Investigate changes in cache reuse, output sizes, input/output relationships, and recorded cost per call.

API and custom meters

Investigate feature and task-type mix, attribution coverage, and API call rate.

Organization admins inspect live evidence. Email and Slack notifications are opt-in, off by default, and require enough usable data for supported comparisons. Guard findings support investigation; your application enforces configured Meter limits.

Spend protection

Plan ahead. Investigate unexpected spend.

Compare metered usage estimates with daily provider-reported spend. Forecast future consumption and review unexpected changes with customer and feature context.

Configured limits

Known allowances and burst limits, enforced through your application.

Forecasts

Estimated usage and runout, based on reported history.

Anomaly alerts

Confirmed changes in finalized usage and spend, delivered through opt-in email or Slack.

UsageTap USD forecast comparing actual and expected metered spend with model trend, predicted spend, and three markers in the All signals view

Metered usage forecast with All signals selected. Markers include changes that may not become confirmed incidents.

Open full-size screenshot (opens in a new tab)
Why we built this: a runaway agent changed the bill.

In July, a runaway agent process in FocusedFit.ai pushed one day of provider spend far outside its normal pattern. That experience is why Meter pairs hard limits for known boundaries with anomaly alerts for changes teams did not anticipate.

Anomaly alerts notify your team; configured Meter limits are what enforce policy before work begins.

Infrastructure and extensibility

Technical depth when you are ready to evaluate it.

Start with one customer and usage unit, then fit Meter into the event, observability, and commerce systems you already run.

Custom meters and dimensions

Define calls, tokens, generated outputs, searches, audio minutes, agent actions, or another value unit, then attach customer, tenant, feature, and workflow context.

Event APIs and SDKs

Use the TypeScript SDK or plain HTTP to begin work, record completed usage, and query customer usage status.

OpenTelemetry and webhooks

Send operational telemetry to OTLP-compatible tools and deliver usage or policy events to the systems your team already runs.

Commerce outputs

Synchronize validated usage with Stripe. Your commerce provider handles subscriptions, invoices, and payment collection.

Production evidence

FocusedFit.ai came for customer metering. Production visibility found something else.

FocusedFit.ai needed customer attribution, plans, limits, and a trusted usage record for billing. Inspecting the resulting production calls also exposed broken prompt caching, truncated source data, and duplicated context.

Read the production case study →
Input tokens cached
~71%

Representative production calls

Major context payload
150 KB → 40 KB

After the application was corrected

Further compression estimated
3–5%

Runtime Compression not enabled

Simple prepaid pricing

Meter real customer usage before you pay.

Start without a subscription or credit card. Meter includes 100,000 usage events free every month. After that, graduated rates start at $0.20 per 1,000 events and fall to $0.05 per 1,000 at scale, deducted from the same prepaid UsageTap Balance used across the product. These published Meter rates are all-in; no additional UsageTap percentage fee is added.

See all UsageTap pricing

Included when you start

$0 to start

100,000 usage events free every month.

Starter balance
$10
After free usage
$0.20 / 1K eventsGraduated down to $0.05 / 1K
Payment details
Not required to start

FAQ

Clear boundaries before you integrate.

Does UsageTap replace an AI provider?+

No. Your provider continues to run or route the AI request. UsageTap attributes the resulting usage to a customer and applies your usage policy around the call.

Does UsageTap create invoices or collect payments?+

No. Stripe or your commerce platform continues to own subscriptions, invoices, payment methods, and payment collection. UsageTap sends validated usage to that system.

What can I meter?+

You can meter calls, tokens, agent actions, custom events, and product-specific usage units. Customer, tenant, feature, and workflow identifiers keep the record attributable.

Does UsageTap decide whether a usage change means churn or abuse?+

UsageTap surfaces the pattern and its customer and feature context. Your team investigates that context and decides what the change means and how to respond.

Does anomaly detection automatically stop a runaway agent?+

No. Anomaly detection confirms unusual usage or spend and alerts your team. Configured Meter allowances, burst controls, and hard limits are the controls that enforce policy before expensive work begins.

Connect one AI feature and see who is using it.

Start with calls or tokens, then add allowances, customer-facing usage, and Stripe synchronization as you grow.