cancel
Showing results for 
Search instead for 
Did you mean: 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to size your Genie bill (Genie Agent, Genie Code) before the free period ends (31 January 2027)

Valeria_Koz_DBX
Databricks Employee
Databricks Employee

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.

First, what's free and what isn't

  • Free until 31 Jan: Genie One and Genie Agents usage by people. During the promotion it doesn't use up the free allowance and doesn't count towards budgets.
  • Free every month: 150 DBUs per person, reset on the 1st.
  • Already billed today:
    • Genie Code beyond the 150 DBUs, and everything a service principal does. Service principals get no free allowance and aren't covered by the promotion.
    • The SQL warehouse that runs Genie's queries. It's billed separately, as before.
  • Promotion: 25% off billed Genie usage until 31 January 2027. The discount is built into the DBUs that are metered, not shown as a separate SKU.

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.

Step-by-step

  1. STEP 0. Check you have admin access. Budgets can only be created by an account admin, and the queries below need SELECT on system.billing.usage. Sort both out first, or you'll get stuck at step 1 or step 3.
  2. STEP 1. Turn on an alert-only budget now. In the account console, go to Usage → Budgets → Create budget. Choose the Unity Gateway resource type and the databricks-product: genie tag, and don't add other tags. Add a shared threshold with only Send alert ticked, plus a lower one at about 80% as an early warning. Don't block anyone yet. Today this budget only tracks billed usage (Genie Code and service principals). Free usage never counts towards a budget, and a budget can't take away anyone's free allowance. It's the safety net you'll build on in step 6.
  3. STEP 2. Pick one representative team and run a one-month pilot (a calendar month). Fourteen days is the minimum, and 30 is better. Choose a team that uses Genie for real work, not your most enthusiastic early adopters. Their usage is what you'll scale up from.
  4. STEP 3. Measure what the pilot would have cost. Run this after the pilot month ends, or now to see last month. It adds up every Genie DBU per person, free and billed, and takes off the 150 DBU allowance once per person. It returns two rows (people and service principals) with DBUs per product, billable DBUs, a cost at your price per DBU, and the median and 75th percentile you'll use in step 5. It checks the last complete month by default; for a specific month, replace the two date lines.
    1. 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. 

    2. The query
    3. <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;
       
  5. STEP 4. Turn DBUs into a range, not a single number. The step 3 query already multiplies the billable DBUs by your price per DBU (0.07 in the example; replace it with your list or contract rate). Give finance two numbers: cost_usd × 0.75 (if the 25% promotion were extended) and cost_usd (list price). The docs don't say whether the discount continues after the promotion, so the range is the honest answer. One catch: Genie Code usage that's already billed today has the 25% built into its DBUs, so at full price it can cost up to a quarter more.
  6. STEP 5. Scale it up, then split people into three tiers. Multiply by the number of people you expect to use Genie in February, not by everyone with access. Then group them the way the Genie consumption guide suggests:
    • Beginners: occasional use. Most stay within the free allowance.
    • Practitioners: regular use. Set their limit from your median and 75th percentile.
    • Power users: long-running agent work. Highest limit, given as a group override.
    • Create one account group per tier, so limits follow people rather than names on a spreadsheet.
  7. STEP 6. Set per-person limits before 1 February. Edit the budget from step 1. Keep the shared thresholds as alert-only, and add a per-user threshold for everyone (the beginner level), plus group overrides for practitioners and power users. Use Block usage on the per-user limits, not the shared one, so one heavy user can't block everyone.
  8. STEP 7. Check again in March. Once February is complete, run the step 3 query and compare it with your estimate. Move people between tiers where the data says so.

What good looks like (expected outcome)

  • Finance has a monthly range for Genie before the promotion ends, with the query behind it.
  • Every person sits in a tier, and each tier has a limit based on real usage, not guesses.
  • One person's heavy month triggers an alert or a personal block, never a company-wide one.
  • The first February invoice falls within the range you gave.

Common errors (and how to avoid them)

  • Reading the budget page as the bill. During the promotion, Genie One and Genie Agents usage doesn't appear against budgets at all, and the page resets every month. Size from system.billing.usage.
  • Forgetting service principals. An app or integration running on one shared service principal is billed from day one, with no allowance, and every user's questions land on that one identity. Check for these first.
  • Forgetting the SQL warehouse. Genie budgets track only the LLM usage. The warehouse that runs Genie's SQL is billed separately, so size it too (I covered warehouse budgets here).
  • Subtracting the allowance twice. The query in step 3 subtracts it once from total usage. If you work from billed spend only, the allowance is already taken out.
  • Setting beginner limits too low. A limit that blocks someone in their first week stops them before they've found the value.
  • Starting in January. A two-week pilot over the new year won't show you a normal month.

The takeaway

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.

2 REPLIES 2

DoTA
Honored Contributor

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.

Valeria_Koz_DBX
Databricks Employee
Databricks Employee

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.