How is the tokens counted for function calling, and exceeded tokens

Hi, I am trying to use the ChatGPT API for summarizing a JSON response, that I am receiving, so that it can be shown in a presentable manner to the user. On multiple counts, I have received more than 128k tokens for my JSON response, which is more than what GPT-4 can accept. But will I be charged for those tokens?

Also when doing a function call, with several tools defined, how is the token used in those cases? for example, I have 5 different tools, and each tool has its own unique description and sub-description of every value requested for that tool.

1 Like