Subscriptions, credits & access
A decision guide for Product and Business · 8 October 2026
Status: agreed model, not shipped
This describes the agreed product model, not functionality already shipped. Pro and Business figures are the initial baseline. Credit-pack prices and annual discounts are still undecided. Feature availability must be verified before publishing commercial claims.
Source
Yoni Braslaver, Slack DM, 2026-10-08 ("Brilliant subscriptions, credits & access"). Same document as the Billing Model Stakeholder Guide PDF posted in #brilliant-ai (ts 1791442407.786289). Reproduced here as written; see Sources.
The model at a glance
An organization chooses a subscription for its features, builder capacity, included users, and recurring credit allowance. Everyone in that organization shares one credit pool across its apps and workspaces.
Credits pay for AI usage, integration calls, and additional ordinary-user capacity. Organizations can purchase extra credits once or through a scheduled monthly pack. Buying credits never upgrades the feature tier.
The central promise is predictable, prepaid spending: no surprise AI overage invoice. When funds are insufficient, Brilliant does not start more unfunded work.
There is a time-limited Trial, but no permanent Free plan. A paid subscription is required to purchase additional credits or user capacity. Purchased credits do not expire, but become dormant when subscription access ends and become usable again after resubscription.
Subscription tiers
All prices below are before tax. Included users are ordinary, non-builder users; builders are not counted twice.
| Tier | Subscription price | Included credits | Builders | Included ordinary users |
|---|---|---|---|---|
| Trial | No charge; 14 days | 2,000 once, valid for 14 days | 1 | 3 |
| Pro | $49 per month | 4,000 per month | 3 | 10 |
| Business | $199 per month | 15,000 per month | 10 | 50 |
| Enterprise | Negotiated | Negotiated amount and schedule | Negotiated | Negotiated |
Allowances raised (#916, merged)
PR #916 (merged 2026-10-14 12:55 IDT) set the included credits in the table above. The 8 October guide had Trial 300, Pro 2,000 and Business 10,000. Prices, Enterprise, the 5-credit turn fee and pack sizes did not change, and existing grants keep what they were given. See Catalog allowances and keeping apps published (#916).
The Trial grant is issued once per eligible organization, not again for every joining person. No card is required to receive it; verification and abuse controls still apply. Trial users cannot purchase additional credits or user capacity without upgrading.
Monthly subscriptions launch first. Annual subscriptions can follow once their discounts are decided. Annual payment will still release included credits monthly, rather than making a full year's credits available on day one. Extra user capacity also remains a monthly credit charge. Enterprise can negotiate a different pool schedule.
Intended feature packaging
| Capability | Trial | Pro | Business | Enterprise |
|---|---|---|---|---|
| Basic app building and publishing | Included | Included | Included | Included |
| Credit-funded AI and integrations | Included | Included | Included | Included |
| Remove Brilliant branding | Not included | Not included | Included | Included |
| Custom domains | Not included | Not included | Included | Included |
| Password-protection configuration | Not included | Not included | Included | Included |
| Shared builder workspaces | Not included | Not included | Included | Included |
| Single sign-on (SSO) | Not included | Not included | Not included | Included |
| Advanced organization administration | Not included | Not included | Not included | Included |
These are the intended packages, not a claim that every capability exists today. Shared builder workspaces and advanced administration need precise feature definitions before enforcement or marketing.
Basic security, invitation/access controls, and owner/admin billing management remain available across active tiers. Enterprise terms may have individually agreed features and limits. Customers cannot enable premium features themselves by changing settings or purchasing credits.
What a credit means
There is one credit currency, but a credit is a consumption unit, not a promise of its selling price.
| Activity | Credit consumption |
|---|---|
| LLM/model usage | 1 credit per 1 cent of model cost |
| Each top-level billable AI turn or request | An additional 5 credits |
| Each integration call | An additional 1 credit |
| Each additional ordinary-user slot | 500 credits per full month |
| Automation-specific pricing | To be defined separately |
A turn is one top-level request, not every internal model step. Internal continuations and infrastructure retries do not add another five-credit turn fee. Work rejected before execution costs nothing. A started turn that later fails still consumes credits for the work performed and its turn fee.
The system accounts for fractional consumption accurately; small operations should not each be rounded up to a whole credit. The precise accounting precision is an implementation detail to settle before launch.
500 credits is not necessarily a $5 purchase. Likewise, a five-credit turn fee is not necessarily a five-cent customer charge. What customers pay depends on the purchased pack or subscription offer. Pack selling prices are still undecided.
Credits are not withdrawable cash. Eligible refunds are handled separately, subject to applicable legal rights.
Three sources of credits
| Credit source | When available | What happens to unused credits |
|---|---|---|
| Trial promotion | Once the eligible organization starts Trial | Expire after 14 days |
| Included subscription allowance | Released for a funded monthly allowance period | Expire at the next allowance renewal; no rollover |
| Purchased pack, one-time or monthly | After successful payment | Carry forward; no expiration initially |
Expiring included credits are consumed before longer-lived purchased credits. Renewing a subscription never wipes the purchased balance. Payment must succeed before a purchased grant or paid allowance is released; an attempted or failed payment is not enough.
Users, builders & purchase approvals
A builder can create or edit apps. An ordinary user has access to apps without builder permissions. Builder capacity is determined by the tier; it is not available as a credit-priced add-on initially.
Ordinary users are counted across the organization, not per app:
- One person granted access to ten apps counts once.
- Both company members and authenticated external app users can count.
- A builder is not also charged as an ordinary user.
- Anonymous visitors and unaccepted invitations do not count.
- The count is based on granted access, not monthly activity or login frequency.
Eligible people can join automatically when user capacity is available. Existing invitation, identity, and access rules still apply: available capacity is not permission for arbitrary people to join.
Beyond the available capacity, an owner or admin must approve the additional user. Approval does not itself start the charge. When the invitation is accepted, available credits and capacity are checked again before activation.
How this maps to today's app access
"Authenticated external app users" are the app-only customers who sign in to a published app (see Permissions & app data and Share & Invite / Projects). Under this model they can count toward the organization's ordinary-user capacity; anonymous visitors to fully public apps do not.
Additional user capacity
Each additional slot costs 500 credits per full subscription month, paid upfront. Mid-month activation pays only for the remaining portion of that month.
A slot is reusable capacity for its paid period. If its occupant leaves, there is no mid-period credit refund, but another person can use the slot without another charge. Owners/admins can stop the slot's future renewal.
Only owners/admins may buy credits, enable monthly packs, or authorize additional user capacity. Ordinary members cannot create these spending commitments. Automatic joins never grant builder access; an owner/admin must assign it within the tier's builder limit.
Builder seat assignment (#1020, open)
PR #1020 (open) adds the owner/admin control for this: change a member's seat between User and Builder on the Members page, refused once the plan's builder seats are used up. Details: Share & Invite — builder seat on Members.
Extra credit packs
Packs are additions to the chosen tier, not replacements for its included allowance. A Business customer selecting an additional monthly pack receives the 10,000-credit included allowance plus the purchased pack.
The candidate quantity ladder is 500, 1,000, 2,000, 5,000, 10,000, and 25,000 credits. This list is provisional and configurable; it is not limited to two choices. Prices, possible volume discounts, and one-time versus monthly price relationships remain to be decided.
- One-time pack: a single purchase for credits needed now.
- Scheduled monthly pack: an additional purchase every month after successful payment. Its unused credits carry forward.
- Automatic recharge: a purchase triggered by low balance. This is not in the initial launch.
Recurring pack size changes and cancellations apply to the next monthly purchase. For an immediate increase, the admin buys a one-time pack. Already-purchased credits are not retroactively adjusted.
When the base subscription actually ends, recurring pack purchases stop. Resubscription does not silently restart them; the admin opts back in.
Refunds are operator-reviewed, not an automatic credit-to-cash redemption feature. Reconciliation removes the corresponding unconsumed credits. Consumed credits are not automatically redeemable. Refunds, disputes, and chargebacks must not leave refunded credits spendable or silently charge the customer again. Applicable legal refund rights take precedence.
Monthly renewal & plan changes
At renewal, the previous included allowance expires. The new funded allowance and successfully paid monthly packs become available. Additional user slots marked for renewal then get first claim on the shared pool; the remainder is available for AI and integrations.
Admins should see both the total balance and the amount committed to user capacity. Pending or unpaid pack purchases must not be counted as available funds.
Upgrades: take effect after successful payment. Extra included credits are the prorated difference between the two allowances, not a second full bucket. Higher-tier features and limits then become available. Purchased credits remain untouched.
Downgrades and cancellations: take effect at the next subscription renewal, after the current paid term. The current period's credits and features are not clawed back. A downgrade shows reduced builder capacity, additional credit-funded user capacity that may be needed, and affected apps before confirmation. Additional spending still requires admin approval.
If access or credits run out
There are two distinct grace periods. They solve different problems and must not be presented as one rule.
| Situation | Immediate effect | Grace and outcome |
|---|---|---|
| Active paid organization exhausts its credits | Do not start unfunded AI or integration work | Existing apps stay published; purchase credits to continue billable work |
| Active organization cannot fund extra user-slot renewal | Warn admins and block additional over-cap joins | Seven days of explicitly free access grace; fund or reduce capacity, then suspend access through unpaid extra slots |
| Trial or paid subscription access ends | Stop building, new publishing, AI, and automation execution; stop recurring packs | Previously published apps have 14 days of hosting grace, then are unpublished |
| Downgrade removes an app-required feature | Preserve existing protection/configuration; show affected apps | Give affected apps 14 days to transition, then unpublish if unresolved |
The seven-day user grace creates no credit debt. It does not permit AI overdrafts. It affects unpaid additional capacity, not the entire organization or every app.
During the 14-day hosting grace, ordinary existing-app functionality remains available; paid AI/automation execution does not receive an extension. Existing authentication and privacy protections remain enforced. The precise operational handling of that grace must be verified before launch.
Operator switch to skip the unpublish (#920, merged)
Since PR #920 (merged 2026-10-14 14:20 IDT), the Flagship platform flag billing_keep_apps_published decides, per tenant and per environment, whether grace end keeps apps published. It replaced the admin Config key BILLING_KEEP_APPS_PUBLISHED that PR #916 had added earlier the same day. See Keeping apps published via Flagship (#920).
Unpublishing or suspension does not delete accounts, apps, data, or purchased credits. Admins can still access billing, recovery, and export. This billing model introduces no automatic data-deletion policy.
Recovery is deliberate
Resubscription restores permission to use the paid plan and spend purchased credits. An app already unpublished by billing stays unpublished until the admin chooses to publish it again. A newer draft is never published automatically. Apps still published within grace need not be republished; the expired-access unpublish action no longer applies once access is restored.
A downgrade must never make a password-protected app public automatically. SSO changes require a deliberate authentication migration, not a switch to weaker login.
Six illustrative scenarios
These examples explain the rules, not forecasts of customer behavior. Half-month calculations assume exactly half the actual allowance period remains; real calculations use the actual period.
Figures predate #916
The scenarios keep the 8 October allowances (Pro 2,000, Business 10,000). Since #916 the catalog grants Pro 4,000 and Business 15,000, so the arithmetic changes but the rules don't. For example, a half-month Pro to Business upgrade now adds half of 15,000 minus 4,000, which is 5,500 credits.
An AI request uses 27 credits
An AI turn incurs 20 cents of model cost and makes two integration calls:
- Model usage: 20 credits.
- One turn fee: 5 credits.
- Two integration calls: 2 credits.
- Total: 27 credits.
This does not tell us the retail price of that turn; it depends on the customer's purchased offer.
A Pro organization adds its eleventh user halfway through the month
The organization's ten included ordinary-user places are occupied. An admin approves another invitation. When the person accepts halfway through the month, activation costs 250 credits and creates one extra slot through the end of the period.
Renewing that slot next month costs 500 credits. If that person leaves before then, the organization can put a replacement in the paid slot without paying again. An invitation that is never accepted starts no charge.
User capacity gets funded before AI at renewal
A Pro organization reaches renewal with 300 unused included credits, 800 purchased credits, three extra user slots marked for renewal, and a scheduled 1,000-credit pack.
- The old 300 included credits expire.
- Successful subscription payment releases 2,000 new included credits.
- The 800 purchased credits carry forward.
- Successful pack payment adds another 1,000 purchased credits.
- The pool is now 3,800 credits.
- Three extra user slots consume 1,500 credits.
- 2,300 remain: 500 included credits and 1,800 purchased credits.
If the pack payment fails, its 1,000 credits are not added. If user renewal cannot be funded, the separate seven-day user grace applies.
Pro upgrades to Business halfway through the month
Assume no discounts, no tax, and exactly half the subscription month remaining. The monetary difference is $199 minus $49: $150 per full month, or approximately $75 for the remaining half.
After successful payment, the additional included allowance is half of 10,000 minus 2,000: 4,000 extra credits. Business features and limits become available. The upgrade does not grant another full 10,000 credits on top of the original allowance. The next funded monthly renewal grants 10,000.
Credits run out but the subscription is still active
An organization has enough credits for the current funded operation but not the next one. Brilliant lets funded work settle, saves the completed work, and stops before starting the unfunded operation.
There is no surprise overage invoice, and previously published apps are not unpublished merely because AI credits reached zero. An admin can buy a one-time pack and continue with a new request.
A subscription ends, then the customer returns
An admin cancels Pro. It remains available through its already-paid term. When that term ends, building, AI, and new publishing stop; recurring packs stop too. Existing published apps receive 14 days of hosting grace, then are unpublished.
Purchased credits are retained but dormant. If the organization resubscribes after unpublishing, those credits become usable again. The apps do not go live automatically: the admin checks them and chooses when to publish.
Pricing changes & experiments
The initial Pro and Business prices are not permanently hardcoded commercial commitments for future customers. New offers can change subscription price, included credits, seat allowances, or pack sizes/prices.
Pricing experiments are assigned consistently to the organization. Members of the same organization should not see contradictory offers. The offer shown before purchase must match what is charged and delivered.
Existing customers keep their purchased terms. Ending an experiment or introducing a new price does not silently move them to another offer. A change requires an explicit migration or a clearly quoted voluntary plan change. Previously purchased credits are not revalued.
Start experiments by changing one dimension at a time and compare paid conversion, retention, and gross margin, not just clicks. Keep the meaning of a credit stable.
Catalog allowances and keeping apps published (#916, merged)
PR #916 was opened by yoni-monday at the owner's request and merged 2026-10-14 12:55 IDT (merge 1ddef3f0). This is what the code does now.
New included allowances (packages/billing-catalog/src/catalog.ts):
| Tier | Before | Now (#916) |
|---|---|---|
| Trial (once, 14 days) | 300 | 2,000 |
| Pro, per month | 2,000 | 4,000 |
| Business, per month | 10,000 | 15,000 |
- Enterprise, the 5-credit turn fee, pack sizes and prices are unchanged.
CATALOG_VERSIONis not bumped. It names the Stripe Price lookup keys and the consumption policy, and neither changed; each grant records its own amount.- Nobody's existing balance changes. Existing grants keep what they were given, new Trials get 2,000, and each account's next monthly release uses the new amount.
- Tests read amounts from the catalog (
test/billing/catalog-amounts.ts). The live billing check keeps its own constant on purpose, so it stays independent of the control plane.
BILLING_KEEP_APPS_PUBLISHED (history: added by #916, removed by #920, merged 2026-10-14 14:20 IDT) was an admin › Config key, set per environment. It was off unless the value was exactly true, and unlike BILLING_UNLIMITED_CREDITS it was honoured in production. It decided what happens when hosting grace ends (14 days after a Trial or plan ended). The product rules below still hold, but the switch is now the Flagship flag billing_keep_apps_published, and a failed read now postpones only that tenant:
| Switch | At grace end |
|---|---|
| Off or unset | Unpublish the apps and suspend the account (today's behaviour) |
| On | Suspend only; apps stay published, and the audit row records that apps were kept |
| Read fails | No grace ends this run; one warning line, retried on the next run |
- Building and AI stay stopped and credits are still enforced. Only the unpublish is skipped.
- It applies to an ended Trial and an ended plan alike, because the account doesn't record which one started the grace. Feature transitions (a plan change that loses a feature) are untouched.
- A failed read can postpone an unpublish but never cause one (
@cc keep-apps-published-failed-read-never-unpublishes). - Gotcha: turning the switch off later does not unpublish tenants that were suspended while it was on, since they're no longer in grace. There is no admin "unpublish" action, only suspend an app or tenant. The repo documents this in tech design §6.6, the stakeholder guide and
gotchas/data.md. - It shares the 30-second in-isolate memo, the KV read and the strict
true/falsecodec withBILLING_UNLIMITED_CREDITS(billing/config-switch.ts). - Operators now: don't use the Config key, it no longer exists. Create the Flagship flag in each environment instead, see #920.
See also Admin Config: BILLING_KEEP_APPS_PUBLISHED (removed) and Keeping apps published via Flagship (#920).
Keeping apps published via Flagship (#920, merged)
PR #920 was opened by yoni-monday at the owner's request and merged 2026-10-14 14:20 IDT (merge b3f014bf, head 00ea6a0d). The owner wanted the keep-apps switch from #916 to be a feature flag rather than a config key, so it can be targeted per environment and per company and has the Flags changelog.
billing_keep_apps_published is a boolean platform flag in PLATFORM_FLAGS (packages/capabilities/src/flags.ts), code default off, owner brilliant-admin. The billing lifecycle job reads it per tenant, and only once that tenant's hosting-grace deadline has passed.
| Flag read at grace end | What happens to that tenant |
|---|---|
| On | Suspended, apps stay published (audit row appsKept: true) |
| Off, or not created in this environment's Flagship yet | Apps unpublished and tenant suspended (the old default) |
| Unreadable (timeout, error code, wrong type, thrown error) | Postponed: stays in grace with its deadline, one warn line billing.lifecycle_grace_end_postponed and one lifecycle failure, retried next run. Other tenants in the batch carry on |
- Context is the same one
require-flag.tsuses:tenantId,userId = tenantId,env = BRILLIANT_ENV. Rules likeenv = prodor a list oftenantIds work, and one tenant can be kept while another in the same run is unpublished. - Strict read. The job uses the new
getFlagStrict(next togetFlagin@brilliant/capabilities), becausegetFlagturns every error into the code default, which here would unpublish on a glitch.FLAG_NOT_FOUNDreads as the default and is flagged as not found. Other error codes, a thrown error, a non-boolean, or a timeout (3 s on this background path, versus 200 ms for page requests) are unreadable. With noFLAGSbinding it returns the default; a binding withoutgetBooleanDetailsis unreadable, so it fails closed. Contracts:@cc keep-apps-flag-unreadable-never-unpublishesand@cc keep-apps-must-be-a-strict-read. - Outage guard. After 3 unreadable answers in a row in one run (
KEEP_APPS_UNREADABLE_LIMIT,billing/lifecycle/keep-apps-guard.ts), the job stops asking Flagship and postpones the rest of that run's due tenants without a call, counted once instead of logged per tenant. A readable answer resets the streak. - Missing flag is visible. When grace-end reads come back "not found", the job logs
billing.keep_apps_flag_not_foundwith a count, so a flag that was never created or was mistyped shows up. - Unchanged from #916: it covers an ended Trial and an ended plan alike; feature transitions (a plan change that loses a feature) still unpublish; it works in production; turning it off later does not unpublish tenants already suspended while it was on. A kept app's pages stay reachable, but its own integration and AI calls are refused (
billing_suspended) while the tenant is suspended. - Removed: the Config key
BILLING_KEEP_APPS_PUBLISHED, its reader (billing/keep-apps-published.ts,packages/config/src/billing-keep-apps-published.ts) and their tests.BILLING_UNLIMITED_CREDITSis untouched. - Repo docs updated: tech design §6.6, stakeholder guide,
gotchas/data.md,docs/plans/admin.md.
What an operator does after deploy. Staging and prod each have their own Flagship app (separate Pulumi stacks and Cloudflare accounts), and side envs use staging's. So in each environment's admin › Flags, staging first and then prod:
- Create
billing_keep_apps_publishedfrom the catalog. - Add the rule you want, specific
tenantIds and/orenv(staging's app also serves side envs, soenv = stagingtells them apart), and enable it.
Until the flag exists in an environment, it reads as off there and grace ends unpublish apps.
Not yet tried against live Flagship
The binding's behaviour comes from @cloudflare/workers-types and Cloudflare's docs. It hadn't been exercised against the live Flagship app at merge time; that happens when the flag is created. The 3 s timeout path has no lifecycle test (the evaluator's timeout is unit-tested at 10 ms).
See also Admin Feature Flags: billing_keep_apps_published.
billing_keep_apps_published evaluation moves to PostHog (#982, merged)
#982 (merged 2026-10-16 05:47 IDT by yoni-monday, merge 94410daa) keeps the same getFlagStrict contract (@cc keep-apps-flag-unreadable-never-unpublishes: 3s, no cache, failure → ok: false, missing → off/notFound) but evaluates the flag via PostHog instead of Flagship. Evaluation lives in apps/control-plane/src/flags.ts. Targeting is PostHog group conditions on tenant ($group_key = tenant id, plus env), not the admin Flags page (gone). Strict read also fails on degraded errorsWhileComputingFlags (unless the flag says true) and on flags_quota_limited. The product rules in #920 are unchanged.
See PostHog — Step 6 and Admin Feature Flags.
Cancelled AI streams are still charged (#943, replaced by #1022)
Replaced by #1022
A live check showed #943 can't work on its own: on a real Worker a client disconnect tears down the control plane's invocation, so the drain's settle often never lands. #1022 replaces it and adds a ceiling charge. See Unsettled AI streams are charged a ceiling (#1022, open). The section below is kept for history.
PR #943 was opened 2026-10-15 09:43 IDT by Brilliant Fixer (monday-sphera-ai[bot], branch fix-941-stream-cancel-charge, head aa6cfb65) and fixes #941. It is not merged; this describes the fix as it was proposed.
The gap. When an app cancels a /v1/ai/stream response before the conductor's done event, the control plane's settleWhenStreamEnds settles the operation uncertain, which charges 0, and nothing settled it later. The conductor keeps draining the whole Gemini answer after the client leaves, but only reported that usage to /ingest/turn for analytics, with no operation id. So app code could ask the model for a marker, cancel on it, and never pay for input, answer, thinking or grounded searches.
The fix.
- The control plane (
routes/ai.ts,routes/ai-billing.ts) now sendsbilling: { operationId, eventId }with the stream request to the conductor's/internal/ai/stream. It names the admitted operation, with event id<operationKey>:drain. - When the conductor's drain finishes (
llm/app-ai.ts,settleDrainedStream), it settles that operation throughPOST /internal/billing/settlewith the usage it read. Pricing matchesaiUsage: thinking tokens are billed at the output rate, and each distinct grounded search query counts as one request (quantity). - The outcome is
succeeded, orfailedwith usage when upstream errored mid-stream (still charged). A drain that saw no usage doesn't settle. - A transport error or 5xx is retried once; if that also fails it logs
app_ai.stream_settle_failedand the operation staysuncertain(today's behaviour). There's no durable outbox here because the drain runs in the conductor worker, not a Durable Object. - No double charge. The control plane still settles on
done. The ledger charges an operation once (decideSettlereturns the prior charge for a settled operation, andmarkUncertainonly touches arunningone), so a stream read todoneis charged once whichever settle lands first.
Why /internal/billing/settle and not /ingest/turn: the ingest path prices model_usage without reasoning_tokens and has no grounded-search quantity, so it would undercharge thinking and search.
Still open after #943: /v1/ai/generate and /v1/ai/image settle inline after fetchConductor. Whether a client disconnect skips that settle is a separate lead from the security review that still needs checking.
Unsettled AI streams are charged a ceiling (#1022, open)
PR #1022 ("Billing: charge a /v1/ai/stream even when nothing settles it") was opened 2026-10-19 13:41 IDT by Brilliant Fixer (monday-sphera-ai[bot], branch fix-941-stream-ceiling, head e3cd9e86, 4 commits, +766/−76 in 14 files). It fixes #941 and replaces #943. It is not merged yet; this describes the fix as proposed.
The gap #943 couldn't close. On a real Worker, a client disconnect tears down the control plane's invocation (outcome canceled). settleWhenStreamEnds's cancel() and flush() never run, so the operation stays running, and the conductor's drain only gets the 30 s waitUntil grace after that. In the #943 live check, 1500- and 5000-word streams that were cancelled early were still running, with no consumption, after 2 minutes.
The fix has four parts.
- A ceiling stored at admission.
admitAiStream/streamCeiling(routes/ai-billing.ts) admit a stream's operation with its worst-case usage: every prompt byte counted as an input token, and the AI level'smaxOutputTokensas output. It's stored in the newcredit_operations.ceiling_usagecolumn (migration0055_operation_ceiling_usage). If no settle ever reaches the operation, the usage reconciler charges that ceiling about 30 minutes later, under event idceiling:<operationId>, instead of marking ituncertainat 0 (ledger/reconcile.ts, contractstream-charged-ceiling-when-unsettled). A settle that lands first always wins, because the ledger charges an operation once. - A bounded drain. When the reader leaves, the conductor's drain (
llm/app-ai.ts,app-ai-report.ts) keeps reading for at most 20 s (drainAfterCancel), then aborts the upstream and settles the usage it saw (contractcancelled-stream-charged-from-drain). So a normal "Stop" pays for what ran, not the ceiling. A cut-short answer with no output count yet is left to the ceiling. The settle now runs before the analytics calls. - One error policy. An
errorevent or a safety refusal settlesfailedwith no usage (0 credits), on both the control-plane path and the drain path, so the charge no longer depends on which settle lands first. - No more
uncertainon an unknown outcome. The control plane leaves an unfinished streamrunningfor the drain or the ceiling, because the reconciler skipsuncertainoperations and would never charge them.
Carried over from #943: the billing field on /internal/ai/stream, and settling through POST /internal/billing/settle (not /ingest/turn, which drops thinking and grounding). gotchas/cloudflare.md in the repo now names this pattern for Worker work that must outlive a client disconnect.
Live check (side env fix-941, real Workers and Gemini): a short low stream read to done was settled by the control plane with the ceiling stored (in 67, out 4096). A 5000-word medium stream cancelled after the first text event was settled by the drain 21 s later from real usage (in 19, out 3,304 including thinking), well under the medium ceiling of 8,192 output tokens. An unsettled operation with a ceiling, reconciled at +31 min, was charged from the ceiling under ceiling:<id>. Gemini reports running output counts mid-stream, which is why the drain can charge real usage rather than the ceiling.
Known limits.
- The ceiling charge lands up to 30 minutes later (the reconciler's cadence). Admission still only requires a positive balance, so a burst of torn-down streams can run before their ceilings are charged; they become debt, not free usage. Holding open ceilings against admission would be a separate change.
- The ceiling doesn't include grounded searches. A stream that reaches any settle is charged its real ones.
/v1/ai/generateand/v1/ai/imagehave the same disconnect gap, tracked in #1021 (likely the same ceiling fix).
Related: Troubleshooting: app_ai.stream_settle_failed.
Free trial: pay prompt and always-visible pay CTA (Daily 2026-11-02)
From the Brilliant Daily on 2026-11-02 (Slack #brilliant-ai meeting summary "Brilliant Daily, Nov 2, 2026" (ts 1793611281.823869)):
- A pay prompt during the free trial is already in production.
- Product direction: an always-visible pay CTA for the whole trial (Amichay), owned by Dan. Not built yet. Today's in-app trial banner shows only in the last 3 days: see Trial banner under #989.
- Usage snapshot: about 41K credits had been used so far, as reported on 2026-11-02.
Decision log: Product & growth decisions (2026-11-02).
Studio billing UI: Plans, Usage, trial banner (#989, merged)
PR #989 ("Studio billing UI: Plans, Usage, trial banner") was opened 2026-10-16 16:03 IDT and merged 2026-10-17 08:27 IDT by yoni-monday (branch billing-studio-ui-flow, merge 3b46067e, final head 57b5e1d2, 11 commits, 66 files).
In-app Stripe-connected billing UI from the new Figma: Settings › Plans, Settings › Usage, and a trial-ending banner. All three are behind the PostHog catalog flag billing_studio_ui (boolean, default off, owner brilliant-admin in PLATFORM_FLAGS; the fifth catalog flag after #982). Off hides every entry point; the billing API itself is unaffected. The PR also changes things that are not behind the flag: the marketing /pricing look, billing-admission attribution, and Checkout metadata (see "Shipped unflagged" below).
Lands with #1000 (merged 2026-10-17 09:28 IDT), which turns off invoice history in the Stripe portal. Staging stops listing invoices there once the merge's infra run applies; prod has no stripe config yet.
Plans
- Every number on the cards comes from the live catalog on the wire, never from Figma.
- Upgrade / downgrade: preview → confirm → Stripe Checkout or an in-place change.
- A first purchase (no Stripe subscription yet) skips preview and goes straight to Checkout.
- An Enterprise holder sees Enterprise as current and Contact sales elsewhere, never a Downgrade that could only fail with
managed_by_sales.
- Coming back from Checkout: Checkout and the portal now return to
/settings/plans(with?checkout=success&item=…) instead of Home.- A success waits (up to 30s) for the webhook to mark the plan paid, then shows confetti and "You are now on the <plan> plan." After 30s it says "payment received" instead. A cancel says nothing was charged.
- A credit-pack purchase celebrates the credits and never claims a plan change.
- Confetti is a hand-written canvas (no new dependency) and is skipped entirely under reduced motion.
- A return from Checkout (paid or cancelled) still reaches the page if the flag was turned off meanwhile; the portal return stays gated.
- Receipts, never invoices (finance's rule): Plans lists the tenant's paid charges from new
GET /tenants/:id/billing/receipts(owner/admin only; uses Stripe Charges Read only), each linking to Stripe's hosted receipt.refundis"full" | "partial" | null(fromamount_refunded) and partial refunds are marked; descriptions that mention an invoice read as "Payment". Stripe's hosted receipt page itself still offers "Download invoice"; that can't be removed through the API and is a finance decision. PricingCard(packages/studio-ui) is a presentational shell shared with marketing/pricing.- Nav: Plans and Usage are admin-only Settings sections. A combined "Members & billing" entry is deferred.
Usage
- Build / Runtime credit split; each app's owner (with photo; a departed owner keeps their id with name and photo null) and its
AppIcon. - The empty state is keyed off total credits used, so an unattributed charge (for example an extra seat) doesn't show "No usage in this cycle yet" next to real spend.
- A picked billing cycle stays selected while it loads.
Trial banner
- Shows only in the last 3 days of the trial, and only to owners and admins (members make no entitlements request). Upgrade opens Settings › Plans.
- A black bar per Figma, dismissible for the session (
sessionStorage). - A trial with no recorded end (
trialEndsAtmissing) shows no countdown anywhere: no banner, no Plans countdown, and the trial card shows Current.
Shipped unflagged
/pricingrestyle ships on deploy: no brand-wash frame, gradient badge or card shadow; the studio look instead. Design sign-off was still pending at merge. See Marketing site.- Build-charge attribution (behaviour change). Builder chat admits name only the workspace. A workspace with exactly one app now has its build turns attributed to that app (they were always unattributed before, so Usage by app was empty for builds). Two or more apps sharing a workspace stay unattributed. The sole-app answer is cached per isolate for 60s (empty workspaces aren't cached), so there's no extra database read per model call. It never changes who pays.
- Per-app spend cap leaves building out, so enforcement is unchanged: building was never refused by the cap, and now it never counts toward it either.
- PostHog revenue link: new Stripe customers and every Checkout subscription carry metadata
posthog_person_distinct_id(our user id, the same distinct id the studio identifies people by). See PostHog.
Rollout
- Staging: the flag exists in PostHog project
666164, targeted by the tenant's$group_key(side-env tenant ids exist only in their own database, so that's safe). - Prod: still to do before enabling — create
billing_studio_uiin prod project664776at 0%. - Verified on the PR:
bun scripts/e2e-smoke.ts --env billing-ui8/8 on side envbilling-ui(the smoke turn's 6 build operations were recorded against the smoke app, confirming the attribution change); full suites green (control plane 2421, web 2752, studio-ui); all 59 checks green on the final head.
Deliberately deferred
- A deleted app's "Open" link in the Usage table can 404 (needs an exists flag on the row).
- Enterprise card bullet order can differ cosmetically from marketing Enterprise copy.
- Merging Plans/Usage into a single "Members & billing" nav entry. The 2026-10-18 direction is a single Billing & usage page instead; see Billing & usage: one page.
See also Marketing site — shared PricingCard, Admin Feature Flags — billing_studio_ui, Control plane — Settings Plans/Usage.
Billing & usage: one page (design direction, 2026-10-18)
Source
Brilliant Daily, 2026-10-18 (Amichay, Dan): Slack #brilliant-ai summary, ts 1792311428.418849. Design direction, not shipped. See Product & growth decisions.
The #989 studio UI shipped Settings › Plans and Settings › Usage as separate admin-only sections, with a combined "Members & billing" entry deferred. The 2026-10-18 daily set the target design:
- Ideal: one "Billing & usage" page that merges Billing, Usage and Plans.
- Top of the page: users, builders and credits used, with buy more (Stripe Checkout).
- Below: the usage breakdown, with stats, graphs and the prompts list.
- Fallback: keep Billing, Usage and Plans as separate pages, but have each cross-reference the others.
- Trial-state versions of these pages are required. In the trial state the organization has unlimited members and limited credits (the one-time Trial grant above).
- Settings pages are secondary: these designs should be closed out so focus can move to the chat, the builder and the build sequence (Product focus).
Stripe portal: payment methods only; PostHog webhook (#1000, merged)
PR #1000 ("Stripe portal: payment methods only; optional PostHog webhook endpoint") was opened 2026-10-16 22:57 IDT and merged 2026-10-17 09:28 IDT by yoni-monday (branch billing-portal-posthog-infra, merge 6518e3c0, final head b0acea57, 3 commits, 9 files). It is the infrastructure half of #989 (merged 08:27 the same morning), split out at review so the flagged studio UI could merge on its own.
Decision: customers see receipts, never invoices. Finance wants customers shown receipts only. Stripe's Customer Portal has no receipts-only mode, so the portal's invoice history is turned off (STRIPE_PORTAL_FEATURES.invoiceHistory: false in infra/pulumi/src/stripe.ts). The studio lists receipts itself in Settings › Plans (#989). The openPortal doc comment in apps/control-plane/src/billing/stripe/checkout.ts and the portal row in docs/plans/billing-contracts.md say the same.
The portal is now for payment methods only. Plan and pack changes, customer details, and cancellation stay off in the portal, as before: they happen in Brilliant, where their credit and feature effects are shown first.
One known exception to "never invoices", still to confirm with finance: a payment that needs the customer (3-D Secure or a failed charge) sends them to Stripe's hosted invoice page through payment_required. Stripe's own receipt page also has a "Download invoice" button.
PostHog Stripe webhook (staging). A second Stripe webhook endpoint feeds PostHog's Stripe source (its data warehouse and revenue analytics). It is created only when a stack sets brilliant-infra:stripe.posthogWebhookUrl. The merged PR sets it in Pulumi.staging.yaml (staging project 666164, whose Stripe source is connected by OAuth, and Stripe doesn't let an OAuth app create endpoints itself). Prod sets nothing. The endpoint is sent only the 36 customer, charge, invoice, subscription, product and price events PostHog's revenue tables read, never *. Setup details are in Hosting & Pulumi. Since #1009 (merged 2026-10-18), staging no longer sets it: the staging endpoint is deleted and revenue analytics will see prod's live Stripe account only; see PostHog: revenue analytics, prod only.
Open product question before prod's source is connected: the narrowed list has no payment-method, payout, dispute or tax-id events, but its payloads still carry customer email, name and billing address; a card summary (brand, last4, expiry, fingerprint) and billing details on charges; and invoices' hosted page and PDF links, which work for anyone who has them. Whoever owns PostHog's data-processing terms should confirm this is covered.
What merge does: the staging infra run makes one in-place update to the staging sandbox portal, which stops showing invoice history (the in-app receipts list from #989 is behind billing_studio_ui), and creates PostHog's webhook endpoint in the Stripe sandbox. Until someone pastes the endpoint's signing secret into the PostHog source, PostHog rejects deliveries as unsigned: nothing breaks and nothing lands. Prod has no stripe config, so nothing changes there.
Stripe on prod (#1023, merged)
PR #1023 (merged 2026-10-19 13:47 IDT by yoni-monday, merge e8d6d5dc) turns Stripe on for prod by declaring the live Stripe account's catalog Products and Prices, the webhook endpoint at https://app.brilliant.ai/stripe/webhook, and the Customer Portal (payment methods only, no invoice history) in Pulumi.prod.yaml. It is step 4 of the prod rollout plan (docs/plans/billing-contracts.md §8a). The live account and both keys are already in place.
The merge changed nothing in prod by itself. Prod changes only after a reviewed prod infra run, then a secrets-worker run and a prod deploy. Until all three happen, every prod billing read and command keeps answering billing_not_configured. Revenue analytics in PostHog (§8a step 8) and turning on billing_studio_ui in prod are separate, later steps. Infra details and the stop rule are in Hosting & Pulumi: Stripe on prod.
LLM cache cost in PostHog follows the catalogue (#1001, merged)
#1001 (merged 2026-10-17 09:13 IDT by yoni-monday, merge 74ecb3d0) prices cache-read and cache-write tokens on each PostHog $ai_generation from the model catalogue (MODEL_PRICING), the same rates billing charges and the activity page shows. Catalogue rates were not edited. When PostHog's own $ai_total_cost_usd disagrees, the catalogue is what we bill.
Known gaps between the catalogue and providers' current lists, tracked in #1002, so they change with billing:
- Kimi K2.7 Code is priced at $0 for every token class (Cloudflare's wholesale list on 15 Oct 2026 is $0.950/M input, $0.190/M cached input, $4/M output).
- Claude Sonnet 5 is still the retired card ($3 input, $15 output, $0.30 cache read, $3.75 5-minute write); Anthropic's current list is $2 / $10 / $0.20 / $2.50, with a $4 1-hour write.
- Anthropic 1-hour cache writes are charged at the 5-minute rate, since usage has one cache-write count and the TTL isn't recorded.
- Muse Spark 1.3's cache write ($1.25/M, the input rate) isn't published by Cloudflare or Meta.
- Gemini 3.8 Flash's context-cache storage fee ($0.50 per million tokens per hour) isn't in usage.
Details: PostHog — cache cost and turn source.
Decisions still needed before launch
The overall model is agreed. These items are not yet final:
- Pack prices, final quantities, volume discounts, and any one-time/monthly price difference.
- Annual subscription prices and discounts.
- Detailed definitions and verified availability of shared builder workspaces and advanced organization administration.
- Automation pricing and treatment of other paid services outside the defined LLM/integration rules.
- Operational choices when capacity drops: which users/builders retain access and how admins select them; treatment of existing extra slots on a tier change.
- Detailed refund/dispute handling, grace-period authentication recovery, and financial reconciliation procedures.
- Tax treatment, required registrations, payment fees, and billing-platform costs. Enabling a tax setting alone does not establish registrations.
Missing product capabilities are separate work; this model must not be marketed as a promise that they have already shipped.
In one sentence: the subscription buys access and an included allowance; credits fund consumption and extra users; prepaid controls prevent surprise spending, while explicit grace periods make interruption and recovery predictable.
Related
- Permissions & app data — app-only self-registration for signed-in public links
- Share & Invite / Projects — invitations and access grants
- ADR index — repo ADR
payments-credits.md(credits / metering direction) - Hosting & Pulumi: AI Gateway Unified Billing — how Brilliant itself pays for inference (Cloudflare prepaid credits, #618 / #610)
- Admin Config: BILLING_KEEP_APPS_PUBLISHED (#916, removed by #920): the old config key, kept for history
- Admin Feature Flags: billing_keep_apps_published (#920, merged): the Flagship flag and
getFlagStrict - PostHog flags / keep-apps via PostHog (#982, merged): evaluation via PostHog; same
getFlagStrictcontract - Side environments — unlimited credits (#907) — side envs start with
BILLING_UNLIMITED_CREDITS=true; flip off to reproduce refusals at zero - Unsettled AI streams are charged a ceiling (#1022, open): worst-case usage stored at admission and charged by the reconciler when nothing settles; 20 s bounded drain; replaces #943
- Troubleshooting:
app_ai.stream_settle_failed(#1022, open): a cancelled stream the drain could not charge - Studio billing UI (#989, merged): Settings › Plans / Usage, receipts, and trial banner behind
billing_studio_ui;/pricingrestyle and single-app build attribution ship unflagged - Billing & usage: one page (2026-10-18): target design merging Billing, Usage and Plans, with trial-state versions
- Stripe on prod (#1023, merged): live catalog, webhook and portal declared in
Pulumi.prod.yaml; prod answersbilling_not_configureduntil the prod apply, secrets Worker run and prod deploy - Product & growth decisions: dated product, design and go-to-market decisions
- Stripe portal payment methods only; PostHog webhook (#1000, merged): receipts in Brilliant, never invoices; PostHog Stripe source endpoint (staging, removed by #1009; prod only)