{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aimlapi/refs/heads/main/json-structure/aimlapi-chat-completion-response-structure.json",
  "name": "ChatCompletionResponse",
  "description": "Response from a chat completion request",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique completion ID",
      "example": "chatcmpl-abc123"
    },
    "object": {
      "type": "string",
      "description": "Object type",
      "example": "chat.completion"
    },
    "model": {
      "type": "string",
      "description": "Model used for completion",
      "example": "gpt-4o"
    },
    "choices": {
      "type": "array",
      "description": "List of completion choices",
      "items": {
        "type": "object"
      }
    },
    "usage": {
      "type": "object",
      "description": "Token usage statistics"
    },
    "created": {
      "type": "int32",
      "description": "Unix timestamp of creation",
      "example": 1718153645
    }
  }
}