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

azure-openai-service-usage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Usage",
  "type": "object",
  "description": "Usage statistics for the API call.",
  "properties": {
    "prompt_tokens": {
      "type": "integer",
      "description": "Number of tokens in the prompt."
    },
    "completion_tokens": {
      "type": "integer",
      "description": "Number of tokens in the generated completion."
    },
    "total_tokens": {
      "type": "integer",
      "description": "Total number of tokens used in the request."
    }
  }
}