curl --request PUT \
--url https://pria.praxislxp.com/api/admin/aimodel/{id} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"name": "<string>",
"institution": "<string>",
"description": "<string>",
"api_url": "<string>",
"api_key": "<string>",
"default_headers": {},
"features": {
"stream": false,
"tools": false,
"code": false,
"vision": false,
"mcp": false
},
"input_media": {
"text": true,
"image": false,
"audio": false,
"video": false,
"pdf": false
},
"output_media": {
"text": true,
"audio": false,
"video": false,
"image": false
},
"max_input_tokens": 123,
"max_output_tokens": 123,
"extended_context": true,
"picture_url": "<string>"
}
'import requests
url = "https://pria.praxislxp.com/api/admin/aimodel/{id}"
payload = {
"name": "<string>",
"institution": "<string>",
"description": "<string>",
"api_url": "<string>",
"api_key": "<string>",
"default_headers": {},
"features": {
"stream": False,
"tools": False,
"code": False,
"vision": False,
"mcp": False
},
"input_media": {
"text": True,
"image": False,
"audio": False,
"video": False,
"pdf": False
},
"output_media": {
"text": True,
"audio": False,
"video": False,
"image": False
},
"max_input_tokens": 123,
"max_output_tokens": 123,
"extended_context": True,
"picture_url": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
institution: '<string>',
description: '<string>',
api_url: '<string>',
api_key: '<string>',
default_headers: {},
features: {stream: false, tools: false, code: false, vision: false, mcp: false},
input_media: {text: true, image: false, audio: false, video: false, pdf: false},
output_media: {text: true, audio: false, video: false, image: false},
max_input_tokens: 123,
max_output_tokens: 123,
extended_context: true,
picture_url: '<string>'
})
};
fetch('https://pria.praxislxp.com/api/admin/aimodel/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/admin/aimodel/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'institution' => '<string>',
'description' => '<string>',
'api_url' => '<string>',
'api_key' => '<string>',
'default_headers' => [
],
'features' => [
'stream' => false,
'tools' => false,
'code' => false,
'vision' => false,
'mcp' => false
],
'input_media' => [
'text' => true,
'image' => false,
'audio' => false,
'video' => false,
'pdf' => false
],
'output_media' => [
'text' => true,
'audio' => false,
'video' => false,
'image' => false
],
'max_input_tokens' => 123,
'max_output_tokens' => 123,
'extended_context' => true,
'picture_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/admin/aimodel/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://pria.praxislxp.com/api/admin/aimodel/{id}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/aimodel/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "User institution deleted successfully"
}Update AI model
Partially updates an existing AI model configuration. Only fields present in the request body are written. The handler merges client_library / api_url / api_key with the stored document and re-validates the resulting combination before persisting.
curl --request PUT \
--url https://pria.praxislxp.com/api/admin/aimodel/{id} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"name": "<string>",
"institution": "<string>",
"description": "<string>",
"api_url": "<string>",
"api_key": "<string>",
"default_headers": {},
"features": {
"stream": false,
"tools": false,
"code": false,
"vision": false,
"mcp": false
},
"input_media": {
"text": true,
"image": false,
"audio": false,
"video": false,
"pdf": false
},
"output_media": {
"text": true,
"audio": false,
"video": false,
"image": false
},
"max_input_tokens": 123,
"max_output_tokens": 123,
"extended_context": true,
"picture_url": "<string>"
}
'import requests
url = "https://pria.praxislxp.com/api/admin/aimodel/{id}"
payload = {
"name": "<string>",
"institution": "<string>",
"description": "<string>",
"api_url": "<string>",
"api_key": "<string>",
"default_headers": {},
"features": {
"stream": False,
"tools": False,
"code": False,
"vision": False,
"mcp": False
},
"input_media": {
"text": True,
"image": False,
"audio": False,
"video": False,
"pdf": False
},
"output_media": {
"text": True,
"audio": False,
"video": False,
"image": False
},
"max_input_tokens": 123,
"max_output_tokens": 123,
"extended_context": True,
"picture_url": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
institution: '<string>',
description: '<string>',
api_url: '<string>',
api_key: '<string>',
default_headers: {},
features: {stream: false, tools: false, code: false, vision: false, mcp: false},
input_media: {text: true, image: false, audio: false, video: false, pdf: false},
output_media: {text: true, audio: false, video: false, image: false},
max_input_tokens: 123,
max_output_tokens: 123,
extended_context: true,
picture_url: '<string>'
})
};
fetch('https://pria.praxislxp.com/api/admin/aimodel/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/admin/aimodel/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'institution' => '<string>',
'description' => '<string>',
'api_url' => '<string>',
'api_key' => '<string>',
'default_headers' => [
],
'features' => [
'stream' => false,
'tools' => false,
'code' => false,
'vision' => false,
'mcp' => false
],
'input_media' => [
'text' => true,
'image' => false,
'audio' => false,
'video' => false,
'pdf' => false
],
'output_media' => [
'text' => true,
'audio' => false,
'video' => false,
'image' => false
],
'max_input_tokens' => 123,
'max_output_tokens' => 123,
'extended_context' => true,
'picture_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/admin/aimodel/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://pria.praxislxp.com/api/admin/aimodel/{id}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/aimodel/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "User institution deleted successfully"
}Authorizations
JWT token passed in x-access-token header
Path Parameters
AI Model ID
Body
Partial update. Every field is optional; only the keys provided are written. The handler merges client_library / api_url / api_key with the stored document before re-validating, so you can update one field without resending the others.
conversationModel, imageGenerationModel, audioGenerationModel, videoGenerationModel, imageAnalysisModel, embeddingsModel, audioAnalysisModel, videoAnalysisModel, ttsModel, summaryModel, rtModel, moderationModel openai_cli, anthropic_cli, bedrock_cli, google_cli, mistral_cli, xai_cli, stability_cli Show child attributes
Show child attributes
Capability flags advertised by the model.
Show child attributes
Show child attributes
Input modalities the model accepts.
Show child attributes
Show child attributes
Output modalities the model can produce.
Show child attributes
Show child attributes
none, low, medium, high, max active, inactive Was this page helpful?