Model Health (V3)
curl --request POST \
--url https://api.enkryptai.com/redteam/v3/model-health \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"endpoint_configuration": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
"certifications": [],
"model_config": {
"model_provider": "together",
"hosting_type": "External",
"input_modalities": [
"text"
],
"output_modalities": [
"text"
],
"model_source": "https://together.ai",
"rate_per_min": 20,
"system_prompt": "",
"endpoint": {
"scheme": "https",
"host": "api.together.xyz",
"port": 443,
"base_path": "/v1"
},
"paths": {
"completions": "/completions",
"chat": "/chat/completions"
},
"auth_data": {
"header_name": "Authorization",
"header_prefix": "Bearer",
"space_after_prefix": true
},
"apikeys": [
"xxxxx"
],
"metadata": {},
"default_request_options": {}
}
}
}
'import requests
url = "https://api.enkryptai.com/redteam/v3/model-health"
payload = { "endpoint_configuration": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
"certifications": [],
"model_config": {
"model_provider": "together",
"hosting_type": "External",
"input_modalities": ["text"],
"output_modalities": ["text"],
"model_source": "https://together.ai",
"rate_per_min": 20,
"system_prompt": "",
"endpoint": {
"scheme": "https",
"host": "api.together.xyz",
"port": 443,
"base_path": "/v1"
},
"paths": {
"completions": "/completions",
"chat": "/chat/completions"
},
"auth_data": {
"header_name": "Authorization",
"header_prefix": "Bearer",
"space_after_prefix": True
},
"apikeys": ["xxxxx"],
"metadata": {},
"default_request_options": {}
}
} }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endpoint_configuration: {
testing_for: 'foundationModels',
model_name: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
certifications: [],
model_config: {
model_provider: 'together',
hosting_type: 'External',
input_modalities: ['text'],
output_modalities: ['text'],
model_source: 'https://together.ai',
rate_per_min: 20,
system_prompt: '',
endpoint: {scheme: 'https', host: 'api.together.xyz', port: 443, base_path: '/v1'},
paths: {completions: '/completions', chat: '/chat/completions'},
auth_data: {
header_name: 'Authorization',
header_prefix: 'Bearer',
space_after_prefix: true
},
apikeys: ['xxxxx'],
metadata: {},
default_request_options: {}
}
}
})
};
fetch('https://api.enkryptai.com/redteam/v3/model-health', 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/redteam/v3/model-health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'endpoint_configuration' => [
'testing_for' => 'foundationModels',
'model_name' => 'mistralai/Mixtral-8x7B-Instruct-v0.1',
'certifications' => [
],
'model_config' => [
'model_provider' => 'together',
'hosting_type' => 'External',
'input_modalities' => [
'text'
],
'output_modalities' => [
'text'
],
'model_source' => 'https://together.ai',
'rate_per_min' => 20,
'system_prompt' => '',
'endpoint' => [
'scheme' => 'https',
'host' => 'api.together.xyz',
'port' => 443,
'base_path' => '/v1'
],
'paths' => [
'completions' => '/completions',
'chat' => '/chat/completions'
],
'auth_data' => [
'header_name' => 'Authorization',
'header_prefix' => 'Bearer',
'space_after_prefix' => true
],
'apikeys' => [
'xxxxx'
],
'metadata' => [
],
'default_request_options' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/redteam/v3/model-health"
payload := strings.NewReader("{\n \"endpoint_configuration\": {\n \"testing_for\": \"foundationModels\",\n \"model_name\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"certifications\": [],\n \"model_config\": {\n \"model_provider\": \"together\",\n \"hosting_type\": \"External\",\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"model_source\": \"https://together.ai\",\n \"rate_per_min\": 20,\n \"system_prompt\": \"\",\n \"endpoint\": {\n \"scheme\": \"https\",\n \"host\": \"api.together.xyz\",\n \"port\": 443,\n \"base_path\": \"/v1\"\n },\n \"paths\": {\n \"completions\": \"/completions\",\n \"chat\": \"/chat/completions\"\n },\n \"auth_data\": {\n \"header_name\": \"Authorization\",\n \"header_prefix\": \"Bearer\",\n \"space_after_prefix\": true\n },\n \"apikeys\": [\n \"xxxxx\"\n ],\n \"metadata\": {},\n \"default_request_options\": {}\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/redteam/v3/model-health")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"endpoint_configuration\": {\n \"testing_for\": \"foundationModels\",\n \"model_name\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"certifications\": [],\n \"model_config\": {\n \"model_provider\": \"together\",\n \"hosting_type\": \"External\",\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"model_source\": \"https://together.ai\",\n \"rate_per_min\": 20,\n \"system_prompt\": \"\",\n \"endpoint\": {\n \"scheme\": \"https\",\n \"host\": \"api.together.xyz\",\n \"port\": 443,\n \"base_path\": \"/v1\"\n },\n \"paths\": {\n \"completions\": \"/completions\",\n \"chat\": \"/chat/completions\"\n },\n \"auth_data\": {\n \"header_name\": \"Authorization\",\n \"header_prefix\": \"Bearer\",\n \"space_after_prefix\": true\n },\n \"apikeys\": [\n \"xxxxx\"\n ],\n \"metadata\": {},\n \"default_request_options\": {}\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/v3/model-health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endpoint_configuration\": {\n \"testing_for\": \"foundationModels\",\n \"model_name\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"certifications\": [],\n \"model_config\": {\n \"model_provider\": \"together\",\n \"hosting_type\": \"External\",\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"model_source\": \"https://together.ai\",\n \"rate_per_min\": 20,\n \"system_prompt\": \"\",\n \"endpoint\": {\n \"scheme\": \"https\",\n \"host\": \"api.together.xyz\",\n \"port\": 443,\n \"base_path\": \"/v1\"\n },\n \"paths\": {\n \"completions\": \"/completions\",\n \"chat\": \"/chat/completions\"\n },\n \"auth_data\": {\n \"header_name\": \"Authorization\",\n \"header_prefix\": \"Bearer\",\n \"space_after_prefix\": true\n },\n \"apikeys\": [\n \"xxxxx\"\n ],\n \"metadata\": {},\n \"default_request_options\": {}\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Model health check completed successfully",
"data": {
"query": "What is the capital of India?",
"response": "The capital of India is New Delhi."
},
"error": "Error while checking model health"
}🔴 Red Team API
Model Health (V3)
POST
/
redteam
/
v3
/
model-health
Model Health (V3)
curl --request POST \
--url https://api.enkryptai.com/redteam/v3/model-health \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"endpoint_configuration": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
"certifications": [],
"model_config": {
"model_provider": "together",
"hosting_type": "External",
"input_modalities": [
"text"
],
"output_modalities": [
"text"
],
"model_source": "https://together.ai",
"rate_per_min": 20,
"system_prompt": "",
"endpoint": {
"scheme": "https",
"host": "api.together.xyz",
"port": 443,
"base_path": "/v1"
},
"paths": {
"completions": "/completions",
"chat": "/chat/completions"
},
"auth_data": {
"header_name": "Authorization",
"header_prefix": "Bearer",
"space_after_prefix": true
},
"apikeys": [
"xxxxx"
],
"metadata": {},
"default_request_options": {}
}
}
}
'import requests
url = "https://api.enkryptai.com/redteam/v3/model-health"
payload = { "endpoint_configuration": {
"testing_for": "foundationModels",
"model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
"certifications": [],
"model_config": {
"model_provider": "together",
"hosting_type": "External",
"input_modalities": ["text"],
"output_modalities": ["text"],
"model_source": "https://together.ai",
"rate_per_min": 20,
"system_prompt": "",
"endpoint": {
"scheme": "https",
"host": "api.together.xyz",
"port": 443,
"base_path": "/v1"
},
"paths": {
"completions": "/completions",
"chat": "/chat/completions"
},
"auth_data": {
"header_name": "Authorization",
"header_prefix": "Bearer",
"space_after_prefix": True
},
"apikeys": ["xxxxx"],
"metadata": {},
"default_request_options": {}
}
} }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endpoint_configuration: {
testing_for: 'foundationModels',
model_name: 'mistralai/Mixtral-8x7B-Instruct-v0.1',
certifications: [],
model_config: {
model_provider: 'together',
hosting_type: 'External',
input_modalities: ['text'],
output_modalities: ['text'],
model_source: 'https://together.ai',
rate_per_min: 20,
system_prompt: '',
endpoint: {scheme: 'https', host: 'api.together.xyz', port: 443, base_path: '/v1'},
paths: {completions: '/completions', chat: '/chat/completions'},
auth_data: {
header_name: 'Authorization',
header_prefix: 'Bearer',
space_after_prefix: true
},
apikeys: ['xxxxx'],
metadata: {},
default_request_options: {}
}
}
})
};
fetch('https://api.enkryptai.com/redteam/v3/model-health', 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/redteam/v3/model-health",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'endpoint_configuration' => [
'testing_for' => 'foundationModels',
'model_name' => 'mistralai/Mixtral-8x7B-Instruct-v0.1',
'certifications' => [
],
'model_config' => [
'model_provider' => 'together',
'hosting_type' => 'External',
'input_modalities' => [
'text'
],
'output_modalities' => [
'text'
],
'model_source' => 'https://together.ai',
'rate_per_min' => 20,
'system_prompt' => '',
'endpoint' => [
'scheme' => 'https',
'host' => 'api.together.xyz',
'port' => 443,
'base_path' => '/v1'
],
'paths' => [
'completions' => '/completions',
'chat' => '/chat/completions'
],
'auth_data' => [
'header_name' => 'Authorization',
'header_prefix' => 'Bearer',
'space_after_prefix' => true
],
'apikeys' => [
'xxxxx'
],
'metadata' => [
],
'default_request_options' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/redteam/v3/model-health"
payload := strings.NewReader("{\n \"endpoint_configuration\": {\n \"testing_for\": \"foundationModels\",\n \"model_name\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"certifications\": [],\n \"model_config\": {\n \"model_provider\": \"together\",\n \"hosting_type\": \"External\",\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"model_source\": \"https://together.ai\",\n \"rate_per_min\": 20,\n \"system_prompt\": \"\",\n \"endpoint\": {\n \"scheme\": \"https\",\n \"host\": \"api.together.xyz\",\n \"port\": 443,\n \"base_path\": \"/v1\"\n },\n \"paths\": {\n \"completions\": \"/completions\",\n \"chat\": \"/chat/completions\"\n },\n \"auth_data\": {\n \"header_name\": \"Authorization\",\n \"header_prefix\": \"Bearer\",\n \"space_after_prefix\": true\n },\n \"apikeys\": [\n \"xxxxx\"\n ],\n \"metadata\": {},\n \"default_request_options\": {}\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enkryptai.com/redteam/v3/model-health")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"endpoint_configuration\": {\n \"testing_for\": \"foundationModels\",\n \"model_name\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"certifications\": [],\n \"model_config\": {\n \"model_provider\": \"together\",\n \"hosting_type\": \"External\",\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"model_source\": \"https://together.ai\",\n \"rate_per_min\": 20,\n \"system_prompt\": \"\",\n \"endpoint\": {\n \"scheme\": \"https\",\n \"host\": \"api.together.xyz\",\n \"port\": 443,\n \"base_path\": \"/v1\"\n },\n \"paths\": {\n \"completions\": \"/completions\",\n \"chat\": \"/chat/completions\"\n },\n \"auth_data\": {\n \"header_name\": \"Authorization\",\n \"header_prefix\": \"Bearer\",\n \"space_after_prefix\": true\n },\n \"apikeys\": [\n \"xxxxx\"\n ],\n \"metadata\": {},\n \"default_request_options\": {}\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/v3/model-health")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endpoint_configuration\": {\n \"testing_for\": \"foundationModels\",\n \"model_name\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"certifications\": [],\n \"model_config\": {\n \"model_provider\": \"together\",\n \"hosting_type\": \"External\",\n \"input_modalities\": [\n \"text\"\n ],\n \"output_modalities\": [\n \"text\"\n ],\n \"model_source\": \"https://together.ai\",\n \"rate_per_min\": 20,\n \"system_prompt\": \"\",\n \"endpoint\": {\n \"scheme\": \"https\",\n \"host\": \"api.together.xyz\",\n \"port\": 443,\n \"base_path\": \"/v1\"\n },\n \"paths\": {\n \"completions\": \"/completions\",\n \"chat\": \"/chat/completions\"\n },\n \"auth_data\": {\n \"header_name\": \"Authorization\",\n \"header_prefix\": \"Bearer\",\n \"space_after_prefix\": true\n },\n \"apikeys\": [\n \"xxxxx\"\n ],\n \"metadata\": {},\n \"default_request_options\": {}\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Model health check completed successfully",
"data": {
"query": "What is the capital of India?",
"response": "The capital of India is New Delhi."
},
"error": "Error while checking model health"
}Authorizations
Body
application/json
Show child attributes
Show child attributes
Example:
{ "testing_for": "foundationModels", "model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1", "certifications": [], "model_config": { "model_provider": "together", "hosting_type": "External", "input_modalities": ["text"], "output_modalities": ["text"], "model_source": "https://together.ai", "rate_per_min": 20, "system_prompt": "", "endpoint": { "scheme": "https", "host": "api.together.xyz", "port": 443, "base_path": "/v1" }, "paths": { "completions": "/completions", "chat": "/chat/completions" }, "auth_data": { "header_name": "Authorization", "header_prefix": "Bearer", "space_after_prefix": true }, "apikeys": ["xxxxx"], "metadata": {}, "default_request_options": {} } }
⌘I

