@grafctory/llms
    Preparing search index...

    Type Alias Usage

    Token usage of a model request.

    States what a request consumed in the terms all providers bill by, so usage logged for any of them reads alike. Usage is attributed to its source by the Labels of the request, and logged together with them by charge.

    type Usage = {
        input: number;
        output: number;
        reasoning: number;
    }
    Index
    input: number

    The input tokens the request consumed, including those spent on tool use prompts.

    output: number

    The output tokens the request consumed, including those spent on reasoning.

    reasoning: number

    The output tokens the request spent on reasoning alone.