curl --request POST \
--url https://api.example.com/anthropic/v1/messages/count_tokens \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"messages": [
{}
],
"system": "<string>",
"tools": [
{
"name": "<string>",
"input_schema": {},
"description": "<string>"
}
],
"thinking": {
"enabled": true
},
"tool_choice": {}
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}curl --request POST \
--url https://api.example.com/anthropic/v1/messages/count_tokens \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"messages": [
{}
],
"system": "<string>",
"tools": [
{
"name": "<string>",
"input_schema": {},
"description": "<string>"
}
],
"thinking": {
"enabled": true
},
"tool_choice": {}
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Successful Response