Table of Contents

Class ModelPricing

Namespace
Emissary
Assembly
Emissary.dll

Per-million-token prices for a model, in any currency (typically USD). Supply the rates from your Anthropic contract — Emissary ships no hardcoded prices, since they change over time.

public sealed record ModelPricing : IEquatable<ModelPricing>
Inheritance
ModelPricing
Implements
Inherited Members

Constructors

ModelPricing(decimal, decimal, decimal, decimal)

Per-million-token prices for a model, in any currency (typically USD). Supply the rates from your Anthropic contract — Emissary ships no hardcoded prices, since they change over time.

public ModelPricing(decimal InputPerMillion, decimal OutputPerMillion, decimal CacheWritePerMillion, decimal CacheReadPerMillion)

Parameters

InputPerMillion decimal

Price per 1,000,000 uncached input tokens.

OutputPerMillion decimal

Price per 1,000,000 output tokens.

CacheWritePerMillion decimal

Price per 1,000,000 cache-write (creation) input tokens.

CacheReadPerMillion decimal

Price per 1,000,000 cache-read input tokens.

Properties

CacheReadPerMillion

Price per 1,000,000 cache-read input tokens.

public decimal CacheReadPerMillion { get; init; }

Property Value

decimal

CacheWritePerMillion

Price per 1,000,000 cache-write (creation) input tokens.

public decimal CacheWritePerMillion { get; init; }

Property Value

decimal

InputPerMillion

Price per 1,000,000 uncached input tokens.

public decimal InputPerMillion { get; init; }

Property Value

decimal

OutputPerMillion

Price per 1,000,000 output tokens.

public decimal OutputPerMillion { get; init; }

Property Value

decimal