Detailed pricing information for a model, in USD per unit; None where the model's metadata gives no price.
Build one with ModelPricing.apply and change it with the with* setters, each of which takes the value or an Option; the constructor and copy are private, so a new field never breaks callers. The constructor keeps its defaults because the JSON codec fills a missing key from them.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Estimate the cost of a completion given token counts.
Estimate the cost of a completion given token counts.
Value parameters
- inputTokens
-
Number of input tokens
- outputTokens
-
Number of output tokens
Attributes
- Returns
-
Estimated cost in dollars
Sets the cacheCreationInputTokenCost price.
Sets the cacheCreationInputTokenCost price.
Attributes
Sets, or with None clears, the cacheCreationInputTokenCost price.
Sets, or with None clears, the cacheCreationInputTokenCost price.
Attributes
Sets the cacheReadInputTokenCost price.
Sets the cacheReadInputTokenCost price.
Attributes
Sets, or with None clears, the cacheReadInputTokenCost price.
Sets, or with None clears, the cacheReadInputTokenCost price.
Attributes
Sets the inputCostPerAudioToken price.
Sets the inputCostPerAudioToken price.
Attributes
Sets, or with None clears, the inputCostPerAudioToken price.
Sets, or with None clears, the inputCostPerAudioToken price.
Attributes
Sets the inputCostPerImage price.
Sets the inputCostPerImage price.
Attributes
Sets, or with None clears, the inputCostPerImage price.
Sets, or with None clears, the inputCostPerImage price.
Attributes
Sets the inputCostPerPixel price.
Sets the inputCostPerPixel price.
Attributes
Sets, or with None clears, the inputCostPerPixel price.
Sets, or with None clears, the inputCostPerPixel price.
Attributes
Sets the inputCostPerToken price.
Sets the inputCostPerToken price.
Attributes
Sets, or with None clears, the inputCostPerToken price.
Sets, or with None clears, the inputCostPerToken price.
Attributes
Sets the inputCostPerTokenBatches price.
Sets the inputCostPerTokenBatches price.
Attributes
Sets, or with None clears, the inputCostPerTokenBatches price.
Sets, or with None clears, the inputCostPerTokenBatches price.
Attributes
Sets the inputCostPerTokenPriority price.
Sets the inputCostPerTokenPriority price.
Attributes
Sets, or with None clears, the inputCostPerTokenPriority price.
Sets, or with None clears, the inputCostPerTokenPriority price.
Attributes
Sets the outputCostPerAudioToken price.
Sets the outputCostPerAudioToken price.
Attributes
Sets, or with None clears, the outputCostPerAudioToken price.
Sets, or with None clears, the outputCostPerAudioToken price.
Attributes
Sets the outputCostPerImage price.
Sets the outputCostPerImage price.
Attributes
Sets, or with None clears, the outputCostPerImage price.
Sets, or with None clears, the outputCostPerImage price.
Attributes
Sets the outputCostPerPixel price.
Sets the outputCostPerPixel price.
Attributes
Sets, or with None clears, the outputCostPerPixel price.
Sets, or with None clears, the outputCostPerPixel price.
Attributes
Sets the outputCostPerReasoningToken price.
Sets the outputCostPerReasoningToken price.
Attributes
Sets, or with None clears, the outputCostPerReasoningToken price.
Sets, or with None clears, the outputCostPerReasoningToken price.
Attributes
Sets the outputCostPerToken price.
Sets the outputCostPerToken price.
Attributes
Sets, or with None clears, the outputCostPerToken price.
Sets, or with None clears, the outputCostPerToken price.
Attributes
Sets the outputCostPerTokenBatches price.
Sets the outputCostPerTokenBatches price.
Attributes
Sets, or with None clears, the outputCostPerTokenBatches price.
Sets, or with None clears, the outputCostPerTokenBatches price.
Attributes
Sets the outputCostPerTokenPriority price.
Sets the outputCostPerTokenPriority price.
Attributes
Sets, or with None clears, the outputCostPerTokenPriority price.
Sets, or with None clears, the outputCostPerTokenPriority price.
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product