Class ModelInfo.Builder
- All Implemented Interfaces:
ModelInfo._FinalStage,ModelInfo.ContextWindowStage,ModelInfo.IdStage,ModelInfo.InputCreditsPer1KTokensStage,ModelInfo.NameStage,ModelInfo.OutputCreditsPer1KTokensStage,ModelInfo.ProviderStage,ModelInfo.RegionPricingStage
- Enclosing class:
ModelInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAvailableOn(List<String> availableOn) Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).addAvailableOn(String availableOn) Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) availableOn(List<String> availableOn) Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).build()contextWindow(int contextWindow) Maximum context window, in tokens.Stable model alias.inputCreditsPer1KTokens(double inputCreditsPer1KTokens) Base (non-US) credit rate per 1K input tokens; 1 credit = 1 cent.Human-readable display name for the model.outputCreditsPer1KTokens(double outputCreditsPer1KTokens) Base (non-US) credit rate per 1K output tokens; 1 credit = 1 cent.Name of the model vendor (for example, Anthropic or AWS), suitable for display in a model picker.regionPricing(@NotNull RegionPricing regionPricing)
-
Method Details
-
from
- Specified by:
fromin interfaceModelInfo.IdStage
-
id
Stable model alias. Pass this as the
modelfield on/v1/chatand other inference endpoints.Stable model alias. Pass this as the
modelfield on/v1/chatand other inference endpoints.- Specified by:
idin interfaceModelInfo.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
Human-readable display name for the model.
Human-readable display name for the model.
- Specified by:
namein interfaceModelInfo.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
provider
Name of the model vendor (for example, Anthropic or AWS), suitable for display in a model picker.
Name of the model vendor (for example, Anthropic or AWS), suitable for display in a model picker.
- Specified by:
providerin interfaceModelInfo.ProviderStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contextWindow
Maximum context window, in tokens.
Maximum context window, in tokens.
- Specified by:
contextWindowin interfaceModelInfo.ContextWindowStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputCreditsPer1KTokens
public ModelInfo.OutputCreditsPer1KTokensStage inputCreditsPer1KTokens(double inputCreditsPer1KTokens) Base (non-US) credit rate per 1K input tokens; 1 credit = 1 cent. Requests are served from a US region by default and billed
regionPricing.us(this value multiplied byregionPremiumFactor). SeeregionPricingfor both the US and base rates.Base (non-US) credit rate per 1K input tokens; 1 credit = 1 cent. Requests are served from a US region by default and billed
regionPricing.us(this value multiplied byregionPremiumFactor). SeeregionPricingfor both the US and base rates.- Specified by:
inputCreditsPer1KTokensin interfaceModelInfo.InputCreditsPer1KTokensStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
outputCreditsPer1KTokens
Base (non-US) credit rate per 1K output tokens; 1 credit = 1 cent. The default US-served rate is this value multiplied by
regionPremiumFactor; seeregionPricingfor both rates.Base (non-US) credit rate per 1K output tokens; 1 credit = 1 cent. The default US-served rate is this value multiplied by
regionPremiumFactor; seeregionPricingfor both rates.- Specified by:
outputCreditsPer1KTokensin interfaceModelInfo.OutputCreditsPer1KTokensStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
regionPricing
- Specified by:
regionPricingin interfaceModelInfo.RegionPricingStage
-
addAllAvailableOn
Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).
- Specified by:
addAllAvailableOnin interfaceModelInfo._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAvailableOn
Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).
- Specified by:
addAvailableOnin interfaceModelInfo._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
availableOn
Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).
- Specified by:
availableOnin interfaceModelInfo._FinalStage
-
build
- Specified by:
buildin interfaceModelInfo._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceModelInfo._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceModelInfo._FinalStage
-