# Billing for LLM tokens

Learn how to bill for LLM tokens.

Bill for LLM token usage without building a pricing system. Whether you resell access to LLM providers with your own markup, or charge your own app’s users for AI feature consumption directly, use [Metronome](https://docs.stripe.com/billing/usage-based.md)—Stripe’s usage-based billing platform—to meter usage and generate invoices automatically.

Choose how to bill for LLM tokens:

| Approach | Best for |
| --- | --- |
| [Resell LLM tokens](https://docs.stripe.com/billing/token-billing.md#resell-llm-tokens) | Platforms and gateways that give customers access to LLM providers and want to set their own markup on token costs. |
| [Charge your app’s users](https://docs.stripe.com/billing/token-billing.md#charge-your-users) | Apps that want to bill their own end users for AI feature consumption, such as token usage, API calls, or compute time. |

## Resell LLM tokens 

For new integrations, use Metronome to define your pricing and record usage. Stripe syncs model prices across providers, and you set your own margin. Send usage events directly to Metronome from your own integration.

> Billing for LLM tokens is in private preview and not yet available to all users. [Request to join the private preview](https://docs.stripe.com/billing/token-billing.md#join-the-waitlist).

### Define your pricing model

In Metronome, define token-based products and rates, configure your markup, and combine usage charges with recurring fees or credits. Metronome evaluates usage in real time and sends invoices to Stripe for payment.

### Automatic price updates

Stripe syncs token prices for OpenAI, Anthropic, and Google models, so your pricing always reflects current costs. When providers update their pricing or release new models, we notify you and can automatically apply new prices to all customers.

We’re actively expanding model support. If you need price tracking for models we don’t yet support, let us know at [token-billing-team@stripe.com](mailto:token-billing-team@stripe.com).

### Supports any pricing model

- **Usage-based**: Bill customers only for the tokens they consume, with no fixed fee.
- **Fixed fee with included usage**: Charge a monthly fee that includes a set amount of token usage.
- **AI credit packs and top-ups**: Metronome natively supports custom pricing units. Define an “AI Credit,” configure how usage of each model converts to credits, and sell prepaid credit packs that customers can top up.
- **Hybrid models**: Combine any of the above approaches to create custom pricing tiers.
- **Custom**: Add your own usage-based rates alongside LLM token rates. Charge for custom models you’ve built or other non-LLM usage on the same Metronome rate card.

### Track your AI usage

After you set up your pricing model, send usage events directly to Metronome. Include the customer, model, token type, and token count that Metronome uses to evaluate the applicable rate. You can meter tokens per customer, segmented by:

- Model (for example, GPT-5.6-sol, Claude Fable 5)
- Token type (input, output, and cached tokens for supported models)

Learn how to [ingest events with Metronome](https://docs.metronome.com/guides/events).

## Charge your app’s users 

If you’re building an AI application and want to charge users for consumption, such as token usage, API calls, compute time, or AI feature access, Metronome provides real-time metering, flexible pricing, and automatic invoice generation without requiring you to resell LLM access.

### Choose your billing model

| Model | Description | Best for |
| --- | --- | --- |
| Per-token or per-unit metering | Track each unit of consumption (tokens, API calls, compute seconds) and bill based on total usage. | LLM wrappers, API marketplaces, inference platforms. |
| Tiered pricing | Offer usage tiers with different per-unit rates as volume increases. | Apps with free tiers and paid upgrades. |
| Subscription with metered overages | Charge a flat monthly fee that includes a usage allowance, then bill overages at a per-unit rate. | SaaS products with predictable base usage and variable AI features. |

### Join the waitlist

Sign up to request access to Billing for LLM tokens.

### Interested in Billing for LLM tokens?

Enter your email to request access.

```bash
curl https://docs.stripe.com/preview/register \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Referer: https://docs.stripe.com/billing/token-billing" \
  -d '{"email": "EMAIL", "preview": "token_billing_preview"}'
```

## See also

- [How agents work with Stripe](https://docs.stripe.com/agents/how-it-works.md)
- [Build on Stripe with AI](https://docs.stripe.com/agents.md)
- [Usage-based billing with Metronome](https://docs.stripe.com/billing/usage-based.md)
- [How Metronome works with Stripe](https://docs.stripe.com/billing/how-metronome-works-with-stripe.md)
