tiktoken
.
ls_model_name
field in run metadata. The SDK built-in wrappers and any LangChain integrations will automatically handle specifying this metadata for you.
...
next to the prompt/completion prices shows you the price breakdown by token type. You can see, for example, if audio
and image
prompt tokens have different prices versus default text prompt tokens.
To create a new entry in the model pricing map, click on the Add new model
button in the top right corner.
ls_model_name
in the run metadata.cache_read
, video
, audio
, etc.reasoning
, image
, etc.ls_provider
in the run metadata.cache_read
prompt tokens, and $3 per 1M completion tokens. If we uploaded the following usage metadata:
usage_metadata
dict while tracing rather than relying on LangSmith’s built-in cost calculations.
See this guide to learn how to manually provide cost information for a run.