Pricing structure
BigQuery lets customers subscribe for free and pay only for the usage they generate. New customers also get $300 of credits, valid for 90 days, to try the product for free.Get started
1
Set up Lago
2
Create a billable metric
Create a billable metric to track data processing volume.Refer to the API reference to create a billable metric.
- Set the
aggregation_typetosum_aggto sum all data processed - Set the
field_nametodata_processed_volumefor tracking usage - Set
recurringtofalsefor metered billing
3
Create a plan
Create a plan with graduated pricing to include free tier usage.Refer to the API reference and guide on graduated pricing to learn more.
- Set the
amount_centsto0since there is no subscription fee - Use
graduatedcharge model with BigQuery’s $6.25 per TiB rate - Configure first 10 TiB as free, then $6.25 per TiB after that
4
Create a customer
5
Create a wallet with free credits
BigQuery lets new users try its product for free with upfront credits valid for 90 days. You can replicate this with a Lago wallet.Refer to the API reference to create a wallet.
- Create a wallet with $300 of free credits for the customer
- Set
expiration_atto 90 days from now for the trial period
6
Create a subscription
Create a subscription for the customer with the plan’s Refer to the API reference to create a subscription.
code.7
Ingest usage via events
Send usage events to Lago to track usage.Refer to the API reference to create an event.
- Reference your billable metric with
code - Reference the customer’s subscription with
external_subscription_id - Include usage and filters data in
properties
8
Monitor current usage
Track real-time customer usage for the current billing period.Refer to the API reference to get the current usage.
Wrap-up
Offering free upfront credits is a popular strategy among AI and infrastructure companies with pay-as-you-go models like BigQuery. With Lago, you can adapt this template to your products and services using:- Billable metrics, to aggregate your pay-as-you-go usage;
- Graduated charges, to price that metric on a plan; and
- Wallets, to grant prepaid free credits.