PricingModel

interface PricingModel

Represents a pricing model for an LLM. The models are usually per token pricing, differentiating between input and output tokens, or all you can eat, where there's an hourly rate for the model running whether or not it is in use. See OpenAI pricing

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun costOf(usage: <Error class: unknown class>): Double
open fun costOf(inputTokens: Int, outputTokens: Int): Double
Link copied to clipboard
abstract fun usdPerInputToken(): Double
Link copied to clipboard
abstract fun usdPerOutputToken(): Double