LLMCostPrice

object

An LLM cost price record, representing the cost per token
for a specific model from a specific provider.

idstringrequiredread-only

Unique identifier.

Match pattern:^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Example:01G65Z755AFWAKHE12NY0CQ9FH

providerobjectrequiredread-only

Provider of the model.

Show Child Parameters
modelobjectrequiredread-only

The model.

Show Child Parameters
pricingobjectrequiredread-only

Token pricing data.

Show Child Parameters
currencystringrequiredread-only

Currency code (currently always “USD”).

Match pattern:^[A-Z]{3}$

>= 3 characters<= 3 characters

Example:USD

sourcestringrequiredread-only

Where this price came from.

Allowed values:manualsystem

effective_fromstring(date-time)requiredread-only

When this price becomes effective.

Example:2023-01-01T01:01:01.001Z

effective_tostring(date-time)read-only

When this price expires (null = current).

Example:2023-01-01T01:01:01.001Z

created_atstring(date-time)read-only

Creation timestamp.

Example:2023-01-01T01:01:01.001Z

updated_atstring(date-time)read-only

Last update timestamp.

Example:2023-01-01T01:01:01.001Z

Example

ListCostBasesParamsFilter

object

Filter options for listing cost bases.

fiat_codestring

Filter cost bases by fiat currency code.

Match pattern:^[A-Z]{3}$

>= 3 characters<= 3 characters

Example:USD

Example

ListCurrenciesParamsFilter

object

Filter options for listing currencies.

typestring

Filter currencies by type.

Allowed values:fiatcustom

Example

ListLLMCostPricesParamsFilter

object

Filter options for listing LLM cost prices.

providerobject

Filter by provider. e.g. ?filter[provider][eq]=openai

Show Child Parameters
model_idobject

Filter by model ID. e.g. ?filter[model_id][eq]=gpt-4

Show Child Parameters
model_nameobject

Filter by model name. e.g. ?filter[model_name][contains]=gpt

Show Child Parameters
currencyobject

Filter by currency code. e.g. ?filter[currency][eq]=USD

Show Child Parameters
Example

MeterQueryRequest

object

A meter query request.

fromstring(date-time)

The start of the period the usage is queried from.

Example:2023-01-01T01:01:01.001Z

tostring(date-time)

The end of the period the usage is queried to.

Example:2023-01-01T01:01:01.001Z

granularitystring

The size of the time buckets to group the usage into.
If not specified, the usage is aggregated over the entire period.

Allowed values:PT1MPT1HP1DP1M

time_zonestring

The value is the name of the time zone as defined in the IANA Time Zone Database (http://www.iana.org/time-zones).
The time zone is used to determine the start and end of the time buckets.
If not specified, the UTC timezone will be used.

Default:UTC

group_by_dimensionsarray[string]

The dimensions to group the results by.

<= 100 items

Example:model, type

filtersobject

Filters to apply to the query.

Show Child Parameters
Example