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.

Example