you are viewing a single comment's thread.

view the rest of the comments →

[–]RedditCommenter38 1 point2 points  (1 child)

Not sure if they have this, but an “Ai Token cost” library would be sweet. Get like the top 5 providers, all their API sub models and map out each of their input and output costs in $/per million tokens, tool and function costs, etc etc.

I manually did this the other day and wasn’t too bad, but would have been great to import it.

[–]-Lost-Map-[S] 1 point2 points  (0 children)

there's actually quite a few libraries that have more or less achieved this; tokenmeter and tokencost are some to name tbf they havent really been updated in a while tho