llmwire - v2.2.0
    Preparing search index...

    Function estimateCost

    • USD for one call. Cached prompt tokens are billed at the cache price when the table has one.

      Parameters

      • usage: TokenUsage | undefined
      • model: string
      • table: Record<string, Price> = PRICES

      Returns number | undefined