OpenMeter LLM Cost

Get LLM cost price

Changed on

Pre-release Endpoint This endpoint is currently in beta and is subject to change.

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

get/v3/openmeter/llm-cost/prices/{priceId}

Request

  • Base URL: https://global.api.konghq.com
  • URL: https://global.api.konghq.com/v3/openmeter/llm-cost/prices/{priceId}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer

Path parameters

priceIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Response

The request has succeeded.

idstring required

Unique identifier.

currencystring required

Currency code (currently always "USD").

source'manual' | 'system' required

Where this price came from.

effective_fromstring date-time required

When this price becomes effective.

effective_tostring date-time

When this price expires. Omitted when the price is currently effective.

created_atstring date-time required

Creation timestamp.

updated_atstring date-time required

Last update timestamp.

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"
}

Changes

    • breaking

      added to the / response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the ////// response property for the response status

    • warning

      added the new unique enum value to the ////// response property for the response status

    • info

      endpoint deprecated