modelPricing top-level property
Model pricing table.
Implementation
final modelPricing = <String, ModelPricing>{
'claude-opus-4-6': const ModelPricing(
inputPerMillion: 15.0,
outputPerMillion: 75.0,
cacheCreationPerMillion: 18.75,
cacheReadPerMillion: 1.50,
),
'claude-sonnet-4-6': const ModelPricing(
inputPerMillion: 3.0,
outputPerMillion: 15.0,
cacheCreationPerMillion: 3.75,
cacheReadPerMillion: 0.30,
),
'claude-sonnet-4-5': const ModelPricing(
inputPerMillion: 3.0,
outputPerMillion: 15.0,
cacheCreationPerMillion: 3.75,
cacheReadPerMillion: 0.30,
),
'claude-haiku-3-5': const ModelPricing(
inputPerMillion: 0.80,
outputPerMillion: 4.0,
cacheCreationPerMillion: 1.0,
cacheReadPerMillion: 0.08,
),
'gpt-4o': const ModelPricing(inputPerMillion: 2.50, outputPerMillion: 10.0),
'gpt-4o-mini': const ModelPricing(
inputPerMillion: 0.15,
outputPerMillion: 0.60,
),
};