POST /v1/tokens/count
{
"model": "auto",
"input": [{ "role": "user", "content": "Count this before routing." }]
}
{
"object": "token_count",
"model": "mesh/claude-sonnet-4.5",
"total_tokens": 9
}
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Estimate text or chat token counts.
POST /v1/tokens/count
{
"model": "auto",
"input": [{ "role": "user", "content": "Count this before routing." }]
}
{
"object": "token_count",
"model": "mesh/claude-sonnet-4.5",
"total_tokens": 9
}