LangChain Integration
Count tokens (LangChain - Anthropic format)
Counts tokens using Anthropic-compatible format via LangChain.
post/langchain/anthropic/v1/messages/count_tokens
Request body
Example request
{
"model": "claude-3-opus-20240229"
}Response
Successful response