latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
llm utils
Token Counter
Args: request: TokenCountRequest call_endpoint: bool - When set to "True" it will call the token counting endpoint - e.g Anthropic or Google AI Studio Token Counting APIs.
Returns: TokenCountResponse
post/utils/token_counter
Query parameters
call_endpointboolean
Request body
Response
Successful Response