←back to thread

9 points punkpeye | 1 comments | | HN request time: 0.206s | source
1. punkpeye ◴[] No.42191119[source]
Depending on your use case, there is also a HTML table https://glama.ai/model-prices and also an API that you can call to get more accurate cost https://glama.ai/blog/2024-09-25-chat-cost-calculator-api. The API uses the appropriate tokenization technique to accurately calculate the cost.