cohere · Schema

Usage

Properties

Name Type Description
billed_units object
tokens object
View JSON Schema on GitHub

JSON Schema

cohere-usage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Usage",
  "title": "Usage",
  "type": "object",
  "properties": {
    "billed_units": {
      "type": "object",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "description": "The number of billed input tokens."
        },
        "output_tokens": {
          "type": "integer",
          "description": "The number of billed output tokens."
        }
      }
    },
    "tokens": {
      "type": "object",
      "properties": {
        "input_tokens": {
          "type": "integer",
          "description": "The total number of input tokens processed."
        },
        "output_tokens": {
          "type": "integer",
          "description": "The total number of output tokens generated."
        }
      }
    }
  }
}