For Japanese version, see IProviderCostProfile-jp.md.
IProviderCostProfile (Interface Specification)
1. Responsibility Boundary
IProviderCostProfile defines normalized pricing catalogs per provider and model tier, supplying static economic evidence for routing decisions.
- Role:
- Non-role:
Provide unit costs for input/output tokens, compute time, storage, and pricing effective timestamp.
Accumulated spending state is owned by IProviderBillingInfo.
2. Properties
| Property | Type | Description |
|---|---|---|
ProviderId |
string |
Provider identifier. |
ModelClass |
string |
Capability class (logic-heavy, balanced, fast). |
InputTokenUnitCost |
decimal |
Cost per input token unit. |
OutputTokenUnitCost |
decimal |
Cost per output token unit. |
ComputeMinuteCost |
decimal |
Cost per compute minute. |
StorageUnitCost |
decimal |
Cost per persisted snapshot unit. |
EffectiveFromUtc |
DateTimeOffset |
Cost profile start time. |
3. Use Cases
UC-23AI credit management:UC-03Model vector routing:
Compare estimated cost against budget headroom to gate execution.
Blend cost with capability and latency scores during path selection.
4. Integration with IModelVectorRouter
- Total-cost estimation:
- Multi-objective optimization:
Predict per-route cost from expected token usage and unit pricing.
Combine capability, latency, and cost signals to choose the final route.
5. Visualization Mapping (UI)
- Input-cost share:
- Output-cost share:
- Compute/storage share:
- Labels:
InputTokenUnitCost
OutputTokenUnitCost
ComputeMinuteCost, StorageUnitCost
ProviderId, ModelClass, EffectiveFromUtc
6. Governance Constraints
- Immutability:
- Fail-Closed:
- Replay integrity:
Profiles tied to a specific EffectiveFromUtc should not be retroactively altered for audit integrity.
If no valid cost profile is available, block routing to prevent unbounded billing risk.
Persist applied EffectiveFromUtc so economic conditions can be reconstructed during replay.
Changelog
- v0.0.0 / v0.0.0.0: Initial draft
- v0.0.1 (2026-05-06): Version upgrade aligned with documentation guidelines
architecture/interfaces/provider/IProviderCostProfile.md