Skip to content
Telemetry
Interactive SaaS SQL lab

AI economics · Advanced

Estimate AI gross-margin inputs by account

How does accepted-output cost compare with successfully collected revenue for each account?

Join model costs and accepted outputs to billing results for each account. These costs are estimates. Check them against invoices.

Reviewed by the Telemetry product team on . We checked the read-only SQL, table joins, sample results and chart, and what the results mean. Who reviews this page

Runs against one versioned 15-table dataset

Edit and execute the query locally in your browser, then download the same synthetic schema and rows for DuckDB.

AI economicsAdvanced

Estimate AI gross-margin inputs by account

How does accepted-output cost compare with successfully collected revenue for each account?

Join model costs and accepted outputs to billing results for each account. These costs are estimates. Check them against invoices.

The dataset and query remain in this browser.

Expected result

Estimated AI cost by account

account_idplancollected_usdestimated_ai_cost_usdaccepted_outputscost_per_accepted_output_usdai_cost_pct_of_collected
acct_deltagrowth1,8000.07930.02630.0044
acct_acmegrowth2,4000.0520.0250.0021
acct_beaconbusiness1,2000.02110.0210.0018
acct_emberstarter00.0060——
acct_cinderstarter00.0050——
acct_fjordfree00.00410.004—

How to read the query

  • Model usage is reduced to one account row before the billing join.
  • Cost per accepted output counts outputs accepted in your product. A successful provider response does not count on its own.
  • Accounts with no collected revenue have a null cost percentage.

How to interpret the results

  1. 1Use versioned provider prices and reconcile estimates with provider invoices.
  2. 2Define accepted outcomes per feature and guard against missing feedback.
  3. 3Include non-model infrastructure and labor costs before claiming gross margin.

Related lessons

Keep the result

Run this query on your own events

Create a free workspace only when you are ready to save the query, connect real events, and monitor the result. No credit card is required.

Save with my events