I am currently using the openai api.
I am sending images to chatgpt and using the ocr function. When i convert to base64 and ask ai to ocr it, please let me know if the number of tokens is calculated as an image or as a number of characters.
Here is the link from docs to explain the cost calculations: https://platform.openai.com/docs/guides/vision#calculating-costs