[Calculate token-based costs for traces | 🦜️🛠️ LangSmith](https://docs.smith.langchain.com/observability/how_to_guides/calculate_token_based_costs): LLM should read this page when calculating token-based costs for traces, setting up model pricing maps, or tracking costs for LLM invocations. This page explains how to set up a model pricing map in LangSmith and provide token counts for LLM runs to enable token-based cost calculation and tracking for traces.

