nemo-relay-node/model_pricing
nemo-relay-node/model_pricing
Generated from crates/node/model_pricing.d.ts.
Import from nemo-relay-node/model_pricing.
Declarations exported by nemo-relay-node/model_pricing.
Interfaces
TokenPricingRates
Token rates expressed per one million tokens.
PromptCachePricing
Prompt-cache accounting settings for a catalog entry.
TokenRateTier
One prompt-token threshold tier.
PromptTokenThresholdRateSchedule
Threshold-based token rate schedule.
ModelPricing
One model pricing catalog entry.
PricingCatalog
Inline model pricing catalog payload.
InlineSource
Inline model pricing source config.
FileSource
File-backed model pricing source config.
PricingConfig
Canonical model pricing plugin config.
Functions
defaultConfig
Create a default model pricing component config.
tokenRates
Create per-token model pricing rates with defaults applied.
promptCache
Create prompt-cache accounting settings with defaults applied.
tokenRateTier
Create one prompt-token threshold rate tier.
promptTokenThresholdRateSchedule
Create a prompt-token threshold rate schedule.
catalogEntry
Create one model pricing catalog entry with defaults applied.
inlineCatalog
Create an inline model pricing catalog payload.
inlineSource
Create an inline model pricing source.
fileSource
Create a file-backed model pricing source.
pricingConfig
Create a model pricing config from ordered sources.
ComponentSpec
Wrap model pricing config as a top-level plugin component.
validateConfig
Validate a model pricing config document without activating it.
Type Aliases
PricingSource
Pricing source config.
Constants
PRICING_PLUGIN_KIND
Plugin kind used by the model pricing component.