Class AiGatewayModelAutomaticPricingRate

One published price. Prices can differ by operation, mode, service tier, and input length.

Hierarchy

  • AiGatewayModelAutomaticPricingRate

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
amount: string

Exact decimal amount per unit, zero or greater, represented as a string to preserve precision. Supports fixed decimal and exponent notation.

component: string

Token category priced, such as input, output, cache_read, or cache_write.

contextMaxTokens?: number

Largest input length covered by this price. Omitted when there is no upper bound.

contextMinTokens?: number

Input length above which this price applies. Omitted for the base tier.

currency: string

Currency of the price. The only supported value is USD.

mode: string

Source mode name. standard is the base mode. Other values, such as fast, are source-defined and selected by mode_triggers.

operation?: string

Operation the price applies to. Omitted when it applies to every operation.

serviceTier?: string

Provider service tier explicitly associated with this mode by the source. Omitted when unknown.

unit: string

Unit of the quoted amount. The only supported value is million_tokens.

Generated using TypeDoc