Pricing structure
BigQuery offers customers the possibility to subscribe for free and only pay based on usage. For new customers, the platform offers $300 worth of credits during 90 days to try the product completely for free.Plan | Cost per volume of data scanned |
---|---|
On-Demand pricing | $6.25 per TiB (a measure of compute capacity) |
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_type
tosum_agg
to sum all data processed - Set the
field_name
todata_processed_volume
for tracking usage - Set
recurring
tofalse
for 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_cents
to0
since there is no subscription fee - Use
graduated
charge 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 by offering upfront credits valid for 90 days. We can replicate this logic using Lago’s wallet feature.Refer to the API reference to create a wallet.Refer to the API reference to create a subscription.
- Create a wallet with $300 of free credits for the customer
- Set
expiration_at
to 90 days from now for the trial period
- Create a subscription for the customer with the plan’s
code
.
6
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
7
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 infra companies with pay-as-you-go models like BigQuery. With Lago, you can adapt this template to your products and services using:- Configure your pay-as-you-go pricing by aggregate using a billable metric;
- Add this billable metric as graduated charges to a plan; and
- Create a wallet and add prepaid free credits.