Claude · JSON Structure

Claude Messages Usage Structure

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

Usage 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

input_tokens output_tokens cache_creation_input_tokens cache_read_input_tokens

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "Usage",
  "type": "object",
  "properties": {
    "input_tokens": {
      "type": "integer"
    },
    "output_tokens": {
      "type": "integer"
    },
    "cache_creation_input_tokens": {
      "type": "integer"
    },
    "cache_read_input_tokens": {
      "type": "integer"
    }
  }
}