0.0.1OAS 3.0

Konnect Metering & Billing API.

API Base URL
  • Server 1:https://us.api.konghq.com/v3

    United-States Production region

  • Server 2:https://eu.api.konghq.com/v3

    Europe Production region

  • Server 3:https://au.api.konghq.com/v3

    Australia Production region

  • Server 4:https://me.api.konghq.com/v3

    Middle-East Production region

  • Server 5:https://in.api.konghq.com/v3

    India Production region

  • Server 6:https://sg.api.konghq.com/v3

    Singapore Production region

Security
systemAccountAccessToken (http)

The system account access token is meant for automations and integrations that are not directly associated with a human identity.
You can generate a system account Access Token by creating a system account and then obtaining a system account access token for that account.
The access token must be passed in the header of a request, for example:
curl -X GET 'https://global.api.konghq.com/v2/users/' --header 'Authorization: Bearer spat_i2Ej...'

personalAccessToken (http)

The personal access token is meant to be used as an alternative to basic-auth when accessing Konnect via APIs.
You can generate a Personal Access Token (PAT) from the personal access token page in the Konnect dashboard.
The PAT token must be passed in the header of a request, for example:
curl -X GET 'https://global.api.konghq.com/v2/users/' --header 'Authorization: Bearer kpat_xgfT...'

konnectAccessToken (http)

The Konnect access token is meant to be used by the Konnect dashboard and the decK CLI authenticate with.

Additional Information
Contact Kong

OpenMeter LLM Cost

LLM cost database providing normalized pricing data for language models across providers. Prices are synced from multiple external sources and auto-confirmed when they agree.

List LLM cost overrides

List per-namespace price overrides.

get

Query Parameters

filterobject

Filter options for listing LLM cost prices.

Show Child Parameters
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/overrides
 
application/json

Create LLM cost override

Create a per-namespace price override.

post

Body

application/json

LLMCostOverrideCreate

Input for creating a per-namespace price override.
Unique per provider, model and currency.
If an override already exists for the given provider, model and currency, it will be updated.
If an override does not exist, it will be created.

providerstringrequired

Provider/vendor of the model.

model_idstringrequired

Canonical model identifier.

model_namestring

Human-readable model name.

pricingobjectrequired

Token pricing data.

Show Child Parameters
currencystringrequired

Currency code.

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

>= 3 characters<= 3 characters

Example:USD

effective_fromstring(date-time)required

When this override becomes effective.

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

effective_tostring(date-time)

When this override expires.

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

Response

application/json

Price created response.

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

post/openmeter/llm-cost/overrides

Body

{ "provider": "provider", "model_id": "model_id", "pricing": { "input_per_token": "input_per_token", "output_per_token": "output_per_token" }, "currency": "USD", "effective_from": "2023-01-01T01:01:01.001Z" }
 
application/json

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}