Claude · Schema

CountTokensRequest

Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

Properties

Name Type Description
model string The model to use for token counting.
messages array Input messages to count tokens for.
system string System prompt to include in the token count.
tools array Tool definitions to include in the token count.
View JSON Schema on GitHub