v2 Model Rank
curl --request GET \
--url https://api.enkryptai.com/leaderboard/v2/rank/{modelName} \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/v2/rank/{modelName}"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/leaderboard/v2/rank/{modelName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/leaderboard/v2/rank/{modelName}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/leaderboard/v2/rank/{modelName}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/leaderboard/v2/rank/{modelName}")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/v2/rank/{modelName}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"rank": 22,
"totalModels": 70
}
}{
"code": 403,
"error": "Forbidden",
"message": "The private leaderboard is restricted to anaconda.com and enkryptai.com accounts. To have a model added to the public leaderboard, please contact dkumar@anaconda.com.",
"request_id": "<string>",
"time": 123
}{
"code": 403,
"error": "Forbidden",
"message": "The private leaderboard is restricted to anaconda.com and enkryptai.com accounts. To have a model added to the public leaderboard, please contact dkumar@anaconda.com.",
"request_id": "<string>",
"time": 123
}๐ Leaderboard API
v2 Model Rank
Retrieves model rank
GET
/
leaderboard
/
v2
/
rank
/
{modelName}
v2 Model Rank
curl --request GET \
--url https://api.enkryptai.com/leaderboard/v2/rank/{modelName} \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/v2/rank/{modelName}"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.enkryptai.com/leaderboard/v2/rank/{modelName}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/leaderboard/v2/rank/{modelName}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/leaderboard/v2/rank/{modelName}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/leaderboard/v2/rank/{modelName}")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/v2/rank/{modelName}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"rank": 22,
"totalModels": 70
}
}{
"code": 403,
"error": "Forbidden",
"message": "The private leaderboard is restricted to anaconda.com and enkryptai.com accounts. To have a model added to the public leaderboard, please contact dkumar@anaconda.com.",
"request_id": "<string>",
"time": 123
}{
"code": 403,
"error": "Forbidden",
"message": "The private leaderboard is restricted to anaconda.com and enkryptai.com accounts. To have a model added to the public leaderboard, please contact dkumar@anaconda.com.",
"request_id": "<string>",
"time": 123
}Authorizations
Headers
Which leaderboard to read from. Defaults to public.
public is the published LLM safety leaderboard โ what every caller gets when the header is omitted, and accepted from any API key.
private is an internal, partner-scoped leaderboard restricted to @enkryptai.com and @anaconda.com accounts; any other key receives 403. It is served on the /leaderboard/v2/* paths only โ asking for it on a /leaderboard/* path returns 400 rather than quietly answering with public data. Any value other than public or private returns 400.
Available options:
public, private Example:
"private"
Path Parameters
The name of the model
Example:
"Mistral-7B-Instruct-v0.1"

