Model Costs lets you configure cost tracking for your LLM usage. This is useful for monitoring spending across different models and understanding cost breakdowns in your traces.
Model costs are applied in the following order of priority:
Custom model costs let you define pricing for specific models or model patterns. These costs override pre-configured defaults but are themselves overridden by costs explicitly set via the tracing API or DeepEval.
To add a custom model cost:
gpt-4.1, claude-*, or my-custom-model)You can treat input and output costs as separate entities, and you’ll only need either one of the either. For example, not providing the output cost would default to the pre-configured model costs, so be sure to set it to 0 if you don’t wish to count output costs.
Use wildcard patterns (e.g., gpt-4*) to match multiple model variants with a
single cost configuration.
Confident AI includes pre-configured costs for popular models from major providers. These serve as fallback pricing when no cost is set through the tracing API or custom model costs.
Pre-configured costs are available for:
Pre-configured costs are updated periodically to reflect current provider pricing. For the most accurate cost tracking, consider setting custom costs or passing costs directly via the tracing API.
You can search through pre-configured costs by model name to verify the pricing being used for your traces.
Toggle this option to inherit model cost configurations from your organization settings. When enabled, organization-level model costs will override the pre-configured defaults for this project.
This is useful when you want to maintain consistent pricing across multiple projects without configuring each one individually.