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
Request
- Base URLhttps://api.koboillm.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.koboillm.com/utils/token_counter
- Auth
- API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
- or API key in header x-litellm-api-key
Query parameters
call_endpointboolean
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 17 revisions of this API.