Class: DatadogAPIClient::V2::AiGatewayModelReferencePrice

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb

Overview

Informational source pricing, not gateway billing configuration. Prices can differ by provider, mode, and input length.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



48
49
50
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 48

def additional_properties
  @additional_properties
end

#amount ⇒ Object

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



25
26
27
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 25

def amount
  @amount
end

#component ⇒ Object

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



28
29
30
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 28

def component
  @component
end

#context_max_tokens ⇒ Object

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



31
32
33
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 31

def context_max_tokens
  @context_max_tokens
end

#context_min_tokens ⇒ Object

Input length above which this price applies. Zero identifies the base tier.



34
35
36
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 34

def context_min_tokens
  @context_min_tokens
end

#currency ⇒ Object

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



37
38
39
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 37

def currency
  @currency
end

#mode ⇒ Object

Source mode name. Standard is the base mode; other values, such as fast, are source-defined.



40
41
42
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 40

def mode
  @mode
end

#service_tier ⇒ Object

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



43
44
45
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 43

def service_tier
  @service_tier
end

#unit ⇒ Object

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



46
47
48
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_reference_price.rb', line 46

def unit
  @unit
end