Rulvar API reference / @rulvar/core / Pricing
Interface: Pricing
Defined in: packages/core/src/l0/spi/provider.ts:71
Per-model pricing in USD per million tokens. The registry's versioned price table wins over adapter- reported caps.pricing, which is a fallback only.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cacheReadUsdPerMTok? | number | - | packages/core/src/l0/spi/provider.ts:74 |
cacheWrite1hUsdPerMTok? | number | 1h write premium rate where the provider distinguishes. | packages/core/src/l0/spi/provider.ts:78 |
cacheWriteUsdPerMTok? | number | 5m write premium rate. | packages/core/src/l0/spi/provider.ts:76 |
inputUsdPerMTok | number | - | packages/core/src/l0/spi/provider.ts:72 |
outputUsdPerMTok | number | - | packages/core/src/l0/spi/provider.ts:73 |
ratesVerifiedAt? | string | ISO date (YYYY-MM-DD) of the last verification of this row against the provider's documented rates or its billing categories (RV814). A recorded verification event, never a guess: seed rows exist to bound ceilings conservatively, actual billing truth is established only by statement reconciliation over saved exports, and a confirmed divergence corrects the row in its own release with a changeset, never by a silent rewrite. Preflight stamps it on the spawn report and the invoice text names it with its age, so the consumer of a dollar figure can see how stale the rates behind it are; the settle pin carries it with the rest of the row. | packages/core/src/l0/spi/provider.ts:93 |
tiers? | PricingTier[] | Long-context tiers; a row without them is one linear price. | packages/core/src/l0/spi/provider.ts:80 |