> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Model Pricing

> Per-token pricing for a model, expressed in USD per one million tokens.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

<pre />

Per-token pricing for a model, expressed in USD per one million tokens.

## Fields

### `provider: String`

Provider that owns this pricing entry.

### `model_id: String`

Canonical model ID for this pricing entry.

### `aliases: Vec<String>`

Additional model IDs that should use this pricing.

### `currency: String`

ISO 4217 currency for this pricing entry.

### `unit: PricingUnit`

Billing unit represented by this pricing entry.

### `rates: Option<TokenPricingRates>`

Token rates expressed as USD per one million tokens.

### `rate_schedule: Option<TokenRateSchedule>`

Data-driven token rate schedule for threshold-based provider pricing.

### `prompt_cache: PromptCachePricing`

Prompt-cache accounting model for this provider/model.

### `pricing_as_of: String`

Date this pricing entry was last verified.

### `pricing_source: String`

Source URL for this pricing entry.

## Implementations

### `impl ModelPricing`

<pre />

#### `estimate_cost`

<pre />

Estimates cost for the provided token usage.

## Trait Implementations

### `impl Clone for ModelPricing`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for ModelPricing`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for ModelPricing`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for ModelPricing`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for ModelPricing`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for ModelPricing`

<pre />