{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-structure/admin-api-aiapi-quota-limit-structure.json",
  "name": "AI API Quota Limit object",
  "description": "AIAPIQuotaLimit schema from WSO2 API Manager",
  "allOf": [
    {
      "$ref": "#/components/schemas/ThrottleLimitBase"
    },
    {
      "required": [
        "requestCount"
      ],
      "type": "object",
      "properties": {
        "requestCount": {
          "type": "int64",
          "description": "Maximum number of requests allowed",
          "example": 300
        },
        "totalTokenCount": {
          "type": "int64",
          "description": "Maximum number of total tokens allowed",
          "example": 800
        },
        "promptTokenCount": {
          "type": "int64",
          "description": "Maximum number of prompt tokens allowed",
          "example": 400
        },
        "completionTokenCount": {
          "type": "int64",
          "description": "Maximum number of completion tokens allowed",
          "example": 500
        }
      }
    }
  ]
}