LiteLLM Integration
Count input tokens (LiteLLM - OpenAI format)
Counts the number of tokens in a Responses API request via LiteLLM.
post/litellm/v1/responses/input_tokens
Request body
Example request
{
"model": "gpt-4"
}Response
Successful response