Claude · JSON Structure

Claude Messages Count Tokens Request Structure

Type: object Properties: 4
Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

CountTokensRequest is a JSON Structure definition published by Claude, describing 4 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

model messages system tools

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "CountTokensRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "messages": {
      "type": "array"
    },
    "system": {
      "type": "string"
    },
    "tools": {
      "type": "array"
    }
  }
}