Anthropic

Count the number of tokens in a message using the Anthropic-compatible API.

post/anthropic/v1/messages/count_tokens

Request

  • Base URL
    https://api.neosantara.xyz
  • URL
    https://api.neosantara.xyz/anthropic/v1/messages/count_tokens
  • Auth
    HTTP bearer

Request body

modelstring required
thinkingunknown

Response

Successful response

input_tokensinteger required

Changes