APIs.io
Search
Providers
APIs
Capabilities
Tags
More
Schemas
AsyncAPI
JSON-LD
Rules
Vocabularies
About
Support
Blog
Blog
Add API
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