Claude · Schema

TokenCount

Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

Properties

Name Type Description
input_tokens integer The total number of input tokens in the message.
View JSON Schema on GitHub

JSON Schema

claude-tokencount-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TokenCount",
  "title": "TokenCount",
  "type": "object",
  "properties": {
    "input_tokens": {
      "type": "integer",
      "description": "The total number of input tokens in the message.",
      "example": 25
    }
  }
}