---
title: "Create LLM cost override"
method: POST
path: "/v3/openmeter/llm-cost/overrides"
tags: ["OpenMeter LLM Cost"]
deprecated: true
---

# Create LLM cost override

`POST /v3/openmeter/llm-cost/overrides`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/openmeter/llm-cost/overrides`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

> **Deprecated.**

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

Create a per-namespace price override.

## Request body

- 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.
  - `provider` string, required: Provider/vendor of the model.
  - `model_id` string, required: Canonical model identifier.
  - `model_name` string: Human-readable model name.
  - `pricing` object, required: Token pricing data.
    - `input_per_token` string, required: Input price per token (USD).
    - `output_per_token` string, required: Output price per token (USD).
    - `cache_read_per_token` string: Cache read price per token (USD).
    - `cache_write_per_token` string: Cache write price per token (USD).
    - `reasoning_per_token` string: Reasoning output price per token (USD).
  - `currency` string, required: Currency code.
  - `effective_from` string, date-time, required: When this override becomes effective.
  - `effective_to` string, date-time: When this override expires.

## Response `201`

Price created response.

- LLMCostPrice: An LLM cost price record, representing the cost per token for a specific model from a specific provider.
  - `id` string, required: Unique identifier.
  - `provider` object, required: Provider of the model.
    - `id` string, required: Identifier of the provider, e.g., "openai", "anthropic".
    - `name` string, required: Name of the provider, e.g., "OpenAI", "Anthropic".
  - `model` object, required: The model.
    - `id` string, required: Identifier of the model, e.g., "gpt-4", "claude-3-5-sonnet".
    - `name` string, required: Name of the model, e.g., "GPT-4", "Claude 3.5 Sonnet".
  - `pricing` object, required: Token pricing data.
    - `input_per_token` string, required: Input price per token (USD).
    - `output_per_token` string, required: Output price per token (USD).
    - `cache_read_per_token` string: Cache read price per token (USD).
    - `cache_write_per_token` string: Cache write price per token (USD).
    - `reasoning_per_token` string: Reasoning output price per token (USD).
  - `currency` string, required: Currency code (currently always "USD").
  - `source` 'manual' | 'system', required: Where this price came from.
  - `effective_from` string, date-time, required: When this price becomes effective.
  - `effective_to` string, date-time: When this price expires. Omitted when the price is currently effective.
  - `created_at` string, date-time, required: Creation timestamp.
  - `updated_at` string, date-time, required: Last update timestamp.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2026-10-07** `59663dd13a10`: 1 info
  - endpoint deprecated
- **2026-09-25** `68d43091b84d`: 2 warning
  - added the new `400.00` enum value to the `status` response property for the response status `400`
  - added the new `403.00` enum value to the `status` response property for the response status `403`
- **2026-09-18** `f324fb7610e4`: 2 breaking, 18 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `403`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `400`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `401`
  - …16 more
- **2026-06-08** `c83332d134eb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v3/openmeter/llm-cost/overrides/post.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/16abf11338be?raw)
