In this article
Reconcile image and cached-image quantities against the configured rate for the observed tier before relying on proxy spend totals.
LiteLLM v1.112.0-dev.2 was published on November 21, 2026. Its release notes include a cost-calculation correction for priority-tier image input and cached image tokens. The upstream discussion compares standard and priority requests and shows why a total prompt token count is insufficient for reconciliation. The cited version is a development release, so check the behavior in the build you actually run.
Break usage into the categories that carry rates
An image can account for a large share of the input even when the textual prompt is short. Keep uncached image input separate from cached image input, text input and output when the provider reports these distinctions. Record the units and the applicable tier beside each rate. When usage fields are missing, mark the amount as an estimate that depends on assumptions about the split.
Compare requests with the same payload
A small test can use a repeated synthetic image with a fixed text prompt. Compare standard and priority runs and preserve the returned usage breakdown. Then include a repeated request that the provider reports as a cache hit. A repeated image does not guarantee a cache hit, so use the observed cached count. Check whether the proxy applies the price expected for each reported category and tier.
Keep estimates and settlement records separate
Your proxy can use configured prices for chargeback or an internal budget. The provider may apply contract rates or billing rules that differ. Compare the internal estimate with provider usage and the settled statement over the same time range. Retain the configured price revision so a later catalog update does not change how an earlier discrepancy is interpreted.
Recheck after an upgrade
Test a text-only request alongside a vision request and a cached vision request. These cases cover distinct calculation paths. Record the version and pass criteria before changing a deployment. If a needed price or usage value is unavailable, the report should surface that gap before financial decisions depend on the total.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.