Class ModelInfo

java.lang.Object
ai.vectros.types.ModelInfo

public final class ModelInfo extends Object
  • Method Details

    • getId

      public String getId()
      Returns:
      Stable model alias. Pass this as the model field on /v1/chat and other inference endpoints.
    • getName

      public String getName()
      Returns:
      Human-readable display name for the model.
    • getProvider

      public String getProvider()
      Returns:
      Name of the model vendor (for example, Anthropic or AWS), suitable for display in a model picker.
    • getContextWindow

      public int getContextWindow()
      Returns:
      Maximum context window, in tokens.
    • getAvailableOn

      public List<String> getAvailableOn()
      Returns:
      Plan tiers on which this model is available (a subset of: free, starter, pro, scale, enterprise).
    • getInputCreditsPer1KTokens

      public double getInputCreditsPer1KTokens()
      Returns:
      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 by regionPremiumFactor). See regionPricing for both the US and base rates.
    • getOutputCreditsPer1KTokens

      public double getOutputCreditsPer1KTokens()
      Returns:
      Base (non-US) credit rate per 1K output tokens; 1 credit = 1 cent. The default US-served rate is this value multiplied by regionPremiumFactor; see regionPricing for both rates.
    • getRegionPricing

      public RegionPricing getRegionPricing()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ModelInfo.IdStage builder()