# 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.

Website: https://docs.stripe.com/billing/token-billing

## What it is 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](https://xiry.app/topics/development.md)
- 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, 2 March 2026](https://x.com/miles_matthias/status/2028515021022548181): 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, 10 March 2026](https://x.com/toddsaunders/status/2031158356606332936): 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

- [AI/ML API](https://xiry.app/resources/ai-ml-api): Single API and playground for hundreds of multimodal AI models (Web app, Paid)
- [Bytez](https://xiry.app/resources/bytez): Unified serverless API to discover and run open and closed AI models (Web app, Freemium)
- [Enabling FIRE-1 in the Firecrawl Scrape API](https://xiry.app/resources/enabling-fire-1-in-the-firecrawl-scrape-api): API configuration pattern for Firecrawl's agent-driven web navigation model (Tip, Freemium)
- [OpenRouter](https://xiry.app/resources/openrouter): Unified API gateway to access hundreds of AI models across providers (Web app, Freemium)
- [Firecrawl](https://xiry.app/resources/firecrawl-1984): Turn websites and documents into clean, LLM-ready markdown or structured data. (Website, Freemium)
- [json-render](https://xiry.app/resources/json-render): Generative UI framework rendering LLM JSON streams into predefined components safely (Web app, Open source)

Updated 10 October 2026. Page: https://xiry.app/resources/stripe-bill-for-llm-tokens

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
