Development · Web app
Stripe Bill for LLM Tokens
Usage-based billing infrastructure for charging end users and reselling LLM tokens.
Stripe's token billing system automates usage-based invoicing for AI products and API resellers in partnership with Metronome. It automatically tracks and syncs market prices across OpenAI, Anthropic, and Google models, allowing builders to set custom markups without managing manual rate updates. The service supports credit packs, overage billing, and usage metering broken down by model and token type.
What it's for
- Resell LLM API access with an automatic percentage markup over provider costs
- Bill SaaS users for AI feature consumption, API calls, or token overages
- Implement prepaid AI credit packs and top-up balances for applications
Features
- Automatic price syncing for OpenAI, Anthropic, and Google models
- Configurable markup percentages on top of underlying token costs
- Support for multiple billing models including pure usage, subscriptions with included usage, and prepaid credit packs
- Usage event ingestion segmented by model and token type (input, output, and cached tokens)
- Automated invoice generation and payment handling via Stripe Billing and Metronome
Pricing
Paid. Requires a Stripe account and a Metronome account; standard Stripe Billing and payment processing fees apply.
Details
- Type
- Web app
- Category
- Development
- Topic
- Billing & Payments
- Open source
- No
- Platforms
- Web, API
- For
- Developers and AI SaaS founders building products with metered LLM usage.
- Alternative to
- Togai, Lago, Orb
- Tags
- stripe, billing, llm, tokens, usage based billing, api
Why it was saved
- @miles_matthias: Makes selling LLM access with a margin a config-first flow instead of custom metering code — relevant to anyone building AI products that charge per token.
- @toddsaunders: Explains how AI startups can bill for LLM tokens without managing pricing complexity: set a markup, pick models, route calls through Stripe's AI Gateway (or supported partners) or self-report usage; Stripe syncs popular model prices, configures advanced usage-based billing for the margin, and records usage automatically. Experimental; contact token-billing-team@stripe.com for capabilities like cost tracking without immediate billing and credit-based systems.
Related
Single API and playground for hundreds of multimodal AI models
Unified serverless API to discover and run open and closed AI models
API configuration pattern for Firecrawl's agent-driven web navigation model
Unified API gateway to access hundreds of AI models across providers
Turn websites and documents into clean, LLM-ready markdown or structured data.
Generative UI framework rendering LLM JSON streams into predefined components safely
Updated