Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
Overview
Billing
OverviewAbout the Billing APIs
Subscriptions
Invoicing
Usage-based billing
    Overview
    How usage-based billing works
    Use cases
    Record usage for billing
    Offer billing credits
    Monitor usage
    Manage usage-based billing setup
    Advanced usage-based billing
    Billing for LLM tokens
Quotes
Customer management
Billing with other products
Revenue recovery
Automations
Test your integration
Tax
Overview
Use Stripe tax
Manage compliance
Reporting
Overview
Select a report
Configure reports
Reports API
Reports for multiple accounts
Revenue recognition
Data
Overview
Business and product data use cases
SchemaData freshness
Sigma
Data Pipeline
Data management
HomeRevenueUsage-based billing

Billing for LLM tokensPrivate preview

Learn how to bill for LLM tokens.

Bill for LLM tokens without managing pricing complexity. Set your markup, pick your models, and route calls through our LLM proxy (or supported partners). We sync popular model prices, configure Stripe Usage-Based Billing for your margin, and record usage automatically. Billing for LLM tokens is a private preview feature, and we consider it experimental in nature.

Developer preview

This is an experimental private preview. We’re looking for developers willing to test the functionality and share their feedback.

Overview

Say you’re building an AI app: you want a consistent 30% margin over raw LLM token costs across providers.

Billing automates the process and Stripe:

  • Syncs the latest model prices across providers.
  • Configures Usage-Based Billing for your token markup.
  • Records usage automatically through our LLM proxy or supported partners.

Token prices in one place

See token prices across major providers on a single Dashboard page—we keep prices up to date so you always have the current pricing information. You can adjust your markup at any time. We notify you when provider pricing changes.

One-click Usage-Based Billing setup for your token markup

Enter your desired markup (for example, 30%). Click Submit and we’ll configure the required Usage-Based Billing resources—prices, meters, and rate configuration. You only need to set your margin percentage to start using Usage-Based Billing.

Call models and bill in one request

Instead of maintaining an LLM integration and a billing integration, use our LLM proxy to call models and record metered usage in one request. Provide your prompt, chosen model, and the Customer ID. We route to the provider, return the response, and attribute tokens by model and type.

If you’ve already integrated with a different LLM proxy, we’ve partnered with industry leaders to capture usage automatically (with no extra API calls).

Join the waitlist

If you’re interested in the private preview, sign up and we’ll contact you if we have available space.

Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Join our early access program.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc