Endpoints API Documentation
Endpoints (Models) APIs
Endpoints (Models) APIs
Get Model
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
Headers
The model saved name. E.g. Test Model
Example:
"Test Model"
The model version. Default is 'v1'
Example:
"v1"
Refresh the cache if data is stale
Example:
false
Response
200 - application/json
Successful Response
The response is of type object
.
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"
}
Assistant
Responses are generated using AI and may contain mistakes.