Count Tokens

Get a count of the number of tokens in content, including audio, video, images, and text. Useful for estimating costs and ensuring content fits within model context windows.