# Hugging Face Open LLM Leaderboard API

Get Hugging Face Open LLM Leaderboard data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, and retrieve structured data including leaderboard rank position, evaluated model identifier, average, parameter count in billions, and model architecture family to compare specific benchmark strengths and automated data workflows.

Documentation: https://openany.si/hugging-face/hugging-face-open-llm-leaderboard-api/ee88a720-1968-4aec-9cc1-771dec307914/
API ID: ee88a720-1968-4aec-9cc1-771dec307914
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/leaderboard
Page update time: 2026-12-03T02:43:38.206Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:37.069Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Hugging Face Open LLM Leaderboard API

Browse Open LLM Leaderboard v2 entries using optional q (model name substring), sort (default average), order (default desc), min\_params and max\_params (in billions), model\_type, official, page (default 1) and limit (default 50, max 100). Returned items\[\] expose average and individual benchmark scores under scores.

## What You Can Build

- **Benchmark models within a GPU budget**: Set min\_params and max\_params (for example 7 to 14) to find top-scoring models that fit target hardware.
- **Compare specific benchmark strengths**: Inspect scores.mmlu\_pro, scores.ifeval, scores.gpqa, scores.bbh, scores.math\_lvl5 and scores.musr side by side.
- **Filter official base or chat releases**: Use official and model\_type filters to separate official provider releases from community merges.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].position` | Leaderboard rank position |
| `items[].model` | Evaluated model identifier |
| `items[].average` | Aggregate average score across v2 benchmarks |
| `items[].params_b` | Parameter count in billions |
| `items[].architecture` | Model architecture family |
| `items[].license` | Published model license |
| `items[].scores.mmlu_pro` | MMLU-Pro benchmark score |
| `items[].scores.ifeval` | IFEval instruction-following benchmark score |
| `items[].scores.gpqa` | GPQA graduate-level reasoning benchmark score |
| `next_page` | Next page number, or null on the last page |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face Open LLM Leaderboard API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Only models whose name contains this text."
        },
        "sort": {
          "type": "string",
          "description": "Sort field (default average).",
          "enum": [
            "average",
            "ifeval",
            "bbh",
            "math",
            "gpqa",
            "musr",
            "mmlu_pro",
            "params",
            "likes",
            "co2",
            "submitted"
          ]
        },
        "order": {
          "type": "string",
          "description": "Sort order (default desc).",
          "enum": [
            "desc",
            "asc"
          ]
        },
        "min_params": {
          "type": "number",
          "description": "Minimum size in billions of parameters."
        },
        "max_params": {
          "type": "number",
          "description": "Maximum size in billions of parameters."
        },
        "model_type": {
          "type": "string",
          "description": "Only this model type.",
          "enum": [
            "pretrained",
            "continuously_pretrained",
            "fine_tuned",
            "chat",
            "merge",
            "multimodal"
          ]
        },
        "official": {
          "type": "string",
          "description": "Only (or no) models from official providers.",
          "enum": [
            "true",
            "false"
          ]
        },
        "page": {
          "type": "integer",
          "description": "Page number (default 1)."
        },
        "limit": {
          "type": "integer",
          "description": "Models per page, up to 100 (default 50)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "architecture": {
                "type": "string"
              },
              "available_on_hub": {
                "type": "boolean"
              },
              "average": {
                "type": "number"
              },
              "base_model": {
                "type": "string"
              },
              "chat_template": {
                "type": "boolean"
              },
              "co2_kg": {
                "type": "number"
              },
              "flagged": {
                "type": "boolean"
              },
              "generation": {
                "type": "integer"
              },
              "license": {
                "type": "string"
              },
              "likes": {
                "type": "integer"
              },
              "merged": {
                "type": "boolean"
              },
              "model": {
                "type": "string"
              },
              "moe": {
                "type": "boolean"
              },
              "official_provider": {
                "type": "boolean"
              },
              "params_b": {
                "type": "number"
              },
              "position": {
                "type": "integer"
              },
              "precision": {
                "type": "string"
              },
              "scores": {
                "type": "object",
                "properties": {
                  "bbh": {
                    "type": "number"
                  },
                  "gpqa": {
                    "type": "number"
                  },
                  "ifeval": {
                    "type": "number"
                  },
                  "math_lvl5": {
                    "type": "number"
                  },
                  "mmlu_pro": {
                    "type": "number"
                  },
                  "musr": {
                    "type": "number"
                  }
                }
              },
              "sha": {
                "type": "string"
              },
              "submitted": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "uploaded": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "weight_type": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "leaderboard": {
      "type": "string"
    },
    "next_page": {
      "type": "integer"
    },
    "order": {
      "type": "string"
    },
    "page": {
      "type": "integer"
    },
    "q": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/leaderboard?output=json&q=qwen' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 50,
  "credits_used": 1,
  "items": [
    {
      "architecture": "Qwen2ForCausalLM",
      "available_on_hub": false,
      "average": 48.10647092442315,
      "base_model": "Qwen/Qwen2.5-72B",
      "chat_template": true,
      "co2_kg": 76.77142501291785,
      "flagged": false,
      "generation": 2,
      "license": "other",
      "likes": 10,
      "merged": false,
      "model": "huihui-ai/Qwen2.5-72B-Instruct-abliterated",
      "moe": false,
      "official_provider": false,
      "params_b": 72.706,
      "position": 1,
      "precision": "bfloat16",
      "scores": {
        "bbh": 60.487869412693875,
        "gpqa": 19.35123042505593,
        "ifeval": 85.92667455684251,
        "math_lvl5": 60.12084592145015,
        "mmlu_pro": 50.410017730496456,
        "musr": 12.342187500000003
      },
      "sha": "6c92140f35084f10f08832cb884fd87328509d45",
      "submitted": "2024-12-07",
      "type": "fine-tunedondomain-specificdatasets",
      "uploaded": "2024-10-26",
      "url": "https://huggingface.co/huihui-ai/Qwen2.5-72B-Instruct-abliterated",
      "weight_type": "Original"
    },
    {
      "architecture": "Qwen2ForCausalLM",
      "available_on_hub": false,
      "average": 47.98045991216864,
      "base_model": "Qwen/Qwen2.5-72B",
      "chat_template": true,
      "co2_kg": 47.645491341309835,
      "flagged": false,
      "generation": 1,
      "license": "other",
      "likes": 777,
      "merged": false,
      "model": "Qwen/Qwen2.5-72B-Instruct",
      "moe": false,
      "official_provider": true,
      "params_b": 72.706,
      "position": 2,
      "precision": "bfloat16",
      "scores": {
        "bbh": 61.873255668787884,
        "gpqa": 16.666666666666664,
        "ifeval": 86.3837949972739,
        "math_lvl5": 59.818731117824775,
        "mmlu_pro": 51.39812352245864,
        "musr": 11.742187500000005
      },
      "sha": "a13fff9ad76700c7ecff2769f75943ba8395b4a7",
      "submitted": "2024-10-16",
      "type": "chatmodels",
      "uploaded": "2024-09-16",
      "url": "https://huggingface.co/Qwen/Qwen2.5-72B-Instruct",
      "weight_type": "Original"
    },
    "… 48 more"
  ],
  "leaderboard": "Open LLM Leaderboard v2",
  "next_page": 2,
  "order": "desc",
  "page": 1,
  "q": "qwen",
  "sort": "average",
  "total": 773,
  "url": "https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this API run new evaluations with my own prompts?
No. It returns published Hugging Face Open LLM Leaderboard v2 benchmark results and metadata.

### What units do min_params and max_params use?
They are numeric values in billions of parameters (for example 7 for 7B or 70 for 70B).

### Which individual benchmark scores are returned?
Each entry's scores object includes bbh, gpqa, ifeval, math_lvl5, mmlu_pro and musr alongside the aggregate average.

### How are results sorted and paginated?
Results default to sort=average and order=desc, with page (default 1) and limit up to 100 (default 50).

### Can I filter out community merges or unofficial uploads?
Yes. Use the official and model_type query parameters, and inspect items[].merged, items[].flagged and items[].official_provider.

### How do caching and field selection work?
Output is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks, or fields to select specific keys.

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-open-llm-leaderboard-api/ee88a720-1968-4aec-9cc1-771dec307914/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
