UsageByModel Daily usage of a given model. Usage corresponds to the unit set for the specific model (e.g. tokens).

interface ApiUsageByModel {
    countObservations: number;
    countTraces: number;
    inputUsage: number;
    model?: null | string;
    outputUsage: number;
    totalCost: number;
    totalUsage: number;
}

Properties

countObservations: number
countTraces: number
inputUsage: number

Total number of generation input units (e.g. tokens)

model?: null | string
outputUsage: number

Total number of generation output units (e.g. tokens)

totalCost: number

Total model cost in USD

double

totalUsage: number

Total number of generation total units (e.g. tokens)