Microsoft Azure · Schema

completionUsage

Usage statistics for the completion request.

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 (prompt + completion).
View JSON Schema on GitHub

JSON Schema

microsoft-azure-completionusage-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/completionUsage",
  "title": "completionUsage",
  "type": "object",
  "description": "Usage statistics for the completion request.",
  "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 (prompt + completion)."
    }
  },
  "required": [
    "prompt_tokens",
    "completion_tokens",
    "total_tokens"
  ]
}