Evalkeeper
    Preparing search index...

    Function priceCall

    • The cost of a call from its token counts; null when the price is unknown. cachedInput and cacheWriteInput are the parts of input read from and written to the provider's prompt cache, priced at the model's cache prices when it has them.

      Parameters

      • models: ModelCatalog
      • model: string
      • tokens: {
            cachedInput?: number;
            cacheWriteInput?: number;
            input: number;
            output: number;
        }

      Returns number | null