Hugging Face · Schema

Usage

Properties

Name Type Description
prompt_tokens integer Number of tokens in the prompt
completion_tokens integer Number of tokens in the completion
total_tokens integer Total tokens used
View JSON Schema on GitHub

JSON Schema

hugging-face-usage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Usage",
  "title": "Usage",
  "type": "object",
  "properties": {
    "prompt_tokens": {
      "type": "integer",
      "description": "Number of tokens in the prompt",
      "example": 10
    },
    "completion_tokens": {
      "type": "integer",
      "description": "Number of tokens in the completion",
      "example": 10
    },
    "total_tokens": {
      "type": "integer",
      "description": "Total tokens used",
      "example": 10
    }
  }
}