Class LlmPricing.PricingEntry

java.lang.Object
org.mockserver.llm.cost.LlmPricing.PricingEntry
Enclosing class:
LlmPricing

public static final class LlmPricing.PricingEntry extends Object
Input/output list price in USD per million tokens.
  • Constructor Details

    • PricingEntry

      public PricingEntry(double inputPerMillion, double outputPerMillion)
    • PricingEntry

      public PricingEntry(double inputPerMillion, double outputPerMillion, boolean approximate)
  • Method Details

    • getInputPerMillion

      public double getInputPerMillion()
    • getOutputPerMillion

      public double getOutputPerMillion()
    • isApproximate

      public boolean isApproximate()
      True when these rates are an admitted placeholder / approximation (e.g. gpt-5* mapped to the nearest known tier) rather than a verified provider list price. Any cost derived from an approximate rate must be presented as an estimate, not fact.