POST
/
redteam
/
model-health
curl --request POST \
  --url https://api.enkryptai.com/redteam/model-health \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "target_model_configuration": {
    "model_name": "mistralai/Mistral-7B-Instruct-v0.1",
    "testing_for": "Copilot",
    "model_version": "v1",
    "model_source": "https://together.ai",
    "model_provider": "together",
    "model_endpoint_url": "https://api.together.xyz/v1/chat/completions",
    "model_api_key": "ABCDE12345678900",
    "system_prompt": "",
    "rate_per_min": 20,
    "input_modalities": [
      "text"
    ],
    "output_modalities": [
      "text"
    ],
    "tools": [
      {
        "name": "web_search",
        "description": "The tool web search is used to search the web for information related to finance."
      }
    ]
  }
}'
{
  "status": "healthy",
  "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

apikey
string
header
required

Body

application/json
target_model_configuration
object
required

Response

200 - application/json
Successful Response
status
enum<string>
required
Available options:
healthy,
unhealthy
message
string
Example:

"Model health check completed successfully"

data
object
error
string
Example:

"Error while checking model health"