{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-arena-leaderboard-response200-application-json-schema.json",
  "title": "GetApiArenaLeaderboardResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-arena-api-openapi.yml#/components/schemas/GetApiArenaLeaderboardResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "leaderboard": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string"
          },
          "modelLabel": {
            "type": "string"
          },
          "totalMatches": {
            "type": "number"
          },
          "wins": {
            "type": "number"
          },
          "losses": {
            "type": "number"
          },
          "draws": {
            "type": "number"
          },
          "winRate": {
            "type": "number"
          },
          "averageScore": {
            "type": "number"
          },
          "averageResponseTime": {
            "type": "number"
          },
          "totalCost": {
            "type": "number"
          },
          "costSummary": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string",
                "enum": [
                  "USD"
                ]
              },
              "decimalPlaces": {
                "type": "number",
                "enum": [
                  8
                ]
              },
              "totalUsd": {
                "type": "string"
              },
              "verifiedUsd": {
                "type": "string"
              },
              "estimatedUsd": {
                "type": "string"
              },
              "verifiedCount": {
                "type": "number"
              },
              "estimatedCount": {
                "type": "number"
              },
              "unknownCount": {
                "type": "number"
              },
              "recordCount": {
                "type": "number"
              },
              "attribution": {
                "type": "object",
                "properties": {
                  "retryCount": {
                    "type": "number"
                  },
                  "retryUsd": {
                    "type": "string"
                  },
                  "fallbackCount": {
                    "type": "number"
                  },
                  "fallbackUsd": {
                    "type": "string"
                  },
                  "cachedCallCount": {
                    "type": "number"
                  },
                  "cachedInputTokens": {
                    "type": "number"
                  },
                  "cancelledCount": {
                    "type": "number"
                  },
                  "cancelledUsd": {
                    "type": "string"
                  },
                  "streamedCount": {
                    "type": "number"
                  },
                  "streamedUsd": {
                    "type": "string"
                  },
                  "duplicateRecordsIgnored": {
                    "type": "number"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "retryCount",
                  "retryUsd",
                  "fallbackCount",
                  "fallbackUsd",
                  "cachedCallCount",
                  "cachedInputTokens",
                  "cancelledCount",
                  "cancelledUsd",
                  "streamedCount",
                  "streamedUsd",
                  "duplicateRecordsIgnored"
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "currency",
              "decimalPlaces",
              "totalUsd",
              "verifiedUsd",
              "estimatedUsd",
              "verifiedCount",
              "estimatedCount",
              "unknownCount",
              "recordCount",
              "attribution"
            ]
          },
          "lastMatchAt": {
            "type": "string"
          },
          "streak": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "modelId",
          "modelLabel",
          "totalMatches",
          "wins",
          "losses",
          "draws",
          "winRate",
          "averageScore",
          "averageResponseTime",
          "totalCost",
          "costSummary",
          "lastMatchAt",
          "streak"
        ]
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "totalMatches": {
          "type": "number"
        },
        "averageScore": {
          "type": "number"
        },
        "mostActiveModel": {
          "type": "string"
        },
        "topPerformer": {
          "type": "string"
        },
        "recentActivity": {
          "type": "number"
        }
      },
      "additionalProperties": false,
      "required": [
        "totalMatches",
        "averageScore",
        "mostActiveModel",
        "topPerformer",
        "recentActivity"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "leaderboard",
    "stats"
  ]
}