Langfuse JS/TS SDKs
    Preparing search index...

    Interface Usage

    (Deprecated. Use usageDetails and costDetails instead.) Standard interface for usage and cost

    interface Usage {
        input?: number;
        inputCost?: number;
        output?: number;
        outputCost?: number;
        total?: number;
        totalCost?: number;
        unit?: ModelUsageUnit;
    }
    Index

    Properties

    input?: number

    Number of input units (e.g. tokens)

    inputCost?: number

    USD input cost

    output?: number

    Number of output units (e.g. tokens)

    outputCost?: number

    USD output cost

    total?: number

    Defaults to input+output if not set

    totalCost?: number

    USD total cost, defaults to input+output