Metered usage

Bill exactly what was used.

Your app reports. Ruba counts. The bill follows.

Image exports · October Live
1,240
Lena Fischer · so far1,240 × $0.02 = $24.80
01 · Events

Your app says what happened.

Send one event each time a customer uses something, with any details that matter.

Sent by your app
name"image.exported"customer"lena"size2.4 MBat14:02:11
Saved as it arrived. Never changed later.
02 · Meters

A meter decides what counts.

Count the events, add up a value, take the highest, or count unique ones. Change it any time.

Count1,240exports
Sum2.9 GBexported
Maximum6at the same time
Unique38projects
03 · The bill

It lands on the next bill.

At the end of the period, the total becomes a line on the customer’s bill.

Bill · 1 NovLena Fischer
Pro plan$12.00
Image exports1,240 × $0.02$24.80
Total$36.80
Tax and discounts apply as usual.

How does usage become a bill?

1. Your app reports
Each time a customer uses something, your app sends Ruba a short note (an event) saying who and what.
2. Ruba adds it up
A meter keeps a running total for each customer as the notes arrive.
3. The month closes
At the end of the billing period, Ruba reads the final total.
4. It is billed
Your price per unit turns the total into a line on the customer’s next bill.
5. Normal rules apply
Tax, discounts, renewals and payment work exactly as for any other sale.

What can a meter count?

How many times
For example, the number of requests, jobs or images.
A total amount
For example, tokens, megabytes or seconds used.
Average, lowest or highest
For example, the biggest number of users at the same time.
How many different
For example, the number of different projects or users.
More than one meter
Several meters can read the same notes, so you can change pricing without changing your app.

Where can usage come from?

AI models
Count the words (tokens) used by AI replies, including with the Vercel AI SDK.
Streaming
Count data or time from a streaming response.
File storage
Count uploads, downloads and data moved, on S3-compatible storage.
Time spent
Measure how long a task or session took.
Anything else
Send your own notes through the SDK.

Good to know

Limits
Ruba does not block customers when they reach a limit. Your app decides what happens.
Customers can see it
Their current usage appears on their own customer page.
Ruba’s fee
4.5% + $0.50 for each payment.
Next · BillPrepaid creditsBuyers pay first, then use what they bought.
Ready when you are.Early access is by application. No setup fee, no monthly fee.