Skip to main content

Overview

Calculate the cost of a StructuredOutput extraction call. The response provides InferenceUsage with token counts. Pair it with InferencePricing rates and a FlatRateCostCalculator to get a Cost breakdown. The rates below are illustrative; applications should supply current rates from their chosen provider or internal pricing source.

Example