> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PricingOverride

A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min\_prompt\_tokens, or the utc\_start/utc\_end time window) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price.

## Example Usage

```typescript theme={null}
import { PricingOverride } from "@openrouter/sdk/models";

let value: PricingOverride = {};
```

## Fields

| Field               | Type     | Required             | Description                                                                                                                                                                                                                                                                |
| ------------------- | -------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `audio`             | *string* | :heavy\_minus\_sign: | Overridden price in USD per audio input token                                                                                                                                                                                                                              |
| `completion`        | *string* | :heavy\_minus\_sign: | Overridden price in USD per token for completion (output) generation                                                                                                                                                                                                       |
| `inputAudioCache`   | *string* | :heavy\_minus\_sign: | Overridden price in USD per cached audio input token                                                                                                                                                                                                                       |
| `inputCacheRead`    | *string* | :heavy\_minus\_sign: | Overridden price in USD per cached input token (read)                                                                                                                                                                                                                      |
| `inputCacheWrite`   | *string* | :heavy\_minus\_sign: | Overridden price in USD per cache-write token                                                                                                                                                                                                                              |
| `inputCacheWrite1h` | *string* | :heavy\_minus\_sign: | Overridden price in USD per 1-hour cache-write token                                                                                                                                                                                                                       |
| `minPromptTokens`   | *number* | :heavy\_minus\_sign: | Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold                                                                                                                                                            |
| `prompt`            | *string* | :heavy\_minus\_sign: | Overridden price in USD per token for prompt (input) processing                                                                                                                                                                                                            |
| `utcEnd`            | *number* | :heavy\_minus\_sign: | Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00)                                                                                                                                                                             |
| `utcStart`          | *number* | :heavy\_minus\_sign: | Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window \[utc\_start, utc\_end), which may wrap past midnight (utc\_start > utc\_end). |
