Microsoft Azure · Schema

Usage

Usage statistics for the API call.

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Properties

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

JSON Schema

microsoft-azure-usage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Usage",
  "title": "Usage",
  "type": "object",
  "description": "Usage statistics for the API call.",
  "properties": {
    "prompt_tokens": {
      "type": "integer",
      "description": "Number of tokens in the prompt.",
      "example": 10
    },
    "completion_tokens": {
      "type": "integer",
      "description": "Number of tokens in the generated completion.",
      "example": 10
    },
    "total_tokens": {
      "type": "integer",
      "description": "Total number of tokens used in the request.",
      "example": 10
    }
  },
  "required": [
    "prompt_tokens",
    "total_tokens"
  ]
}