跳到主要内容

std/build/billing/rate-card

std/build/billing/rate-card

Type Aliases

BillingAccessTier

type BillingAccessTier = typeof BILLING_ACCESS_TIERS[number];

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:3

Variables

AI_SGD_PER_PROVIDER_USD

const AI_SGD_PER_PROVIDER_USD: 2.6 = 2.6;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:33

SGD charged per US dollar of provider spend.

AI is not priced from a token table of our own. The provider reports what a call cost and that figure is converted with this rate, so the meter tracks provider pricing directly and moves with it instead of needing a re-audit every time a model's price changes.

The rate is a loaded one, not a currency conversion. Spot USD/SGD is well under half of it; the rest is deliberate cover for everything between what a provider charges us and what reaches the bank — the fee on buying provider credit, FX spread on top of spot, card and payout fees on the tenant's invoice, and a margin over all of it. Every one of those moves on somebody else's schedule, so the cover is set generously rather than tracked.

It stays one number and not a chain of multipliers. A factored form lived here, evaluated to 1.55, and was called by nothing while the meter that reaches Stripe charged 2.60 — two answers to the same question, the uninvoiced one looking every bit as authoritative. A split that is not itself billed is documentation, and documentation belongs in this comment rather than in arithmetic that can drift away from the price.


BILLING_ACCESS_TIERS

const BILLING_ACCESS_TIERS: readonly ["standard", "builder"];

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:2


BILLING_RATE_CARD_VERSION

const BILLING_RATE_CARD_VERSION: "2026-08-18" = "2026-08-18";

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:1


COMPUTE_SGD_PER_SECOND

const COMPUTE_SGD_PER_SECOND: 0.0005 = 0.0005;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:10

Tenant-visible usage prices. Compute is worker-thread event-loop utilization (ELU) active time, billed in seconds. Memory has no separate usage meter or per-worker hard wall; its infrastructure cost is included in the compute price. Disc and files are GB-months converted to GB-hours over a 730-hour month.


DISC_SGD_PER_GB_MONTH

const DISC_SGD_PER_GB_MONTH: 3 = 3;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:11


EXTERNAL_CLOUD_RATE_CARD_USD

const EXTERNAL_CLOUD_RATE_CARD_USD: object;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:51

Type Declaration

neonComputePerCuHour
readonly neonComputePerCuHour: 0.106;

neonExtraBranchPerHour
readonly neonExtraBranchPerHour: 0.002;

neonRestorePerGbMonth
readonly neonRestorePerGbMonth: 0.2;

neonStoragePerGbMonth
readonly neonStoragePerGbMonth: 0.35;

r2ClassAPerMillion
readonly r2ClassAPerMillion: 4.5;

r2ClassBPerMillion
readonly r2ClassBPerMillion: 0.36;

r2StoragePerGbMonth
readonly r2StoragePerGbMonth: 0.015;

FILES_SGD_PER_GB_MONTH

const FILES_SGD_PER_GB_MONTH: 0.25 = 0.25;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:12


HOURS_PER_BILLING_MONTH

const HOURS_PER_BILLING_MONTH: 730 = 730;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:13


LOCAL_CLOUD_RATE_CARD

const LOCAL_CLOUD_RATE_CARD: object;

Defined in: apps/website/.api-docs-entry/std/build/billing/rate-card.d.ts:39

Local bare-metal cost allocation, kept for capacity planning. It is not a customer-facing meter split: the compute price includes RAM cost, while measured usage remains worker-thread ELU active time.

Type Declaration

allocation
readonly allocation: object;
allocation.cpu
readonly cpu: 0.4;
allocation.disk
readonly disk: 0.25;
allocation.ram
readonly ram: 0.35;

cpuCores
readonly cpuCores: 6;

diskGb
readonly diskGb: 894;

hoursPerMonth
readonly hoursPerMonth: 730;

ramGb
readonly ramGb: 32;

serverMonthlyCostSgd
readonly serverMonthlyCostSgd: 149.99;