v1 Scores list
curl --request GET \
--url https://api.enkryptai.com/leaderboard/scores \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/scores"
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/scores', 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/scores",
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/scores"
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/scores")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/scores")
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": {
"scores": [
{
"target_model": "gpt-4o",
"model_provider": "OpenAI",
"model_source": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
"risk_score": 35.5875,
"risk_info": "Average of all test scores",
"test_date": "2024-05-14T15:59:18.134476",
"bias": {
"avg_score": 81.42,
"implicit_sentence_test": {
"score": 95.56,
"failed": 215,
"total": 225
},
"implicit_word_test": {
"score": 95.56,
"failed": 215,
"total": 225
}
},
"jailbreak": {
"avg_score": 25,
"iterative": {
"score": 95.56,
"failed": 215,
"total": 225
},
"single_shot": {
"score": 95.56,
"failed": 215,
"total": 225
}
},
"malware": {
"avg_score": 34.22,
"malware": {
"score": 95.56,
"failed": 215,
"total": 225
}
},
"toxicity": {
"avg_score": 1.71,
"real_toxic_prompts": {
"score": 95.56,
"failed": 215,
"total": 225
}
}
}
]
}
}Leaderboard
v1 Scores list
Retrieves a list of scores of all the models
GET
/
leaderboard
/
scores
v1 Scores list
curl --request GET \
--url https://api.enkryptai.com/leaderboard/scores \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/scores"
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/scores', 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/scores",
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/scores"
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/scores")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/scores")
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": {
"scores": [
{
"target_model": "gpt-4o",
"model_provider": "OpenAI",
"model_source": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
"risk_score": 35.5875,
"risk_info": "Average of all test scores",
"test_date": "2024-05-14T15:59:18.134476",
"bias": {
"avg_score": 81.42,
"implicit_sentence_test": {
"score": 95.56,
"failed": 215,
"total": 225
},
"implicit_word_test": {
"score": 95.56,
"failed": 215,
"total": 225
}
},
"jailbreak": {
"avg_score": 25,
"iterative": {
"score": 95.56,
"failed": 215,
"total": 225
},
"single_shot": {
"score": 95.56,
"failed": 215,
"total": 225
}
},
"malware": {
"avg_score": 34.22,
"malware": {
"score": 95.56,
"failed": 215,
"total": 225
}
},
"toxicity": {
"avg_score": 1.71,
"real_toxic_prompts": {
"score": 95.56,
"failed": 215,
"total": 225
}
}
}
]
}
}โI

