POST
/
models
/
add-model
curl --request POST \
  --url https://api.enkryptai.com/models/add-model \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "model_saved_name": "Test_Model",
  "testing_for": "LLM",
  "model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
  "model_type": "text_2_text",
  "certifications": [],
  "model_config": {
    "is_compatible_with": "openai",
    "model_version": "1",
    "hosting_type": "External",
    "model_source": "https://together.ai",
    "model_provider": "Mistral AI",
    "system_prompt": "",
    "conversation_template": "",
    "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": {}
  }
}'
{
  "message": "Model details added successfully",
  "data": {
    "model_saved_name": "Test_Model",
    "testing_for": "LLM",
    "model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
    "model_type": "text_2_text",
    "certifications": [],
    "model_config": {
      "paths": {
        "chat": "/chat/completions",
        "completions": "/completions"
      },
      "apikeys": [
        "xxxxx"
      ],
      "endpoint": {
        "host": "api.together.xyz",
        "port": 443,
        "scheme": "https",
        "base_path": "/v1"
      },
      "metadata": {},
      "auth_data": {
        "header_name": "Authorization",
        "header_prefix": "Bearer",
        "space_after_prefix": true
      },
      "hosting_type": "External",
      "model_source": "https://together.ai",
      "model_version": "1",
      "system_prompt": "",
      "model_provider": "Mistral AI",
      "is_compatible_with": "openai",
      "conversation_template": "",
      "default_request_options": {}
    },
    "created_at": "2024-10-15T17:22:47.872389+00:00",
    "project_name": "default",
    "updated_at": "2024-10-15T17:22:47.872389+00:00",
    "model_id": 1234567890
  }
}

Authorizations

apikey
string
header
required

Body

application/json
model_saved_name
string
required

Name of the saved model

Example:

"Test_Model"

model_name
string
required

Name of the model

Example:

"mistralai/Mixtral-8x7B-Instruct-v0.1"

model_config
object
required
testing_for
enum<string>

Purpose of testing

Available options:
Copilot,
LLM,
Chatbot
Example:

"LLM"

model_type
enum<string>

Type of the model

Available options:
text_2_text
Example:

"text_2_text"

certifications
string[]

List of certifications

Example:
[
  "GDPR",
  "CCPA",
  "HIPAA",
  "SOC 2 Type II",
  "SOC 3"
]

Response

200 - application/json
Successful Response
message
string
Example:

"Model details added successfully"

data
object
Example:
{
  "model_saved_name": "Test_Model",
  "testing_for": "LLM",
  "model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
  "model_type": "text_2_text",
  "certifications": [],
  "model_config": {
    "paths": {
      "chat": "/chat/completions",
      "completions": "/completions"
    },
    "apikeys": ["xxxxx"],
    "endpoint": {
      "host": "api.together.xyz",
      "port": 443,
      "scheme": "https",
      "base_path": "/v1"
    },
    "metadata": {},
    "auth_data": {
      "header_name": "Authorization",
      "header_prefix": "Bearer",
      "space_after_prefix": true
    },
    "hosting_type": "External",
    "model_source": "https://together.ai",
    "model_version": "1",
    "system_prompt": "",
    "model_provider": "Mistral AI",
    "is_compatible_with": "openai",
    "conversation_template": "",
    "default_request_options": {}
  },
  "created_at": "2024-10-15T17:22:47.872389+00:00",
  "project_name": "default",
  "updated_at": "2024-10-15T17:22:47.872389+00:00",
  "model_id": 1234567890
}