tokencost icon indicating copy to clipboard operation
tokencost copied to clipboard

Open AI - gpt-4o image cost feature missing

Open lirilkumar opened this issue 1 year ago • 3 comments

Currently, we do not have a capability to calculate cost for attached media (image) in context. Could be a great feature?

Let me know if that is possible to calculate somehow in 0.1.11

lirilkumar avatar Jul 09 '24 10:07 lirilkumar

same

Jasonlin00 avatar Sep 19 '24 10:09 Jasonlin00

Would be a cool feature but I haven't put much thought into how multi-modal APIs handle images in general. From my narrow understanding, OpenAI does things differently than other providers. Any suggestions how to approach this?

areibman avatar Sep 19 '24 20:09 areibman

Would be a cool feature but I haven't put much thought into how multi-modal APIs handle images in general. From my narrow understanding, OpenAI does things differently than other providers. Any suggestions how to approach this?

Maybe this can help: https://www.oranlooney.com/post/gpt-cnn/

We need to understand the image tokenizer of gpt-4o then reverse-engineer to get the tokenizer. Was searching for literature but haven't found much sadly.

dot-agi avatar Sep 29 '24 17:09 dot-agi