← Back to Discover

TokenTab

TokenTab is a proxy that tags each LLM request to an end-customer and feature, reports cost per customer, and sends token totals to Stripe Billing Meters.

Model APIsObservability & evalsFinance

What it does

TokenTab sits between an application and an LLM provider. You change the base URL to the TokenTab proxy and keep your own provider key in the X-Upstream-Key header. You add X-Customer and X-Feature headers to each request. TokenTab tags every token to an end-customer and feature. TokenTab prices usage with a bundled rate table. GET /report returns cost grouped by customer, feature or model for a date range. GET /report/{customer} returns one customer's daily series for the current month. POST /meters configures delivery to Stripe Billing Meters with a Stripe key and a meter event name. TokenTab then ships yesterday's totals to Stripe at 02:00 UTC. Version 1 supports non-streaming requests only.

Capabilities

  • Proxy routes cover OpenAI, Anthropic and Gemini, including /proxy/openai/v1/chat/completions and /proxy/anthropic/v1/messages.
  • Requests to /v1/* without a provider go to OpenAI, except /v1/messages, which goes to Anthropic.
  • Nightly Stripe deliveries use idempotent identifiers.
  • A customer map pairs your own customer IDs with Stripe customer IDs for metering.
  • TokenTab posts in_tokens plus out_tokens to Stripe Billing Meters.

When to use it

  • You need to see which customer is using the most LLM tokens.
  • You need to bill customers for LLM tokens through Stripe Billing Meters.
  • You need LLM cost per customer, model and feature for finance and RevOps reporting.