Count Message Tokens
Counts tokens in an Anthropic message request.
GET
Query
Arguments
stringrequired
The model that would complete your prompt.
array of objectrequired
Input conversation messages.
Uncommon arguments
string
System prompt content.
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.