Interface PricingTierInput._FinalStage
- All Known Implementing Classes:
PricingTierInput.Builder
- Enclosing class:
PricingTierInput
public static interface PricingTierInput._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllConditions(List<PricingTierCondition> conditions) addConditions(PricingTierCondition conditions) additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()conditions(List<PricingTierCondition> conditions) Array of conditions that must ALL be met for this tier to match (AND logic).Prices (USD) by usage type for this tier.putAllPrices(Map<String, Double> prices)
-
Method Details
-
build
PricingTierInput build() -
additionalProperty
-
additionalProperties
-
conditions
Array of conditions that must ALL be met for this tier to match (AND logic).
The default tier must have an empty array (conditions=[]). Conditional tiers should define one or more conditions that specify when this tier's pricing applies.
Each condition specifies a regex pattern, operator, and threshold value for matching against usage details.
-
addConditions
-
addAllConditions
-
prices
Prices (USD) by usage type for this tier. At least one price must be defined.
Common usage types: "input", "output", "total", "request", "image" Prices are in USD per unit (e.g., per token).
Example: {"input": 0.000003, "output": 0.000015} represents $3 per million input tokens and $15 per million output tokens.
-
putAllPrices
-
prices
-