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
InputPerMilliondecimalPrice per 1,000,000 uncached input tokens.
OutputPerMilliondecimalPrice per 1,000,000 output tokens.
CacheWritePerMilliondecimalPrice per 1,000,000 cache-write (creation) input tokens.
CacheReadPerMilliondecimalPrice 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
CacheWritePerMillion
Price per 1,000,000 cache-write (creation) input tokens.
public decimal CacheWritePerMillion { get; init; }
Property Value
InputPerMillion
Price per 1,000,000 uncached input tokens.
public decimal InputPerMillion { get; init; }
Property Value
OutputPerMillion
Price per 1,000,000 output tokens.
public decimal OutputPerMillion { get; init; }