Baseten · Schema

Usage

Token usage statistics.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
input_tokens integer The number of input tokens processed.
output_tokens integer The number of output tokens generated.
View JSON Schema on GitHub

JSON Schema

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