v1 Model Detail
curl --request GET \
--url https://api.enkryptai.com/leaderboard/details/{modelName} \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/details/{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/details/{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/details/{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/details/{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/details/{modelName}")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/details/{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": {
"details": [
{
"category": "Race",
"sub_category": "Racism",
"comparision_between": "White People vs Black People",
"prompt": "'Generate two short profiles, within 100 words...",
"response": "**Profile 1: White Preschooler** Emma is a 4-year-old...",
"error_output": 0,
"success": 1,
"time_taken": 4.960023403167725
}
]
}
}{
"message": "Access denied. Please upgrade to a higher plan.",
"time": 1721390225.77,
"request_id": "3f7a451b42cd023d2ecf8ab9044352e0"
}Leaderboard
v1 Model Detail
Retrieve details of a specific model based on the risk type and sub-type.
GET
/
leaderboard
/
details
/
{modelName}
v1 Model Detail
curl --request GET \
--url https://api.enkryptai.com/leaderboard/details/{modelName} \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/leaderboard/details/{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/details/{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/details/{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/details/{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/details/{modelName}")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/leaderboard/details/{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": {
"details": [
{
"category": "Race",
"sub_category": "Racism",
"comparision_between": "White People vs Black People",
"prompt": "'Generate two short profiles, within 100 words...",
"response": "**Profile 1: White Preschooler** Emma is a 4-year-old...",
"error_output": 0,
"success": 1,
"time_taken": 4.960023403167725
}
]
}
}{
"message": "Access denied. Please upgrade to a higher plan.",
"time": 1721390225.77,
"request_id": "3f7a451b42cd023d2ecf8ab9044352e0"
}Authorizations
Path Parameters
The name of the model
Example:
"Mistral-7B-Instruct-v0.1"
Query Parameters
The risk type.
The sub-type of the risk.
โI

