Anthropic Claude Anthropic Claude Token Counting API Count tokens for a prospective Messages request. Documentation GitHub OpenAPI Documentation 📖 Documentation https://docs.anthropic.com/en/api/messages 📖 APIReference https://docs.anthropic.com/en/api/getting-started 📖 GettingStarted https://docs.anthropic.com/en/api/getting-started Specifications ⚙ OpenAPI https://raw.githubusercontent.com/api-evangelist/anthropic-claude/refs/heads/main/openapi/anthropic-claude-token-counting-api-openapi.yml ⚙ AsyncAPI https://raw.githubusercontent.com/api-evangelist/anthropic-claude/refs/heads/main/asyncapi/anthropic-claude-asyncapi.yml