This interface calculates the number of tokens in text requests to the Anthropic API. Use it to count the tokens in system prompts or messages to Claude models. For more details, see the Anthropic token counting documentation and the source code.