APIs.io
Search
Providers
Tags
Add API
About
Support
Blog
Search
Home
Claude
CountTokensRequest
Claude
· Schema
CountTokensRequest
Artificial Intelligence
Chatbot
Conversational AI
Generative AI
Large Language Models
Machine Learning
Natural 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