Reference
Billing & credits

Billing & credits

Every finished run is priced and written to a signed ledger in micro-dollars (one millionth of a dollar). Adding a billing account is what starts metering a company; deploying Thunderduck never bills the runs that came before it.

What is metered

ItemPriced by
QueriesvCPU size of the run × its duration, at the pay-per-query rate
Iceberg compaction and snapshot expirythe size the run was launched at, same rate
Catalog refreshes (introspection, EDA profiles)the run's stamped size, same rate
Storagemeasured size of catalogs the platform hosts, at a per-TB-month rate

A run with no recorded CPU size is not billed, and the ledger says why (cpu_cores_missing). Cached query results cost nothing.

Plans

Pay per query prices each run. Unlimited is a flat monthly fee for a dedicated instance: a run no larger than that instance is included, and a larger run spills onto on-demand compute and is billed at the pay-per-query rate.

SizevCPU / RAMPay per queryUnlimited (dedicated)
S8 / 32 GiB$0.72 / vCPU-hour$412 / month
M16 / 64 GiB$1.30 / vCPU-hour$740 / month
L32 / 128 GiB$2.60 / vCPU-hour$1,479 / month
XL64 / 256 GiBcontact uscontact us
2XL128 / 512 GiBcontact uscontact us

A pay-per-query run is priced in the bucket it lands in, then multiplied by the vCPU count it actually used: 4 vCPU for 30 minutes at the S rate is 4 × 0.5 × $0.72. Sizes above L have no published automated price, so a run that lands in one is recorded as not billed rather than guessed.

What "Included" means

On an unlimited plan, every metered runtime — queries, Iceberg operations and catalog refreshes — is compared with the dedicated instance's vCPU count. A run at or below it is written as a zero-value debit reading "Included: N vCPU fits the dedicated instance", so the invoice still shows the usage while charging nothing. A larger run spills and is priced per vCPU-hour.

A run just over the size is not partially included: the whole run is billed at the on-demand rate.

Storage

Storage is charged only for catalogs Thunderduck hosts — a managed bucket, not a catalog pointing at a bucket you own and pay for yourself. It is measured once a day at the published $0.028 per GB-month ($28 per TB-month, decimal TB) and accrued as a daily item, so a month with rising usage is charged for what was there each day rather than the last day's total.

Ledger, invoices and credit

  • The ledger is append-only and signed: a debit is positive, a refund negative. Cancelling a query refunds its reservation; a failed run refunds it too.
  • A monthly invoice closes at the end of each UTC month and freezes its line items, so a later rate change cannot rewrite what a closed month said.
  • A plan's monthly included credit is applied at the start of the month. Any credit left after the invoice is carried forward.

Adding credit

Settings → Billing has Add credits when the install has Stripe configured. The browser goes to Stripe's hosted Checkout; Thunderduck creates the line item from a validated whole-dollar amount and credits the ledger from Stripe's signed amount_total, never from the request. A completed purchase settles open invoices oldest-first and leaves the remainder as credit.

  • Preset amounts are $50, $100, $500 and $1,000 by default, plus a custom amount between $10 and $25,000.
  • A purchase is idempotent on the Checkout session id, so a retried webhook cannot credit twice.
  • The webhook verifies Stripe-Signature over the raw body with a five-minute tolerance and supports key rotation.

Turning top-ups on

Top-ups are off unless both secrets are set. Set them in your values — they land in the chart's credentials Secret — and run Terraform as usual:

SettingMeaning
console-api.stripe.secretKeyStripe secret key
console-api.stripe.webhookSecretsigning secret of the endpoint below
console-api.stripe.currencyusd by default
console-api.stripe.creditPacksUsdcomma-separated preset amounts
console-api.stripe.minCreditUsd / maxCreditUsdbounds for the custom amount

The Stripe endpoint is <console base URL>/api/billing/stripe/webhook, subscribed to checkout.session.completed and checkout.session.async_payment_succeeded. With the secrets unset the billing page hides the purchase card and POST /billing/checkout answers 503.

Reading it

Settings → Billing (company admins) shows the balance, the current month's accrual, the plan, invoice history and the most recent ledger activity, paged on the server. The activity rows carry the reason for every debit — pay per query, spilled to pay per query, included, not billed — so a surprising invoice can be traced to the runs that produced it.