NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Claude Token Counter, now with model comparisons (simonwillison.net)
mudkipdev 21 minutes ago [-]
Why do you need an API key to tokenize the text? Isn't it supposed to be a cheap step that everything else in the model relies on?
tomglynch 51 minutes ago [-]
Interesting findings. Might need a way to downsample images on upload to keep costs down.
simonw 41 minutes ago [-]
Yeah that should work - it looks like the same pixel dimension image at smaller sizes has about the same token cost for 4.6 and 4.7, so the image cost increase only kicks in if you use larger images that 4.6 would have presumably resized before inspecting.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 04:16:21 GMT+0000 (Coordinated Universal Time) with Vercel.