Anthropic Integration
Count tokens (Anthropic format)
Counts the number of tokens in a message request.
post/anthropic/v1/messages/count_tokens
Request body
Example request
{
"model": "claude-3-opus-20240229"
}Response
Successful response
Counts the number of tokens in a message request.
{
"model": "claude-3-opus-20240229"
}Successful response