Skip to main content
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": {}
    }
  }
}
'
{
  "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
endpoint_configuration
ModelCustomRequestObject · object
required
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": {}
  }
}

Response

200 - application/json

Successful Response

status
enum<string>
required
Available options:
healthy,
unhealthy
message
string
Example:

"Model health check completed successfully"

data
Data · object
error
string
Example:

"Error while checking model health"