a week ago - last edited 14 hours ago
31 January 2027 is closer than it looks. Until then, every question your people ask Genie One or a Genie Agent is free. From 1 February, it's billed like the rest of Genie: a free monthly allowance per person, then pay-as-you-go.
If nobody has worked out the number by then, finance will find it on the first invoice. And the conversation won't be about rolling Genie out further. It will be about who switched it on.
There's also less time than the date suggests. A usage pilot ideally needs 30 days over a normal period (or a min of two weeks), with Christmas sitting in the middle, and you'll want a couple of weeks to agree limits with finance. Count back and you need to start by mid-December. Here's how to get a number you can defend.
All Genie usage is in system.billing.usage with billing_origin_product = 'GENIE'. Free usage is recorded under the GENIE_FREE_USAGE SKU (from 20 July 2026), and usage_metadata.genie.surface says whether it came from GENIE_CODE, GENIE_ONE or GENIE_AGENTS. That's what makes it possible to price it.
Keep the pilot inside one calendar month. The allowance resets on the 1st, so a pilot that spans two months needs this query run once per month.
<pre class="lia-code-sample language-sql">
-- Genie usage over one pilot month, and what it would cost from February
WITH per_identity AS (
SELECT identity_metadata.run_as LIKE '%@%' AS is_person,
identity_metadata.run_as AS identity,
SUM(IF(usage_metadata.genie.surface = 'GENIE_CODE', usage_quantity, 0)) AS code_dbus,
SUM(IF(usage_metadata.genie.surface = 'GENIE_ONE', usage_quantity, 0)) AS one_dbus,
SUM(IF(usage_metadata.genie.surface = 'GENIE_AGENTS', usage_quantity, 0)) AS agents_dbus,
SUM(usage_quantity) AS dbus -- free + billed, all record types
FROM system.billing.usage
WHERE billing_origin_product = 'GENIE'
AND usage_date >= ADD_MONTHS(DATE_TRUNC('MONTH', CURRENT_DATE), -1) -- last complete month
AND usage_date < DATE_TRUNC('MONTH', CURRENT_DATE)
GROUP BY 1, 2)
SELECT IF(is_person, 'people', 'service principals') AS who,
COUNT(*) AS identities,
ROUND(SUM(code_dbus)) AS code_dbus,
ROUND(SUM(one_dbus)) AS one_dbus,
ROUND(SUM(agents_dbus)) AS agents_dbus,
ROUND(SUM(IF(is_person, GREATEST(dbus - 150, 0), dbus))) AS billable_dbus,
ROUND(SUM(IF(is_person, GREATEST(dbus - 150, 0), dbus)) * 0.07, 2) AS cost_usd, -- your $ per DBU
ROUND(percentile_approx(dbus, 0.5)) AS median_dbus,
ROUND(percentile_approx(dbus, 0.75)) AS p75_dbus,
ROUND(MAX(dbus)) AS heaviest_dbus
FROM per_identity
GROUP BY 1;
The free period isn't the time to stop measuring. It's the cheapest time you'll get to find out what Genie really costs, so finance hears a number from you before they see it on an invoice.
Sunday
The mid-December start date is the part most people will miss, so thanks for spelling it out.
Two things I noticed when I checked this against the Genie cost docs. The estimate query in step 4 prices the free rows by borrowing the most recent billed Genie SKU in the same workspace over the last 30 days. If your pilot workspace only has free usage (Genie One and Agents, nobody past the Genie Code allowance, no service principal), that lookup returns NULL and the cost column comes back empty. It is easy to read that as zero. Worth checking for it, or taking the price per DBU from a workspace that does have billed Genie rows.
I would also split the step 3 numbers by usage_metadata.genie.surface on top of the per-person split (identity_metadata.run_as has the user). Genie Code stays billed past the allowance while One and Agents are free until the end of January, so a team that mostly uses Code and a team that mostly uses Agents can show the same DBU total and behave very differently in February.
Also, the SQL block under step 3 did not render for me, there is just a blank. Might be worth re-editing the post in case others see the same.
14 hours ago
Thanks @DoTA this is exactly the kind of review a cost post needs, and all three points were right. I've updated the post:
1. NULL price: step 4 no longer borrows a billed SKU. The step 3 query multiplies by your own price per DBU, so a free-only workspace can't come back empty.
2. Split by surface: the query now returns Genie Code, Genie One and Genie Agents DBUs separately, and takes the 150 DBU allowance off once per person across all of them. Service principals get their own row, with no allowance.
3. Rendering: the SQL is now a proper code block you can copy.
While re-testing it I also made it default to the last complete month, so it returns rows without editing the dates. Thanks again for reading it so carefully. If anyone runs it and compares it with a real February bill, I'd love to hear how close it gets.