class RubyLLM::Model::PricingTier

A PricingTier holds the prices a model charges within one billing tier, such as standard, batch, or long_context. Each price is in USD per one million tokens. Prices missing from the registry read as nil. A zero price means the usage is free.

Instances come from PricingCategory#standard, #batch, and #long_context:

model = RubyLLM.models.find "claude-sonnet-5"
tier  = model.pricing.text_tokens.standard
tier.input_per_million  # => 3
tier.output_per_million # => 15