Nice. Any plans to add calculations for image input for the models that allow that?
Show HN: Token price calculator for 400+ LLMs
51–60 of 79 posts
Re: Show HN: Token price calculator for 400+ LLMs
#52Nice. Does it add Vision costs too?
Re: Show HN: Token price calculator for 400+ LLMs
#53[flagged]
Re: Show HN: Token price calculator for 400+ LLMs
#54I don't understand how the Claude functionality works. As far as I know Anthropic haven't released the tokenizer for Claude - unlike OpenAI's tiktoken - but your tool lists the Claude 3 models as supported. How are you counting tokens for those?
Re: Show HN: Token price calculator for 400+ LLMs
#55[flagged]
Re: Show HN: Token price calculator for 400+ LLMs
#56Re: Show HN: Token price calculator for 400+ LLMs
#57An interesting parameter that I don't read about a lot is vocab size. A larger vocab means you will need to generate less tokens for the same word on average, also the context window will be larger. This means that a model with a large vocab might be more expensive on a per token basis, but would generate less tokens for the same sentence, making it cheaper overall. This should be taken into consideration when compar…
Re: Show HN: Token price calculator for 400+ LLMs
#58Earlier quoted context omitted.
This is unnecessarily harsh. Not every model has a publicly available tokenizer, and using a fallback like cl100k is usually a decent enough estimator from my experience. Besides, there's a warning message for when you specify a model without a known tokenizer. If you're upset with the implementation, you can always raise an issue or fix it yourself
> This is unnecessarily harsh. Which part? All I can tease out from your comment are "the lies are impossible" (agreed!) and "close enough afaik". (it's not, the closest in the Big 5 has percent error of 32% , see end of comment. ex. GPT4o has a tokenizer with 2x the vocab so you'd expect ~1/2 the tokens) > Not every model has a publicly available tokenizer, Right. Ex. Claude 3s and Geminis. So why are Claude 3s and…
Re: Show HN: Token price calculator for 400+ LLMs
#59[flagged]
I’m not sure if the python tiktoken library has the cl200k tokenizer for gpt-4o, but I would imagine it does. So this library does support gpt-4o at least.
It is exactly as bad of a situation as I laid out.
It is a tiktoken wrapper that only does CL100K, doesn't bother with anything beyond that, even the message frame tokens, and claims to calculate cost for 400 LLMs.
Re: Show HN: Token price calculator for 400+ LLMs
#60Earlier quoted context omitted.
> This is unnecessarily harsh. Which part? All I can tease out from your comment are "the lies are impossible" (agreed!) and "close enough afaik". (it's not, the closest in the Big 5 has percent error of 32% , see end of comment. ex. GPT4o has a tokenizer with 2x the vocab so you'd expect ~1/2 the tokens) > Not every model has a publicly available tokenizer, Right. Ex. Claude 3s and Geminis. So why are Claude 3s and…
I can tell you've never actually built anything worthwhile