cuery.cost#

Pricing information extracted with chatgpt passing it a screenshot of the table here: https://platform.openai.com/docs/pricing.

Attributes#

Functions#

cost_per_token(model_name, kind)

Get the cost per 1 million tokens for a given model.

Module Contents#

cuery.cost.COST#
cuery.cost.cost_per_token(model_name, kind)#

Get the cost per 1 million tokens for a given model.

Parameters:
  • model_name (str)

  • kind (Literal['input', 'output', 'cached_input'])

Return type:

float