Skip to content

pricing

diapason.evals.core.pricing

Cost computation for agentic eval runs — wraps engine/cloud.py pricing.

compute_turn_cost(model, input_tokens, output_tokens)

Compute USD cost for a single agent turn.

Delegates to the canonical estimate_cost() from engine/cloud.py. Returns 0.0 for models not in the pricing table (e.g. local models).

estimate_cost(model, prompt_tokens, completion_tokens)

Estimate USD cost based on the hardcoded pricing table.