# ModelPriceOverride

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.modelpriceoverride/
> Summary: ModelPriceOverride: Defines a configured price override for one model.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Core.dll</code></div>

Defines a configured price override for one model.

```csharp
public sealed class ModelPriceOverride
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.modelpriceoverride/">ModelPriceOverride</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_ModelPriceOverride__ctor"></a> ModelPriceOverride\(\)

```csharp
public ModelPriceOverride()
```

## Properties

### <a id="Tracon_ModelPriceOverride_CachedInputCostPerMillionTokens"></a> CachedInputCostPerMillionTokens

Gets or sets cost per million input tokens served from the prompt cache.

```csharp
public decimal? CachedInputCostPerMillionTokens { get; set; }
```

#### Property Value

 [decimal](https://learn.microsoft.com/dotnet/api/system.decimal)?

#### Remarks

Leaving it unset prices cached tokens at
[ModelPriceOverride.InputCostPerMillionTokens](/api/tracon.modelpriceoverride/#Tracon_ModelPriceOverride_InputCostPerMillionTokens); it never makes the price
unknown. See [ModelDescriptor.CachedInputCostPerMillionTokens](/api/tracon.modeldescriptor/#Tracon_ModelDescriptor_CachedInputCostPerMillionTokens).

### <a id="Tracon_ModelPriceOverride_InputCostPerMillionTokens"></a> InputCostPerMillionTokens

Gets or sets cost per million input tokens.

```csharp
public decimal? InputCostPerMillionTokens { get; set; }
```

#### Property Value

 [decimal](https://learn.microsoft.com/dotnet/api/system.decimal)?

### <a id="Tracon_ModelPriceOverride_OutputCostPerMillionTokens"></a> OutputCostPerMillionTokens

Gets or sets cost per million output tokens.

```csharp
public decimal? OutputCostPerMillionTokens { get; set; }
```

#### Property Value

 [decimal](https://learn.microsoft.com/dotnet/api/system.decimal)?
