Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / Pricing

Interface: Pricing

Defined in: packages/core/dist/index.d.ts

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

PropertyTypeDescriptionDefined in
cacheReadUsdPerMTok?number-packages/core/dist/index.d.ts
cacheWrite1hUsdPerMTok?number1h write premium rate where the provider distinguishes.packages/core/dist/index.d.ts
cacheWriteUsdPerMTok?number5m write premium rate.packages/core/dist/index.d.ts
inputUsdPerMToknumber-packages/core/dist/index.d.ts
outputUsdPerMToknumber-packages/core/dist/index.d.ts
ratesVerifiedAt?stringISO 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/dist/index.d.ts
tiers?PricingTier[]Long-context tiers; a row without them is one linear price.packages/core/dist/index.d.ts