Is it a word, question, letter, what? If I ask a question like... What is the capital of Canada? And it responds with 'Ottawa', how many tokens have I used there and how are they calculated?
https://help.openai.com/en/articles/4936856-what-are-tokens-...
You can also check your input using their tokenizer: https://platform.openai.com/tokenizer
So, your example is ~9 tokens
In the API you need to tokenize your input and tokenize the output then add the counts together.
Is it a word, question, letter, what? If I ask a question like... What is the capital of Canada? And it responds with 'Ottawa', how many tokens have I used there and how are they calculated?