v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03101355448.4 KB
OpenMeter LLM Cost

Create LLM cost override

Create a per-namespace price override.

post/openmeter/llm-cost/overrides

Request body

providerstring required

Provider/vendor of the model.

model_idstring required

Canonical model identifier.

model_namestring

Human-readable model name.

currencystring required

Three-letter ISO4217 currency code. Custom three-letter currency codes are also supported for convenience.

effective_fromstring date-time required

RFC3339 formatted date-time string in UTC.

effective_tostring date-time

RFC3339 formatted date-time string in UTC.

Example request

{
  "currency": "USD",
  "effective_from": "2023-01-01T01:01:01.001Z",
  "effective_to": "2023-01-01T01:01:01.001Z"
}

Response

Price created response.

idstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

currencystring required

Three-letter ISO4217 currency code. Custom three-letter currency codes are also supported for convenience.

source'manual' | 'system' required

Identifies where an LLM cost price came from.

effective_fromstring date-time required

RFC3339 formatted date-time string in UTC.

effective_tostring date-time

RFC3339 formatted date-time string in UTC.

created_atstring date-time required

RFC3339 formatted date-time string in UTC.

updated_atstring date-time required

RFC3339 formatted date-time string in UTC.

Example response

{
  "id": "01G65Z755AFWAKHE12NY0CQ9FH",
  "currency": "USD",
  "effective_from": "2023-01-01T01:01:01.001Z",
  "effective_to": "2023-01-01T01:01:01.001Z",
  "created_at": "2023-01-01T01:01:01.001Z",
  "updated_at": "2023-01-01T01:01:01.001Z"
}