Microsoft Azure API Management · JSON Structure

Ai Gateway Completion Response Structure

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

CompletionResponse 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": "CompletionResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "cmpl-xyz789"
    },
    "object": {
      "type": "string",
      "example": "text_completion"
    },
    "created": {
      "type": "int32",
      "example": 1714000000
    },
    "model": {
      "type": "string",
      "example": "gpt-4o"
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "int32",
            "example": 0
          },
          "text": {
            "type": "string",
            "example": "enterprise environments includes centralized governance and security."
          },
          "finish_reason": {
            "type": "string",
            "example": "stop"
          }
        }
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "prompt_tokens": {
          "type": "int32",
          "example": 10
        },
        "completion_tokens": {
          "type": "int32",
          "example": 15
        },
        "total_tokens": {
          "type": "int32",
          "example": 25
        }
      }
    }
  }
}