Skip to content
Discussion options

You must be logged in to vote

The details regarding the cost calculation for input cache writes are not explicitly documented in the Langfuse documentation. However, you can confirm the calculation in a self-hosted Langfuse setup by examining the codebase. Specifically, the calculateUsageCosts method in the IngestionService class handles the cost calculation for input cache writes. This method uses the input price specified in the database to calculate costs [1].

Additionally, the default-model-prices.json file in the codebase specifies the costs for input cache creation, which you can review to understand the pricing for different models [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feed…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Agilan3996
Comment options

@dosubot
Comment options

@Agilan3996
Comment options

@dosubot
Comment options

Answer selected by jannikmaierhoefer
@Haknt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants