GET
/
models
/
get-model
curl --request GET \
  --url https://api.enkryptai.com/models/get-model \
  --header 'X-Enkrypt-Model: <x-enkrypt-model>' \
  --header 'X-Enkrypt-Model-Version: <x-enkrypt-model-version>' \
  --header 'apikey: <api-key>'
{
  "testing_for": "foundationModels",
  "model_name": "mistralai/Mixtral-8x7B-Instruct-v0.1",
  "certifications": [],
  "model_config": {
    "paths": {
      "chat": "/chat/completions",
      "completions": "/completions"
    },
    "apikeys": [
      "xxxxx"
    ],
    "endpoint": {
      "host": "api.together.xyz",
      "port": 443,
      "scheme": "https",
      "base_path": "/v1"
    },
    "auth_data": {
      "header_name": "Authorization",
      "header_prefix": "Bearer",
      "space_after_prefix": true
    },
    "input_modalities": [
      "text"
    ],
    "output_modalities": [
      "text"
    ],
    "model_source": "https://together.ai",
    "system_prompt": "",
    "tools": [
      {
        "name": "web_search",
        "description": "The tool web search is used to search the web for information related to finance."
      }
    ],
    "metadata": {},
    "default_request_options": {}
  },
  "model_saved_name": "Test Model",
  "model_version": "v1",
  "created_at": "2024-10-15T17:22:47.872389+00:00",
  "updated_at": "2024-10-15T17:22:47.872389+00:00",
  "model_id": 1234567890,
  "model_provider": "together",
  "project_name": "default",
  "hosting_type": "External"
}

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-Model
string
required

The model saved name. E.g. Test Model

Example:

"Test Model"

X-Enkrypt-Model-Version
string
required

The model version. Default is 'v1'

Example:

"v1"

X-Enkrypt-Refresh-Cache
boolean

Refresh the cache if data is stale

Example:

false

Response

200 - application/json
Successful Response
model_config
object
required
model_saved_name
string
required

Name of the saved model

Example:

"Test Model"

model_version
string
required

Custom identifier for the model

Example:

"v1"

testing_for
enum<string>

Purpose of testing

Available options:
foundationModels,
chatbotsAndCopilots,
agents
Example:

"foundationModels"

model_name
string

Name of the model. Required for foundationModels

Example:

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

certifications
string[]

List of certifications

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

1234567890

created_at
string
Example:

"2024-10-15T17:22:47.872389+00:00"

updated_at
string
Example:

"2024-10-15T17:22:47.872389+00:00"

project_name
string
Example:

"default"