Interface PricingTier._FinalStage
- All Known Implementing Classes:
PricingTier.Builder
- Enclosing class:
PricingTier
public static interface PricingTier._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
PricingTier 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 conditions array. Conditional tiers should have one or more conditions that define when this tier's pricing applies.
Multiple conditions enable complex matching scenarios (e.g., "high input tokens AND low output tokens").
-
addConditions
-
addAllConditions
-
prices
Prices (USD) by usage type for this tier.
Common usage types: "input", "output", "total", "request", "image" Prices are specified in USD per unit (e.g., per token, per request, per second).
Example: {"input": 0.000003, "output": 0.000015} means $3 per million input tokens and $15 per million output tokens.
-
putAllPrices
-
prices
-