Bluestep JS Documentation
    Preparing search index...

    Interface AiTokenCount

    A token count, and whether it came from the provider or was estimated.

    interface AiTokenCount {
        estimated: boolean;
        tokens: number;
    }
    Index
    estimated: boolean

    false when the provider counted it — the number the model will charge against. true when the provider offers no token-counting API and the harness estimated it from the text, which is a rough figure: code, JSON and non-Latin scripts tokenize more densely than the estimate assumes. Budget against an estimate with room to spare; do not reconcile billing against one.

    tokens: number

    The input tokens this conversation occupies.