Microsoft Azure API Management · JSON Structure

Ai Gateway Chat Completion Response Structure

Type: object Properties: 6
A2AAI GatewayAPI CenterAPI GatewayAPI ManagementEnterpriseMCPMicrosoft Azure

ChatCompletionResponse is a JSON Structure definition published by Microsoft Azure API Management, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id object created model choices usage

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "name": "ChatCompletionResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "chatcmpl-abc123def456"
    },
    "object": {
      "type": "string",
      "example": "chat.completion"
    },
    "created": {
      "type": "int32",
      "example": 1714000000
    },
    "model": {
      "type": "string",
      "example": "gpt-4o"
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "int32",
            "example": 0
          },
          "message": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string",
                "example": "assistant"
              },
              "content": {
                "type": "string",
                "example": "Azure API Management is a hybrid, multicloud management platform for APIs across all environments."
              }
            }
          },
          "finish_reason": {
            "type": "string",
            "example": "stop"
          }
        }
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "prompt_tokens": {
          "type": "int32",
          "example": 24
        },
        "completion_tokens": {
          "type": "int32",
          "example": 18
        },
        "total_tokens": {
          "type": "int32",
          "example": 42
        }
      }
    }
  }
}