Delete LLM cost override

Delete a per-namespace price override.

delete

Path Parameters

priceIdstringrequired

ULID (Universally Unique Lexicographically Sortable Identifier).

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

Example:01G65Z755AFWAKHE12NY0CQ9FH

Response

Deleted response.

delete/openmeter/llm-cost/overrides/{priceId}
 

List LLM cost prices

List global LLM cost prices.
Returns prices with overrides applied if any.

get

Query Parameters

filterobject

Filter options for listing LLM cost prices.

Show Child Parameters
sortstring

The asc suffix is optional as the default sort order is ascending.
The desc suffix is used to specify a descending order.
Multiple sort attributes may be provided via a comma separated list.
JSONPath notation may be used to specify a sub-attribute (eg: ‘foo.bar desc’).

Example:created_at desc

pageobject

Determines which page of the collection to retrieve.

Show Child Parameters

Response

application/json

Page paginated response.

PricePagePaginatedResponse

Page paginated response.

dataarray[object]required

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

Show Child Parameters
metaobjectrequired

returns the pagination information

Show Child Parameters
get/openmeter/llm-cost/prices
 
application/json

Get LLM cost price

Get a specific LLM cost price by ID.
Returns the price with overrides applied if any.

get

Path Parameters

priceIdstringrequired

ULID (Universally Unique Lexicographically Sortable Identifier).

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

Example:01G65Z755AFWAKHE12NY0CQ9FH

Response

application/json

The request has succeeded.

LLMCostPrice

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

get/openmeter/llm-cost/prices/{priceId}
 
application/json

OpenMeter Features

Features represent product capabilities backed by meters, with optional per-unit cost configuration.

Query feature cost

Query the cost of a feature.

post

Path Parameters

featureIdstringrequired

ULID (Universally Unique Lexicographically Sortable Identifier).

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

Example:01G65Z755AFWAKHE12NY0CQ9FH

Body

application/json

MeterQueryRequest

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

Response

application/json

The request has succeeded.

FeatureCostQueryResult

Result of a feature cost query.

fromstring(date-time)

Start of the queried period.

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

tostring(date-time)

End of the queried period.

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

dataarray[object]required

A row in the result of a feature cost query.

Show Child Parameters
post/openmeter/features/{featureId}/cost/query

Body

{ "from": "2023-01-01T00:00:00Z", "to": "2023-01-02T00:00:00Z", "granularity": "P1D", "time_zone": "UTC" }
 
application/json